From 2abe1b4dc20ec3bba2844faa0bb705aedb1f3e82 Mon Sep 17 00:00:00 2001 From: rklaehn Date: Wed, 2 Oct 2024 11:47:19 +0000 Subject: [PATCH] deploy: 98a146a45c1e4ff7c2481bf0de8001203b26e2cc --- .../net/endpoint/fn.default_relay_mode.html | 2 +- .../net/endpoint/fn.get_remote_node_id.html | 2 +- .../docs/iroh/net/endpoint/struct.Accept.html | 6 +-- .../iroh/net/endpoint/struct.Connecting.html | 16 +++--- .../iroh/net/endpoint/struct.Endpoint.html | 47 +++++++++--------- .../iroh/net/endpoint/struct.Incoming.html | 20 ++++---- .../net/endpoint/struct.IncomingFuture.html | 6 +-- .../docs/iroh/net/relay/struct.RelayMap.html | 8 +-- pr/2774/docs/iroh/net/struct.Endpoint.html | 47 +++++++++--------- .../metrics/struct.Metrics.html | 34 ++++++------- .../endpoint/fn.default_relay_mode.html | 2 +- .../endpoint/fn.get_remote_node_id.html | 2 +- pr/2774/docs/iroh_net/endpoint/index.html | 2 +- .../docs/iroh_net/endpoint/struct.Accept.html | 6 +-- .../iroh_net/endpoint/struct.Connecting.html | 16 +++--- .../iroh_net/endpoint/struct.Endpoint.html | 49 ++++++++++--------- .../iroh_net/endpoint/struct.Incoming.html | 20 ++++---- .../endpoint/struct.IncomingFuture.html | 6 +-- .../docs/iroh_net/relay/struct.RelayMap.html | 8 +-- pr/2774/docs/search.desc/iroh/iroh-desc-1-.js | 2 +- .../search.desc/iroh_net/iroh_net-desc-0-.js | 2 +- pr/2774/docs/src/iroh_net/endpoint.rs.html | 14 ++++-- pr/2774/docs/src/iroh_net/relay/map.rs.html | 8 +-- .../iroh_metrics/core/trait.Metric.js | 2 +- 24 files changed, 168 insertions(+), 159 deletions(-) diff --git a/pr/2774/docs/iroh/net/endpoint/fn.default_relay_mode.html b/pr/2774/docs/iroh/net/endpoint/fn.default_relay_mode.html index 7c5c1aadbb..cb72e48b3b 100644 --- a/pr/2774/docs/iroh/net/endpoint/fn.default_relay_mode.html +++ b/pr/2774/docs/iroh/net/endpoint/fn.default_relay_mode.html @@ -1,4 +1,4 @@ -default_relay_mode in iroh::net::endpoint - Rust

Function iroh::net::endpoint::default_relay_mode

source ·
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

+default_relay_mode in iroh::net::endpoint - Rust

Function iroh::net::endpoint::default_relay_mode

source ·
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

If the IROH_FORCE_STAGING_RELAYS environment variable is set to 1, it will return RelayMode::Staging. Otherwise, it will return RelayMode::Default.

\ No newline at end of file diff --git a/pr/2774/docs/iroh/net/endpoint/fn.get_remote_node_id.html b/pr/2774/docs/iroh/net/endpoint/fn.get_remote_node_id.html index 0209d94d22..f3c11436fe 100644 --- a/pr/2774/docs/iroh/net/endpoint/fn.get_remote_node_id.html +++ b/pr/2774/docs/iroh/net/endpoint/fn.get_remote_node_id.html @@ -1,2 +1,2 @@ -get_remote_node_id in iroh::net::endpoint - Rust

Function iroh::net::endpoint::get_remote_node_id

source ·
pub fn get_remote_node_id(connection: &Connection) -> Result<PublicKey, Error>
Expand description

Extract the PublicKey from the peer’s TLS certificate.

+get_remote_node_id in iroh::net::endpoint - Rust

Function iroh::net::endpoint::get_remote_node_id

source ·
pub fn get_remote_node_id(connection: &Connection) -> Result<PublicKey, Error>
Expand description

Extract the PublicKey from the peer’s TLS certificate.

\ No newline at end of file diff --git a/pr/2774/docs/iroh/net/endpoint/struct.Accept.html b/pr/2774/docs/iroh/net/endpoint/struct.Accept.html index c446f31e6e..a4e35d69e7 100644 --- a/pr/2774/docs/iroh/net/endpoint/struct.Accept.html +++ b/pr/2774/docs/iroh/net/endpoint/struct.Accept.html @@ -1,9 +1,9 @@ -Accept in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Accept

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

Future produced by Endpoint::accept.

-

Trait Implementations§

source§

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

source§

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

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

impl<'a> Future for Accept<'a>

§

type Output = Option<Incoming>

The type of value produced on completion.
source§

fn poll( +Accept in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Accept

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

Future produced by Endpoint::accept.

+

Trait Implementations§

source§

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

source§

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

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

impl<'a> Future for Accept<'a>

§

type Output = Option<Incoming>

The type of value produced on completion.
source§

fn poll( self: Pin<&mut Accept<'a>>, cx: &mut Context<'_> ) -> Poll<<Accept<'a> as Future>::Output>

Attempt 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 +the current task for wakeup if the value is not yet available. Read more

source§

impl<'pin, 'a> Unpin for Accept<'a>
where __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/2774/docs/iroh/net/endpoint/struct.Connecting.html b/pr/2774/docs/iroh/net/endpoint/struct.Connecting.html index 7ed04aa3cd..0f40f05509 100644 --- a/pr/2774/docs/iroh/net/endpoint/struct.Connecting.html +++ b/pr/2774/docs/iroh/net/endpoint/struct.Connecting.html @@ -1,14 +1,14 @@ -Connecting in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Connecting

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

In-progress connection attempt future

-

Implementations§

source§

impl Connecting

source

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

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

-
source

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

Parameters negotiated during the handshake

-
source

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

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

-
source

pub fn remote_address(&self) -> SocketAddr

The peer’s UDP address.

-
source

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

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

-

Trait Implementations§

source§

impl Debug for Connecting

source§

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

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

impl Future for Connecting

§

type Output = Result<Connection, ConnectionError>

The type of value produced on completion.
source§

fn poll( +Connecting in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Connecting

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

In-progress connection attempt future

+

Implementations§

source§

impl Connecting

source

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

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

+
source

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

Parameters negotiated during the handshake

+
source

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

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

+
source

pub fn remote_address(&self) -> SocketAddr

The peer’s UDP address.

+
source

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

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

+

Trait Implementations§

source§

impl Debug for Connecting

source§

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

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

impl Future for Connecting

§

type Output = Result<Connection, ConnectionError>

The type of value produced on completion.
source§

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

Attempt 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 +the current task for wakeup if the value is not yet available. Read more

source§

impl<'pin> Unpin for Connecting
where __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/2774/docs/iroh/net/endpoint/struct.Endpoint.html b/pr/2774/docs/iroh/net/endpoint/struct.Endpoint.html index 7f123b937a..ef098465b4 100644 --- a/pr/2774/docs/iroh/net/endpoint/struct.Endpoint.html +++ b/pr/2774/docs/iroh/net/endpoint/struct.Endpoint.html @@ -18,15 +18,16 @@ once the initiating peer has sent some data on it.

source

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

Sets the list of accepted ALPN protocols.

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

-
source

pub async fn connect( +

source

pub async fn connect( &self, node_addr: impl Into<NodeAddr>, alpn: &[u8] ) -> Result<Connection, Error>

Connects to a remote Endpoint.

-

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

+

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

+

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

If neither a RelayUrl or direct addresses are configured in the NodeAddr it may still be possible a connection can be established. This depends on other calls to Endpoint::add_node_addr which may provide contact information, or via the @@ -38,7 +39,7 @@ connection attempt will fail with an error.

The alpn, or application-level protocol identifier, is also required. The remote endpoint must support this alpn, otherwise the connection attempt will fail with an error.

-
source

pub async fn connect_by_node_id( +

source

pub async fn connect_by_node_id( &self, node_id: PublicKey, alpn: &[u8] @@ -47,13 +48,13 @@ an error.

information being provided by either the discovery service or using Endpoint::add_node_addr. See Endpoint::connect for the details of how it uses the discovery service to establish a connection to a remote node.

-

source

pub fn accept(&self) -> Accept<'_> ⓘ

Accepts an incoming connection on the endpoint.

+
source

pub fn accept(&self) -> Accept<'_> ⓘ

Accepts an incoming connection on the endpoint.

Only connections with the ALPNs configured in Builder::alpns will be accepted. If multiple ALPNs have been configured the ALPN can be inspected before accepting the connection using Connecting::alpn.

The returned future will yield None if the endpoint is closed by calling Endpoint::close.

-
source

pub fn add_node_addr(&self, node_addr: NodeAddr) -> Result<(), Error>

Informs this Endpoint about addresses of the iroh-net node.

+
source

pub fn add_node_addr(&self, node_addr: NodeAddr) -> Result<(), Error>

Informs this Endpoint about addresses of the iroh-net node.

This updates the local state for the remote node. If the provided NodeAddr contains a RelayUrl this will be used as the new relay server for this node. If it contains any new IP endpoints they will also be stored and tried when next @@ -63,7 +64,7 @@ silently ignored.

§Errors

Will return an error if we attempt to add our own PublicKey to the node map or if the direct addresses are a subset of ours.

-
source

pub fn add_node_addr_with_source( +

source

pub fn add_node_addr_with_source( &self, node_addr: NodeAddr, source: &'static str @@ -76,15 +77,15 @@ used for logging exclusively and will not be stored.

§Errors

Will return an error if we attempt to add our own PublicKey to the node map or if the direct addresses are a subset of ours.

-
source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

-
source

pub fn node_id(&self) -> PublicKey

Returns the node id of this endpoint.

+
source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

+
source

pub fn node_id(&self) -> PublicKey

Returns the node id of this endpoint.

This ID is the unique addressing information of this node and other peers must know it to be able to connect to this node.

-
source

pub async fn node_addr(&self) -> Result<NodeAddr, Error>

Returns the current NodeAddr for this endpoint.

+
source

pub async fn node_addr(&self) -> Result<NodeAddr, Error>

Returns the current NodeAddr for this endpoint.

The returned NodeAddr will have the current RelayUrl and local IP endpoints as they would be returned by Endpoint::home_relay and Endpoint::direct_addresses.

-
source

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

Returns the RelayUrl of the Relay server used as home relay.

+
source

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

Returns the RelayUrl of the Relay server used as home relay.

Every endpoint has a home Relay server which it chooses as the server with the lowest latency out of the configured servers provided by Builder::relay_mode. This is the server other iroh-net nodes can use to reliably establish a connection @@ -93,14 +94,14 @@ to this node.

Note that this will be None right after the Endpoint is created since it takes some time to connect to find and connect to the home relay server. Use Endpoint::watch_home_relay to wait until the home relay server is available.

-
source

pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl>

Watches for changes to the home relay.

+
source

pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl>

Watches for changes to the home relay.

If there is currently a home relay it will be yielded immediately as the first item in the stream. This makes it possible to use this function to wait for the initial home relay to be known.

Note that it is not guaranteed that a home relay will ever become available. If no servers are configured with Builder::relay_mode this stream will never yield an item.

-
source

pub fn direct_addresses(&self) -> DirectAddrsStream

Returns the direct addresses of this Endpoint.

+
source

pub fn direct_addresses(&self) -> DirectAddrsStream

Returns the direct addresses of this Endpoint.

The direct addresses of the Endpoint are those that could be used by other iroh-net nodes to establish direct connectivity, depending on the network situation. The yielded lists of direct addresses contain both the locally-bound @@ -123,10 +124,10 @@ most recently discovered IP endpoints.

let mep = Endpoint::builder().bind().await.unwrap(); let _addrs = mep.direct_addresses().next().await;
-
source

pub fn bound_sockets(&self) -> (SocketAddr, Option<SocketAddr>)

Returns the local socket addresses on which the underlying sockets are bound.

+
source

pub fn bound_sockets(&self) -> (SocketAddr, Option<SocketAddr>)

Returns the local socket addresses on which the underlying sockets are bound.

The Endpoint always binds on an IPv4 address and also tries to bind on an IPv6 address if available.

-
source

pub fn remote_info(&self, node_id: PublicKey) -> Option<RemoteInfo>

Returns information about the remote node identified by a NodeId.

+
source

pub fn remote_info(&self, node_id: PublicKey) -> Option<RemoteInfo>

Returns information about the remote node identified by a NodeId.

The Endpoint keeps some information about remote iroh-net nodes, which it uses to find the best path to a node. Having information on a remote node, however, does not mean we have ever connected to it to or even whether a connection is even possible. The information about a @@ -135,14 +136,14 @@ calls may return different information. Furthermore, node information may even b completely evicted as it becomes stale.

See also Endpoint::remote_info_iter which returns information on all nodes known by this Endpoint.

-
source

pub fn remote_info_iter(&self) -> impl Iterator<Item = RemoteInfo>

Returns information about all the remote nodes this Endpoint knows about.

+
source

pub fn remote_info_iter(&self) -> impl Iterator<Item = RemoteInfo>

Returns information about all the remote nodes this Endpoint knows about.

This returns the same information as Endpoint::remote_info for each node known to this Endpoint.

The Endpoint keeps some information about remote iroh-net nodes, which it uses to find the best path to a node. This returns all the nodes it knows about, regardless of whether a connection was ever made or is even possible.

See also Endpoint::remote_info to only retrieve information about a single node.

-
source

pub fn conn_type_stream( +

source

pub fn conn_type_stream( &self, node_id: PublicKey ) -> Result<ConnectionTypeStream, Error>

Returns a stream that reports connection type changes for the remote node.

@@ -158,13 +159,13 @@ connection when the switch from a relayed to a direct connection can be so fast the relayed state is never exposed.

§Errors

Will error if we do not have any address information for the given node_id.

-
source

pub fn dns_resolver( +

source

pub fn dns_resolver( &self ) -> &AsyncResolver<GenericConnector<TokioRuntimeProvider>>

Returns the DNS resolver used in this Endpoint.

See Builder::discovery.

-
source

pub fn discovery(&self) -> Option<&dyn Discovery>

Returns the discovery mechanism, if configured.

+
source

pub fn discovery(&self) -> Option<&dyn Discovery>

Returns the discovery mechanism, if configured.

See Builder::dns_resolver.

-
source

pub async fn network_change(&self)

Notifies the system of potential network changes.

+
source

pub async fn network_change(&self)

Notifies the system of potential network changes.

On many systems iroh is able to detect network changes by itself, however some systems like android do not expose this functionality to native code. Android does however provide this functionality to Java code. This @@ -172,7 +173,7 @@ 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, error_code: VarInt, reason: &[u8]) -> Result<(), Error>

Closes the QUIC endpoint and the magic socket.

+
source

pub async fn close(self, error_code: VarInt, reason: &[u8]) -> Result<(), Error>

Closes the QUIC endpoint and the magic socket.

This will close all open QUIC connections with the provided error_code and reason. See quinn::Connection for details on how these are interpreted.

It will then wait for all connections to actually be shutdown, and afterwards diff --git a/pr/2774/docs/iroh/net/endpoint/struct.Incoming.html b/pr/2774/docs/iroh/net/endpoint/struct.Incoming.html index 7e8f72507f..fc47b6ac93 100644 --- a/pr/2774/docs/iroh/net/endpoint/struct.Incoming.html +++ b/pr/2774/docs/iroh/net/endpoint/struct.Incoming.html @@ -1,29 +1,29 @@ -Incoming in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::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::net::endpoint - Rust

Struct iroh::net::endpoint::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, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

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

impl IntoFuture for Incoming

§

type Output = Result<Connection, ConnectionError>

The output that the future will produce on completion.
§

type IntoFuture = IncomingFuture

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

fn into_future(self) -> <Incoming as IntoFuture>::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, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

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

impl IntoFuture for Incoming

§

type Output = Result<Connection, ConnectionError>

The output that the future will produce on completion.
§

type IntoFuture = IncomingFuture

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

fn into_future(self) -> <Incoming as IntoFuture>::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/2774/docs/iroh/net/endpoint/struct.IncomingFuture.html b/pr/2774/docs/iroh/net/endpoint/struct.IncomingFuture.html index 469c0c8a78..cb8cb7c39d 100644 --- a/pr/2774/docs/iroh/net/endpoint/struct.IncomingFuture.html +++ b/pr/2774/docs/iroh/net/endpoint/struct.IncomingFuture.html @@ -1,9 +1,9 @@ -IncomingFuture in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::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, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

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

impl Future for IncomingFuture

§

type Output = Result<Connection, ConnectionError>

The type of value produced on completion.
source§

fn poll( +IncomingFuture in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::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, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

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

impl Future for IncomingFuture

§

type Output = Result<Connection, ConnectionError>

The type of value produced on completion.
source§

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

Attempt 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 +the current task for wakeup if the value is not yet available. Read more

source§

impl<'pin> Unpin for IncomingFuture
where __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/2774/docs/iroh/net/relay/struct.RelayMap.html b/pr/2774/docs/iroh/net/relay/struct.RelayMap.html index f0fd819c5f..a68f8ae6ad 100644 --- a/pr/2774/docs/iroh/net/relay/struct.RelayMap.html +++ b/pr/2774/docs/iroh/net/relay/struct.RelayMap.html @@ -6,15 +6,15 @@

source

pub fn get_node(&self, url: &RelayUrl) -> Option<&Arc<RelayNode>>

Get the given node.

source

pub fn len(&self) -> usize

How many nodes are known?

source

pub fn is_empty(&self) -> bool

Are there any nodes in this map?

-
source

pub fn default_from_node(url: RelayUrl, stun_port: u16) -> RelayMap

Creates a new `RelayMap with a single relay server configured.

+
source

pub fn default_from_node(url: RelayUrl, stun_port: u16) -> RelayMap

Creates a new RelayMap with a single relay server configured.

Allows to set a custom STUN port and different IP addresses for IPv4 and IPv6. If IP addresses are provided, no DNS lookup will be performed.

-
source

pub fn from_url(url: RelayUrl) -> RelayMap

Returns a [RelayMap] from a [RelayUrl`].

+
source

pub fn from_url(url: RelayUrl) -> RelayMap

Returns a RelayMap from a RelayUrl.

This will use the default STUN port and IP addresses resolved from the URL’s host name via DNS. -relay nodes are specified at <../../../docs/relay_nodes.md>

+relay nodes are specified at <../../docs/relay_nodes.md>

source

pub fn from_nodes( value: impl IntoIterator<Item = RelayNode> -) -> Result<RelayMap, Error>

Constructs the [RelayMap] from an iterator of [RelayNode`]s.

+) -> Result<RelayMap, Error>

Constructs the RelayMap from an iterator of RelayNodes.

Trait Implementations§

source§

impl Clone for RelayMap

source§

fn clone(&self) -> RelayMap

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for RelayMap

source§

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

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

impl Display for RelayMap

source§

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

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

impl PartialEq for RelayMap

source§

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

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

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

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

impl Eq for RelayMap

source§

impl StructuralPartialEq for RelayMap

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2774/docs/iroh/net/struct.Endpoint.html b/pr/2774/docs/iroh/net/struct.Endpoint.html index 5c90abbb07..393262af4c 100644 --- a/pr/2774/docs/iroh/net/struct.Endpoint.html +++ b/pr/2774/docs/iroh/net/struct.Endpoint.html @@ -18,15 +18,16 @@ once the initiating peer has sent some data on it.

source

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

Sets the list of accepted ALPN protocols.

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

-
source

pub async fn connect( +

source

pub async fn connect( &self, node_addr: impl Into<NodeAddr>, alpn: &[u8] ) -> Result<Connection, Error>

Connects to a remote Endpoint.

-

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

+

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

+

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

If neither a RelayUrl or direct addresses are configured in the NodeAddr it may still be possible a connection can be established. This depends on other calls to Endpoint::add_node_addr which may provide contact information, or via the @@ -38,7 +39,7 @@ connection attempt will fail with an error.

The alpn, or application-level protocol identifier, is also required. The remote endpoint must support this alpn, otherwise the connection attempt will fail with an error.

-
source

pub async fn connect_by_node_id( +

source

pub async fn connect_by_node_id( &self, node_id: PublicKey, alpn: &[u8] @@ -47,13 +48,13 @@ an error.

information being provided by either the discovery service or using Endpoint::add_node_addr. See Endpoint::connect for the details of how it uses the discovery service to establish a connection to a remote node.

-

source

pub fn accept(&self) -> Accept<'_> ⓘ

Accepts an incoming connection on the endpoint.

+
source

pub fn accept(&self) -> Accept<'_> ⓘ

Accepts an incoming connection on the endpoint.

Only connections with the ALPNs configured in Builder::alpns will be accepted. If multiple ALPNs have been configured the ALPN can be inspected before accepting the connection using Connecting::alpn.

The returned future will yield None if the endpoint is closed by calling Endpoint::close.

-
source

pub fn add_node_addr(&self, node_addr: NodeAddr) -> Result<(), Error>

Informs this Endpoint about addresses of the iroh-net node.

+
source

pub fn add_node_addr(&self, node_addr: NodeAddr) -> Result<(), Error>

Informs this Endpoint about addresses of the iroh-net node.

This updates the local state for the remote node. If the provided NodeAddr contains a RelayUrl this will be used as the new relay server for this node. If it contains any new IP endpoints they will also be stored and tried when next @@ -63,7 +64,7 @@ silently ignored.

§Errors

Will return an error if we attempt to add our own PublicKey to the node map or if the direct addresses are a subset of ours.

-
source

pub fn add_node_addr_with_source( +

source

pub fn add_node_addr_with_source( &self, node_addr: NodeAddr, source: &'static str @@ -76,15 +77,15 @@ used for logging exclusively and will not be stored.

§Errors

Will return an error if we attempt to add our own PublicKey to the node map or if the direct addresses are a subset of ours.

-
source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

-
source

pub fn node_id(&self) -> PublicKey

Returns the node id of this endpoint.

+
source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

+
source

pub fn node_id(&self) -> PublicKey

Returns the node id of this endpoint.

This ID is the unique addressing information of this node and other peers must know it to be able to connect to this node.

-
source

pub async fn node_addr(&self) -> Result<NodeAddr, Error>

Returns the current NodeAddr for this endpoint.

+
source

pub async fn node_addr(&self) -> Result<NodeAddr, Error>

Returns the current NodeAddr for this endpoint.

The returned NodeAddr will have the current RelayUrl and local IP endpoints as they would be returned by Endpoint::home_relay and Endpoint::direct_addresses.

-
source

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

Returns the RelayUrl of the Relay server used as home relay.

+
source

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

Returns the RelayUrl of the Relay server used as home relay.

Every endpoint has a home Relay server which it chooses as the server with the lowest latency out of the configured servers provided by Builder::relay_mode. This is the server other iroh-net nodes can use to reliably establish a connection @@ -93,14 +94,14 @@ to this node.

Note that this will be None right after the Endpoint is created since it takes some time to connect to find and connect to the home relay server. Use Endpoint::watch_home_relay to wait until the home relay server is available.

-
source

pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl>

Watches for changes to the home relay.

+
source

pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl>

Watches for changes to the home relay.

If there is currently a home relay it will be yielded immediately as the first item in the stream. This makes it possible to use this function to wait for the initial home relay to be known.

Note that it is not guaranteed that a home relay will ever become available. If no servers are configured with Builder::relay_mode this stream will never yield an item.

-
source

pub fn direct_addresses(&self) -> DirectAddrsStream

Returns the direct addresses of this Endpoint.

+
source

pub fn direct_addresses(&self) -> DirectAddrsStream

Returns the direct addresses of this Endpoint.

The direct addresses of the Endpoint are those that could be used by other iroh-net nodes to establish direct connectivity, depending on the network situation. The yielded lists of direct addresses contain both the locally-bound @@ -123,10 +124,10 @@ most recently discovered IP endpoints.

let mep = Endpoint::builder().bind().await.unwrap(); let _addrs = mep.direct_addresses().next().await;
-
source

pub fn bound_sockets(&self) -> (SocketAddr, Option<SocketAddr>)

Returns the local socket addresses on which the underlying sockets are bound.

+
source

pub fn bound_sockets(&self) -> (SocketAddr, Option<SocketAddr>)

Returns the local socket addresses on which the underlying sockets are bound.

The Endpoint always binds on an IPv4 address and also tries to bind on an IPv6 address if available.

-
source

pub fn remote_info(&self, node_id: PublicKey) -> Option<RemoteInfo>

Returns information about the remote node identified by a NodeId.

+
source

pub fn remote_info(&self, node_id: PublicKey) -> Option<RemoteInfo>

Returns information about the remote node identified by a NodeId.

The Endpoint keeps some information about remote iroh-net nodes, which it uses to find the best path to a node. Having information on a remote node, however, does not mean we have ever connected to it to or even whether a connection is even possible. The information about a @@ -135,14 +136,14 @@ calls may return different information. Furthermore, node information may even b completely evicted as it becomes stale.

See also Endpoint::remote_info_iter which returns information on all nodes known by this Endpoint.

-
source

pub fn remote_info_iter(&self) -> impl Iterator<Item = RemoteInfo>

Returns information about all the remote nodes this Endpoint knows about.

+
source

pub fn remote_info_iter(&self) -> impl Iterator<Item = RemoteInfo>

Returns information about all the remote nodes this Endpoint knows about.

This returns the same information as Endpoint::remote_info for each node known to this Endpoint.

The Endpoint keeps some information about remote iroh-net nodes, which it uses to find the best path to a node. This returns all the nodes it knows about, regardless of whether a connection was ever made or is even possible.

See also Endpoint::remote_info to only retrieve information about a single node.

-
source

pub fn conn_type_stream( +

source

pub fn conn_type_stream( &self, node_id: PublicKey ) -> Result<ConnectionTypeStream, Error>

Returns a stream that reports connection type changes for the remote node.

@@ -158,13 +159,13 @@ connection when the switch from a relayed to a direct connection can be so fast the relayed state is never exposed.

§Errors

Will error if we do not have any address information for the given node_id.

-
source

pub fn dns_resolver( +

source

pub fn dns_resolver( &self ) -> &AsyncResolver<GenericConnector<TokioRuntimeProvider>>

Returns the DNS resolver used in this Endpoint.

See Builder::discovery.

-
source

pub fn discovery(&self) -> Option<&dyn Discovery>

Returns the discovery mechanism, if configured.

+
source

pub fn discovery(&self) -> Option<&dyn Discovery>

Returns the discovery mechanism, if configured.

See Builder::dns_resolver.

-
source

pub async fn network_change(&self)

Notifies the system of potential network changes.

+
source

pub async fn network_change(&self)

Notifies the system of potential network changes.

On many systems iroh is able to detect network changes by itself, however some systems like android do not expose this functionality to native code. Android does however provide this functionality to Java code. This @@ -172,7 +173,7 @@ 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, error_code: VarInt, reason: &[u8]) -> Result<(), Error>

Closes the QUIC endpoint and the magic socket.

+
source

pub async fn close(self, error_code: VarInt, reason: &[u8]) -> Result<(), Error>

Closes the QUIC endpoint and the magic socket.

This will close all open QUIC connections with the provided error_code and reason. See quinn::Connection for details on how these are interpreted.

It will then wait for all connections to actually be shutdown, and afterwards diff --git a/pr/2774/docs/iroh_dns_server/metrics/struct.Metrics.html b/pr/2774/docs/iroh_dns_server/metrics/struct.Metrics.html index 1af5b8f4f6..284c3ee518 100644 --- a/pr/2774/docs/iroh_dns_server/metrics/struct.Metrics.html +++ b/pr/2774/docs/iroh_dns_server/metrics/struct.Metrics.html @@ -1,23 +1,23 @@ Metrics in iroh_dns_server::metrics - Rust

Struct iroh_dns_server::metrics::Metrics

source ·
pub struct Metrics {
Show 15 fields - pub pkarr_publish_update: Counter, - pub pkarr_publish_noop: Counter, - pub dns_requests: Counter, - pub dns_requests_udp: Counter, - pub dns_requests_https: Counter, - pub dns_lookup_success: Counter, - pub dns_lookup_notfound: Counter, - pub dns_lookup_error: Counter, - pub http_requests: Counter, - pub http_requests_success: Counter, - pub http_requests_error: Counter, - pub http_requests_duration_ms: Counter, - pub store_packets_inserted: Counter, - pub store_packets_removed: Counter, - pub store_packets_updated: Counter, + pub pkarr_publish_update: Counter, + pub pkarr_publish_noop: Counter, + pub dns_requests: Counter, + pub dns_requests_udp: Counter, + pub dns_requests_https: Counter, + pub dns_lookup_success: Counter, + pub dns_lookup_notfound: Counter, + pub dns_lookup_error: Counter, + pub http_requests: Counter, + pub http_requests_success: Counter, + pub http_requests_error: Counter, + pub http_requests_duration_ms: Counter, + pub store_packets_inserted: Counter, + pub store_packets_removed: Counter, + pub store_packets_updated: Counter,
}
Expand description

Metrics for iroh-dns-server

-

Fields§

§pkarr_publish_update: Counter§pkarr_publish_noop: Counter§dns_requests: Counter§dns_requests_udp: Counter§dns_requests_https: Counter§dns_lookup_success: Counter§dns_lookup_notfound: Counter§dns_lookup_error: Counter§http_requests: Counter§http_requests_success: Counter§http_requests_error: Counter§http_requests_duration_ms: Counter§store_packets_inserted: Counter§store_packets_removed: Counter§store_packets_updated: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

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

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

impl Default for Metrics

source§

fn default() -> Self

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

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
source§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where +

Fields§

§pkarr_publish_update: Counter§pkarr_publish_noop: Counter§dns_requests: Counter§dns_requests_udp: Counter§dns_requests_https: Counter§dns_lookup_success: Counter§dns_lookup_notfound: Counter§dns_lookup_error: Counter§http_requests: Counter§http_requests_success: Counter§http_requests_error: Counter§http_requests_duration_ms: Counter§store_packets_inserted: Counter§store_packets_removed: Counter§store_packets_updated: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

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

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

impl Default for Metrics

source§

fn default() -> Self

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

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/2774/docs/iroh_net/endpoint/fn.default_relay_mode.html b/pr/2774/docs/iroh_net/endpoint/fn.default_relay_mode.html index 97a1588f1a..1445f28852 100644 --- a/pr/2774/docs/iroh_net/endpoint/fn.default_relay_mode.html +++ b/pr/2774/docs/iroh_net/endpoint/fn.default_relay_mode.html @@ -1,4 +1,4 @@ -default_relay_mode in iroh_net::endpoint - Rust

Function iroh_net::endpoint::default_relay_mode

source ·
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

+default_relay_mode in iroh_net::endpoint - Rust

Function iroh_net::endpoint::default_relay_mode

source ·
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

If the IROH_FORCE_STAGING_RELAYS environment variable is set to 1, it will return RelayMode::Staging. Otherwise, it will return RelayMode::Default.

\ No newline at end of file diff --git a/pr/2774/docs/iroh_net/endpoint/fn.get_remote_node_id.html b/pr/2774/docs/iroh_net/endpoint/fn.get_remote_node_id.html index 85a7f7dc69..20a78fe8ba 100644 --- a/pr/2774/docs/iroh_net/endpoint/fn.get_remote_node_id.html +++ b/pr/2774/docs/iroh_net/endpoint/fn.get_remote_node_id.html @@ -1,2 +1,2 @@ -get_remote_node_id in iroh_net::endpoint - Rust

Function iroh_net::endpoint::get_remote_node_id

source ·
pub fn get_remote_node_id(connection: &Connection) -> Result<PublicKey>
Expand description

Extract the PublicKey from the peer’s TLS certificate.

+get_remote_node_id in iroh_net::endpoint - Rust

Function iroh_net::endpoint::get_remote_node_id

source ·
pub fn get_remote_node_id(connection: &Connection) -> Result<PublicKey>
Expand description

Extract the PublicKey from the peer’s TLS certificate.

\ No newline at end of file diff --git a/pr/2774/docs/iroh_net/endpoint/index.html b/pr/2774/docs/iroh_net/endpoint/index.html index 133d7abedd..d70c1d6308 100644 --- a/pr/2774/docs/iroh_net/endpoint/index.html +++ b/pr/2774/docs/iroh_net/endpoint/index.html @@ -1,4 +1,4 @@ -iroh_net::endpoint - Rust

Module iroh_net::endpoint

source ·
Expand description

The Endpoint allows establishing connections to other iroh-net nodes.

+iroh_net::endpoint - Rust

Module iroh_net::endpoint

source ·
Expand description

The Endpoint allows establishing connections to other iroh-net nodes.

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

diff --git a/pr/2774/docs/iroh_net/endpoint/struct.Accept.html b/pr/2774/docs/iroh_net/endpoint/struct.Accept.html index 49f4d52c68..a16b022091 100644 --- a/pr/2774/docs/iroh_net/endpoint/struct.Accept.html +++ b/pr/2774/docs/iroh_net/endpoint/struct.Accept.html @@ -1,6 +1,6 @@ -Accept in iroh_net::endpoint - Rust

Struct iroh_net::endpoint::Accept

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

Future produced by Endpoint::accept.

-

Trait Implementations§

source§

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

source§

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

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

impl<'a> Future for Accept<'a>

§

type Output = Option<Incoming>

The type of value produced on completion.
source§

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

Attempt 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_net::endpoint - Rust

Struct iroh_net::endpoint::Accept

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

Future produced by Endpoint::accept.

+

Trait Implementations§

source§

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

source§

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

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

impl<'a> Future for Accept<'a>

§

type Output = Option<Incoming>

The type of value produced on completion.
source§

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

Attempt 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<'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/2774/docs/iroh_net/endpoint/struct.Connecting.html b/pr/2774/docs/iroh_net/endpoint/struct.Connecting.html index 1e2f2f117b..1e2e9e058e 100644 --- a/pr/2774/docs/iroh_net/endpoint/struct.Connecting.html +++ b/pr/2774/docs/iroh_net/endpoint/struct.Connecting.html @@ -1,11 +1,11 @@ -Connecting in iroh_net::endpoint - Rust

Struct iroh_net::endpoint::Connecting

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

In-progress connection attempt future

-

Implementations§

source§

impl Connecting

source

pub fn into_0rtt(self) -> Result<(Connection, ZeroRttAccepted), 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 fn local_ip(&self) -> Option<IpAddr>

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

-
source

pub fn remote_address(&self) -> SocketAddr

The peer’s UDP address.

-
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, __derive_more_f: &mut Formatter<'_>) -> Result

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

impl Future for Connecting

§

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>

Attempt 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_net::endpoint - Rust

Struct iroh_net::endpoint::Connecting

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

In-progress connection attempt future

+

Implementations§

source§

impl Connecting

source

pub fn into_0rtt(self) -> Result<(Connection, ZeroRttAccepted), 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 fn local_ip(&self) -> Option<IpAddr>

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

+
source

pub fn remote_address(&self) -> SocketAddr

The peer’s UDP address.

+
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, __derive_more_f: &mut Formatter<'_>) -> Result

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

impl Future for Connecting

§

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>

Attempt 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<'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/2774/docs/iroh_net/endpoint/struct.Endpoint.html b/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html index 0cd3fd4f7a..07267dd7aa 100644 --- a/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html +++ b/pr/2774/docs/iroh_net/endpoint/struct.Endpoint.html @@ -14,19 +14,20 @@ behaviour.

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.

-
source

pub async fn connect( +

source

pub async fn connect( &self, node_addr: impl Into<NodeAddr>, alpn: &[u8] ) -> Result<Connection>

Connects to a remote Endpoint.

-

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

+

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

+

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

If neither a RelayUrl or direct addresses are configured in the NodeAddr it may still be possible a connection can be established. This depends on other calls to Endpoint::add_node_addr which may provide contact information, or via the @@ -38,7 +39,7 @@ connection attempt will fail with an error.

The alpn, or application-level protocol identifier, is also required. The remote endpoint must support this alpn, otherwise the connection attempt will fail with an error.

-
source

pub async fn connect_by_node_id( +

source

pub async fn connect_by_node_id( &self, node_id: NodeId, alpn: &[u8] @@ -47,13 +48,13 @@ an error.

information being provided by either the discovery service or using Endpoint::add_node_addr. See Endpoint::connect for the details of how it uses the discovery service to establish a connection to a remote node.

-

source

pub fn accept(&self) -> Accept<'_> ⓘ

Accepts an incoming connection on the endpoint.

+
source

pub fn accept(&self) -> Accept<'_> ⓘ

Accepts an incoming connection on the endpoint.

Only connections with the ALPNs configured in Builder::alpns will be accepted. If multiple ALPNs have been configured the ALPN can be inspected before accepting the connection using Connecting::alpn.

The returned future will yield None if the endpoint is closed by calling Endpoint::close.

-
source

pub fn add_node_addr(&self, node_addr: NodeAddr) -> Result<()>

Informs this Endpoint about addresses of the iroh-net node.

+
source

pub fn add_node_addr(&self, node_addr: NodeAddr) -> Result<()>

Informs this Endpoint about addresses of the iroh-net node.

This updates the local state for the remote node. If the provided NodeAddr contains a RelayUrl this will be used as the new relay server for this node. If it contains any new IP endpoints they will also be stored and tried when next @@ -63,7 +64,7 @@ silently ignored.

§Errors

Will return an error if we attempt to add our own PublicKey to the node map or if the direct addresses are a subset of ours.

-
source

pub fn add_node_addr_with_source( +

source

pub fn add_node_addr_with_source( &self, node_addr: NodeAddr, source: &'static str @@ -76,15 +77,15 @@ used for logging exclusively and will not be stored.

§Errors

Will return an error if we attempt to add our own PublicKey to the node map or if the direct addresses are a subset of ours.

-
source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

-
source

pub fn node_id(&self) -> NodeId

Returns the node id of this endpoint.

+
source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

+
source

pub fn node_id(&self) -> NodeId

Returns the node id of this endpoint.

This ID is the unique addressing information of this node and other peers must know it to be able to connect to this node.

-
source

pub async fn node_addr(&self) -> Result<NodeAddr>

Returns the current NodeAddr for this endpoint.

+
source

pub async fn node_addr(&self) -> Result<NodeAddr>

Returns the current NodeAddr for this endpoint.

The returned NodeAddr will have the current RelayUrl and local IP endpoints as they would be returned by Endpoint::home_relay and Endpoint::direct_addresses.

-
source

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

Returns the RelayUrl of the Relay server used as home relay.

+
source

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

Returns the RelayUrl of the Relay server used as home relay.

Every endpoint has a home Relay server which it chooses as the server with the lowest latency out of the configured servers provided by Builder::relay_mode. This is the server other iroh-net nodes can use to reliably establish a connection @@ -93,14 +94,14 @@ to this node.

Note that this will be None right after the Endpoint is created since it takes some time to connect to find and connect to the home relay server. Use Endpoint::watch_home_relay to wait until the home relay server is available.

-
source

pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl>

Watches for changes to the home relay.

+
source

pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl>

Watches for changes to the home relay.

If there is currently a home relay it will be yielded immediately as the first item in the stream. This makes it possible to use this function to wait for the initial home relay to be known.

Note that it is not guaranteed that a home relay will ever become available. If no servers are configured with Builder::relay_mode this stream will never yield an item.

-
source

pub fn direct_addresses(&self) -> DirectAddrsStream

Returns the direct addresses of this Endpoint.

+
source

pub fn direct_addresses(&self) -> DirectAddrsStream

Returns the direct addresses of this Endpoint.

The direct addresses of the Endpoint are those that could be used by other iroh-net nodes to establish direct connectivity, depending on the network situation. The yielded lists of direct addresses contain both the locally-bound @@ -123,10 +124,10 @@ most recently discovered IP endpoints.

let mep = Endpoint::builder().bind().await.unwrap(); let _addrs = mep.direct_addresses().next().await;
-
source

pub fn bound_sockets(&self) -> (SocketAddr, Option<SocketAddr>)

Returns the local socket addresses on which the underlying sockets are bound.

+
source

pub fn bound_sockets(&self) -> (SocketAddr, Option<SocketAddr>)

Returns the local socket addresses on which the underlying sockets are bound.

The Endpoint always binds on an IPv4 address and also tries to bind on an IPv6 address if available.

-
source

pub fn remote_info(&self, node_id: NodeId) -> Option<RemoteInfo>

Returns information about the remote node identified by a NodeId.

+
source

pub fn remote_info(&self, node_id: NodeId) -> Option<RemoteInfo>

Returns information about the remote node identified by a NodeId.

The Endpoint keeps some information about remote iroh-net nodes, which it uses to find the best path to a node. Having information on a remote node, however, does not mean we have ever connected to it to or even whether a connection is even possible. The information about a @@ -135,14 +136,14 @@ calls may return different information. Furthermore, node information may even b completely evicted as it becomes stale.

See also Endpoint::remote_info_iter which returns information on all nodes known by this Endpoint.

-
source

pub fn remote_info_iter(&self) -> impl Iterator<Item = RemoteInfo>

Returns information about all the remote nodes this Endpoint knows about.

+
source

pub fn remote_info_iter(&self) -> impl Iterator<Item = RemoteInfo>

Returns information about all the remote nodes this Endpoint knows about.

This returns the same information as Endpoint::remote_info for each node known to this Endpoint.

The Endpoint keeps some information about remote iroh-net nodes, which it uses to find the best path to a node. This returns all the nodes it knows about, regardless of whether a connection was ever made or is even possible.

See also Endpoint::remote_info to only retrieve information about a single node.

-
source

pub fn conn_type_stream(&self, node_id: NodeId) -> Result<ConnectionTypeStream>

Returns a stream that reports connection type changes for the remote node.

+
source

pub fn conn_type_stream(&self, node_id: NodeId) -> Result<ConnectionTypeStream>

Returns a stream that reports connection type changes for the remote node.

This returns a stream of ConnectionType items, each time the underlying connection to a remote node changes it yields an item. These connection changes are when the connection switches between using the Relay server and a direct connection.

@@ -155,11 +156,11 @@ connection when the switch from a relayed to a direct connection can be so fast the relayed state is never exposed.

§Errors

Will error if we do not have any address information for the given node_id.

-
source

pub fn dns_resolver(&self) -> &DnsResolver

Returns the DNS resolver used in this Endpoint.

+
source

pub fn dns_resolver(&self) -> &DnsResolver

Returns the DNS resolver used in this Endpoint.

See Builder::discovery.

-
source

pub fn discovery(&self) -> Option<&dyn Discovery>

Returns the discovery mechanism, if configured.

+
source

pub fn discovery(&self) -> Option<&dyn Discovery>

Returns the discovery mechanism, if configured.

See Builder::dns_resolver.

-
source

pub async fn network_change(&self)

Notifies the system of potential network changes.

+
source

pub async fn network_change(&self)

Notifies the system of potential network changes.

On many systems iroh is able to detect network changes by itself, however some systems like android do not expose this functionality to native code. Android does however provide this functionality to Java code. This @@ -167,7 +168,7 @@ 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, error_code: VarInt, reason: &[u8]) -> Result<()>

Closes the QUIC endpoint and the magic socket.

+
source

pub async fn close(self, error_code: VarInt, reason: &[u8]) -> Result<()>

Closes the QUIC endpoint and the magic socket.

This will close all open QUIC connections with the provided error_code and reason. See quinn::Connection for details on how these are interpreted.

It will then wait for all connections to actually be shutdown, and afterwards diff --git a/pr/2774/docs/iroh_net/endpoint/struct.Incoming.html b/pr/2774/docs/iroh_net/endpoint/struct.Incoming.html index 9f13d1603f..6b5c4101d8 100644 --- a/pr/2774/docs/iroh_net/endpoint/struct.Incoming.html +++ b/pr/2774/docs/iroh_net/endpoint/struct.Incoming.html @@ -1,29 +1,29 @@ -Incoming in iroh_net::endpoint - Rust

Struct iroh_net::endpoint::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_net::endpoint - Rust

Struct iroh_net::endpoint::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, __derive_more_f: &mut Formatter<'_>) -> Result

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

impl IntoFuture for Incoming

§

type Output = Result<Connection, ConnectionError>

The output that the future will produce on completion.
§

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, __derive_more_f: &mut Formatter<'_>) -> Result

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

impl IntoFuture for Incoming

§

type Output = Result<Connection, ConnectionError>

The output that the future will produce on completion.
§

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/2774/docs/iroh_net/endpoint/struct.IncomingFuture.html b/pr/2774/docs/iroh_net/endpoint/struct.IncomingFuture.html index 72f8c81161..f5f573425c 100644 --- a/pr/2774/docs/iroh_net/endpoint/struct.IncomingFuture.html +++ b/pr/2774/docs/iroh_net/endpoint/struct.IncomingFuture.html @@ -1,6 +1,6 @@ -IncomingFuture in iroh_net::endpoint - Rust

Struct iroh_net::endpoint::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, __derive_more_f: &mut Formatter<'_>) -> Result

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

impl Future for IncomingFuture

§

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>

Attempt 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_net::endpoint - Rust

Struct iroh_net::endpoint::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, __derive_more_f: &mut Formatter<'_>) -> Result

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

impl Future for IncomingFuture

§

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>

Attempt 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<'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/2774/docs/iroh_net/relay/struct.RelayMap.html b/pr/2774/docs/iroh_net/relay/struct.RelayMap.html index 510d95d80e..00da4a80be 100644 --- a/pr/2774/docs/iroh_net/relay/struct.RelayMap.html +++ b/pr/2774/docs/iroh_net/relay/struct.RelayMap.html @@ -6,13 +6,13 @@

source

pub fn get_node(&self, url: &RelayUrl) -> Option<&Arc<RelayNode>>

Get the given node.

source

pub fn len(&self) -> usize

How many nodes are known?

source

pub fn is_empty(&self) -> bool

Are there any nodes in this map?

-
source

pub fn default_from_node(url: RelayUrl, stun_port: u16) -> Self

Creates a new `RelayMap with a single relay server configured.

+
source

pub fn default_from_node(url: RelayUrl, stun_port: u16) -> Self

Creates a new RelayMap with a single relay server configured.

Allows to set a custom STUN port and different IP addresses for IPv4 and IPv6. If IP addresses are provided, no DNS lookup will be performed.

-
source

pub fn from_url(url: RelayUrl) -> Self

Returns a [RelayMap] from a [RelayUrl`].

+
source

pub fn from_url(url: RelayUrl) -> Self

Returns a RelayMap from a RelayUrl.

This will use the default STUN port and IP addresses resolved from the URL’s host name via DNS. -relay nodes are specified at <../../../docs/relay_nodes.md>

-
source

pub fn from_nodes(value: impl IntoIterator<Item = RelayNode>) -> Result<Self>

Constructs the [RelayMap] from an iterator of [RelayNode`]s.

+relay nodes are specified at <../../docs/relay_nodes.md>

+
source

pub fn from_nodes(value: impl IntoIterator<Item = RelayNode>) -> Result<Self>

Constructs the RelayMap from an iterator of RelayNodes.

Trait Implementations§

source§

impl Clone for RelayMap

source§

fn clone(&self) -> RelayMap

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for RelayMap

source§

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

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

impl Display for RelayMap

source§

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

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

impl PartialEq for RelayMap

source§

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

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

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

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

impl Eq for RelayMap

source§

impl StructuralPartialEq for RelayMap

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2774/docs/search.desc/iroh/iroh-desc-1-.js b/pr/2774/docs/search.desc/iroh/iroh-desc-1-.js index 997dd935a6..17dcdff2a4 100644 --- a/pr/2774/docs/search.desc/iroh/iroh-desc-1-.js +++ b/pr/2774/docs/search.desc/iroh/iroh-desc-1-.js @@ -1 +1 @@ -searchState.loadedDescShard("iroh", 1, "Enable this Client to acknowledge pings.\nClose the connection\nClose the http relay connection.\nDisconnect the http relay connection.\nConnect to a relay Server and returns the underlying relay …\nIs this a known node?\nCreates a new `RelayMap with a single relay server …\nCreate an empty relay map.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstructs the [RelayMap] from an iterator of [RelayNode`]…\nReturns a [RelayMap] from a [RelayUrl`].\nGet the given node.\nHTTP-specific constants for the relay server and client.\nSkip the verification of the relay server’s SSL …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not this Conn is closed.\nReturns true if the underlying relay connection is …\nAre there any nodes in this map?\nIndicate this client is the preferred way to communicate …\nIndicates this client is a prober\nHow many nodes are known?\nThe local address that the Conn is listening on.\nGet the local addr of the connection. If there is no …\nCreate a new ClientBuilder\nReturns an Iterator over all known nodes.\nSends a packet that tells the server whether this …\nLet the server know that this client is the preferred …\nSend a ping to the server. Return once we get an expected …\nSets whether to connect to the relay via websockets or not.\nSet an explicit proxy url to proxy all HTTP(S) traffic …\nThe public key for this client\nReads a message from the server. Returns the message and …\nReturns the relay map for this mode.\nSends a packet to the node identified by dstkey\nSend a packet to the server.\nSend a ping with 8 bytes of random data.\nRespond to a ping request. The data field should be filled …\nSend a pong back to the server.\nA fully-fledged iroh-relay server over HTTP or HTTPS.\nThe expected PublicKey of the relay server we are …\nSets the server url\nWhether this relay server should only be used for STUN …\nThe stun port of the relay server.\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nThe received packet bytes.\nIf set, is a description of why the connection is …\nAn advisory duration that the client should wait before …\nThe PublicKey of the packet sender.\nAn advisory duration for how long the client should …\nThe HTTP upgrade protocol used for relaying.\nThe HTTP path under which the relay accepts relaying …\nThe HTTP path under which the relay allows doing latency …\nRelays over the custom relaying protocol with a custom …\nRelays over websockets.\nReturns the argument unchanged.\nCalls U::from(self).\nTries to match the value of an HTTP upgrade header to …\nThe HTTP upgrade header used or expected.\nTLS certificate configuration.\nHandle incoming connections to the Server.\nUse Let’s Encrypt.\nRate limits.\nUse a static TLS key and certificate chain.\nThe main underlying IO stream type used for the relay …\nMetrics tracked for the relay server\nA plain non-Tls tokio::net::TcpStream\nConfiguration for the Relay HTTP and HTTPS server.\nA running Relay + STUN server.\nThe task for a running server actor.\nConfiguration for the full Relay & STUN server.\nConfiguration for the STUN server.\nA Tls wrapped tokio::net::TcpStream\nTLS configuration for Relay server.\nAborts the server.\nAdds a new connection to the server and serves it.\nBurst limit for accepting new connection. Unlimited if not …\nRate limit for accepting new connection. Unlimited if not …\nNumber of connections we have accepted\nThe socket address on which the STUN server should bind.\nBytes received from a FrameType::SendPacket\nBytes sent from a FrameType::SendPacket\nMode for getting a cert.\nCreate a ClientConnHandler, which can verify connections …\nCloses the server and waits for the connections to …\nNumber of accepted ‘iroh derp http’ connection upgrades\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nThe socket address the HTTP server is listening on.\nThe socket address on which the Relay HTTP server should …\nThe socket address the HTTPS server is listening on.\nThe socket address on which to serve the HTTPS server.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not the relay ServerActorTask is closed.\nRate limits.\nReturns the server metadata cert that can be sent by the …\nSocket to serve metrics on.\nTODO: replace with builder\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nReturns the server’s public key.\nConfiguration for the Relay server, disabled if None.\nReturns the server’s secret key.\nThe iroh secret key of the Relay server.\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nRequests graceful shutdown.\nStarts the server.\nConfiguration for the STUN server, disabled if None.\nThe socket address the STUN server is listening on.\nReturns the handle for the task.\nTLS configuration for the HTTPS server.\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nNumber of accepted websocket connections\nThe TLS certificate chain.\nConfiguration for Let’s Encrypt certificates.\nThe TLS private key.\nThe AlternateServeratribute\nErrors that can occur when handling a STUN packet.\nThe ErrorCodeatribute\nerror response\nThe Fingerprintatribute\nindication\nSTUN request had bogus fingerprint.\nThe STUN message could not be parsed or is otherwise …\nSTUN response has malformed attributes.\nThe MappedAddressatribute\nThe STUN message class. Although there are four message …\nClass used to decode STUN messages\nThe MessageIntegrityatribute\nThe MessageIntegritySha256atribute\nSTUN request didn’t end in fingerprint.\nThe Nonceatribute\nSTUN request is not a binding request when it should be.\nSTUN packet is not a response when it should be.\nThe PasswordAlgorithmatribute\nThe PasswordAlgorithmsatribute\nThe Realmatribute\nrequest\nThe Softwareatribute\nSTUN Attributes that can be attached to a StunMessage\nDescribes an error decoding a StunMessage\nsuccess response\nThe transaction ID is a 96-bit identifier, used to …\nThe Unknownatribute\nThe UnknownAttributesatribute\nThe UserHashatribute\nThe UserNameatribute\nThe XorMappedAddressatribute\nReturns a reference to the internal attribute value or an …\nReturns a reference to the bytes that represents the …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns the STUN attribute type of this instance.\nDecodes the STUN raw buffer\nCreates a cryptographically random transaction ID chosen …\nReturns a reference to the AlternateServer attribute.\nReturns a reference to the ErrorCode attribute.\nReturns a reference to the Fingerprint attribute.\nReturns a reference to the MappedAddress attribute.\nReturns a reference to the MessageIntegrity attribute.\nReturns a reference to the MessageIntegritySha256 …\nReturns a reference to the Nonce attribute.\nReturns a reference to the PasswordAlgorithm attribute.\nReturns a reference to the PasswordAlgorithms attribute.\nReturns a reference to the Realm attribute.\nReturns a reference to the Software attribute.\nReturns a reference to the Unknown attribute.\nReturns a reference to the UnknownAttributes attribute.\nReturns a reference to the UserHash attribute.\nReturns a reference to the UserName attribute.\nReturns a reference to the XorMappedAddress attribute.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGets the context associated to this decoder\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReports whether b is a STUN message.\nReturns true if this StunAttribute is AlternateServer\nReturns true if this StunAttribute is ErrorCode\nReturns true if this StunAttribute is Fingerprint\nReturns true if this StunAttribute is MappedAddress\nReturns true if this StunAttribute is MessageIntegrity\nReturns true if this StunAttribute is …\nReturns true if this StunAttribute is Nonce\nReturns true if this StunAttribute is PasswordAlgorithm\nReturns true if this StunAttribute is PasswordAlgorithms\nReturns true if this StunAttribute is Realm\nReturns true if this StunAttribute is Software\nReturns true if this StunAttribute is Unknown\nReturns true if this StunAttribute is UnknownAttributes\nReturns true if this StunAttribute is UserHash\nReturns true if this StunAttribute is UserName\nReturns true if this StunAttribute is XorMappedAddress\nSTUN Methods Registry\nParses a STUN binding request.\nParses a successful binding response STUN packet. The IP …\nGenerates a binding request STUN packet.\nGenerates a binding response.\nBinding\nReserved\nShared secret\nA drop guard to clean up test infrastructure.\nHandle and drop guard for test DNS and Pkarr servers.\nCreate a DNS resolver with a single nameserver.\nCreate a ConcurrentDiscovery with DnsDiscovery and …\nCreate a DnsResolver configured to use the test DNS server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe socket address of the DNS server.\nThe node origin domain.\nWait until a Pkarr announce for a node is published to the …\nThe HTTP URL of the Pkarr server.\nRun DNS and Pkarr servers on localhost.\nRuns a relay server with STUN enabled suitable for tests.\nRun DNS and Pkarr servers on localhost with the specified …\nString prefix describing the kind of iroh ticket.\nA token containing information for establishing a …\nA ticket is a serializable object combining information …\nDeserialize from a string.\nCreates a ticket from given addressing info.\nReturns the argument unchanged.\nDeserialize from the base32 string representation bytes.\nCalls U::from(self).\nCreates a new ticket.\nThe NodeAddr of the provider for this ticket.\nSerialize to string.\nSerialize to bytes used in the base32 string …\nError generating the certificate.\nError creating QUIC config.\nError for generating iroh p2p TLS configs.\nX.509 certificate handling.\nReturns the argument unchanged.\nCalls U::from(self).\nCreate a TLS client configuration.\nCreate a TLS server configuration.\nAn error that occurs during certificate generation.\nAn X.509 certificate with a libp2p-specific extension is …\nThe contents of the specific libp2p extension, containing …\nAn error that occurs during certificate parsing.\nAn error that occurs during signature verification.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGenerates a self-signed TLS certificate that includes a …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAttempts to parse the provided bytes as a P2pCertificate.\nThe PublicKey of the remote peer.\nVerify the signature of the message signed by the secret …\nBuilder for the Node.\nUse a custom discovery mechanism.\nThe default bind addr of the RPC .\nUse the default discovery mechanism.\nDisable docs completely.\nGarbage collection is disabled.\nConfiguration for node discovery.\nStorage backend for documents.\nPersistent node.\nPolicy for garbage collection.\nGarbage collection is run at the given interval.\nThe quic-rpc server endpoint for the iroh node.\nIn memory\nIn memory node.\nIn-memory storage.\nA server which implements the iroh node.\nUse no node discovery mechanism.\nFile-based persistent storage.\nOn disk persistet, at this location.\nA node that is initialized but not yet spawned.\nHandler for incoming connections.\nThe current status of the RPC endpoint.\nRunning on this port.\nStopped.\nConfiguration for storage.\nHandle an incoming connection.\nRegisters a protocol handler for incoming connections.\nBinds the node service to a specific socket IPv4 address.\nBinds the node service to a specific socket IPv6 address.\nUse a random port for both IPv4 and IPv6.\nConfigure a blob events sender. This will replace the …\nBuilds a node without spawning it.\nReturns a token that can be used to cancel the node.\nCleans up an existing rpc lock\nReturns a client to control this node over an in-memory …\nReturn a client to control this node over an in-memory …\nOptionally set a custom DNS resolver to use for the magic …\nEnables documents support on this node.\nConfigure the default iroh rpc endpoint, on the default …\nConfigure the default iroh rpc endpoint.\nReturns the Endpoint of the node.\nReturns the Endpoint of the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets the garbage collection policy.\nReturns a protocol handler for an ALPN.\nReturns a protocol handler for an ALPN.\nGet the relay server we are connected to.\nSkip verification of SSL certificates from relay servers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether to log the SSL pre-master key.\nLoad the current RPC status from the given location.\nThe address on which the node socket is bound.\nConvenience method to get just the addr part of …\nLists the local endpoint of this node.\nReturns a reference to the used LocalPoolHandle.\nReturns a reference to the used LocalPoolHandle.\nReturns a new builder for the Node, by default configured …\nReturns a new builder for the Node, by default configured …\nReturns Some(addr) if an RPC endpoint is running, None …\nSets the node discovery mechanism.\nReturns the PublicKey of the node.\nPersist all node data in the provided directory.\nReturns a new builder for the Node, configured to persist …\nReturns a new builder for the Node, configured to persist …\nRegister a callback for when GC is done.\nSets the relay servers to assist in establishing …\nConfigure rpc endpoint.\nUses the given SecretKey for the PublicKey instead of a …\nCalled when the node shuts down.\nCalled when the node shuts down.\nShutdown the node.\nSpawns the Node in a tokio task.\nSpawns the node and starts accepting connections.\nStore the current rpc status.\nSets a custom TransportConfig to be used by the Endpoint.\nCreates a new builder for Node using the given databases.\nActual connected RPC client.\nThe port we are connected on.\nUtilities for filesystem operations.\nUtilities for working with tokio io\nConfiguration paths for iroh.\nGeneric utilities to track progress of data transfers.\nA data source\nInformation about the content on a path\nThis function converts an already canonicalized path to a …\ntotal number of files in the directory\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nHelper function that translates a key that was derived …\nLoads a SecretKey from the provided file, or stores a …\nReturns blob name for this data source.\nCreates a new DataSource from a PathBuf.\nReturns the path of this data source.\nWalks the directory to get the total size and number of …\nHelper function that creates a document key from a …\nThis function converts a canonicalized relative path to a …\nCreate data sources from a directory.\nCreate data sources from a path.\ntotal size of all the files in the directory\nCreates a new DataSource from a PathBuf and a custom name.\nTodo: gather more information about validation errors. …\nThe data failed to validate\nGeneric io error. We were unable to read the data.\nReturns the argument unchanged.\nCalls U::from(self).\nPath to the node’s file based blob store.\nPath to the console state\nPath to the iroh_docs::AuthorId of the node’s default …\nPath to the iroh-docs document database\nPaths to files or directories used by Iroh.\nPath to store known peer data.\nPath to RPC lock file, containing the RPC port if running.\nPath to the node’s secret key for the …\nReturns the argument unchanged.\nCalls U::from(self).\nGet the path for this IrohPaths by joining the name to a …\nA sender for progress messages.\nA wrapper around AsyncRead which increments a …\nA generic progress event emitter.\nA writer that tries to send the total number of bytes …\nBlock until the message is sent.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nIncrements the progress by amount.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturn the inner writer\nCreates a new emitter.\nCreate a new ProgressWriter from an inner writer\nCreate a new progress sender.\nCreate a no-op progress sender.\nSend a message\nSets a new total in case you did not now the total up …\nReturns a receiver that gets incremental values.\nTry to send a message.\nWraps an AsyncRead which implicitly calls …") \ No newline at end of file +searchState.loadedDescShard("iroh", 1, "Enable this Client to acknowledge pings.\nClose the connection\nClose the http relay connection.\nDisconnect the http relay connection.\nConnect to a relay Server and returns the underlying relay …\nIs this a known node?\nCreates a new RelayMap with a single relay server …\nCreate an empty relay map.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstructs the RelayMap from an iterator of RelayNodes.\nReturns a RelayMap from a RelayUrl.\nGet the given node.\nHTTP-specific constants for the relay server and client.\nSkip the verification of the relay server’s SSL …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not this Conn is closed.\nReturns true if the underlying relay connection is …\nAre there any nodes in this map?\nIndicate this client is the preferred way to communicate …\nIndicates this client is a prober\nHow many nodes are known?\nThe local address that the Conn is listening on.\nGet the local addr of the connection. If there is no …\nCreate a new ClientBuilder\nReturns an Iterator over all known nodes.\nSends a packet that tells the server whether this …\nLet the server know that this client is the preferred …\nSend a ping to the server. Return once we get an expected …\nSets whether to connect to the relay via websockets or not.\nSet an explicit proxy url to proxy all HTTP(S) traffic …\nThe public key for this client\nReads a message from the server. Returns the message and …\nReturns the relay map for this mode.\nSends a packet to the node identified by dstkey\nSend a packet to the server.\nSend a ping with 8 bytes of random data.\nRespond to a ping request. The data field should be filled …\nSend a pong back to the server.\nA fully-fledged iroh-relay server over HTTP or HTTPS.\nThe expected PublicKey of the relay server we are …\nSets the server url\nWhether this relay server should only be used for STUN …\nThe stun port of the relay server.\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nThe received packet bytes.\nIf set, is a description of why the connection is …\nAn advisory duration that the client should wait before …\nThe PublicKey of the packet sender.\nAn advisory duration for how long the client should …\nThe HTTP upgrade protocol used for relaying.\nThe HTTP path under which the relay accepts relaying …\nThe HTTP path under which the relay allows doing latency …\nRelays over the custom relaying protocol with a custom …\nRelays over websockets.\nReturns the argument unchanged.\nCalls U::from(self).\nTries to match the value of an HTTP upgrade header to …\nThe HTTP upgrade header used or expected.\nTLS certificate configuration.\nHandle incoming connections to the Server.\nUse Let’s Encrypt.\nRate limits.\nUse a static TLS key and certificate chain.\nThe main underlying IO stream type used for the relay …\nMetrics tracked for the relay server\nA plain non-Tls tokio::net::TcpStream\nConfiguration for the Relay HTTP and HTTPS server.\nA running Relay + STUN server.\nThe task for a running server actor.\nConfiguration for the full Relay & STUN server.\nConfiguration for the STUN server.\nA Tls wrapped tokio::net::TcpStream\nTLS configuration for Relay server.\nAborts the server.\nAdds a new connection to the server and serves it.\nBurst limit for accepting new connection. Unlimited if not …\nRate limit for accepting new connection. Unlimited if not …\nNumber of connections we have accepted\nThe socket address on which the STUN server should bind.\nBytes received from a FrameType::SendPacket\nBytes sent from a FrameType::SendPacket\nMode for getting a cert.\nCreate a ClientConnHandler, which can verify connections …\nCloses the server and waits for the connections to …\nNumber of accepted ‘iroh derp http’ connection upgrades\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nThe socket address the HTTP server is listening on.\nThe socket address on which the Relay HTTP server should …\nThe socket address the HTTPS server is listening on.\nThe socket address on which to serve the HTTPS server.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not the relay ServerActorTask is closed.\nRate limits.\nReturns the server metadata cert that can be sent by the …\nSocket to serve metrics on.\nTODO: replace with builder\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nReturns the server’s public key.\nConfiguration for the Relay server, disabled if None.\nReturns the server’s secret key.\nThe iroh secret key of the Relay server.\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nRequests graceful shutdown.\nStarts the server.\nConfiguration for the STUN server, disabled if None.\nThe socket address the STUN server is listening on.\nReturns the handle for the task.\nTLS configuration for the HTTPS server.\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nNumber of accepted websocket connections\nThe TLS certificate chain.\nConfiguration for Let’s Encrypt certificates.\nThe TLS private key.\nThe AlternateServeratribute\nErrors that can occur when handling a STUN packet.\nThe ErrorCodeatribute\nerror response\nThe Fingerprintatribute\nindication\nSTUN request had bogus fingerprint.\nThe STUN message could not be parsed or is otherwise …\nSTUN response has malformed attributes.\nThe MappedAddressatribute\nThe STUN message class. Although there are four message …\nClass used to decode STUN messages\nThe MessageIntegrityatribute\nThe MessageIntegritySha256atribute\nSTUN request didn’t end in fingerprint.\nThe Nonceatribute\nSTUN request is not a binding request when it should be.\nSTUN packet is not a response when it should be.\nThe PasswordAlgorithmatribute\nThe PasswordAlgorithmsatribute\nThe Realmatribute\nrequest\nThe Softwareatribute\nSTUN Attributes that can be attached to a StunMessage\nDescribes an error decoding a StunMessage\nsuccess response\nThe transaction ID is a 96-bit identifier, used to …\nThe Unknownatribute\nThe UnknownAttributesatribute\nThe UserHashatribute\nThe UserNameatribute\nThe XorMappedAddressatribute\nReturns a reference to the internal attribute value or an …\nReturns a reference to the bytes that represents the …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns the STUN attribute type of this instance.\nDecodes the STUN raw buffer\nCreates a cryptographically random transaction ID chosen …\nReturns a reference to the AlternateServer attribute.\nReturns a reference to the ErrorCode attribute.\nReturns a reference to the Fingerprint attribute.\nReturns a reference to the MappedAddress attribute.\nReturns a reference to the MessageIntegrity attribute.\nReturns a reference to the MessageIntegritySha256 …\nReturns a reference to the Nonce attribute.\nReturns a reference to the PasswordAlgorithm attribute.\nReturns a reference to the PasswordAlgorithms attribute.\nReturns a reference to the Realm attribute.\nReturns a reference to the Software attribute.\nReturns a reference to the Unknown attribute.\nReturns a reference to the UnknownAttributes attribute.\nReturns a reference to the UserHash attribute.\nReturns a reference to the UserName attribute.\nReturns a reference to the XorMappedAddress attribute.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGets the context associated to this decoder\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReports whether b is a STUN message.\nReturns true if this StunAttribute is AlternateServer\nReturns true if this StunAttribute is ErrorCode\nReturns true if this StunAttribute is Fingerprint\nReturns true if this StunAttribute is MappedAddress\nReturns true if this StunAttribute is MessageIntegrity\nReturns true if this StunAttribute is …\nReturns true if this StunAttribute is Nonce\nReturns true if this StunAttribute is PasswordAlgorithm\nReturns true if this StunAttribute is PasswordAlgorithms\nReturns true if this StunAttribute is Realm\nReturns true if this StunAttribute is Software\nReturns true if this StunAttribute is Unknown\nReturns true if this StunAttribute is UnknownAttributes\nReturns true if this StunAttribute is UserHash\nReturns true if this StunAttribute is UserName\nReturns true if this StunAttribute is XorMappedAddress\nSTUN Methods Registry\nParses a STUN binding request.\nParses a successful binding response STUN packet. The IP …\nGenerates a binding request STUN packet.\nGenerates a binding response.\nBinding\nReserved\nShared secret\nA drop guard to clean up test infrastructure.\nHandle and drop guard for test DNS and Pkarr servers.\nCreate a DNS resolver with a single nameserver.\nCreate a ConcurrentDiscovery with DnsDiscovery and …\nCreate a DnsResolver configured to use the test DNS server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe socket address of the DNS server.\nThe node origin domain.\nWait until a Pkarr announce for a node is published to the …\nThe HTTP URL of the Pkarr server.\nRun DNS and Pkarr servers on localhost.\nRuns a relay server with STUN enabled suitable for tests.\nRun DNS and Pkarr servers on localhost with the specified …\nString prefix describing the kind of iroh ticket.\nA token containing information for establishing a …\nA ticket is a serializable object combining information …\nDeserialize from a string.\nCreates a ticket from given addressing info.\nReturns the argument unchanged.\nDeserialize from the base32 string representation bytes.\nCalls U::from(self).\nCreates a new ticket.\nThe NodeAddr of the provider for this ticket.\nSerialize to string.\nSerialize to bytes used in the base32 string …\nError generating the certificate.\nError creating QUIC config.\nError for generating iroh p2p TLS configs.\nX.509 certificate handling.\nReturns the argument unchanged.\nCalls U::from(self).\nCreate a TLS client configuration.\nCreate a TLS server configuration.\nAn error that occurs during certificate generation.\nAn X.509 certificate with a libp2p-specific extension is …\nThe contents of the specific libp2p extension, containing …\nAn error that occurs during certificate parsing.\nAn error that occurs during signature verification.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGenerates a self-signed TLS certificate that includes a …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAttempts to parse the provided bytes as a P2pCertificate.\nThe PublicKey of the remote peer.\nVerify the signature of the message signed by the secret …\nBuilder for the Node.\nUse a custom discovery mechanism.\nThe default bind addr of the RPC .\nUse the default discovery mechanism.\nDisable docs completely.\nGarbage collection is disabled.\nConfiguration for node discovery.\nStorage backend for documents.\nPersistent node.\nPolicy for garbage collection.\nGarbage collection is run at the given interval.\nThe quic-rpc server endpoint for the iroh node.\nIn memory\nIn memory node.\nIn-memory storage.\nA server which implements the iroh node.\nUse no node discovery mechanism.\nFile-based persistent storage.\nOn disk persistet, at this location.\nA node that is initialized but not yet spawned.\nHandler for incoming connections.\nThe current status of the RPC endpoint.\nRunning on this port.\nStopped.\nConfiguration for storage.\nHandle an incoming connection.\nRegisters a protocol handler for incoming connections.\nBinds the node service to a specific socket IPv4 address.\nBinds the node service to a specific socket IPv6 address.\nUse a random port for both IPv4 and IPv6.\nConfigure a blob events sender. This will replace the …\nBuilds a node without spawning it.\nReturns a token that can be used to cancel the node.\nCleans up an existing rpc lock\nReturns a client to control this node over an in-memory …\nReturn a client to control this node over an in-memory …\nOptionally set a custom DNS resolver to use for the magic …\nEnables documents support on this node.\nConfigure the default iroh rpc endpoint, on the default …\nConfigure the default iroh rpc endpoint.\nReturns the Endpoint of the node.\nReturns the Endpoint of the node.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets the garbage collection policy.\nReturns a protocol handler for an ALPN.\nReturns a protocol handler for an ALPN.\nGet the relay server we are connected to.\nSkip verification of SSL certificates from relay servers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether to log the SSL pre-master key.\nLoad the current RPC status from the given location.\nThe address on which the node socket is bound.\nConvenience method to get just the addr part of …\nLists the local endpoint of this node.\nReturns a reference to the used LocalPoolHandle.\nReturns a reference to the used LocalPoolHandle.\nReturns a new builder for the Node, by default configured …\nReturns a new builder for the Node, by default configured …\nReturns Some(addr) if an RPC endpoint is running, None …\nSets the node discovery mechanism.\nReturns the PublicKey of the node.\nPersist all node data in the provided directory.\nReturns a new builder for the Node, configured to persist …\nReturns a new builder for the Node, configured to persist …\nRegister a callback for when GC is done.\nSets the relay servers to assist in establishing …\nConfigure rpc endpoint.\nUses the given SecretKey for the PublicKey instead of a …\nCalled when the node shuts down.\nCalled when the node shuts down.\nShutdown the node.\nSpawns the Node in a tokio task.\nSpawns the node and starts accepting connections.\nStore the current rpc status.\nSets a custom TransportConfig to be used by the Endpoint.\nCreates a new builder for Node using the given databases.\nActual connected RPC client.\nThe port we are connected on.\nUtilities for filesystem operations.\nUtilities for working with tokio io\nConfiguration paths for iroh.\nGeneric utilities to track progress of data transfers.\nA data source\nInformation about the content on a path\nThis function converts an already canonicalized path to a …\ntotal number of files in the directory\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nHelper function that translates a key that was derived …\nLoads a SecretKey from the provided file, or stores a …\nReturns blob name for this data source.\nCreates a new DataSource from a PathBuf.\nReturns the path of this data source.\nWalks the directory to get the total size and number of …\nHelper function that creates a document key from a …\nThis function converts a canonicalized relative path to a …\nCreate data sources from a directory.\nCreate data sources from a path.\ntotal size of all the files in the directory\nCreates a new DataSource from a PathBuf and a custom name.\nTodo: gather more information about validation errors. …\nThe data failed to validate\nGeneric io error. We were unable to read the data.\nReturns the argument unchanged.\nCalls U::from(self).\nPath to the node’s file based blob store.\nPath to the console state\nPath to the iroh_docs::AuthorId of the node’s default …\nPath to the iroh-docs document database\nPaths to files or directories used by Iroh.\nPath to store known peer data.\nPath to RPC lock file, containing the RPC port if running.\nPath to the node’s secret key for the …\nReturns the argument unchanged.\nCalls U::from(self).\nGet the path for this IrohPaths by joining the name to a …\nA sender for progress messages.\nA wrapper around AsyncRead which increments a …\nA generic progress event emitter.\nA writer that tries to send the total number of bytes …\nBlock until the message is sent.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nIncrements the progress by amount.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturn the inner writer\nCreates a new emitter.\nCreate a new ProgressWriter from an inner writer\nCreate a new progress sender.\nCreate a no-op progress sender.\nSend a message\nSets a new total in case you did not now the total up …\nReturns a receiver that gets incremental values.\nTry to send a message.\nWraps an AsyncRead which implicitly calls …") \ No newline at end of file diff --git a/pr/2774/docs/search.desc/iroh_net/iroh_net-desc-0-.js b/pr/2774/docs/search.desc/iroh_net/iroh_net-desc-0-.js index f5f9654152..28cd5d5a81 100644 --- a/pr/2774/docs/search.desc/iroh_net/iroh_net-desc-0-.js +++ b/pr/2774/docs/search.desc/iroh_net/iroh_net-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("iroh_net", 0, "Peer-to-peer connectivity based on QUIC.\nNetwork paths to contact an iroh-net node.\nNetwork-level addressing information for an iroh-net node.\nThe identifier for a node in the (iroh) network.\nApplies the options to self.\nApplies the options to self.\nDefault values used in iroh-net\nA dialer to conveniently dial many nodes.\nReturns the direct addresses of this peer.\nSocket addresses where the peer might be reached directly.\nNode address discovery.\nThis module exports a DNS resolver, which is also the …\nThe Endpoint allows establishing connections to other …\nReturns the addressing info from given ticket.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new NodeAddr from its parts.\nAddressing information to connect to Self::node_id.\nCalls U::from(self).\nCalls U::from(self).\nReturns whether this addressing information is empty.\nCryptographic key handling for iroh-net.\nCo-locating all of the iroh-net metrics structs\nNetworking related utilities\nChecks the network conditions from the current host.\nCreates a new NodeAddr with empty AddrInfo.\nThe node’s identifier.\nAllows sending ICMP echo requests to a host in order to …\nPort mapping client and service.\nPackage relay implements a revised version of the …\nReturns the relay url of this peer.\nThe node’s home relay url.\nSTUN packets sending and receiving.\nInternal utilities to support testing.\nTickets supported by iroh-net\nTLS configuration based on libp2p TLS specs.\nAdds the given direct addresses to the peer’s AddrInfo.\nAdds a relay url to the node’s AddrInfo.\nThe default HTTPS port used by the Relay server.\nThe default HTTP port used by the Relay server.\nThe default metrics port used by the Relay server.\nThe default STUN port used by the Relay server.\nProduction configuration.\nStaging configuration.\nHostname of the default Asia-Pacific relay.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for Asia-Pacific\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nDials nodes and maintains a queue of pending dials.\nAborts a pending dial.\nReturns a reference to the endpoint used in this dialer.\nReturns the argument unchanged.\nCalls U::from(self).\nChecks if a node is currently being dialed.\nCreate a new dialer for a Endpoint\nWaits for the next dial operation to complete.\nNumber of pending connections to be opened.\nStarts to dial a node by NodeId.\nA discovery service that combines multiple discovery …\nNode discovery for super::Endpoint.\nThe results returned from Discovery::resolve.\nAdds a Discovery service.\nThe address info for the node being resolved.\nDNS node discovery for iroh-net\nCreates an empty ConcurrentDiscovery.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new ConcurrentDiscovery.\nCalls U::from(self).\nCalls U::from(self).\nOptional timestamp when this node address info was last …\nA discovery service that uses an mdns-like service to …\nThe NodeId whose address we have discovered\nA discovery service which publishes and resolves node …\nA static string to identify the discovery source.\nPublishes the given AddrInfo to the discovery mechanism.\nResolves the AddrInfo for the given NodeId.\nSubscribe to all addresses that get passively discovered.\nDNS node discovery\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nTesting DNS node origin, must run server from …\nReturns the argument unchanged.\nCalls U::from(self).\nCreates a new DNS discovery using the iroh.link domain.\nCreates a new DNS discovery.\nDiscovery using swarm-discovery, a variation on mdns\nName of this discovery service.\nReturns the argument unchanged.\nCalls U::from(self).\nCreate a new LocalSwarmDiscovery Service.\nDefault TTL for the records in the pkarr signed packet.\nInterval in which to republish the node info even if …\nThe production pkarr relay run by number 0.\nThe testing pkarr relay run by number 0.\nPublisher of node discovery information to a pkarr relay.\nA pkarr client to publish pkarr::SignedPackets to a pkarr …\nResolver of node discovery information from a pkarr relay.\nPkarr based node discovery for iroh-net, supporting both …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreates a pkarr publisher which uses the number 0 pkarr …\nCreates a pkarr resolver which uses the number 0 pkarr …\nCreates a new publisher for the SecretKey.\nCreates a new publisher using the pkarr relay server at …\nCreates a new client.\nPublishes a SignedPacket.\nResolves a SignedPacket for the given NodeId.\nPublishes AddrInfo about this node to a pkarr relay.\nCreates a new PkarrPublisher with a custom TTL and …\nBuilder for DhtDiscovery.\nPkarr Mainline DHT and relay server node discovery.\nBuilds the discovery mechanism.\nCreates a new builder for DhtDiscovery.\nExplicitly sets the pkarr client to use.\nSets whether to publish to the Mainline DHT.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets whether to include the direct addresses in the DNS …\nSets the initial delay before the first publish.\nCalls U::from(self).\nCalls U::from(self).\nUses the default number 0 pkarr relay URL.\nSets the pkarr relay URL to use.\nSets the republish delay for the DHT.\nSets the secret key to use for signing the DNS packets.\nSets the time-to-live value for the DNS packets.\nThe DNS resolver type used throughout iroh-net.\nExtension trait to DnsResolver.\nGet a reference to the default DNS resolver.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by DNS name.\nLooks up node info by DNS name.\nLooks up node info by DNS name in a staggered fashion.\nLooks up node info by DNS name in a staggered fashion.\nPerform an ipv4 lookup with a timeout.\nRace an ipv4 and ipv6 lookup with a timeout.\nResolve IPv4 and IPv6 in parallel.\nRace an ipv4 and ipv6 lookup with a timeout in a staggered …\nRace an ipv4 and ipv6 lookup with a timeout in a staggered …\nPerform an ipv4 lookup with a timeout in a staggered …\nPerform an ipv4 lookup with a timeout in a staggered …\nPerform an ipv6 lookup with a timeout.\nPerform an ipv6 lookup with a timeout in a staggered …\nPerform an ipv6 lookup with a timeout in a staggered …\nSupport for handling DNS resource records for dialing by …\nGet the DNS resolver used within iroh-net.\nDirect address.\nThe DNS name for the iroh TXT record.\nThe attributes supported by iroh for IROH_TXT_NAME DNS …\nInformation about the iroh node contained in an …\nURL of home relay.\nAttributes parsed from IROH_TXT_NAME TXT records.\nReturns the parsed attributes.\nAny direct addresses.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParses a NodeInfo from a set of DNS records.\nParses a set of DNS resource records.\nCreates TxtAttrs from a node id and an iterator of …\nParses a NodeInfo from a pkarr::SignedPacket.\nParses a pkarr::SignedPacket.\nCreates TxtAttrs from a node id and an iterator of “…\nParses a NodeId from [z-base-32] encoding.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nLooks up attributes by NodeId and origin domain.\nLooks up attributes by DNS name.\nCreates a new NodeInfo from its parts.\nReturns the node id.\nThe NodeId.\nThe advertised home relay server.\nConverts into a hickory_proto::rr::Record DNS record.\nConverts to a list of hickory_proto::rr::Record resource …\nCreates a pkarr::SignedPacket.\nCreates a pkarr::SignedPacket\nEncodes a NodeId in [z-base-32] encoding.\nFuture produced by Endpoint::accept.\nNetwork paths to contact an iroh-net node.\nApplication layer added the address directly.\nReason given by an application for closing the connection\nThe peer closed the connection\nBuilder for Endpoint.\nWe received a CallMeMaybe.\nThe connection could not be created because not enough of …\nThe stream has already been stopped, finished, or reset\nThe stream has already been finished or reset\nIn-progress connection attempt future\nA QUIC connection.\nReason given by the transport for closing the connection\nThe peer’s QUIC stack aborted the connection …\nReasons why a connection might be lost\nThe connection was lost\nThe connection was lost\nThe type of connection we have to the endpoint.\nStream returning ConnectionTypes\nThe type of control message we have received.\nDirect UDP connection\nA direct address on which an iroh-node might be …\nInformation about a direct address.\nThe type of direct address.\nStream returning local endpoints as they change.\nThe address was discovered by a discovery service.\nControls an iroh-net node, establishing connections with …\nAttempted an ordered read following an unordered read\nAn incoming connection for which the server has not yet …\nAdaptor to let Incoming be awaited like a Connecting.\nA locally bound socket address.\nThe local application closed the connection\nThe largest representable value\nThe largest encoded value length\nBoth a UDP and a relay connection are used.\nApplication layer with a specific name added the node …\nNetwork-level addressing information for an iroh-net node.\nWe have no verified connection to this PublicKey\nWe received a Ping from the node.\nWe received a Pong from the node.\nAn address assigned by the router using port mapping.\nErrors that arise from reading from a stream.\nA stream that can only be used to receive data\nRelay connection over relay\nA node communicated with us first via relay.\nDetails about a remote iroh-net node which is known to …\nThe peer abandoned transmitting data on this stream\nThe peer is unable to continue processing this connection, …\nError for attempting to retry an Incoming which already …\nAddress was loaded from the fs.\nA stream that can only be used to send data\nParameters governing incoming connections\nThe origin or source through which an address associated …\nThe peer is no longer accepting data on this stream\nPublic internet address discovered via STUN.\nHard NAT: STUN’ed IPv4 address + local fixed port.\nCommunication with the peer has lapsed for longer than the …\nParameters governing the core QUIC state machine\nThe peer violated the QUIC specification as understood by …\nA node communicated with us first via UDP.\nNot yet determined..\nAn integer less than 2^62\nThe peer doesn’t implement any supported version\nErrors that arise from writing to a stream\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nAccepts an incoming connection on the endpoint.\nAttempts to accept this incoming connection (an error may …\nAccept the next incoming bidirectional stream\nAccept the next incoming uni-directional stream\nAccepts this incoming connection using a custom …\nSpecifies the ACK frequency config (see AckFrequencyConfig …\nInforms this Endpoint about addresses of the iroh-net node.\nInforms this Endpoint about addresses of the iroh-net …\nThe UDP address reported by the remote node.\nThe address.\nThe addresses at which this node might be reachable.\nWhether the implementation is permitted to set the spin …\nExtracts the ALPN protocol from the peer’s handshake …\nSets the ALPN protocols that this endpoint will accept on …\nBinds the magic endpoint.\nSets the IPv4 bind address.\nSets the IPv6 bind address.\nReturns the local socket addresses on which the underlying …\nReturns the builder for an Endpoint, with a production …\nClose the connection immediately.\nCloses the QUIC endpoint and the magic socket.\nIf the connection is closed, the reason why.\nWait for the connection to be closed for any reason\nHow to construct new congestion::Controllers\nCurrent state of the congestion control algorithm, for …\nThe type of connection we have to the node, either direct …\nReturns a stream that reports connection type changes for …\nConnects to a remote Endpoint.\nConnects to a remote endpoint, using just the nodes’s …\nTLS configuration used for incoming connections.\nMaximum quantity of out-of-order crypto layer data to …\nMaximum number of incoming application datagram bytes to …\nMaximum number of outgoing application datagram bytes to …\nBytes available in the outgoing datagram buffer\nReturns the default relay mode.\nReturns the direct addresses of this Endpoint.\nSocket addresses where the peer might be reached directly.\nOptionally sets a discovery mechanism for this endpoint.\nReturns the discovery mechanism, if configured.\nOptionally sets a custom DNS resolver to use for this …\nReturns the DNS resolver used in this Endpoint.\nWhether to use “Generic Segmentation Offload” to …\nClass of error as encoded in the specification\nApplication-specific reason code\nDerive keying material from this connection’s TLS …\nNotify the peer that no more data will ever be written to …\nType of frame that caused the close\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstruct a VarInt infallibly\nSucceeds iff x < 2^62\nCreate a VarInt without ensuring it’s in range\nExtract the PublicKey from the peer’s TLS certificate.\nParameters negotiated during the handshake\nParameters negotiated during the handshake\nWhether there is a possible known network path to the …\nReturns the RelayUrl of the Relay server used as home …\nGet the identity of this stream\nGet the identity of this stream\nIgnores this incoming connection attempt, not sending any …\nMaximum number of received bytes to buffer for each …\nMaximum number of received bytes to buffer for all Incoming\nAddressing information to connect to Self::node_id.\nThe initial value to be used as the maximum UDP payload …\nThe RTT used before an RTT sample is taken\nSkip verification of SSL certificates from relay servers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConvert into a 0-RTT or 0.5-RTT connection at the cost of …\nGet the Incoming\nExtract the integer value\nCheck if this stream has been opened during 0-RTT.\nPeriod of inactivity before sending a keep-alive packet\nEnables saving the TLS pre-master key for connections.\nOptionally set a list of known nodes.\nElapsed time since this network path was known to exist.\nLast control message received by this node about this …\nElapsed time since the last payload message was received …\nGet the duration since the last activity we received from …\nTime elapsed time since last we have sent to or received …\nThe latency to the remote node over this network path.\nThe latency of the current network path to the remote node.\nThe local IP address which was used when the peer …\nReturns the local IP address which was used when the peer …\nThe local IP address which was used when the peer …\nCreates a quinn::ServerConfig with the given secret key …\nMaximum number of incoming bidirectional streams that may …\nVariant of max_concurrent_bidi_streams affecting …\nCompute the maximum size of datagrams that may be passed …\nMaximum duration of inactivity to accept before timing out …\nMaximum number of Incoming to allow to exist at a time\nWhether to allow clients to migrate to new addresses\nThe maximum UDP payload size guaranteed to be supported by …\nSpecifies the MTU discovery config (see MtuDiscoveryConfig …\nNotifies the system of potential network changes.\nCreate a default config with a particular handshake token …\nReturns the current NodeAddr for this endpoint.\nReturns the node id of this endpoint.\nThe node’s identifier.\nThe globally unique identifier for this node.\nInitiate a new outgoing bidirectional stream.\nInitiate a new outgoing unidirectional stream.\nMaximum reordering in packet number space before FACK …\nCryptographic identity of the peer\nNumber of consecutive PTOs after which network is …\nAttempts to read from the stream into buf.\nAttempt to write bytes from buf into the stream.\nThe preferred IPv4 address that will be communicated to …\nThe preferred IPv6 address that will be communicated to …\nGet the priority of the send stream\nSets the proxy url from the environment, in this order:\nSets an explicit proxy url to proxy all HTTP(S) traffic …\nRead data contiguously from the stream.\nRead the next segment of data\nRead the next segments of data\nReceive an application datagram\nRead an exact number of bytes contiguously from the stream.\nConvenience method to read all remaining data into a buffer\nHuman-readable reason for the close\nHuman-readable reason for the close\nMaximum number of bytes the peer may transmit across all …\nCompletes when the stream has been reset by the peer or …\nRejects this incoming connection attempt.\nSets the relay servers to assist in establishing …\nThe node’s home relay url.\nRelay server information, if available.\nThe peer’s UDP address\nReturns the peer’s UDP address.\nThe peer’s UDP address.\nWhether the socket address that is initiating this …\nReturns information about the remote node identified by a …\nReturns information about all the remote nodes this …\nClose the send stream immediately.\nResponds with a retry packet.\nDuration after a stateless retry token was issued for …\nCurrent best estimate of this connection’s latency …\nSets a secret key to authenticate with other peers.\nReturns the secret_key of this endpoint.\nTransmit data as an unreliable, unordered application …\nTransmit data as an unreliable, unordered application …\nMaximum number of bytes to transmit to a peer without …\nSets the list of accepted ALPN protocols.\nModify the number of remotely initiated bidirectional …\nModify the number of remotely initiated unidirectional …\nSet the priority of the send stream\nSee proto::TransportConfig::receive_window()\nReturns a deduplicated list of Sources merged from all …\nA HashMap of Sources to Durations.\nA stable identifier for this connection\nReturns connection statistics\nStop accepting data\nCompletes when the peer stops the stream or reads the …\nMaximum number of bytes the peer may transmit without …\nMaximum reordering in time space before time based loss …\nPrivate key used to authenticate data included in …\nTransport configuration to use for incoming connections\nSet a custom TransportConfig\nSets a custom quinn::TransportConfig for this endpoint.\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nThe origin of this direct address.\nWatches for changes to the home relay.\nReturns a weak reference to the inner connection struct.\nCreate a server config with the given crypto::ServerConfig\nCreate a server config with the given certificate chain to …\nWrite bytes to the stream\nConvenience method to write an entire buffer to the stream\nConvenience method to write an entire list of chunks to …\nConvenience method to write a single chunk in its entirety …\nWrite chunks to the stream\nThe name of the discovery service that discovered the …\nThe name of the application that added the node\nSize of an encoded Ed25519 signature in bytes.\nError when decoding the base32.\nError when decoding the public key.\nError when deserialising a PublicKey or a SecretKey.\nThe identifier for a node in the (iroh) network.\nThe length of an ed25519 PublicKey, in bytes.\nA public key.\nA secret key.\nShared Secret.\nEd25519 signature.\nGet this public key as a byte array.\nConvert to a base32 string limited to the first 10 bytes …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParse an Ed25519 signature from a byte slice.\nConstruct a PublicKey from a slice of bytes.\nCreate a secret key from its byte representation.\nParse an Ed25519 signature from its R and s components.\nParse an Ed25519 signature from a byte slice.\nGenerate a new SecretKey with the default randomness …\nGenerate a new SecretKey with a randomness generator.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nOpens the ciphertext, which must have been created using …\nThe public key of this SecretKey.\nBytes for the R component of a signature.\nBytes for the s component of a signature.\nSeals the provided cleartext.\nReturns the shared key for communication between this key …\nSign the given message and return a digital signature\nReturn the inner byte array.\nConvert this to the bytes representing the secret part. …\nSerialise this key to OpenSSH format.\nConvert this signature into a byte vector.\nDeserialise this key from OpenSSH format.\nVerify a signature on a message with this secret key’s …\nEnum of metrics for the module\nReturns the argument unchanged.\nCalls U::from(self).\nThe number of direct connections we have made to peers.\nThe number of direct connections we have lost to peers.\nThe number of connections to peers we have added over …\nThe number of connections to peers we have removed over …\nNumber of QUIC datagrams received.\nNumber of datagrams received using GRO\nIp family selection between Ipv4 and Ipv6.\nWrapper around a tokio UDP socket that handles the fact …\nIpv4\nIpv6\nBind to the given port and listen on all interfaces.\nBind to any provided SocketAddr.\nBind to the given port only on localhost.\nBind only Ipv4 on localhost.\nBind only Ipv6 on localhost.\nBind only Ipv4 on any interface.\nBind only Ipv6 on any interface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nIP address related utilities.\nReturns the matching localhost address.\nMonitoring of networking interfaces and route changes.\nReturns the matching default address.\nList of machine’s IP addresses.\nReturns the argument unchanged.\nCalls U::from(self).\nReturns true if the address is a unicast address with …\nLoopback addresses.\nReturns the machine’s IP addresses. If there are no …\nRegular addresses.\nToken to remove a callback\nMonitors networking interface and route changes.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nPotential change detected outside\nCreate a new monitor.\nSubscribe to network changes.\nUnsubscribe a callback from network changes, using the …\nClient to run netchecks.\nEnum of metrics for the module\nLatencies per relay node.\nA netcheck report.\nCaptivePortal is set when we think there’s a captive …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRuns a netcheck, returning the report.\nGet report with channel\nip:port of global IPv4\n[ip]:port of global IPv6\nWhether the router supports communicating between two …\nAn ICMPv4 round trip completed, None if not checked.\nAn ICMPv6 round trip completed, None if not checked.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAn IPv4 STUN round trip completed.\nan IPv4 packet was able to be sent\nAn IPv6 STUN round trip completed.\nAn IPv6 packet was able to be sent\nReturns an iterator over all the relays and their …\nWhether STUN results depend on which STUN server you’re …\nWhether STUN results depend on which STUN server you’re …\nCreates a new netcheck client.\ncould bind a socket to ::1\nProbe indicating the presence of port mapping protocols on …\nNone for unknown\nkeyed by relay Url\nkeyed by relay Url\nkeyed by relay Url\nA UDP STUN round trip completed.\nCould not create client, probably bind error.\nCould not send ping.\nWhether this error was because we couldn’t create a …\nAllows sending ICMP echo requests to a host in order to …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCreate a new Pinger.\nSend a ping request with associated data, returning the …\nPort mapping client.\nConfigures which port mapping protocols are enabled in the …\nEnum of metrics for the module\nOutput of a port mapping probe.\nA port mapping client.\nIndicates if all port mapping protocols are available.\nDeactivate port mapping.\nBy default all port mapping protocols are enabled.\nWhether PMP is enabled.\nWhether PCP is enabled.\nWhether UPnP is enabled.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nIf PMP can be considered available.\nCreate a new port mapping client.\nIf PCP can be considered available.\nRequest a probe to the port mapping protocols.\nTry to get a mapping for the last local port if there isn…\nUpdate the local port.\nIf UPnP can be considered available.\nWatch the external address for changes in the mappings.\nThe inner actor is gone, likely means things are shutdown.\nThe relay super::client::Client failed to build\nThis Client cannot acknowledge pings\nThe client is closed\nThere was a connection timeout error\nUse a custom relay map.\nUse the default relay map, with production relay servers …\nThere was an error dialing\nThere was an error from the task doing the dialing\nDisable relay servers completely.\nThere was an error with DNS resolution\nThere was a timeout resolving DNS.\nA one-way message from server to client, declaring the …\nThere was an http error http::Error.\nAn HTTP Relay client.\nBuild a Client.\nPossible connection errors on the Client\nReceiving end of a Client.\nThere was http server hyper::Error\nBoth IPv4 and IPv6 are disabled for this relay node\nThe given Url is invalid\nA one-way empty message from server to client, just to …\nThe maximum size of a packet sent over relay. (This only …\nThere no underlying relay super::client::Client client …\nNo local addresses exist\nNo relay nodes are available with that name\nIndicates that the client identified by the underlying …\nRequest from a client or server to reply to the other side …\nThe ping request was aborted\nThe ping request timed out\nReply to a ReceivedMessage::Ping from a client or server …\nThe connection failed to proxy\nThere was an error receiving a packet\nThe type of message received by the Conn from a relay …\nRepresents an incoming packet.\nA connection to a relay server.\nConfiguration of all the relay servers that can be used.\nConfiguration of the relay servers for an Endpoint.\nInformation on a specific relay server.\nNo relay nodes are available\nA URL identifying a relay server.\nThere was an error sending a packet\nA one-way message from server to client, advertising that …\nUse the staging relay servers from n0.\nThe relay node specified only allows STUN requests\nThere was an unexpected status code\nThe connection failed to upgrade\nAn error related to websockets, either errors with parsing …\nReturns if we should prefer ipv6 it replaces the …\nBuild the Client\nEnable this Client to acknowledge pings.\nClose the connection\nClose the http relay connection.\nDisconnect the http relay connection.\nConnect to a relay Server and returns the underlying relay …\nIs this a known node?\nCreates a new `RelayMap with a single relay server …\nCreate an empty relay map.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstructs the [RelayMap] from an iterator of [RelayNode`]…\nReturns a [RelayMap] from a [RelayUrl`].\nGet the given node.\nHTTP-specific constants for the relay server and client.\nSkip the verification of the relay server’s SSL …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not this Conn is closed.\nReturns true if the underlying relay connection is …\nAre there any nodes in this map?\nIndicate this client is the preferred way to communicate …\nIndicates this client is a prober\nHow many nodes are known?\nThe local address that the Conn is listening on.\nGet the local addr of the connection. If there is no …\nCreate a new ClientBuilder\nReturns an Iterator over all known nodes.\nSends a packet that tells the server whether this …\nLet the server know that this client is the preferred …\nSend a ping to the server. Return once we get an expected …\nSets whether to connect to the relay via websockets or not.\nSet an explicit proxy url to proxy all HTTP(S) traffic …\nThe public key for this client\nReads a message from the server. Returns the message and …\nReturns the relay map for this mode.\nSends a packet to the node identified by dstkey\nSend a packet to the server.\nSend a ping with 8 bytes of random data.\nRespond to a ping request. The data field should be filled …\nSend a pong back to the server.\nA fully-fledged iroh-relay server over HTTP or HTTPS.\nThe expected PublicKey of the relay server we are …\nSets the server url\nWhether this relay server should only be used for STUN …\nThe stun port of the relay server.\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nThe received packet bytes.\nIf set, is a description of why the connection is …\nAn advisory duration that the client should wait before …\nThe PublicKey of the packet sender.\nAn advisory duration for how long the client should …\nThe HTTP upgrade protocol used for relaying.\nThe HTTP path under which the relay accepts relaying …\nThe HTTP path under which the relay allows doing latency …\nRelays over the custom relaying protocol with a custom …\nRelays over websockets.\nReturns the argument unchanged.\nCalls U::from(self).\nTries to match the value of an HTTP upgrade header to …\nThe HTTP upgrade header used or expected.\nTLS certificate configuration.\nHandle incoming connections to the Server.\nUse Let’s Encrypt.\nRate limits.\nUse a static TLS key and certificate chain.\nThe main underlying IO stream type used for the relay …\nMetrics tracked for the relay server\nA plain non-Tls tokio::net::TcpStream\nConfiguration for the Relay HTTP and HTTPS server.\nA running Relay + STUN server.\nThe task for a running server actor.\nConfiguration for the full Relay & STUN server.\nConfiguration for the STUN server.\nA Tls wrapped tokio::net::TcpStream\nTLS configuration for Relay server.\nAborts the server.\nAdds a new connection to the server and serves it.\nBurst limit for accepting new connection. Unlimited if not …\nRate limit for accepting new connection. Unlimited if not …\nNumber of connections we have accepted\nThe socket address on which the STUN server should bind.\nBytes received from a FrameType::SendPacket\nBytes sent from a FrameType::SendPacket\nMode for getting a cert.\nCreate a ClientConnHandler, which can verify connections …\nCloses the server and waits for the connections to …\nNumber of accepted ‘iroh derp http’ connection upgrades\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nThe socket address the HTTP server is listening on.\nThe socket address on which the Relay HTTP server should …\nThe socket address the HTTPS server is listening on.\nThe socket address on which to serve the HTTPS server.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not the relay ServerActorTask is closed.\nRate limits.\nReturns the server metadata cert that can be sent by the …\nSocket to serve metrics on.\nTODO: replace with builder\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nReturns the server’s public key.\nConfiguration for the Relay server, disabled if None.\nReturns the server’s secret key.\nThe iroh secret key of the Relay server.\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nRequests graceful shutdown.\nStarts the server.\nConfiguration for the STUN server, disabled if None.\nThe socket address the STUN server is listening on.\nReturns the handle for the task.\nTLS configuration for the HTTPS server.\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nNumber of accepted websocket connections\nThe TLS certificate chain.\nConfiguration for Let’s Encrypt certificates.\nThe TLS private key.\nThe AlternateServeratribute\nErrors that can occur when handling a STUN packet.\nThe ErrorCodeatribute\nerror response\nThe Fingerprintatribute\nindication\nSTUN request had bogus fingerprint.\nThe STUN message could not be parsed or is otherwise …\nSTUN response has malformed attributes.\nThe MappedAddressatribute\nThe STUN message class. Although there are four message …\nClass used to decode STUN messages\nThe MessageIntegrityatribute\nThe MessageIntegritySha256atribute\nSTUN request didn’t end in fingerprint.\nThe Nonceatribute\nSTUN request is not a binding request when it should be.\nSTUN packet is not a response when it should be.\nThe PasswordAlgorithmatribute\nThe PasswordAlgorithmsatribute\nThe Realmatribute\nrequest\nThe Softwareatribute\nSTUN Attributes that can be attached to a StunMessage\nDescribes an error decoding a StunMessage\nsuccess response\nThe transaction ID is a 96-bit identifier, used to …\nThe Unknownatribute\nThe UnknownAttributesatribute\nThe UserHashatribute\nThe UserNameatribute\nThe XorMappedAddressatribute\nReturns a reference to the internal attribute value or an …\nReturns a reference to the bytes that represents the …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns the STUN attribute type of this instance.\nDecodes the STUN raw buffer\nCreates a cryptographically random transaction ID chosen …\nReturns a reference to the AlternateServer attribute.\nReturns a reference to the ErrorCode attribute.\nReturns a reference to the Fingerprint attribute.\nReturns a reference to the MappedAddress attribute.\nReturns a reference to the MessageIntegrity attribute.\nReturns a reference to the MessageIntegritySha256 …\nReturns a reference to the Nonce attribute.\nReturns a reference to the PasswordAlgorithm attribute.\nReturns a reference to the PasswordAlgorithms attribute.\nReturns a reference to the Realm attribute.\nReturns a reference to the Software attribute.\nReturns a reference to the Unknown attribute.\nReturns a reference to the UnknownAttributes attribute.\nReturns a reference to the UserHash attribute.\nReturns a reference to the UserName attribute.\nReturns a reference to the XorMappedAddress attribute.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGets the context associated to this decoder\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReports whether b is a STUN message.\nReturns true if this StunAttribute is AlternateServer\nReturns true if this StunAttribute is ErrorCode\nReturns true if this StunAttribute is Fingerprint\nReturns true if this StunAttribute is MappedAddress\nReturns true if this StunAttribute is MessageIntegrity\nReturns true if this StunAttribute is …\nReturns true if this StunAttribute is Nonce\nReturns true if this StunAttribute is PasswordAlgorithm\nReturns true if this StunAttribute is PasswordAlgorithms\nReturns true if this StunAttribute is Realm\nReturns true if this StunAttribute is Software\nReturns true if this StunAttribute is Unknown\nReturns true if this StunAttribute is UnknownAttributes\nReturns true if this StunAttribute is UserHash\nReturns true if this StunAttribute is UserName\nReturns true if this StunAttribute is XorMappedAddress\nSTUN Methods Registry\nParses a STUN binding request.\nParses a successful binding response STUN packet. The IP …\nGenerates a binding request STUN packet.\nGenerates a binding response.\nBinding\nReserved\nShared secret\nA drop guard to clean up test infrastructure.\nHandle and drop guard for test DNS and Pkarr servers.\nCreate a DNS resolver with a single nameserver.\nCreate a ConcurrentDiscovery with DnsDiscovery and …\nCreate a DnsResolver configured to use the test DNS server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe socket address of the DNS server.\nThe node origin domain.\nWait until a Pkarr announce for a node is published to the …\nThe HTTP URL of the Pkarr server.\nRun DNS and Pkarr servers on localhost.\nRuns a relay server with STUN enabled suitable for tests.\nRun DNS and Pkarr servers on localhost with the specified …\nString prefix describing the kind of iroh ticket.\nA token containing information for establishing a …\nA ticket is a serializable object combining information …\nDeserialize from a string.\nReturns the argument unchanged.\nCreates a ticket from given addressing info.\nDeserialize from the base32 string representation bytes.\nCalls U::from(self).\nCreates a new ticket.\nThe NodeAddr of the provider for this ticket.\nSerialize to string.\nSerialize to bytes used in the base32 string …\nError generating the certificate.\nError creating QUIC config.\nError for generating iroh p2p TLS configs.\nX.509 certificate handling.\nReturns the argument unchanged.\nCalls U::from(self).\nCreate a TLS client configuration.\nCreate a TLS server configuration.\nAn error that occurs during certificate generation.\nAn X.509 certificate with a libp2p-specific extension is …\nThe contents of the specific libp2p extension, containing …\nAn error that occurs during certificate parsing.\nAn error that occurs during signature verification.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGenerates a self-signed TLS certificate that includes a …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAttempts to parse the provided bytes as a P2pCertificate.\nThe PublicKey of the remote peer.\nVerify the signature of the message signed by the secret …") \ No newline at end of file +searchState.loadedDescShard("iroh_net", 0, "Peer-to-peer connectivity based on QUIC.\nNetwork paths to contact an iroh-net node.\nNetwork-level addressing information for an iroh-net node.\nThe identifier for a node in the (iroh) network.\nApplies the options to self.\nApplies the options to self.\nDefault values used in iroh-net\nA dialer to conveniently dial many nodes.\nReturns the direct addresses of this peer.\nSocket addresses where the peer might be reached directly.\nNode address discovery.\nThis module exports a DNS resolver, which is also the …\nThe Endpoint allows establishing connections to other …\nReturns the addressing info from given ticket.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new NodeAddr from its parts.\nAddressing information to connect to Self::node_id.\nCalls U::from(self).\nCalls U::from(self).\nReturns whether this addressing information is empty.\nCryptographic key handling for iroh-net.\nCo-locating all of the iroh-net metrics structs\nNetworking related utilities\nChecks the network conditions from the current host.\nCreates a new NodeAddr with empty AddrInfo.\nThe node’s identifier.\nAllows sending ICMP echo requests to a host in order to …\nPort mapping client and service.\nPackage relay implements a revised version of the …\nReturns the relay url of this peer.\nThe node’s home relay url.\nSTUN packets sending and receiving.\nInternal utilities to support testing.\nTickets supported by iroh-net\nTLS configuration based on libp2p TLS specs.\nAdds the given direct addresses to the peer’s AddrInfo.\nAdds a relay url to the node’s AddrInfo.\nThe default HTTPS port used by the Relay server.\nThe default HTTP port used by the Relay server.\nThe default metrics port used by the Relay server.\nThe default STUN port used by the Relay server.\nProduction configuration.\nStaging configuration.\nHostname of the default Asia-Pacific relay.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for Asia-Pacific\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nHostname of the default EU relay.\nHostname of the default NA relay.\nGet the default RelayNode for EU.\nGet the default RelayNode for NA.\nGet the default RelayMap.\nDials nodes and maintains a queue of pending dials.\nAborts a pending dial.\nReturns a reference to the endpoint used in this dialer.\nReturns the argument unchanged.\nCalls U::from(self).\nChecks if a node is currently being dialed.\nCreate a new dialer for a Endpoint\nWaits for the next dial operation to complete.\nNumber of pending connections to be opened.\nStarts to dial a node by NodeId.\nA discovery service that combines multiple discovery …\nNode discovery for super::Endpoint.\nThe results returned from Discovery::resolve.\nAdds a Discovery service.\nThe address info for the node being resolved.\nDNS node discovery for iroh-net\nCreates an empty ConcurrentDiscovery.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new ConcurrentDiscovery.\nCalls U::from(self).\nCalls U::from(self).\nOptional timestamp when this node address info was last …\nA discovery service that uses an mdns-like service to …\nThe NodeId whose address we have discovered\nA discovery service which publishes and resolves node …\nA static string to identify the discovery source.\nPublishes the given AddrInfo to the discovery mechanism.\nResolves the AddrInfo for the given NodeId.\nSubscribe to all addresses that get passively discovered.\nDNS node discovery\nThe n0 testing DNS node origin, for production.\nThe n0 testing DNS node origin, for testing.\nTesting DNS node origin, must run server from …\nReturns the argument unchanged.\nCalls U::from(self).\nCreates a new DNS discovery using the iroh.link domain.\nCreates a new DNS discovery.\nDiscovery using swarm-discovery, a variation on mdns\nName of this discovery service.\nReturns the argument unchanged.\nCalls U::from(self).\nCreate a new LocalSwarmDiscovery Service.\nDefault TTL for the records in the pkarr signed packet.\nInterval in which to republish the node info even if …\nThe production pkarr relay run by number 0.\nThe testing pkarr relay run by number 0.\nPublisher of node discovery information to a pkarr relay.\nA pkarr client to publish pkarr::SignedPackets to a pkarr …\nResolver of node discovery information from a pkarr relay.\nPkarr based node discovery for iroh-net, supporting both …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreates a pkarr publisher which uses the number 0 pkarr …\nCreates a pkarr resolver which uses the number 0 pkarr …\nCreates a new publisher for the SecretKey.\nCreates a new publisher using the pkarr relay server at …\nCreates a new client.\nPublishes a SignedPacket.\nResolves a SignedPacket for the given NodeId.\nPublishes AddrInfo about this node to a pkarr relay.\nCreates a new PkarrPublisher with a custom TTL and …\nBuilder for DhtDiscovery.\nPkarr Mainline DHT and relay server node discovery.\nBuilds the discovery mechanism.\nCreates a new builder for DhtDiscovery.\nExplicitly sets the pkarr client to use.\nSets whether to publish to the Mainline DHT.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets whether to include the direct addresses in the DNS …\nSets the initial delay before the first publish.\nCalls U::from(self).\nCalls U::from(self).\nUses the default number 0 pkarr relay URL.\nSets the pkarr relay URL to use.\nSets the republish delay for the DHT.\nSets the secret key to use for signing the DNS packets.\nSets the time-to-live value for the DNS packets.\nThe DNS resolver type used throughout iroh-net.\nExtension trait to DnsResolver.\nGet a reference to the default DNS resolver.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by NodeId and origin domain name.\nLooks up node info by DNS name.\nLooks up node info by DNS name.\nLooks up node info by DNS name in a staggered fashion.\nLooks up node info by DNS name in a staggered fashion.\nPerform an ipv4 lookup with a timeout.\nRace an ipv4 and ipv6 lookup with a timeout.\nResolve IPv4 and IPv6 in parallel.\nRace an ipv4 and ipv6 lookup with a timeout in a staggered …\nRace an ipv4 and ipv6 lookup with a timeout in a staggered …\nPerform an ipv4 lookup with a timeout in a staggered …\nPerform an ipv4 lookup with a timeout in a staggered …\nPerform an ipv6 lookup with a timeout.\nPerform an ipv6 lookup with a timeout in a staggered …\nPerform an ipv6 lookup with a timeout in a staggered …\nSupport for handling DNS resource records for dialing by …\nGet the DNS resolver used within iroh-net.\nDirect address.\nThe DNS name for the iroh TXT record.\nThe attributes supported by iroh for IROH_TXT_NAME DNS …\nInformation about the iroh node contained in an …\nURL of home relay.\nAttributes parsed from IROH_TXT_NAME TXT records.\nReturns the parsed attributes.\nAny direct addresses.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParses a NodeInfo from a set of DNS records.\nParses a set of DNS resource records.\nCreates TxtAttrs from a node id and an iterator of …\nParses a NodeInfo from a pkarr::SignedPacket.\nParses a pkarr::SignedPacket.\nCreates TxtAttrs from a node id and an iterator of “…\nParses a NodeId from [z-base-32] encoding.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nLooks up attributes by NodeId and origin domain.\nLooks up attributes by DNS name.\nCreates a new NodeInfo from its parts.\nReturns the node id.\nThe NodeId.\nThe advertised home relay server.\nConverts into a hickory_proto::rr::Record DNS record.\nConverts to a list of hickory_proto::rr::Record resource …\nCreates a pkarr::SignedPacket.\nCreates a pkarr::SignedPacket\nEncodes a NodeId in [z-base-32] encoding.\nFuture produced by Endpoint::accept.\nNetwork paths to contact an iroh-net node.\nApplication layer added the address directly.\nReason given by an application for closing the connection\nThe peer closed the connection\nBuilder for Endpoint.\nWe received a CallMeMaybe.\nThe connection could not be created because not enough of …\nThe stream has already been stopped, finished, or reset\nThe stream has already been finished or reset\nIn-progress connection attempt future\nA QUIC connection.\nReason given by the transport for closing the connection\nThe peer’s QUIC stack aborted the connection …\nReasons why a connection might be lost\nThe connection was lost\nThe connection was lost\nThe type of connection we have to the endpoint.\nStream returning ConnectionTypes\nThe type of control message we have received.\nDirect UDP connection\nA direct address on which an iroh-node might be …\nInformation about a direct address.\nThe type of direct address.\nStream returning local endpoints as they change.\nThe address was discovered by a discovery service.\nControls an iroh-net node, establishing connections with …\nAttempted an ordered read following an unordered read\nAn incoming connection for which the server has not yet …\nAdaptor to let Incoming be awaited like a Connecting.\nA locally bound socket address.\nThe local application closed the connection\nThe largest representable value\nThe largest encoded value length\nBoth a UDP and a relay connection are used.\nApplication layer with a specific name added the node …\nNetwork-level addressing information for an iroh-net node.\nWe have no verified connection to this PublicKey\nWe received a Ping from the node.\nWe received a Pong from the node.\nAn address assigned by the router using port mapping.\nErrors that arise from reading from a stream.\nA stream that can only be used to receive data\nRelay connection over relay\nA node communicated with us first via relay.\nDetails about a remote iroh-net node which is known to …\nThe peer abandoned transmitting data on this stream\nThe peer is unable to continue processing this connection, …\nError for attempting to retry an Incoming which already …\nAddress was loaded from the fs.\nA stream that can only be used to send data\nParameters governing incoming connections\nThe origin or source through which an address associated …\nThe peer is no longer accepting data on this stream\nPublic internet address discovered via STUN.\nHard NAT: STUN’ed IPv4 address + local fixed port.\nCommunication with the peer has lapsed for longer than the …\nParameters governing the core QUIC state machine\nThe peer violated the QUIC specification as understood by …\nA node communicated with us first via UDP.\nNot yet determined..\nAn integer less than 2^62\nThe peer doesn’t implement any supported version\nErrors that arise from writing to a stream\nThis was a 0-RTT stream and the server rejected it\nThis was a 0-RTT stream and the server rejected it\nAccepts an incoming connection on the endpoint.\nAttempts to accept this incoming connection (an error may …\nAccept the next incoming bidirectional stream\nAccept the next incoming uni-directional stream\nAccepts this incoming connection using a custom …\nSpecifies the ACK frequency config (see AckFrequencyConfig …\nInforms this Endpoint about addresses of the iroh-net node.\nInforms this Endpoint about addresses of the iroh-net …\nThe UDP address reported by the remote node.\nThe address.\nThe addresses at which this node might be reachable.\nWhether the implementation is permitted to set the spin …\nExtracts the ALPN protocol from the peer’s handshake …\nSets the ALPN protocols that this endpoint will accept on …\nBinds the magic endpoint.\nSets the IPv4 bind address.\nSets the IPv6 bind address.\nReturns the local socket addresses on which the underlying …\nReturns the builder for an Endpoint, with a production …\nClose the connection immediately.\nCloses the QUIC endpoint and the magic socket.\nIf the connection is closed, the reason why.\nWait for the connection to be closed for any reason\nHow to construct new congestion::Controllers\nCurrent state of the congestion control algorithm, for …\nThe type of connection we have to the node, either direct …\nReturns a stream that reports connection type changes for …\nConnects to a remote Endpoint.\nConnects to a remote endpoint, using just the nodes’s …\nTLS configuration used for incoming connections.\nMaximum quantity of out-of-order crypto layer data to …\nMaximum number of incoming application datagram bytes to …\nMaximum number of outgoing application datagram bytes to …\nBytes available in the outgoing datagram buffer\nReturns the default relay mode.\nReturns the direct addresses of this Endpoint.\nSocket addresses where the peer might be reached directly.\nOptionally sets a discovery mechanism for this endpoint.\nReturns the discovery mechanism, if configured.\nOptionally sets a custom DNS resolver to use for this …\nReturns the DNS resolver used in this Endpoint.\nWhether to use “Generic Segmentation Offload” to …\nClass of error as encoded in the specification\nApplication-specific reason code\nDerive keying material from this connection’s TLS …\nNotify the peer that no more data will ever be written to …\nType of frame that caused the close\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstruct a VarInt infallibly\nSucceeds iff x < 2^62\nCreate a VarInt without ensuring it’s in range\nExtract the PublicKey from the peer’s TLS certificate.\nParameters negotiated during the handshake\nParameters negotiated during the handshake\nWhether there is a possible known network path to the …\nReturns the RelayUrl of the Relay server used as home …\nGet the identity of this stream\nGet the identity of this stream\nIgnores this incoming connection attempt, not sending any …\nMaximum number of received bytes to buffer for each …\nMaximum number of received bytes to buffer for all Incoming\nAddressing information to connect to Self::node_id.\nThe initial value to be used as the maximum UDP payload …\nThe RTT used before an RTT sample is taken\nSkip verification of SSL certificates from relay servers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConvert into a 0-RTT or 0.5-RTT connection at the cost of …\nGet the Incoming\nExtract the integer value\nCheck if this stream has been opened during 0-RTT.\nPeriod of inactivity before sending a keep-alive packet\nEnables saving the TLS pre-master key for connections.\nOptionally set a list of known nodes.\nElapsed time since this network path was known to exist.\nLast control message received by this node about this …\nElapsed time since the last payload message was received …\nGet the duration since the last activity we received from …\nTime elapsed time since last we have sent to or received …\nThe latency to the remote node over this network path.\nThe latency of the current network path to the remote node.\nThe local IP address which was used when the peer …\nReturns the local IP address which was used when the peer …\nThe local IP address which was used when the peer …\nCreates a quinn::ServerConfig with the given secret key …\nMaximum number of incoming bidirectional streams that may …\nVariant of max_concurrent_bidi_streams affecting …\nCompute the maximum size of datagrams that may be passed …\nMaximum duration of inactivity to accept before timing out …\nMaximum number of Incoming to allow to exist at a time\nWhether to allow clients to migrate to new addresses\nThe maximum UDP payload size guaranteed to be supported by …\nSpecifies the MTU discovery config (see MtuDiscoveryConfig …\nNotifies the system of potential network changes.\nCreate a default config with a particular handshake token …\nReturns the current NodeAddr for this endpoint.\nReturns the node id of this endpoint.\nThe node’s identifier.\nThe globally unique identifier for this node.\nInitiate a new outgoing bidirectional stream.\nInitiate a new outgoing unidirectional stream.\nMaximum reordering in packet number space before FACK …\nCryptographic identity of the peer\nNumber of consecutive PTOs after which network is …\nAttempts to read from the stream into buf.\nAttempt to write bytes from buf into the stream.\nThe preferred IPv4 address that will be communicated to …\nThe preferred IPv6 address that will be communicated to …\nGet the priority of the send stream\nSets the proxy url from the environment, in this order:\nSets an explicit proxy url to proxy all HTTP(S) traffic …\nRead data contiguously from the stream.\nRead the next segment of data\nRead the next segments of data\nReceive an application datagram\nRead an exact number of bytes contiguously from the stream.\nConvenience method to read all remaining data into a buffer\nHuman-readable reason for the close\nHuman-readable reason for the close\nMaximum number of bytes the peer may transmit across all …\nCompletes when the stream has been reset by the peer or …\nRejects this incoming connection attempt.\nSets the relay servers to assist in establishing …\nThe node’s home relay url.\nRelay server information, if available.\nThe peer’s UDP address\nReturns the peer’s UDP address.\nThe peer’s UDP address.\nWhether the socket address that is initiating this …\nReturns information about the remote node identified by a …\nReturns information about all the remote nodes this …\nClose the send stream immediately.\nResponds with a retry packet.\nDuration after a stateless retry token was issued for …\nCurrent best estimate of this connection’s latency …\nSets a secret key to authenticate with other peers.\nReturns the secret_key of this endpoint.\nTransmit data as an unreliable, unordered application …\nTransmit data as an unreliable, unordered application …\nMaximum number of bytes to transmit to a peer without …\nSets the list of accepted ALPN protocols.\nModify the number of remotely initiated bidirectional …\nModify the number of remotely initiated unidirectional …\nSet the priority of the send stream\nSee proto::TransportConfig::receive_window()\nReturns a deduplicated list of Sources merged from all …\nA HashMap of Sources to Durations.\nA stable identifier for this connection\nReturns connection statistics\nStop accepting data\nCompletes when the peer stops the stream or reads the …\nMaximum number of bytes the peer may transmit without …\nMaximum reordering in time space before time based loss …\nPrivate key used to authenticate data included in …\nTransport configuration to use for incoming connections\nSet a custom TransportConfig\nSets a custom quinn::TransportConfig for this endpoint.\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nSucceeds iff x < 2^62\nThe origin of this direct address.\nWatches for changes to the home relay.\nReturns a weak reference to the inner connection struct.\nCreate a server config with the given crypto::ServerConfig\nCreate a server config with the given certificate chain to …\nWrite bytes to the stream\nConvenience method to write an entire buffer to the stream\nConvenience method to write an entire list of chunks to …\nConvenience method to write a single chunk in its entirety …\nWrite chunks to the stream\nThe name of the discovery service that discovered the …\nThe name of the application that added the node\nSize of an encoded Ed25519 signature in bytes.\nError when decoding the base32.\nError when decoding the public key.\nError when deserialising a PublicKey or a SecretKey.\nThe identifier for a node in the (iroh) network.\nThe length of an ed25519 PublicKey, in bytes.\nA public key.\nA secret key.\nShared Secret.\nEd25519 signature.\nGet this public key as a byte array.\nConvert to a base32 string limited to the first 10 bytes …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParse an Ed25519 signature from a byte slice.\nConstruct a PublicKey from a slice of bytes.\nCreate a secret key from its byte representation.\nParse an Ed25519 signature from its R and s components.\nParse an Ed25519 signature from a byte slice.\nGenerate a new SecretKey with the default randomness …\nGenerate a new SecretKey with a randomness generator.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nOpens the ciphertext, which must have been created using …\nThe public key of this SecretKey.\nBytes for the R component of a signature.\nBytes for the s component of a signature.\nSeals the provided cleartext.\nReturns the shared key for communication between this key …\nSign the given message and return a digital signature\nReturn the inner byte array.\nConvert this to the bytes representing the secret part. …\nSerialise this key to OpenSSH format.\nConvert this signature into a byte vector.\nDeserialise this key from OpenSSH format.\nVerify a signature on a message with this secret key’s …\nEnum of metrics for the module\nReturns the argument unchanged.\nCalls U::from(self).\nThe number of direct connections we have made to peers.\nThe number of direct connections we have lost to peers.\nThe number of connections to peers we have added over …\nThe number of connections to peers we have removed over …\nNumber of QUIC datagrams received.\nNumber of datagrams received using GRO\nIp family selection between Ipv4 and Ipv6.\nWrapper around a tokio UDP socket that handles the fact …\nIpv4\nIpv6\nBind to the given port and listen on all interfaces.\nBind to any provided SocketAddr.\nBind to the given port only on localhost.\nBind only Ipv4 on localhost.\nBind only Ipv6 on localhost.\nBind only Ipv4 on any interface.\nBind only Ipv6 on any interface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nIP address related utilities.\nReturns the matching localhost address.\nMonitoring of networking interfaces and route changes.\nReturns the matching default address.\nList of machine’s IP addresses.\nReturns the argument unchanged.\nCalls U::from(self).\nReturns true if the address is a unicast address with …\nLoopback addresses.\nReturns the machine’s IP addresses. If there are no …\nRegular addresses.\nToken to remove a callback\nMonitors networking interface and route changes.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nPotential change detected outside\nCreate a new monitor.\nSubscribe to network changes.\nUnsubscribe a callback from network changes, using the …\nClient to run netchecks.\nEnum of metrics for the module\nLatencies per relay node.\nA netcheck report.\nCaptivePortal is set when we think there’s a captive …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRuns a netcheck, returning the report.\nGet report with channel\nip:port of global IPv4\n[ip]:port of global IPv6\nWhether the router supports communicating between two …\nAn ICMPv4 round trip completed, None if not checked.\nAn ICMPv6 round trip completed, None if not checked.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAn IPv4 STUN round trip completed.\nan IPv4 packet was able to be sent\nAn IPv6 STUN round trip completed.\nAn IPv6 packet was able to be sent\nReturns an iterator over all the relays and their …\nWhether STUN results depend on which STUN server you’re …\nWhether STUN results depend on which STUN server you’re …\nCreates a new netcheck client.\ncould bind a socket to ::1\nProbe indicating the presence of port mapping protocols on …\nNone for unknown\nkeyed by relay Url\nkeyed by relay Url\nkeyed by relay Url\nA UDP STUN round trip completed.\nCould not create client, probably bind error.\nCould not send ping.\nWhether this error was because we couldn’t create a …\nAllows sending ICMP echo requests to a host in order to …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCreate a new Pinger.\nSend a ping request with associated data, returning the …\nPort mapping client.\nConfigures which port mapping protocols are enabled in the …\nEnum of metrics for the module\nOutput of a port mapping probe.\nA port mapping client.\nIndicates if all port mapping protocols are available.\nDeactivate port mapping.\nBy default all port mapping protocols are enabled.\nWhether PMP is enabled.\nWhether PCP is enabled.\nWhether UPnP is enabled.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nIf PMP can be considered available.\nCreate a new port mapping client.\nIf PCP can be considered available.\nRequest a probe to the port mapping protocols.\nTry to get a mapping for the last local port if there isn…\nUpdate the local port.\nIf UPnP can be considered available.\nWatch the external address for changes in the mappings.\nThe inner actor is gone, likely means things are shutdown.\nThe relay super::client::Client failed to build\nThis Client cannot acknowledge pings\nThe client is closed\nThere was a connection timeout error\nUse a custom relay map.\nUse the default relay map, with production relay servers …\nThere was an error dialing\nThere was an error from the task doing the dialing\nDisable relay servers completely.\nThere was an error with DNS resolution\nThere was a timeout resolving DNS.\nA one-way message from server to client, declaring the …\nThere was an http error http::Error.\nAn HTTP Relay client.\nBuild a Client.\nPossible connection errors on the Client\nReceiving end of a Client.\nThere was http server hyper::Error\nBoth IPv4 and IPv6 are disabled for this relay node\nThe given Url is invalid\nA one-way empty message from server to client, just to …\nThe maximum size of a packet sent over relay. (This only …\nThere no underlying relay super::client::Client client …\nNo local addresses exist\nNo relay nodes are available with that name\nIndicates that the client identified by the underlying …\nRequest from a client or server to reply to the other side …\nThe ping request was aborted\nThe ping request timed out\nReply to a ReceivedMessage::Ping from a client or server …\nThe connection failed to proxy\nThere was an error receiving a packet\nThe type of message received by the Conn from a relay …\nRepresents an incoming packet.\nA connection to a relay server.\nConfiguration of all the relay servers that can be used.\nConfiguration of the relay servers for an Endpoint.\nInformation on a specific relay server.\nNo relay nodes are available\nA URL identifying a relay server.\nThere was an error sending a packet\nA one-way message from server to client, advertising that …\nUse the staging relay servers from n0.\nThe relay node specified only allows STUN requests\nThere was an unexpected status code\nThe connection failed to upgrade\nAn error related to websockets, either errors with parsing …\nReturns if we should prefer ipv6 it replaces the …\nBuild the Client\nEnable this Client to acknowledge pings.\nClose the connection\nClose the http relay connection.\nDisconnect the http relay connection.\nConnect to a relay Server and returns the underlying relay …\nIs this a known node?\nCreates a new RelayMap with a single relay server …\nCreate an empty relay map.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConstructs the RelayMap from an iterator of RelayNodes.\nReturns a RelayMap from a RelayUrl.\nGet the given node.\nHTTP-specific constants for the relay server and client.\nSkip the verification of the relay server’s SSL …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not this Conn is closed.\nReturns true if the underlying relay connection is …\nAre there any nodes in this map?\nIndicate this client is the preferred way to communicate …\nIndicates this client is a prober\nHow many nodes are known?\nThe local address that the Conn is listening on.\nGet the local addr of the connection. If there is no …\nCreate a new ClientBuilder\nReturns an Iterator over all known nodes.\nSends a packet that tells the server whether this …\nLet the server know that this client is the preferred …\nSend a ping to the server. Return once we get an expected …\nSets whether to connect to the relay via websockets or not.\nSet an explicit proxy url to proxy all HTTP(S) traffic …\nThe public key for this client\nReads a message from the server. Returns the message and …\nReturns the relay map for this mode.\nSends a packet to the node identified by dstkey\nSend a packet to the server.\nSend a ping with 8 bytes of random data.\nRespond to a ping request. The data field should be filled …\nSend a pong back to the server.\nA fully-fledged iroh-relay server over HTTP or HTTPS.\nThe expected PublicKey of the relay server we are …\nSets the server url\nWhether this relay server should only be used for STUN …\nThe stun port of the relay server.\nThe RelayUrl where this relay server can be dialed.\nReturns the sorted relay URLs.\nThe received packet bytes.\nIf set, is a description of why the connection is …\nAn advisory duration that the client should wait before …\nThe PublicKey of the packet sender.\nAn advisory duration for how long the client should …\nThe HTTP upgrade protocol used for relaying.\nThe HTTP path under which the relay accepts relaying …\nThe HTTP path under which the relay allows doing latency …\nRelays over the custom relaying protocol with a custom …\nRelays over websockets.\nReturns the argument unchanged.\nCalls U::from(self).\nTries to match the value of an HTTP upgrade header to …\nThe HTTP upgrade header used or expected.\nTLS certificate configuration.\nHandle incoming connections to the Server.\nUse Let’s Encrypt.\nRate limits.\nUse a static TLS key and certificate chain.\nThe main underlying IO stream type used for the relay …\nMetrics tracked for the relay server\nA plain non-Tls tokio::net::TcpStream\nConfiguration for the Relay HTTP and HTTPS server.\nA running Relay + STUN server.\nThe task for a running server actor.\nConfiguration for the full Relay & STUN server.\nConfiguration for the STUN server.\nA Tls wrapped tokio::net::TcpStream\nTLS configuration for Relay server.\nAborts the server.\nAdds a new connection to the server and serves it.\nBurst limit for accepting new connection. Unlimited if not …\nRate limit for accepting new connection. Unlimited if not …\nNumber of connections we have accepted\nThe socket address on which the STUN server should bind.\nBytes received from a FrameType::SendPacket\nBytes sent from a FrameType::SendPacket\nMode for getting a cert.\nCreate a ClientConnHandler, which can verify connections …\nCloses the server and waits for the connections to …\nNumber of accepted ‘iroh derp http’ connection upgrades\nFrameType::SendPacket dropped that are disco messages\nFrameType::SendPacket received that are disco messages\nFrameType::SendPacket sent that are disco messages\nNumber of connections we have removed because of an error\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nNumber of FrameType::Pings received\nThe socket address the HTTP server is listening on.\nThe socket address on which the Relay HTTP server should …\nThe socket address the HTTPS server is listening on.\nThe socket address on which to serve the HTTPS server.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nWhether or not the relay ServerActorTask is closed.\nRate limits.\nReturns the server metadata cert that can be sent by the …\nSocket to serve metrics on.\nTODO: replace with builder\nPackets of other FrameTypes dropped\nPackets of other FrameTypes received\nPackets of other FrameTypes sent\nReturns the server’s public key.\nConfiguration for the Relay server, disabled if None.\nReturns the server’s secret key.\nThe iroh secret key of the Relay server.\nFrameType::SendPacket dropped, that are not disco messages\nFrameType::SendPacket received, that are not disco messages\nFrameType::SendPacket sent, that are not disco messages\nNumber of FrameType::Pongs sent\nRequests graceful shutdown.\nStarts the server.\nConfiguration for the STUN server, disabled if None.\nThe socket address the STUN server is listening on.\nReturns the handle for the task.\nTLS configuration for the HTTPS server.\nNumber of unique client keys per day\nNumber of FrameType::Unknown received\nNumber of accepted websocket connections\nThe TLS certificate chain.\nConfiguration for Let’s Encrypt certificates.\nThe TLS private key.\nThe AlternateServeratribute\nErrors that can occur when handling a STUN packet.\nThe ErrorCodeatribute\nerror response\nThe Fingerprintatribute\nindication\nSTUN request had bogus fingerprint.\nThe STUN message could not be parsed or is otherwise …\nSTUN response has malformed attributes.\nThe MappedAddressatribute\nThe STUN message class. Although there are four message …\nClass used to decode STUN messages\nThe MessageIntegrityatribute\nThe MessageIntegritySha256atribute\nSTUN request didn’t end in fingerprint.\nThe Nonceatribute\nSTUN request is not a binding request when it should be.\nSTUN packet is not a response when it should be.\nThe PasswordAlgorithmatribute\nThe PasswordAlgorithmsatribute\nThe Realmatribute\nrequest\nThe Softwareatribute\nSTUN Attributes that can be attached to a StunMessage\nDescribes an error decoding a StunMessage\nsuccess response\nThe transaction ID is a 96-bit identifier, used to …\nThe Unknownatribute\nThe UnknownAttributesatribute\nThe UserHashatribute\nThe UserNameatribute\nThe XorMappedAddressatribute\nReturns a reference to the internal attribute value or an …\nReturns a reference to the bytes that represents the …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns a reference to the internal attribute value or an …\nReturns the STUN attribute type of this instance.\nDecodes the STUN raw buffer\nCreates a cryptographically random transaction ID chosen …\nReturns a reference to the AlternateServer attribute.\nReturns a reference to the ErrorCode attribute.\nReturns a reference to the Fingerprint attribute.\nReturns a reference to the MappedAddress attribute.\nReturns a reference to the MessageIntegrity attribute.\nReturns a reference to the MessageIntegritySha256 …\nReturns a reference to the Nonce attribute.\nReturns a reference to the PasswordAlgorithm attribute.\nReturns a reference to the PasswordAlgorithms attribute.\nReturns a reference to the Realm attribute.\nReturns a reference to the Software attribute.\nReturns a reference to the Unknown attribute.\nReturns a reference to the UnknownAttributes attribute.\nReturns a reference to the UserHash attribute.\nReturns a reference to the UserName attribute.\nReturns a reference to the XorMappedAddress attribute.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGets the context associated to this decoder\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReports whether b is a STUN message.\nReturns true if this StunAttribute is AlternateServer\nReturns true if this StunAttribute is ErrorCode\nReturns true if this StunAttribute is Fingerprint\nReturns true if this StunAttribute is MappedAddress\nReturns true if this StunAttribute is MessageIntegrity\nReturns true if this StunAttribute is …\nReturns true if this StunAttribute is Nonce\nReturns true if this StunAttribute is PasswordAlgorithm\nReturns true if this StunAttribute is PasswordAlgorithms\nReturns true if this StunAttribute is Realm\nReturns true if this StunAttribute is Software\nReturns true if this StunAttribute is Unknown\nReturns true if this StunAttribute is UnknownAttributes\nReturns true if this StunAttribute is UserHash\nReturns true if this StunAttribute is UserName\nReturns true if this StunAttribute is XorMappedAddress\nSTUN Methods Registry\nParses a STUN binding request.\nParses a successful binding response STUN packet. The IP …\nGenerates a binding request STUN packet.\nGenerates a binding response.\nBinding\nReserved\nShared secret\nA drop guard to clean up test infrastructure.\nHandle and drop guard for test DNS and Pkarr servers.\nCreate a DNS resolver with a single nameserver.\nCreate a ConcurrentDiscovery with DnsDiscovery and …\nCreate a DnsResolver configured to use the test DNS server.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe socket address of the DNS server.\nThe node origin domain.\nWait until a Pkarr announce for a node is published to the …\nThe HTTP URL of the Pkarr server.\nRun DNS and Pkarr servers on localhost.\nRuns a relay server with STUN enabled suitable for tests.\nRun DNS and Pkarr servers on localhost with the specified …\nString prefix describing the kind of iroh ticket.\nA token containing information for establishing a …\nA ticket is a serializable object combining information …\nDeserialize from a string.\nReturns the argument unchanged.\nCreates a ticket from given addressing info.\nDeserialize from the base32 string representation bytes.\nCalls U::from(self).\nCreates a new ticket.\nThe NodeAddr of the provider for this ticket.\nSerialize to string.\nSerialize to bytes used in the base32 string …\nError generating the certificate.\nError creating QUIC config.\nError for generating iroh p2p TLS configs.\nX.509 certificate handling.\nReturns the argument unchanged.\nCalls U::from(self).\nCreate a TLS client configuration.\nCreate a TLS server configuration.\nAn error that occurs during certificate generation.\nAn X.509 certificate with a libp2p-specific extension is …\nThe contents of the specific libp2p extension, containing …\nAn error that occurs during certificate parsing.\nAn error that occurs during signature verification.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGenerates a self-signed TLS certificate that includes a …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nAttempts to parse the provided bytes as a P2pCertificate.\nThe PublicKey of the remote peer.\nVerify the signature of the message signed by the secret …") \ No newline at end of file diff --git a/pr/2774/docs/src/iroh_net/endpoint.rs.html b/pr/2774/docs/src/iroh_net/endpoint.rs.html index 1c146d7852..fe3d58566a 100644 --- a/pr/2774/docs/src/iroh_net/endpoint.rs.html +++ b/pr/2774/docs/src/iroh_net/endpoint.rs.html @@ -1746,6 +1746,9 @@ 1746 1747 1748 +1749 +1750 +1751
//! The [`Endpoint`] allows establishing connections to other iroh-net nodes.
 //!
 //! The [`Endpoint`] is the main API interface to manage a local iroh-net node.  It allows
@@ -2180,10 +2183,12 @@
 
     /// Connects to a remote [`Endpoint`].
     ///
-    /// A [`NodeAddr`] is required. It must contain the [`NodeId`] to dial and may also
-    /// contain a [`RelayUrl`] and direct addresses. If direct addresses are provided, they
-    /// will be used to try and establish a direct connection without involving a relay
-    /// server.
+    /// A value that can be converted into a [`NodeAddr`] is required. This can be either a
+    /// [`NodeAddr`], a [`NodeId`] or a [`iroh_base::ticket::NodeTicket`].
+    ///
+    /// The [`NodeAddr`] must contain the [`NodeId`] to dial and may also contain a [`RelayUrl`]
+    /// and direct addresses. If direct addresses are provided, they will be used to try and
+    /// establish a direct connection without involving a relay server.
     ///
     /// If neither a [`RelayUrl`] or direct addresses are configured in the [`NodeAddr`] it
     /// may still be possible a connection can be established.  This depends on other calls
@@ -2205,6 +2210,7 @@
         alpn: &[u8],
     ) -> Result<quinn::Connection> {
         let node_addr = node_addr.into();
+        tracing::Span::current().record("remote", &node_addr.node_id.fmt_short());
         // Connecting to ourselves is not supported.
         if node_addr.node_id == self.node_id() {
             bail!(
diff --git a/pr/2774/docs/src/iroh_net/relay/map.rs.html b/pr/2774/docs/src/iroh_net/relay/map.rs.html
index 5da6298ecc..d5552aad72 100644
--- a/pr/2774/docs/src/iroh_net/relay/map.rs.html
+++ b/pr/2774/docs/src/iroh_net/relay/map.rs.html
@@ -239,7 +239,7 @@
         self.nodes.is_empty()
     }
 
-    /// Creates a new [`RelayMap] with a single relay server configured.
+    /// Creates a new [`RelayMap`] with a single relay server configured.
     ///
     /// Allows to set a custom STUN port and different IP addresses for IPv4 and IPv6.
     /// If IP addresses are provided, no DNS lookup will be performed.
@@ -260,15 +260,15 @@
         }
     }
 
-    /// Returns a [`RelayMap] from a [`RelayUrl`].
+    /// Returns a [`RelayMap`] from a [`RelayUrl`].
     ///
     /// This will use the default STUN port and IP addresses resolved from the URL's host name via DNS.
-    /// relay nodes are specified at <../../../docs/relay_nodes.md>
+    /// relay nodes are specified at <../../docs/relay_nodes.md>
     pub fn from_url(url: RelayUrl) -> Self {
         Self::default_from_node(url, DEFAULT_STUN_PORT)
     }
 
-    /// Constructs the [`RelayMap] from an iterator of [`RelayNode`]s.
+    /// Constructs the [`RelayMap`] from an iterator of [`RelayNode`]s.
     pub fn from_nodes(value: impl IntoIterator<Item = RelayNode>) -> Result<Self> {
         let mut map = BTreeMap::new();
         for node in value.into_iter() {
diff --git a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index b6c6a3cd5a..d96d2ad190 100644
--- a/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2774/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,7 +1,7 @@
 (function() {var implementors = {
 "iroh":[["impl Metric for Metrics"]],
 "iroh_blobs":[["impl Metric for Metrics"]],
-"iroh_dns_server":[["impl Metric for Metrics"]],
+"iroh_dns_server":[["impl Metric for Metrics"]],
 "iroh_docs":[["impl Metric for Metrics"]],
 "iroh_gossip":[["impl Metric for Metrics"]],
 "iroh_net":[["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"]],