diff --git a/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html b/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html index 8cb0e2aff5..62a927ae6f 100644 --- a/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html +++ b/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_ENDPOINT_ORIGIN_PROD in iroh::address_lookup::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_PROD

Constant N0_DNS_ENDPOINT_ORIGIN_PROD 

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

The n0 testing DNS endpoint origin, for production.

+N0_DNS_ENDPOINT_ORIGIN_PROD in iroh::address_lookup::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_PROD

Constant N0_DNS_ENDPOINT_ORIGIN_PROD 

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

The n0 testing DNS endpoint origin, for production.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html b/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html index 2e439e440e..af43ebe94c 100644 --- a/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html +++ b/pr/3958/docs/iroh/address_lookup/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_ENDPOINT_ORIGIN_STAGING in iroh::address_lookup::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_STAGING

Constant N0_DNS_ENDPOINT_ORIGIN_STAGING 

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

The n0 testing DNS endpoint origin, for testing.

+N0_DNS_ENDPOINT_ORIGIN_STAGING in iroh::address_lookup::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_STAGING

Constant N0_DNS_ENDPOINT_ORIGIN_STAGING 

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

The n0 testing DNS endpoint origin, for testing.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/dns/index.html b/pr/3958/docs/iroh/address_lookup/dns/index.html index 27c7807140..a9a464109b 100644 --- a/pr/3958/docs/iroh/address_lookup/dns/index.html +++ b/pr/3958/docs/iroh/address_lookup/dns/index.html @@ -1,2 +1,2 @@ -iroh::address_lookup::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

DNS endpoint discovery for iroh

+iroh::address_lookup::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

DNS endpoint discovery for iroh

Structs§

DnsAddressLookup
DNS endpoint discovery
DnsAddressLookupBuilder
Builder for DnsAddressLookup.

Constants§

N0_DNS_ENDPOINT_ORIGIN_PROD
The n0 testing DNS endpoint origin, for production.
N0_DNS_ENDPOINT_ORIGIN_STAGING
The n0 testing DNS endpoint origin, for testing.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookup.html b/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookup.html index dd20ca7f61..94e3d73df1 100644 --- a/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookup.html +++ b/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookup.html @@ -1,4 +1,4 @@ -DnsAddressLookup in iroh::address_lookup::dns - Rust

DnsAddressLookup

Struct DnsAddressLookup 

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

DNS endpoint discovery

+DnsAddressLookup in iroh::address_lookup::dns - Rust

DnsAddressLookup

Struct DnsAddressLookup 

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

DNS endpoint discovery

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

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

@@ -15,17 +15,21 @@ The supported attributes are:

The DNS resolver defaults to using the nameservers configured on the host system, but can be changed with crate::endpoint::Builder::dns_resolver.

-

Implementations§

Source§

impl DnsAddressLookup

Source

pub fn builder(origin_domain: String) -> DnsAddressLookupBuilder

Creates a DnsAddressLookupBuilder that implements IntoAddressLookup.

+

Implementations§

Source§

impl DnsAddressLookup

Source

pub fn builder(origin_domain: String) -> DnsAddressLookupBuilder

Creates a DnsAddressLookupBuilder that implements AddressLookupBuilder.

Source

pub fn n0_dns() -> DnsAddressLookupBuilder

Creates a new DNS discovery using the iroh.link domain.

This uses the N0_DNS_ENDPOINT_ORIGIN_PROD domain.

§Usage during tests

For testing it is possible to use the N0_DNS_ENDPOINT_ORIGIN_STAGING domain with DnsAddressLookup::builder. This would then use a hosted staging discovery service for testing purposes.

-

Trait Implementations§

Trait Implementations§

Source§

impl AddressLookup for DnsAddressLookup

Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>>

Resolves the Item for the given EndpointId. Read more
Source§

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

impl Debug for DnsAddressLookup

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Resolves the Item for the given EndpointId. Read more
Source§

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

impl Debug for DnsAddressLookup

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -42,11 +46,7 @@ service for testing purposes.

U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookupBuilder.html b/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookupBuilder.html index 791b87b916..75978398fb 100644 --- a/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookupBuilder.html +++ b/pr/3958/docs/iroh/address_lookup/dns/struct.DnsAddressLookupBuilder.html @@ -1,11 +1,12 @@ -DnsAddressLookupBuilder in iroh::address_lookup::dns - Rust

DnsAddressLookupBuilder

Struct DnsAddressLookupBuilder 

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

Builder for DnsAddressLookup.

+DnsAddressLookupBuilder in iroh::address_lookup::dns - Rust

DnsAddressLookupBuilder

Struct DnsAddressLookupBuilder 

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

Implementations§

Source§

impl DnsAddressLookupBuilder

Source

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

Sets the DNS resolver to use.

Source

pub fn build(self) -> DnsAddressLookup

Builds a DnsAddressLookup with the passed DnsResolver.

-

Trait Implementations§

Source§

impl Debug for DnsAddressLookupBuilder

Source§

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

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

impl IntoAddressLookup for DnsAddressLookupBuilder

Trait Implementations§

Source§

impl AddressLookupBuilder for DnsAddressLookupBuilder

Source§

fn into_address_lookup( self, endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> Self
where + Self: Sized,

Sets a filter to control which addresses are published by this service Read more

Source§

impl Debug for DnsAddressLookupBuilder

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/enum.IntoAddressLookupError.html b/pr/3958/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html similarity index 54% rename from pr/3958/docs/iroh/address_lookup/enum.IntoAddressLookupError.html rename to pr/3958/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html index c3ecf7aad3..3ccc150a1f 100644 --- a/pr/3958/docs/iroh/address_lookup/enum.IntoAddressLookupError.html +++ b/pr/3958/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html @@ -1,4 +1,4 @@ -IntoAddressLookupError in iroh::address_lookup - Rust

IntoAddressLookupError

Enum IntoAddressLookupError 

Source
#[non_exhaustive]
pub enum IntoAddressLookupError { +AddressLookupBuilderError in iroh::address_lookup - Rust

AddressLookupBuilderError

Enum AddressLookupBuilderError 

Source
#[non_exhaustive]
pub enum AddressLookupBuilderError { User { provenance: &'static str, source: AnyError, @@ -8,18 +8,18 @@ source: EndpointError, meta: Meta, }, -}
Expand description
Expand description

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

User

Fields

§provenance: &'static str
§source: AnyError
§meta: Meta

Captured call-site metadata

§

EndpointClosed

Fields

§meta: Meta

Captured call-site metadata

-

Implementations§

Implementations§

Source§

impl AddressLookupBuilderError

Source

pub fn from_err<T: Error + Send + Sync + 'static>( provenance: &'static str, source: T, ) -> Self

Creates a new user error from an arbitrary error type.

-
Source

pub fn from_err_box( +

Source

pub fn from_err_box( provenance: &'static str, source: Box<dyn Error + Send + Sync + 'static>, ) -> Self

Creates a new user error from an arbitrary boxed error type.

-

Trait Implementations§

Source§

impl Debug for IntoAddressLookupError

Source§

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

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

impl Display for IntoAddressLookupError

Source§

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

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

impl Error for IntoAddressLookupError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AnyError> for IntoAddressLookupError

Source§

fn from(source: AnyError) -> Self

Converts to this type from the input type.
Source§

impl From<EndpointError> for IntoAddressLookupError

Source§

fn from(source: EndpointError) -> Self

Converts to this type from the input type.
Source§

impl From<IntoAddressLookupError> for AnyError

Source§

fn from(value: IntoAddressLookupError) -> AnyError

Converts to this type from the input type.
Source§

impl From<IntoAddressLookupError> for BindError

Source§

fn from(source: IntoAddressLookupError) -> Self

Converts to this type from the input type.
Source§

impl StackError for IntoAddressLookupError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for AddressLookupBuilderError

Source§

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

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

impl Display for AddressLookupBuilderError

Source§

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

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

impl Error for AddressLookupBuilderError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AddressLookupBuilderError> for AnyError

Source§

fn from(value: AddressLookupBuilderError) -> AnyError

Converts to this type from the input type.
Source§

impl From<AddressLookupBuilderError> for BindError

Source§

fn from(source: AddressLookupBuilderError) -> Self

Converts to this type from the input type.
Source§

impl From<AnyError> for AddressLookupBuilderError

Source§

fn from(source: AnyError) -> Self

Converts to this type from the input type.
Source§

impl From<EndpointError> for AddressLookupBuilderError

Source§

fn from(source: EndpointError) -> Self

Converts to this type from the input type.
Source§

impl StackError for AddressLookupBuilderError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/enum.Error.html b/pr/3958/docs/iroh/address_lookup/enum.Error.html index bfb791dc2d..3682629dbf 100644 --- a/pr/3958/docs/iroh/address_lookup/enum.Error.html +++ b/pr/3958/docs/iroh/address_lookup/enum.Error.html @@ -1,4 +1,4 @@ -Error in iroh::address_lookup - Rust

Error

Enum Error 

Source
#[non_exhaustive]
pub enum Error { +Error in iroh::address_lookup - Rust

Error

Enum Error 

Source
#[non_exhaustive]
pub enum Error { NoServiceConfigured { meta: Meta, }, @@ -14,19 +14,19 @@

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

NoServiceConfigured

Fields

§meta: Meta

Captured call-site metadata

§

NoResults

Fields

§meta: Meta

Captured call-site metadata

§

User

Fields

§provenance: &'static str
§source: Arc<AnyError>
§meta: Meta

Captured call-site metadata

-

Implementations§

Source§

impl Error

Source

pub fn from_err<T: Error + Send + Sync + 'static>( +

Implementations§

Source§

impl Error

Source

pub fn from_err<T: Error + Send + Sync + 'static>( provenance: &'static str, source: T, ) -> Self

Creates a new user error from an arbitrary error type.

-
Source

pub fn from_err_box( +

Source

pub fn from_err_box( provenance: &'static str, source: Box<dyn Error + Send + Sync + 'static>, ) -> Self

Creates a new user error from an arbitrary boxed error type.

-
Source

pub fn from_err_any( +

Source

pub fn from_err_any( provenance: &'static str, source: impl Into<AnyError>, ) -> Self

Creates a new user error from an arbitrary error type that can be converted into [AnyError].

-

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<Error> for AnyError

Source§

fn from(value: Error) -> AnyError

Converts to this type from the input type.
Source§

impl From<Error> for ConnectWithOptsError

Source§

fn from(source: AddressLookupError) -> Self

Converts to this type from the input type.
Source§

impl From<PkarrError> for Error

Source§

fn from(err: PkarrError) -> Self

Converts to this type from the input type.
Source§

impl StackError for Error

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<Error> for AnyError

Source§

fn from(value: Error) -> AnyError

Converts to this type from the input type.
Source§

impl From<Error> for ConnectWithOptsError

Source§

fn from(source: AddressLookupError) -> Self

Converts to this type from the input type.
Source§

impl From<PkarrError> for Error

Source§

fn from(err: PkarrError) -> Self

Converts to this type from the input type.
Source§

impl StackError for Error

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/enum.ParseError.html b/pr/3958/docs/iroh/address_lookup/enum.ParseError.html index 63c74591f3..508967ac26 100644 --- a/pr/3958/docs/iroh/address_lookup/enum.ParseError.html +++ b/pr/3958/docs/iroh/address_lookup/enum.ParseError.html @@ -1,4 +1,4 @@ -ParseError in iroh::address_lookup - Rust

ParseError

Enum ParseError 

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

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { UnexpectedFormat { s: String, meta: Meta, @@ -29,7 +29,7 @@

§

Utf8

Fields

§source: Utf8Error
§meta: Meta

Captured call-site metadata

§

NotAnIrohRecord

Fields

§label: String
§meta: Meta

Captured call-site metadata

§

DecodingError

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for ParseError

Source§

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

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

impl Display for ParseError

Source§

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

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

impl Error for ParseError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> ParseError

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ParseError

Source§

fn from(source: Utf8Error) -> ParseError

Converts to this type from the input type.
Source§

impl StackError for ParseError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

§

impl Freeze for ParseError

§

impl !RefUnwindSafe for ParseError

§

impl Send for ParseError

§

impl Sync for ParseError

§

impl Unpin for ParseError

§

impl !UnwindSafe for ParseError

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for ParseError

Source§

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

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

impl Display for ParseError

Source§

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

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

impl Error for ParseError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> ParseError

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ParseError

Source§

fn from(source: Utf8Error) -> ParseError

Converts to this type from the input type.
Source§

impl StackError for ParseError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

§

impl Freeze for ParseError

§

impl !RefUnwindSafe for ParseError

§

impl Send for ParseError

§

impl Sync for ParseError

§

impl Unpin for ParseError

§

impl !UnwindSafe for ParseError

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/index.html b/pr/3958/docs/iroh/address_lookup/index.html index 7a6aee18d0..3b966882fb 100644 --- a/pr/3958/docs/iroh/address_lookup/index.html +++ b/pr/3958/docs/iroh/address_lookup/index.html @@ -1,4 +1,4 @@ -iroh::address_lookup - Rust

Module address_lookup

Module address_lookup 

Source
Expand description

Lookup the address of an Endpoint ID.

+iroh::address_lookup - Rust

Module address_lookup

Module address_lookup 

Source
Expand description

Lookup the address of an Endpoint ID.

To connect to an iroh endpoint a EndpointAddr is needed, which may contain a RelayUrl or one or more direct addresses in addition to the EndpointId.

Since there is a conversion from EndpointId to EndpointAddr, you can also use @@ -14,6 +14,14 @@ implementations to co-exist because there are many possible ways to implement th Each Endpoint can use the address lookup mechanisms most suitable to the application. The Builder::address_lookup method is used to add an address lookup mechanism to an Endpoint.

+

Each address lookup service receives the full set of transport addresses when publishing, +but may only publish a subset of them based on its own constraints.

+

To control which addresses are published to a particular service, you can supply an +AddrFilter when configuring it via AddressLookupBuilder::with_addr_filter. The filter +receives the full set of addresses and returns an ordered Vec, allowing you to both +remove addresses you don’t want published and prioritize the ones you do Each service +may apply additional filtering on top based on its own constraints, but will not publish +addresses outside of what the filter returns. See each service’s documentation for details.

Some generally useful Address Lookup implementations are provided:

Re-exports§

pub use dns::*;Non-wasm_browser
pub use mdns::*;address-lookup-mdns
pub use memory::*;
pub use pkarr::dht::*;address-lookup-pkarr-dht
pub use pkarr::*;

Modules§

dnsNon-wasm_browser
DNS endpoint discovery for iroh
mdnsaddress-lookup-mdns
An address lookup service that uses an mdns-like service to discover and lookup the addresses of local endpoints.
memory
An in-memory address lookup system to manually add endpoint addressing information.
pkarr
An address lookup service which publishes and resolves endpoint information using a pkarr relay.

Structs§

ConcurrentAddressLookup
An Address Lookup service that combines multiple Address Lookup sources.
EndpointData
Data about an endpoint that may be published to and resolved from discovery services.
EndpointInfo
Information about an endpoint that may be published to and resolved from discovery services.
Item
Address lookup results from AddressLookups.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

Error
AddressLookup errors
IntoAddressLookupError
IntoAddressLookup errors
ParseError

Traits§

AddressLookup
AddressLookup system for super::Endpoint.
IntoAddressLookup
Trait for structs that can be converted into AddressLookups.
\ No newline at end of file + .await?;

Re-exports§

pub use dns::*;Non-wasm_browser
pub use mdns::*;address-lookup-mdns
pub use memory::*;
pub use pkarr::dht::*;address-lookup-pkarr-dht
pub use pkarr::*;

Modules§

dnsNon-wasm_browser
DNS endpoint discovery for iroh
mdnsaddress-lookup-mdns
An address lookup service that uses an mdns-like service to discover and lookup the addresses of local endpoints.
memory
An in-memory address lookup system to manually add endpoint addressing information.
pkarr
An address lookup service which publishes and resolves endpoint information using a pkarr relay.

Structs§

AddrFilter
A filter and/or reordering function applied to transport addresses, +typically used by AddressLookup services in iroh before publishing.
ConcurrentAddressLookup
An Address Lookup service that combines multiple Address Lookup sources.
EndpointData
Data about an endpoint that may be published to and resolved from discovery services.
EndpointInfo
Information about an endpoint that may be published to and resolved from discovery services.
Item
Address lookup results from AddressLookups.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

AddressLookupBuilderError
AddressLookupBuilder errors
Error
AddressLookup errors
ParseError

Traits§

AddressLookup
AddressLookup system for super::Endpoint.
AddressLookupBuilder
Trait for structs that can be converted into AddressLookups.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/mdns/constant.NAME.html b/pr/3958/docs/iroh/address_lookup/mdns/constant.NAME.html index 8679039ead..0aa6f4f31e 100644 --- a/pr/3958/docs/iroh/address_lookup/mdns/constant.NAME.html +++ b/pr/3958/docs/iroh/address_lookup/mdns/constant.NAME.html @@ -1,4 +1,4 @@ -NAME in iroh::address_lookup::mdns - Rust

NAME

Constant NAME 

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

Name of this address lookup service.

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

NAME

Constant NAME 

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

Name of this address lookup service.

Used as the provenance field in AddressLookupItems.

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

\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/mdns/enum.DiscoveryEvent.html b/pr/3958/docs/iroh/address_lookup/mdns/enum.DiscoveryEvent.html index c1e7c11104..8c21df22df 100644 --- a/pr/3958/docs/iroh/address_lookup/mdns/enum.DiscoveryEvent.html +++ b/pr/3958/docs/iroh/address_lookup/mdns/enum.DiscoveryEvent.html @@ -1,4 +1,4 @@ -DiscoveryEvent in iroh::address_lookup::mdns - Rust

DiscoveryEvent

Enum DiscoveryEvent 

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

DiscoveryEvent

Enum DiscoveryEvent 

Source
pub enum DiscoveryEvent {
     Discovered {
         endpoint_info: EndpointInfo,
         last_updated: Option<u64>,
@@ -13,8 +13,8 @@
 
§

Expired

A peer was expired due to being inactive, unreachable, or otherwise unavailable.

Fields

§endpoint_id: EndpointId

The id of the endpoint that expired.

-

Trait Implementations§

Source§

impl Clone for DiscoveryEvent

Source§

fn clone(&self) -> DiscoveryEvent

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DiscoveryEvent

Source§

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

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

impl PartialEq for DiscoveryEvent

Source§

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

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

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

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

impl Eq for DiscoveryEvent

Source§

impl StructuralPartialEq for DiscoveryEvent

Auto Trait Implementations§

§

impl Freeze for DiscoveryEvent

§

impl RefUnwindSafe for DiscoveryEvent

§

impl Send for DiscoveryEvent

§

impl Sync for DiscoveryEvent

§

impl Unpin for DiscoveryEvent

§

impl UnwindSafe for DiscoveryEvent

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for DiscoveryEvent

Source§

fn clone(&self) -> DiscoveryEvent

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DiscoveryEvent

Source§

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

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

impl PartialEq for DiscoveryEvent

Source§

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

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

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

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

impl Eq for DiscoveryEvent

Source§

impl StructuralPartialEq for DiscoveryEvent

Auto Trait Implementations§

§

impl Freeze for DiscoveryEvent

§

impl RefUnwindSafe for DiscoveryEvent

§

impl Send for DiscoveryEvent

§

impl Sync for DiscoveryEvent

§

impl Unpin for DiscoveryEvent

§

impl UnwindSafe for DiscoveryEvent

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/mdns/index.html b/pr/3958/docs/iroh/address_lookup/mdns/index.html index 05e687fb5e..ccd48455b9 100644 --- a/pr/3958/docs/iroh/address_lookup/mdns/index.html +++ b/pr/3958/docs/iroh/address_lookup/mdns/index.html @@ -1,7 +1,9 @@ -iroh::address_lookup::mdns - Rust

Module mdns

Module mdns 

Source
Available on crate feature address-lookup-mdns only.
Expand description

An address lookup service that uses an mdns-like service to discover and lookup the addresses of local endpoints.

+iroh::address_lookup::mdns - Rust

Module mdns

Module mdns 

Source
Available on crate feature address-lookup-mdns only.
Expand description

An address lookup service that uses an mdns-like service to discover and lookup the addresses of local endpoints.

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

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

+

In order to get a list of locally discovered addresses, you must call MdnsAddressLookup::subscribe to subscribe +to a stream of discovered addresses.

use std::time::Duration;
 
@@ -36,4 +38,16 @@ See the swarm-discovery
             }
         }
     }
-}

Structs§

MdnsAddressLookup
Address Lookup using swarm-discovery, a variation on mdns
MdnsAddressLookupBuilder
Builder for MdnsAddressLookup.

Enums§

DiscoveryEvent
An event emitted from the MdnsAddressLookup service.

Constants§

NAME
Name of this address lookup service.
\ No newline at end of file +}

§Filtering

+

By default, MdnsAddressLookup will attempt to publish all addresses it receives: +direct IP addresses and up to one RelayUrl. The following constraints apply regardless +of any user-supplied filter:

+
    +
  • Only the first RelayUrl in the address set is published.
  • +
  • A RelayUrl longer than 249 bytes is silently dropped.
  • +
+

You can supply an AddrFilter via MdnsAddressLookupBuilder::with_addr_filter to +control which addresses are published and in what order. The filter is applied before the +constraints above, so for example you can use it to exclude relay URLs entirely or to +prioritize certain addresses.

+

Structs§

MdnsAddressLookup
Address Lookup using swarm-discovery, a variation on mdns.
MdnsAddressLookupBuilder
Builder for MdnsAddressLookup.

Enums§

DiscoveryEvent
An event emitted from the MdnsAddressLookup service.

Constants§

NAME
Name of this address lookup service.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html b/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html index 2b982d1265..d575ee1a27 100644 --- a/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html +++ b/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookup.html @@ -1,12 +1,16 @@ -MdnsAddressLookup in iroh::address_lookup::mdns - Rust

MdnsAddressLookup

Struct MdnsAddressLookup 

Source
pub struct MdnsAddressLookup { /* private fields */ }
Available on crate feature address-lookup-mdns only.
Expand description

Address Lookup using swarm-discovery, a variation on mdns

-

Implementations§

Source§

impl MdnsAddressLookup

Source

pub fn builder() -> MdnsAddressLookupBuilder

Returns a MdnsAddressLookupBuilder that implements Into.

-
Source

pub async fn subscribe( +MdnsAddressLookup in iroh::address_lookup::mdns - Rust

MdnsAddressLookup

Struct MdnsAddressLookup 

Source
pub struct MdnsAddressLookup { /* private fields */ }
Available on crate feature address-lookup-mdns only.
Expand description

Address Lookup using swarm-discovery, a variation on mdns.

+

Implementations§

Source§

impl MdnsAddressLookup

Source

pub fn builder() -> MdnsAddressLookupBuilder

Returns a MdnsAddressLookupBuilder that implements Into.

+
Source

pub async fn subscribe( &self, -) -> impl Stream<Item = DiscoveryEvent> + Unpin + use<>

Subscribe to discovered endpoints

-

Trait Implementations§

Source§

impl AddressLookup for MdnsAddressLookup

Source§

fn resolve( +) -> impl Stream<Item = DiscoveryEvent> + Unpin + use<>

Subscribe to discovered endpoints.

+

Trait Implementations§

Source§

impl AddressLookup for MdnsAddressLookup

Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>>

Resolves the Item for the given EndpointId. Read more
Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

impl Clone for MdnsAddressLookup

Source§

fn clone(&self) -> MdnsAddressLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MdnsAddressLookup

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Resolves the Item for the given EndpointId. Read more
Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more

Source§

impl Clone for MdnsAddressLookup

Source§

fn clone(&self) -> MdnsAddressLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MdnsAddressLookup

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -26,11 +30,7 @@ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html b/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html index f3578f745d..a6bc77b9b6 100644 --- a/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html +++ b/pr/3958/docs/iroh/address_lookup/mdns/struct.MdnsAddressLookupBuilder.html @@ -1,24 +1,25 @@ -MdnsAddressLookupBuilder in iroh::address_lookup::mdns - Rust

MdnsAddressLookupBuilder

Struct MdnsAddressLookupBuilder 

Source
pub struct MdnsAddressLookupBuilder { /* private fields */ }
Available on crate feature address-lookup-mdns only.
Expand description

Builder for MdnsAddressLookup.

-

Implementations§

Source§

impl MdnsAddressLookupBuilder

Source

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

Sets whether this endpoint should advertise its presence.

+MdnsAddressLookupBuilder in iroh::address_lookup::mdns - Rust

MdnsAddressLookupBuilder

Struct MdnsAddressLookupBuilder 

Source
pub struct MdnsAddressLookupBuilder { /* private fields */ }
Available on crate feature address-lookup-mdns only.
Expand description

Builder for MdnsAddressLookup.

+

Implementations§

Source§

impl MdnsAddressLookupBuilder

Source

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

Sets whether this endpoint should advertise its presence.

Default is true.

-
Source

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

Sets a custom service name.

+
Source

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

Sets a custom service name.

The default is irohv1, which will show up on a record in the following form, for example: 7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._irohv1._udp.local

Any custom service name will take the form, for example: 7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._{service_name}._udp.local

-
Source

pub fn build( +

Source

pub fn set_addr_filter(self, filter: AddrFilter) -> Self

Sets a filter to control which addresses are published by this service.

+
Source

pub fn build( self, endpoint_id: EndpointId, -) -> Result<MdnsAddressLookup, IntoAddressLookupError>

Builds an MdnsAddressLookup instance with the configured settings.

+) -> Result<MdnsAddressLookup, AddressLookupBuilderError>

Builds an MdnsAddressLookup instance with the configured settings.

§Errors

Returns an error if the network does not allow ipv4 OR ipv6.

§Panics

This relies on [tokio::runtime::Handle::current] and will panic if called outside of the context of a tokio runtime.

-

Trait Implementations§

Source§

impl Debug for MdnsAddressLookupBuilder

Source§

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

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

impl Default for MdnsAddressLookupBuilder

Source§

fn default() -> Self

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

impl IntoAddressLookup for MdnsAddressLookupBuilder

Trait Implementations§

Source§

impl AddressLookupBuilder for MdnsAddressLookupBuilder

Source§

fn into_address_lookup( self, endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, filter: AddrFilter) -> Self

Sets a filter to control which addresses are published by this service Read more
Source§

impl Debug for MdnsAddressLookupBuilder

Source§

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

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

impl Default for MdnsAddressLookupBuilder

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/memory/struct.MemoryLookup.html b/pr/3958/docs/iroh/address_lookup/memory/struct.MemoryLookup.html index d7bd2b5528..ed3825b3d2 100644 --- a/pr/3958/docs/iroh/address_lookup/memory/struct.MemoryLookup.html +++ b/pr/3958/docs/iroh/address_lookup/memory/struct.MemoryLookup.html @@ -1,4 +1,4 @@ -MemoryLookup in iroh::address_lookup::memory - Rust

MemoryLookup

Struct MemoryLookup 

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

An in-memory address lookup system to manually add endpoint addressing information.

+MemoryLookup in iroh::address_lookup::memory - Rust

MemoryLookup

Struct MemoryLookup 

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

An in-memory address lookup system to manually add endpoint addressing information.

Often an application might get endpoint addressing information out-of-band in an application-specific way. EndpointTicket’s are one common way used to achieve this. This addressing information is often only usable for a limited time so needs to @@ -71,7 +71,11 @@ relay URL is overwritten.

Trait Implementations§

Source§

impl AddressLookup for MemoryLookup

Source§

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for MemoryLookup

Source§

fn clone(&self) -> MemoryLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MemoryLookup

Source§

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

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

impl Default for MemoryLookup

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId. Read more

Source§

impl Clone for MemoryLookup

Source§

fn clone(&self) -> MemoryLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MemoryLookup

Source§

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

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

impl Default for MemoryLookup

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -91,11 +95,7 @@ relay URL is overwritten.

U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/constant.DEFAULT_PKARR_TTL.html b/pr/3958/docs/iroh/address_lookup/pkarr/constant.DEFAULT_PKARR_TTL.html index 0f33a26465..132d13db24 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/constant.DEFAULT_PKARR_TTL.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/constant.DEFAULT_PKARR_TTL.html @@ -1,4 +1,4 @@ -DEFAULT_PKARR_TTL in iroh::address_lookup::pkarr - Rust

DEFAULT_PKARR_TTL

Constant DEFAULT_PKARR_TTL 

Source
pub const DEFAULT_PKARR_TTL: u32 = 30;
Expand description

Default TTL for the records in the pkarr signed packet.

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

DEFAULT_PKARR_TTL

Constant DEFAULT_PKARR_TTL 

Source
pub const DEFAULT_PKARR_TTL: u32 = 30;
Expand description

Default TTL for the records in the pkarr signed packet.

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

DEFAULT_REPUBLISH_INTERVAL

Constant DEFAULT_REPUBLISH_INTERVAL 

Source
pub const DEFAULT_REPUBLISH_INTERVAL: Duration;
Expand description

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

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

DEFAULT_REPUBLISH_INTERVAL

Constant DEFAULT_REPUBLISH_INTERVAL 

Source
pub const DEFAULT_REPUBLISH_INTERVAL: Duration;
Expand description

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

\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html b/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html index 0706a5896e..53b2d1dfc9 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html @@ -1,4 +1,4 @@ -N0_DNS_PKARR_RELAY_PROD in iroh::address_lookup::pkarr - Rust

N0_DNS_PKARR_RELAY_PROD

Constant N0_DNS_PKARR_RELAY_PROD 

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

The production pkarr relay run by number 0.

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

N0_DNS_PKARR_RELAY_PROD

Constant N0_DNS_PKARR_RELAY_PROD 

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

The production pkarr relay run by number 0.

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

diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html b/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html index 7b0c6835c5..69f1bb5e54 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html @@ -1,4 +1,4 @@ -N0_DNS_PKARR_RELAY_STAGING in iroh::address_lookup::pkarr - Rust

N0_DNS_PKARR_RELAY_STAGING

Constant N0_DNS_PKARR_RELAY_STAGING 

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

The testing pkarr relay run by number 0.

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

N0_DNS_PKARR_RELAY_STAGING

Constant N0_DNS_PKARR_RELAY_STAGING 

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

The testing pkarr relay run by number 0.

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

\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/dht/index.html b/pr/3958/docs/iroh/address_lookup/pkarr/dht/index.html index c0680fc4a6..4373a5b5d6 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/dht/index.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/dht/index.html @@ -1,4 +1,4 @@ -iroh::address_lookup::pkarr::dht - Rust

Module dht

Module dht 

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

Pkarr based address lookup for iroh, supporting both relay servers and the DHT.

+iroh::address_lookup::pkarr::dht - Rust

Module dht

Module dht 

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

Pkarr based address lookup for iroh, supporting both relay servers and the DHT.

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

diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.Builder.html b/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.Builder.html index 34f9e9feba..53c1d72aa4 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.Builder.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.Builder.html @@ -1,20 +1,20 @@ -Builder in iroh::address_lookup::pkarr::dht - Rust

Builder

Struct Builder 

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

Builder for DhtAddressLookup.

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

Builder

Struct Builder 

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

Builder for DhtAddressLookup.

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

-

Implementations§

Source§

impl Builder

Source

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

Explicitly sets the pkarr client to use.

-
Source

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

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

+

Implementations§

Source§

impl Builder

Source

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

Explicitly sets the pkarr client to use.

+
Source

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

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

Without a secret key, the endpoint will not publish its address to the DHT.

-
Source

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

Sets the time-to-live value for the DNS packets.

-
Source

pub fn pkarr_relay(self, pkarr_relay: Url) -> Self

Sets the pkarr relay URL to use.

-
Source

pub fn n0_dns_pkarr_relay(self) -> Self

Uses the default number 0 pkarr relay URL.

-
Source

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

Sets whether to publish to the Mainline DHT.

-
Source

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

Sets whether to include the direct addresses in the DNS packet.

-
Source

pub fn republish_delay(self, republish_delay: Duration) -> Self

Sets the republish delay for the DHT.

-
Source

pub fn no_publish(self) -> Self

Disables publishing even if a secret key is set.

-
Source

pub fn build(self) -> Result<DhtAddressLookup, IntoAddressLookupError>

Builds the address lookup mechanism.

-

Trait Implementations§

Source§

impl Debug for Builder

Source§

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

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

impl Default for Builder

Source§

fn default() -> Self

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

impl IntoAddressLookup for Builder

Source

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

Sets the time-to-live value for the DNS packets.

+
Source

pub fn pkarr_relay(self, pkarr_relay: Url) -> Self

Sets the pkarr relay URL to use.

+
Source

pub fn n0_dns_pkarr_relay(self) -> Self

Uses the default number 0 pkarr relay URL.

+
Source

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

Sets whether to publish to the Mainline DHT.

+
Source

pub fn republish_delay(self, republish_delay: Duration) -> Self

Sets the republish delay for the DHT.

+
Source

pub fn no_publish(self) -> Self

Disables publishing even if a secret key is set.

+
Source

pub fn set_addr_filter(self, filter: AddrFilter) -> Self

Sets a filter to control which addresses are published by this service.

+
Source

pub fn build(self) -> Result<DhtAddressLookup, AddressLookupBuilderError>

Builds the address lookup mechanism.

+

Trait Implementations§

Source§

impl AddressLookupBuilder for Builder

Source§

fn into_address_lookup( self, endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, filter: AddrFilter) -> Self

Sets a filter to control which addresses are published by this service Read more
Source§

impl Debug for Builder

Source§

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

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

impl Default for Builder

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.DhtAddressLookup.html b/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.DhtAddressLookup.html index 71a5720045..05dac9ca82 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.DhtAddressLookup.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/dht/struct.DhtAddressLookup.html @@ -1,14 +1,23 @@ -DhtAddressLookup in iroh::address_lookup::pkarr::dht - Rust

DhtAddressLookup

Struct DhtAddressLookup 

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

Pkarr Mainline DHT and relay server address lookup.

+DhtAddressLookup in iroh::address_lookup::pkarr::dht - Rust

DhtAddressLookup

Struct DhtAddressLookup 

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

Pkarr Mainline DHT and relay server address lookup.

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

This implements the AddressLookup trait to be used as an address lookup service which can be used as both a publisher and resolver. Calling DhtAddressLookup::publish will start a background task that periodically publishes the endpoint address.

-

Implementations§

Source§

impl DhtAddressLookup

Source

pub fn builder() -> Builder

Creates a new builder for DhtAddressLookup.

-

Trait Implementations§

Source§

impl AddressLookup for DhtAddressLookup

Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( +

By default, DhtAddressLookup will publish all addresses it receives: +direct IP addresses and relay URLs. No internal address limits or truncation +are applied.

+

You can supply an AddrFilter via Builder::set_addr_filter to +control which addresses are published.

+

Implementations§

Source§

impl DhtAddressLookup

Source

pub fn builder() -> Builder

Creates a new builder for DhtAddressLookup.

+

Trait Implementations§

Source§

impl AddressLookup for DhtAddressLookup

Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>>

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for DhtAddressLookup

Source§

fn clone(&self) -> DhtAddressLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DhtAddressLookup

Source§

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

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

impl Default for DhtAddressLookup

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for DhtAddressLookup

Source§

fn clone(&self) -> DhtAddressLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DhtAddressLookup

Source§

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

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

impl Default for DhtAddressLookup

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -28,11 +37,7 @@ a background task that periodically publishes the endpoint address.

U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/enum.PkarrError.html b/pr/3958/docs/iroh/address_lookup/pkarr/enum.PkarrError.html index 674b8ca39d..89501751b1 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/enum.PkarrError.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/enum.PkarrError.html @@ -1,4 +1,4 @@ -PkarrError in iroh::address_lookup::pkarr - Rust

PkarrError

Enum PkarrError 

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

PkarrError

Enum PkarrError 

Source
#[non_exhaustive]
pub enum PkarrError { PublicKey { source: PublicKeyError, meta: Meta, @@ -34,7 +34,7 @@
§

HttpRequest

Fields

§status: StatusCode
§meta: Meta

Captured call-site metadata

§

HttpPayload

Fields

§source: Error
§meta: Meta

Captured call-site metadata

§

Encoding

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for PkarrError

Source§

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

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

impl Display for PkarrError

Source§

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

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

impl Error for PkarrError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<PkarrError> for AnyError

Source§

fn from(value: PkarrError) -> AnyError

Converts to this type from the input type.
Source§

impl From<PkarrError> for Error

Source§

fn from(err: PkarrError) -> Self

Converts to this type from the input type.
Source§

impl StackError for PkarrError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for PkarrError

Source§

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

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

impl Display for PkarrError

Source§

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

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

impl Error for PkarrError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<PkarrError> for AnyError

Source§

fn from(value: PkarrError) -> AnyError

Converts to this type from the input type.
Source§

impl From<PkarrError> for Error

Source§

fn from(err: PkarrError) -> Self

Converts to this type from the input type.
Source§

impl StackError for PkarrError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/pkarr/index.html b/pr/3958/docs/iroh/address_lookup/pkarr/index.html index 9812c19ba2..5ae7d5f488 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/index.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/index.html @@ -1,4 +1,4 @@ -iroh::address_lookup::pkarr - Rust

Module pkarr

Module pkarr 

Source
Expand description

An address lookup service which publishes and resolves endpoint information using a pkarr relay.

+iroh::address_lookup::pkarr - Rust

Module pkarr

Module pkarr 

Source
Expand description

An address lookup service which publishes and resolves endpoint information using a pkarr relay.

Public-Key Addressable Resource Records, pkarr, is a system which allows publishing DNS Resource Records owned by a particular SecretKey under a name derived from its corresponding PublicKey, also known as the EndpointId. Additionally this pkarr @@ -20,6 +20,10 @@ the Mainline DHT on behalf on the client as well as cache lookups performed on t to improve performance.

+

PkarrPublisher publishes all addresses it receives by default, with no internal limiting. +You can supply an AddrFilter via PkarrPublisherBuilder::set_addr_filter to limit the kinds +and number of addresses that get published.

+

Note that PkarrResolver and address_lookup::DnsAddressLookup only resolve and do not publish, so filtering does not apply to them.

For address lookup in iroh the pkarr Resource Records contain the addressing information, providing endpoints which retrieve the pkarr Resource Record with enough detail to contact the iroh endpoint.

@@ -40,4 +44,4 @@ to the application’s needs:

as the Mainline DHT.

-

Modules§

dhtaddress-lookup-pkarr-dht
Pkarr based address lookup for iroh, supporting both relay servers and the DHT.

Structs§

PkarrPublisher
Publisher of address lookup information to a pkarr relay.
PkarrPublisherBuilder
Builder for PkarrPublisher.
PkarrRelayClient
A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.
PkarrResolver
Resolver of address lookup information from a pkarr relay.
PkarrResolverBuilder
Builder for PkarrResolver.

Enums§

PkarrError

Constants§

DEFAULT_PKARR_TTL
Default TTL for the records in the pkarr signed packet.
DEFAULT_REPUBLISH_INTERVAL
Interval in which to republish the endpoint info even if unchanged: 5 minutes.
N0_DNS_PKARR_RELAY_PROD
The production pkarr relay run by number 0.
N0_DNS_PKARR_RELAY_STAGING
The testing pkarr relay run by number 0.
\ No newline at end of file +

Modules§

dhtaddress-lookup-pkarr-dht
Pkarr based address lookup for iroh, supporting both relay servers and the DHT.

Structs§

PkarrPublisher
Publisher of address lookup information to a pkarr relay.
PkarrPublisherBuilder
Builder for PkarrPublisher.
PkarrRelayClient
A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.
PkarrRelayClientBuilder
A builder for the PkarrRelayClient
PkarrResolver
Resolver of address lookup information from a pkarr relay.
PkarrResolverBuilder
Builder for PkarrResolver.

Enums§

PkarrError

Constants§

DEFAULT_PKARR_TTL
Default TTL for the records in the pkarr signed packet.
DEFAULT_REPUBLISH_INTERVAL
Interval in which to republish the endpoint info even if unchanged: 5 minutes.
N0_DNS_PKARR_RELAY_PROD
The production pkarr relay run by number 0.
N0_DNS_PKARR_RELAY_STAGING
The testing pkarr relay run by number 0.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/sidebar-items.js b/pr/3958/docs/iroh/address_lookup/pkarr/sidebar-items.js index 400a6bc7cf..46dcce1f3d 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/sidebar-items.js +++ b/pr/3958/docs/iroh/address_lookup/pkarr/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["DEFAULT_PKARR_TTL","DEFAULT_REPUBLISH_INTERVAL","N0_DNS_PKARR_RELAY_PROD","N0_DNS_PKARR_RELAY_STAGING"],"enum":["PkarrError"],"mod":["dht"],"struct":["PkarrPublisher","PkarrPublisherBuilder","PkarrRelayClient","PkarrResolver","PkarrResolverBuilder"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["DEFAULT_PKARR_TTL","DEFAULT_REPUBLISH_INTERVAL","N0_DNS_PKARR_RELAY_PROD","N0_DNS_PKARR_RELAY_STAGING"],"enum":["PkarrError"],"mod":["dht"],"struct":["PkarrPublisher","PkarrPublisherBuilder","PkarrRelayClient","PkarrRelayClientBuilder","PkarrResolver","PkarrResolverBuilder"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisher.html b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisher.html index 95a62b4d39..02dd3d5ef6 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisher.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisher.html @@ -1,28 +1,32 @@ -PkarrPublisher in iroh::address_lookup::pkarr - Rust

PkarrPublisher

Struct PkarrPublisher 

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

Publisher of address lookup information to a pkarr relay.

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

PkarrPublisher

Struct PkarrPublisher 

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

Publisher of address lookup information to a pkarr relay.

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

This implements the AddressLookup trait to be used as an address lookup service. Note that it only publishes address lookup information, for the corresponding resolver use the PkarrResolver together with ConcurrentAddressLookup.

This publisher will only publish the RelayUrl if it is set, otherwise the direct addresses are published instead.

-

Implementations§

Source§

impl PkarrPublisher

Source

pub fn builder(pkarr_relay: Url) -> PkarrPublisherBuilder

Returns a PkarrPublisherBuilder that publishes endpoint info to a pkarr relay at pkarr_relay.

+

Implementations§

Source§

impl PkarrPublisher

Source

pub fn builder(pkarr_relay: Url) -> PkarrPublisherBuilder

Returns a PkarrPublisherBuilder that publishes endpoint info to a pkarr relay at pkarr_relay.

If no further options are set, the pkarr publisher will use DEFAULT_PKARR_TTL as the time-to-live value for the published packets, and it will republish Address Lookup information every DEFAULT_REPUBLISH_INTERVAL, even if the information is unchanged.

-

PkarrPublisherBuilder implements IntoAddressLookup, so it can be passed to address_lookup. +

PkarrPublisherBuilder implements AddressLookupBuilder, so it can be passed to address_lookup. It will then use the endpoint’s secret key to sign published packets.

-
Source

pub fn n0_dns() -> PkarrPublisherBuilder

Creates a pkarr publisher which uses the number 0 pkarr relay server.

+
Source

pub fn n0_dns() -> PkarrPublisherBuilder

Creates a pkarr publisher which uses the number 0 pkarr relay server.

This uses the pkarr relay server operated by number 0, at N0_DNS_PKARR_RELAY_PROD.

When running with the environment variable IROH_FORCE_STAGING_RELAYS set to any non empty value N0_DNS_PKARR_RELAY_STAGING server is used instead.

-
Source

pub fn update_endpoint_data(&self, data: &EndpointData)

Publishes the addressing information about this endpoint to a pkarr relay.

+
Source

pub fn update_endpoint_data(&self, data: &EndpointData)

Publishes the addressing information about this endpoint to a pkarr relay.

This is a nonblocking function, the actual update is performed in the background.

-

Trait Implementations§

Source§

impl AddressLookup for PkarrPublisher

Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( +

Trait Implementations§

Source§

impl AddressLookup for PkarrPublisher

Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( &self, _endpoint_id: EndpointId, -) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for PkarrPublisher

Source§

fn clone(&self) -> PkarrPublisher

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrPublisher

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for PkarrPublisher

Source§

fn clone(&self) -> PkarrPublisher

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrPublisher

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -42,11 +46,7 @@ server is used instead.

U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisherBuilder.html b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisherBuilder.html index e6be21376b..7dfa451886 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisherBuilder.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrPublisherBuilder.html @@ -1,16 +1,22 @@ -PkarrPublisherBuilder in iroh::address_lookup::pkarr - Rust

PkarrPublisherBuilder

Struct PkarrPublisherBuilder 

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

Builder for PkarrPublisher.

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

PkarrPublisherBuilder

Struct PkarrPublisherBuilder 

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

Implementations§

Source§

impl PkarrPublisherBuilder

Source

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

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

+

Implementations§

Source§

impl PkarrPublisherBuilder

Source

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

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

Default is DEFAULT_PKARR_TTL.

-
Source

pub fn republish_interval(self, republish_interval: Duration) -> Self

Sets the interval after which packets are republished even if our endpoint info did not change.

+
Source

pub fn republish_interval(self, republish_interval: Duration) -> Self

Sets the interval after which packets are republished even if our endpoint info did not change.

Default is DEFAULT_REPUBLISH_INTERVAL.

-
Source

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

Available on non-wasm_browser only.

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

-
Source

pub fn build(self, secret_key: SecretKey) -> PkarrPublisher

Builds the PkarrPublisher with the passed secret key for signing packets.

+
Source

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

Available on non-wasm_browser only.

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

+
Source

pub fn set_addr_filter(self, filter: AddrFilter) -> Self

Sets a filter to control which addresses are published by this service

+
Source

pub fn build( + self, + secret_key: SecretKey, + tls_config: ClientConfig, +) -> PkarrPublisher

Builds the PkarrPublisher with the passed secret key for signing packets.

This publisher will be able to publish [pkarr] records for SecretKey.

-

Trait Implementations§

Source§

impl Debug for PkarrPublisherBuilder

Source§

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

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

impl IntoAddressLookup for PkarrPublisherBuilder

Trait Implementations§

Source§

impl AddressLookupBuilder for PkarrPublisherBuilder

Source§

fn into_address_lookup( self, endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, filter: AddrFilter) -> Self
where + Self: Sized,

Sets a filter to control which addresses are published by this service Read more
Source§

impl Debug for PkarrPublisherBuilder

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClient.html b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClient.html index 1aebc073cb..a211ef5a81 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClient.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClient.html @@ -1,18 +1,20 @@ -PkarrRelayClient in iroh::address_lookup::pkarr - Rust

PkarrRelayClient

Struct PkarrRelayClient 

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

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

-

Implementations§

Source§

impl PkarrRelayClient

Source

pub fn new(pkarr_relay_url: Url) -> Self

Creates a new client.

-
Source

pub fn with_dns_resolver( +PkarrRelayClient in iroh::address_lookup::pkarr - Rust

PkarrRelayClient

Struct PkarrRelayClient 

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

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

+

Implementations§

Source§

impl PkarrRelayClient

Source

pub fn new(pkarr_relay_url: Url, tls_config: ClientConfig) -> Self

Create a new PkarrRelayClient with default settings.

+

Use the PkarrRelayClient::builder to get a builder that allows for +adding custom settings.

+
Source

pub fn builder( pkarr_relay_url: Url, - dns_resolver: DnsResolver, -) -> Self

Available on non-wasm_browser only.

Creates a new client while passing a DNS resolver to use.

-
Source

pub async fn resolve( + tls_config: ClientConfig, +) -> PkarrRelayClientBuilder

Source

pub async fn resolve( &self, endpoint_id: EndpointId, ) -> Result<SignedPacket, AddressLookupError>

Resolves a [SignedPacket] for the given EndpointId.

-
Source

pub async fn publish( +

Source

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

Publishes a [SignedPacket].

-

Trait Implementations§

Source§

impl Clone for PkarrRelayClient

Source§

fn clone(&self) -> PkarrRelayClient

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrRelayClient

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for PkarrRelayClient

Source§

fn clone(&self) -> PkarrRelayClient

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrRelayClient

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClientBuilder.html b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClientBuilder.html new file mode 100644 index 0000000000..a36791fe33 --- /dev/null +++ b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrRelayClientBuilder.html @@ -0,0 +1,45 @@ +PkarrRelayClientBuilder in iroh::address_lookup::pkarr - Rust

PkarrRelayClientBuilder

Struct PkarrRelayClientBuilder 

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

A builder for the PkarrRelayClient

+

Implementations§

Source§

impl PkarrRelayClientBuilder

Source

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

Available on non-wasm_browser only.

Passes an optional DNS resolver for the client to use.

+
Source

pub fn build(self) -> PkarrRelayClient

Build a PkarrRelayClient.

+

Trait Implementations§

Source§

impl Clone for PkarrRelayClientBuilder

Source§

fn clone(&self) -> PkarrRelayClientBuilder

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrRelayClientBuilder

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> DynClone for T
where + T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+
§

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

§

fn from_ref(input: &T) -> T

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

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where + U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

+

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

+
Source§

impl<T> IntoEither for T

Source§

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

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

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

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

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where + T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where + S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolver.html b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolver.html index 7503fe7c7d..4ee7e8ed15 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolver.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolver.html @@ -1,21 +1,25 @@ -PkarrResolver in iroh::address_lookup::pkarr - Rust

PkarrResolver

Struct PkarrResolver 

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

Resolver of address lookup information from a pkarr relay.

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

PkarrResolver

Struct PkarrResolver 

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

Resolver of address lookup information from a pkarr relay.

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

This implements the AddressLookup trait to be used as an address lookup service. Note that it only resolves address lookup information, for the corresponding publisher use the PkarrPublisher together with ConcurrentAddressLookup.

-

Implementations§

Source§

impl PkarrResolver

Source

pub fn builder(pkarr_relay: Url) -> PkarrResolverBuilder

Creates a new resolver builder using the pkarr relay server at the URL.

-

The builder implements IntoAddressLookup.

-
Source

pub fn n0_dns() -> PkarrResolverBuilder

Creates a pkarr resolver builder which uses the number 0 pkarr relay server.

+

Implementations§

Source§

impl PkarrResolver

Source

pub fn builder(pkarr_relay: Url) -> PkarrResolverBuilder

Creates a new resolver builder using the pkarr relay server at the URL.

+

The builder implements AddressLookupBuilder.

+
Source

pub fn n0_dns() -> PkarrResolverBuilder

Creates a pkarr resolver builder which uses the number 0 pkarr relay server.

This uses the pkarr relay server operated by number 0 at N0_DNS_PKARR_RELAY_PROD.

When running with the environment variable IROH_FORCE_STAGING_RELAYS set to any non empty value N0_DNS_PKARR_RELAY_STAGING server is used instead.

-

Trait Implementations§

Trait Implementations§

Source§

impl AddressLookup for PkarrResolver

Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>>

Resolves the Item for the given EndpointId. Read more
Source§

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

impl Clone for PkarrResolver

Source§

fn clone(&self) -> PkarrResolver

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrResolver

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Resolves the Item for the given EndpointId. Read more
Source§

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

impl Clone for PkarrResolver

Source§

fn clone(&self) -> PkarrResolver

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PkarrResolver

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -35,11 +39,7 @@ server is used instead.

U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolverBuilder.html b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolverBuilder.html index 32061012fe..d6a0f879d3 100644 --- a/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolverBuilder.html +++ b/pr/3958/docs/iroh/address_lookup/pkarr/struct.PkarrResolverBuilder.html @@ -1,11 +1,12 @@ -PkarrResolverBuilder in iroh::address_lookup::pkarr - Rust

PkarrResolverBuilder

Struct PkarrResolverBuilder 

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

Builder for PkarrResolver.

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

PkarrResolverBuilder

Struct PkarrResolverBuilder 

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

Implementations§

Source§

impl PkarrResolverBuilder

Source

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

Available on non-wasm_browser only.

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

-
Source

pub fn build(self) -> PkarrResolver

Creates a PkarrResolver from this builder.

-

Trait Implementations§

Source§

impl Debug for PkarrResolverBuilder

Source§

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

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

impl IntoAddressLookup for PkarrResolverBuilder

Implementations§

Source§

impl PkarrResolverBuilder

Source

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

Available on non-wasm_browser only.

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

+
Source

pub fn build(self, tls_config: ClientConfig) -> PkarrResolver

Creates a PkarrResolver from this builder.

+

Trait Implementations§

Source§

impl AddressLookupBuilder for PkarrResolverBuilder

Source§

fn with_addr_filter(self, _filter: AddrFilter) -> Self

no-op: resolver does not publish

+
Source§

fn into_address_lookup( self, endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl Debug for PkarrResolverBuilder

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3958/docs/iroh/address_lookup/sidebar-items.js b/pr/3958/docs/iroh/address_lookup/sidebar-items.js index 256a9a6580..a80ededc1c 100644 --- a/pr/3958/docs/iroh/address_lookup/sidebar-items.js +++ b/pr/3958/docs/iroh/address_lookup/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["Error","IntoAddressLookupError","ParseError"],"mod":["dns","mdns","memory","pkarr"],"struct":["ConcurrentAddressLookup","EndpointData","EndpointInfo","Item","UserData"],"trait":["AddressLookup","IntoAddressLookup"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["AddressLookupBuilderError","Error","ParseError"],"mod":["dns","mdns","memory","pkarr"],"struct":["AddrFilter","ConcurrentAddressLookup","EndpointData","EndpointInfo","Item","UserData"],"trait":["AddressLookup","AddressLookupBuilder"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/struct.AddrFilter.html b/pr/3958/docs/iroh/address_lookup/struct.AddrFilter.html new file mode 100644 index 0000000000..18e77ad3d0 --- /dev/null +++ b/pr/3958/docs/iroh/address_lookup/struct.AddrFilter.html @@ -0,0 +1,56 @@ +AddrFilter in iroh::address_lookup - Rust

AddrFilter

Struct AddrFilter 

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

A filter and/or reordering function applied to transport addresses, +typically used by AddressLookup services in iroh before publishing.

+

Takes the full set of transport addresses and returns them as an ordered Vec, +allowing both filtering (by omitting addresses) and reordering (by controlling +the output order). A BTreeSet cannot preserve a custom order, so the return +type is Vec to make reordering possible.

+

See the documentation for each address lookup implementation for details on +what additional filtering the implementation may perform on top.

+

Implementations§

Source§

impl AddrFilter

Source

pub fn new( + f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, +) -> AddrFilter

Create a new AddrFilter

+
Source

pub fn relay_only() -> AddrFilter

Only keep relay addresses.

+
Source

pub fn ip_only() -> AddrFilter

Only keep direct IP addresses.

+
Source

pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>

Apply the address filter function to a set of addresses.

+

Trait Implementations§

Source§

impl Clone for AddrFilter

Source§

fn clone(&self) -> AddrFilter

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AddrFilter

Source§

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

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

impl Default for AddrFilter

Source§

fn default() -> AddrFilter

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> DynClone for T
where + T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+
§

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

§

fn from_ref(input: &T) -> T

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

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where + U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

+

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

+
Source§

impl<T> IntoEither for T

Source§

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

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

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

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

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where + T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where + S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/struct.ConcurrentAddressLookup.html b/pr/3958/docs/iroh/address_lookup/struct.ConcurrentAddressLookup.html index 2ac53f880b..1f3c54ad49 100644 --- a/pr/3958/docs/iroh/address_lookup/struct.ConcurrentAddressLookup.html +++ b/pr/3958/docs/iroh/address_lookup/struct.ConcurrentAddressLookup.html @@ -1,19 +1,23 @@ -ConcurrentAddressLookup in iroh::address_lookup - Rust

ConcurrentAddressLookup

Struct ConcurrentAddressLookup 

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

An Address Lookup service that combines multiple Address Lookup sources.

+ConcurrentAddressLookup in iroh::address_lookup - Rust

ConcurrentAddressLookup

Struct ConcurrentAddressLookup 

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

An Address Lookup service that combines multiple Address Lookup sources.

The Address Lookup will resolve concurrently.

-

Implementations§

Source§

impl ConcurrentAddressLookup

Source

pub fn empty() -> Self

Creates an empty ConcurrentAddressLookup.

-
Source

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

Creates a new ConcurrentAddressLookup.

-
Source

pub fn add(&self, service: impl AddressLookup + 'static)

Adds an AddressLookup service.

+

Implementations§

Source§

impl ConcurrentAddressLookup

Source

pub fn empty() -> Self

Creates an empty ConcurrentAddressLookup.

+
Source

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

Creates a new ConcurrentAddressLookup.

+
Source

pub fn add(&self, service: impl AddressLookup + 'static)

Adds an AddressLookup service.

If there is historical Address Lookup data, it will be published immediately on this service.

-
Source

pub fn add_boxed(&self, service: Box<dyn AddressLookup>)

Adds an already Boxed AddressLookup service.

+
Source

pub fn add_boxed(&self, service: Box<dyn AddressLookup>)

Adds an already Boxed AddressLookup service.

If there is historical Address Lookup data, it will be published immediately on this service.

-
Source

pub fn is_empty(&self) -> bool

Are there any services configured?

-
Source

pub fn len(&self) -> usize

Returns the number of services configured.

-
Source

pub fn clear(&self)

Removes all configured services.

-

Trait Implementations§

Source§

impl AddressLookup for ConcurrentAddressLookup

Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( +

Source

pub fn is_empty(&self) -> bool

Are there any services configured?

+
Source

pub fn len(&self) -> usize

Returns the number of services configured.

+
Source

pub fn clear(&self)

Removes all configured services.

+

Trait Implementations§

Source§

impl AddressLookup for ConcurrentAddressLookup

Source§

fn publish(&self, data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism. Read more
Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for ConcurrentAddressLookup

Source§

fn clone(&self) -> ConcurrentAddressLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ConcurrentAddressLookup

Source§

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

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

impl Default for ConcurrentAddressLookup

Source§

fn default() -> ConcurrentAddressLookup

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

impl<T> From<T> for ConcurrentAddressLookup
where - T: IntoIterator<Item = Box<dyn AddressLookup>>,

Source§

fn from(iter: T) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId. Read more
Source§

impl Clone for ConcurrentAddressLookup

Source§

fn clone(&self) -> ConcurrentAddressLookup

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ConcurrentAddressLookup

Source§

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

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

impl Default for ConcurrentAddressLookup

Source§

fn default() -> ConcurrentAddressLookup

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

impl<T> From<T> for ConcurrentAddressLookup
where + T: IntoIterator<Item = Box<dyn AddressLookup>>,

Source§

fn from(iter: T) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddressLookupBuilder for T
where + T: AddressLookup,

Source§

fn into_address_lookup( + self, + _endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

fn with_addr_filter(self, _filter: AddrFilter) -> T

Sets a filter to control which addresses are published by this service Read more
Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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( @@ -33,11 +37,7 @@ U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

-
Source§

impl<T> IntoAddressLookup for T
where - T: AddressLookup,

Source§

fn into_address_lookup( - self, - _endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup. Read more
Source§

impl<T> IntoEither for T

Source§

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

Converts self into a Left variant of Either<Self, Self> +
Source§

impl<T> IntoEither for T

Source§

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

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where diff --git a/pr/3958/docs/iroh/address_lookup/struct.EndpointData.html b/pr/3958/docs/iroh/address_lookup/struct.EndpointData.html index d1e92d14df..d3d2a057f4 100644 --- a/pr/3958/docs/iroh/address_lookup/struct.EndpointData.html +++ b/pr/3958/docs/iroh/address_lookup/struct.EndpointData.html @@ -1,24 +1,26 @@ -EndpointData in iroh::address_lookup - Rust

EndpointData

Struct EndpointData 

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

Data about an endpoint that may be published to and resolved from discovery services.

+EndpointData in iroh::address_lookup - Rust

EndpointData

Struct EndpointData 

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

Data about an endpoint that may be published to and resolved from discovery services.

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

This struct does not include the endpoint’s EndpointId, only the data about a certain endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.

-

Implementations§

Source§

impl EndpointData

Source

pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData

Creates a new EndpointData with a relay URL and a set of direct addresses.

-
Source

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

Sets the relay URL and returns the updated endpoint data.

-
Source

pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData

Sets the direct addresses and returns the updated endpoint data.

-
Source

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

Sets the user-defined data and returns the updated endpoint data.

-
Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

-
Source

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

Returns the optional user-defined data of the endpoint.

-
Source

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

Returns the direct addresses of the endpoint.

-
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

-
Source

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

Sets the user-defined data of the endpoint data.

-
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

-
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

-

Trait Implementations§

Source§

impl Clone for EndpointData

Source§

fn clone(&self) -> EndpointData

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointData

Source§

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

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

impl Default for EndpointData

Source§

fn default() -> EndpointData

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

impl From<EndpointAddr> for EndpointData

Source§

fn from(endpoint_addr: EndpointAddr) -> EndpointData

Converts to this type from the input type.
Source§

impl PartialEq for EndpointData

Source§

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

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

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

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

impl Eq for EndpointData

Source§

impl StructuralPartialEq for EndpointData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Implementations§

Source§

impl EndpointData

Source

pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData

Creates a new EndpointData with a relay URL and a set of direct addresses.

+
Source

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

Sets the relay URL and returns the updated endpoint data.

+
Source

pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData

Sets the direct addresses and returns the updated endpoint data.

+
Source

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

Sets the user-defined data and returns the updated endpoint data.

+
Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

+
Source

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

Returns the optional user-defined data of the endpoint.

+
Source

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

Returns the direct addresses of the endpoint.

+
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

+
Source

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

Sets the user-defined data of the endpoint data.

+
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

+
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

+
Source

pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

Apply the given filter to the current addresses.

+

Returns a vec to allow re-ordering of addresses.

+

Trait Implementations§

Source§

impl Clone for EndpointData

Source§

fn clone(&self) -> EndpointData

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointData

Source§

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

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

impl Default for EndpointData

Source§

fn default() -> EndpointData

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

impl From<EndpointAddr> for EndpointData

Source§

fn from(endpoint_addr: EndpointAddr) -> EndpointData

Converts to this type from the input type.
Source§

impl PartialEq for EndpointData

Source§

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

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

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

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

impl Eq for EndpointData

Source§

impl StructuralPartialEq for EndpointData

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/struct.EndpointInfo.html b/pr/3958/docs/iroh/address_lookup/struct.EndpointInfo.html index 333b720b45..623c3442bf 100644 --- a/pr/3958/docs/iroh/address_lookup/struct.EndpointInfo.html +++ b/pr/3958/docs/iroh/address_lookup/struct.EndpointInfo.html @@ -1,42 +1,44 @@ -EndpointInfo in iroh::address_lookup - Rust

EndpointInfo

Struct EndpointInfo 

Source
pub struct EndpointInfo {
+EndpointInfo in iroh::address_lookup - Rust

EndpointInfo

Struct EndpointInfo 

Source
pub struct EndpointInfo {
     pub endpoint_id: PublicKey,
     pub data: EndpointData,
 }
Expand description

Information about an endpoint that may be published to and resolved from discovery services.

This struct couples a EndpointId with its associated EndpointData.

Fields§

§endpoint_id: PublicKey

The EndpointId of the endpoint this is about.

§data: EndpointData

The information published about the endpoint.

-

Implementations§

Source§

impl EndpointInfo

Source

pub fn new(endpoint_id: PublicKey) -> EndpointInfo

Creates a new EndpointInfo with an empty EndpointData.

-
Source

pub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo

Creates a new EndpointInfo from its parts.

-
Source

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

Sets the relay URL and returns the updated endpoint info.

-
Source

pub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo

Sets the IP based addresses and returns the updated endpoint info.

-
Source

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

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

-
Source

pub fn to_endpoint_addr(&self) -> EndpointAddr

Converts into a EndpointAddr by cloning the needed fields.

-
Source

pub fn into_endpoint_addr(self) -> EndpointAddr

Converts into a EndpointAddr without cloning.

-
Source

pub fn from_txt_lookup( +

Implementations§

Source§

impl EndpointInfo

Source

pub fn new(endpoint_id: PublicKey) -> EndpointInfo

Creates a new EndpointInfo with an empty EndpointData.

+
Source

pub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo

Creates a new EndpointInfo from its parts.

+
Source

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

Sets the relay URL and returns the updated endpoint info.

+
Source

pub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo

Sets the IP based addresses and returns the updated endpoint info.

+
Source

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

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

+
Source

pub fn to_endpoint_addr(&self) -> EndpointAddr

Converts into a EndpointAddr by cloning the needed fields.

+
Source

pub fn into_endpoint_addr(self) -> EndpointAddr

Converts into a EndpointAddr without cloning.

+
Source

pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, ) -> Result<EndpointInfo, ParseError>

Parses a EndpointInfo from DNS TXT lookup.

-
Source

pub fn from_pkarr_signed_packet( +

Source

pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<EndpointInfo, ParseError>

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

-
Source

pub fn to_pkarr_signed_packet( +

Source

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

Creates a [pkarr::SignedPacket].

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

-
Source

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

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

-

Methods from Deref<Target = EndpointData>§

Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

-
Source

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

Returns the optional user-defined data of the endpoint.

-
Source

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

Returns the direct addresses of the endpoint.

-
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

-
Source

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

Sets the user-defined data of the endpoint data.

-
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

-
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

-

Trait Implementations§

Source§

impl Clone for EndpointInfo

Source§

fn clone(&self) -> EndpointInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointInfo

Source§

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

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

impl Deref for EndpointInfo

Source§

type Target = EndpointData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for EndpointInfo

Source§

fn deref_mut(&mut self) -> &mut <EndpointInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointAddr> for EndpointInfo

Source§

fn from(addr: EndpointAddr) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointInfo> for EndpointAddr

Source§

fn from(value: EndpointInfo) -> EndpointAddr

Converts to this type from the input type.
Source§

impl From<Item> for EndpointInfo

Source§

fn from(item: Item) -> Self

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl PartialEq for EndpointInfo

Source§

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

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

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

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

impl Eq for EndpointInfo

Source§

impl StructuralPartialEq for EndpointInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Source

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

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

+

Methods from Deref<Target = EndpointData>§

Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

+
Source

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

Returns the optional user-defined data of the endpoint.

+
Source

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

Returns the direct addresses of the endpoint.

+
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

+
Source

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

Sets the user-defined data of the endpoint data.

+
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

+
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

+
Source

pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

Apply the given filter to the current addresses.

+

Returns a vec to allow re-ordering of addresses.

+

Trait Implementations§

Source§

impl Clone for EndpointInfo

Source§

fn clone(&self) -> EndpointInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointInfo

Source§

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

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

impl Deref for EndpointInfo

Source§

type Target = EndpointData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for EndpointInfo

Source§

fn deref_mut(&mut self) -> &mut <EndpointInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointAddr> for EndpointInfo

Source§

fn from(addr: EndpointAddr) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointInfo> for EndpointAddr

Source§

fn from(value: EndpointInfo) -> EndpointAddr

Converts to this type from the input type.
Source§

impl From<Item> for EndpointInfo

Source§

fn from(item: Item) -> Self

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl PartialEq for EndpointInfo

Source§

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

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

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

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

impl Eq for EndpointInfo

Source§

impl StructuralPartialEq for EndpointInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/struct.Item.html b/pr/3958/docs/iroh/address_lookup/struct.Item.html index 66ebde84fc..fd9baf03d6 100644 --- a/pr/3958/docs/iroh/address_lookup/struct.Item.html +++ b/pr/3958/docs/iroh/address_lookup/struct.Item.html @@ -1,31 +1,33 @@ -Item in iroh::address_lookup - Rust

Item

Struct Item 

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

Address lookup results from AddressLookups.

+Item in iroh::address_lookup - Rust

Item

Struct Item 

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

Address lookup results from AddressLookups.

This is the item in the streams returned from AddressLookup::resolve. It contains the EndpointData about the resolved endpoint addresses, and some additional metadata about the address lookup system.

This struct derefs to EndpointData, so you can access the methods from EndpointData directly from Item.

-

Implementations§

Source§

impl Item

Source

pub fn new( +

Implementations§

Source§

impl Item

Source

pub fn new( endpoint_info: EndpointInfo, provenance: &'static str, last_updated: Option<u64>, ) -> Self

Creates a new Item from a EndpointInfo.

-
Source

pub fn endpoint_id(&self) -> EndpointId

Returns the endpoint id of the discovered endpoint.

-
Source

pub fn endpoint_info(&self) -> &EndpointInfo

Returns the EndpointInfo for the discovered endpoint.

-
Source

pub fn provenance(&self) -> &'static str

Returns the provenance of this Address Lookup item.

+
Source

pub fn endpoint_id(&self) -> EndpointId

Returns the endpoint id of the discovered endpoint.

+
Source

pub fn endpoint_info(&self) -> &EndpointInfo

Returns the EndpointInfo for the discovered endpoint.

+
Source

pub fn provenance(&self) -> &'static str

Returns the provenance of this Address Lookup item.

The provenance is a static string which identifies the Address Lookup service that produced this item.

-
Source

pub fn last_updated(&self) -> Option<u64>

Returns the optional timestamp when this endpoint info was last updated.

+
Source

pub fn last_updated(&self) -> Option<u64>

Returns the optional timestamp when this endpoint info was last updated.

The value is microseconds since the unix epoch.

-
Source

pub fn to_endpoint_addr(&self) -> EndpointAddr

Converts into a EndpointAddr by cloning the needed fields.

-
Source

pub fn into_endpoint_addr(self) -> EndpointAddr

Converts into a EndpointAddr without cloning.

-
Source

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

Returns any user-defined data.

-

Methods from Deref<Target = EndpointData>§

Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

-
Source

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

Returns the optional user-defined data of the endpoint.

-
Source

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

Returns the direct addresses of the endpoint.

-
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

-
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

-

Trait Implementations§

Source§

impl Clone for Item

Source§

fn clone(&self) -> Item

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Item

Source§

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

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

impl Deref for Item

Source§

type Target = EndpointData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl From<Item> for EndpointInfo

Source§

fn from(item: Item) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Item

Source§

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

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

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

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

impl Eq for Item

Source§

impl StructuralPartialEq for Item

Auto Trait Implementations§

§

impl Freeze for Item

§

impl RefUnwindSafe for Item

§

impl Send for Item

§

impl Sync for Item

§

impl Unpin for Item

§

impl UnwindSafe for Item

Blanket Implementations§

Source§

impl<T> Any for T
where +

Source

pub fn to_endpoint_addr(&self) -> EndpointAddr

Converts into a EndpointAddr by cloning the needed fields.

+
Source

pub fn into_endpoint_addr(self) -> EndpointAddr

Converts into a EndpointAddr without cloning.

+
Source

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

Returns any user-defined data.

+

Methods from Deref<Target = EndpointData>§

Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

+
Source

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

Returns the optional user-defined data of the endpoint.

+
Source

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

Returns the direct addresses of the endpoint.

+
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

+
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

+
Source

pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

Apply the given filter to the current addresses.

+

Returns a vec to allow re-ordering of addresses.

+

Trait Implementations§

Source§

impl Clone for Item

Source§

fn clone(&self) -> Item

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Item

Source§

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

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

impl Deref for Item

Source§

type Target = EndpointData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl From<Item> for EndpointInfo

Source§

fn from(item: Item) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Item

Source§

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

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

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

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

impl Eq for Item

Source§

impl StructuralPartialEq for Item

Auto Trait Implementations§

§

impl Freeze for Item

§

impl RefUnwindSafe for Item

§

impl Send for Item

§

impl Sync for Item

§

impl Unpin for Item

§

impl UnwindSafe for Item

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/struct.UserData.html b/pr/3958/docs/iroh/address_lookup/struct.UserData.html index f58b6ef094..b764f14d35 100644 --- a/pr/3958/docs/iroh/address_lookup/struct.UserData.html +++ b/pr/3958/docs/iroh/address_lookup/struct.UserData.html @@ -1,24 +1,24 @@ -UserData in iroh::address_lookup - Rust

UserData

Struct UserData 

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

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

+UserData in iroh::address_lookup - Rust

UserData

Struct UserData 

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

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

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

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

-

Implementations§

Source§

impl UserData

Source

pub const MAX_LENGTH: usize = 245usize

The max byte length allowed for user-defined data.

+

Implementations§

Source§

impl UserData

Source

pub const MAX_LENGTH: usize = 245usize

The max byte length allowed for user-defined data.

In DNS discovery services, the user-defined data is stored in a TXT record character string, which has a max length of 255 bytes. We need to subtract the user-data= prefix, which leaves 245 bytes for the actual user-defined data.

-

Trait Implementations§

Source§

impl AsRef<str> for UserData

Source§

fn as_ref(&self) -> &str

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

impl Clone for UserData

Source§

fn clone(&self) -> UserData

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for UserData

Source§

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

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

impl Display for UserData

Source§

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

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

impl FromStr for UserData

Source§

type Err = MaxLengthExceededError

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

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

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

impl Hash for UserData

Source§

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

Trait Implementations§

Source§

impl AsRef<str> for UserData

Source§

fn as_ref(&self) -> &str

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

impl Clone for UserData

Source§

fn clone(&self) -> UserData

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for UserData

Source§

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

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

impl Display for UserData

Source§

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

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

impl FromStr for UserData

Source§

type Err = MaxLengthExceededError

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

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

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

impl Hash for UserData

Source§

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

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

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

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

impl Ord for UserData

Source§

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

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

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

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

impl Ord for UserData

Source§

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

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

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

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

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

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

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

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

impl PartialEq for UserData

Source§

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

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

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

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

impl PartialOrd for UserData

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

impl PartialEq for UserData

Source§

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

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

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

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

impl PartialOrd for UserData

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl TryFrom<String> for UserData

Source§

type Error = MaxLengthExceededError

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

fn try_from( +the >= operator. Read more

Source§

impl TryFrom<String> for UserData

Source§

type Error = MaxLengthExceededError

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

fn try_from( value: String, -) -> Result<UserData, <UserData as TryFrom<String>>::Error>

Performs the conversion.
Source§

impl Eq for UserData

Source§

impl StructuralPartialEq for UserData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Performs the conversion.
Source§

impl Eq for UserData

Source§

impl StructuralPartialEq for UserData

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/address_lookup/trait.AddressLookup.html b/pr/3958/docs/iroh/address_lookup/trait.AddressLookup.html index 432a8a48eb..e121a2ed52 100644 --- a/pr/3958/docs/iroh/address_lookup/trait.AddressLookup.html +++ b/pr/3958/docs/iroh/address_lookup/trait.AddressLookup.html @@ -1,4 +1,4 @@ -AddressLookup in iroh::address_lookup - Rust

AddressLookup

Trait AddressLookup 

Source
pub trait AddressLookup:
+AddressLookup in iroh::address_lookup - Rust

AddressLookup

Trait AddressLookup 

Source
pub trait AddressLookup:
     Debug
     + Send
     + Sync
@@ -20,18 +20,18 @@ addresses. See super::Endpoint will call publish whenever
 Address Lookup information changes. If an Address Lookup mechanism requires a periodic
 refresh, it should start its own task.

-

Provided Methods§

Source

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism.

+

Provided Methods§

Source

fn publish(&self, _data: &EndpointData)

Publishes the given EndpointData to the Address Lookup mechanism.

This is fire and forget, since the Endpoint can not wait for successful publishing. If publishing is async, the implementation should start it’s own task.

This will be called from a tokio task, so it is safe to spawn new tasks. These tasks will be run on the runtime of the super::Endpoint.

-
Source

fn resolve( +

Source

fn resolve( &self, _endpoint_id: EndpointId, ) -> Option<BoxStream<Result<Item, Error>>>

Resolves the Item for the given EndpointId.

Once the returned [BoxStream] is dropped, the service should stop any pending work.

-

Implementations on Foreign Types§

Source§

impl<T: AddressLookup> AddressLookup for Arc<T>

Implementations on Foreign Types§

Source§

impl<T: AddressLookup> AddressLookup for Arc<T>

Source§

fn publish(&self, data: &EndpointData)

Source§

fn resolve( &self, endpoint_id: EndpointId, -) -> Option<BoxStream<Result<Item, Error>>>

Implementors§

Source§

impl AddressLookup for DnsAddressLookup

Available on non-wasm_browser only.
Source§

impl AddressLookup for MdnsAddressLookup

Available on crate feature address-lookup-mdns only.
Source§

impl AddressLookup for MemoryLookup

Source§

impl AddressLookup for DhtAddressLookup

Available on crate feature address-lookup-pkarr-dht only.
Source§

impl AddressLookup for PkarrPublisher

Source§

impl AddressLookup for PkarrResolver

Source§

impl AddressLookup for ConcurrentAddressLookup

\ No newline at end of file +) -> Option<BoxStream<Result<Item, Error>>>

Implementors§

Source§

impl AddressLookup for DnsAddressLookup

Available on non-wasm_browser only.
Source§

impl AddressLookup for MdnsAddressLookup

Available on crate feature address-lookup-mdns only.
Source§

impl AddressLookup for MemoryLookup

Source§

impl AddressLookup for DhtAddressLookup

Available on crate feature address-lookup-pkarr-dht only.
Source§

impl AddressLookup for PkarrPublisher

Source§

impl AddressLookup for PkarrResolver

Source§

impl AddressLookup for ConcurrentAddressLookup

\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/trait.AddressLookupBuilder.html b/pr/3958/docs/iroh/address_lookup/trait.AddressLookupBuilder.html new file mode 100644 index 0000000000..a7ab29286d --- /dev/null +++ b/pr/3958/docs/iroh/address_lookup/trait.AddressLookupBuilder.html @@ -0,0 +1,32 @@ +AddressLookupBuilder in iroh::address_lookup - Rust

AddressLookupBuilder

Trait AddressLookupBuilder 

Source
pub trait AddressLookupBuilder:
+    Send
+    + Sync
+    + Debug
+    + 'static {
+    // Required methods
+    fn into_address_lookup(
+        self,
+        endpoint: &Endpoint,
+    ) -> Result<impl AddressLookup, AddressLookupBuilderError>;
+    fn with_addr_filter(self, filter: AddrFilter) -> Self
+       where Self: Sized;
+}
Expand description

Trait for structs that can be converted into AddressLookups.

+

This trait is implemented on builders for Address Lookup’s. Any type that implements this +trait can be added as a Address Lookup in Builder::address_lookup.

+

Any type that implements AddressLookup also implements AddressLookupBuilder.

+

Iroh uses this trait to allow configuring the set of address lookup services on +the endpoint builder, while also providing them access to information about the +endpoint to AddressLookupBuilder::into_address_lookup.

+

Required Methods§

Source

fn into_address_lookup( + self, + endpoint: &Endpoint, +) -> Result<impl AddressLookup, AddressLookupBuilderError>

Turns this AddressLookup builder into a ready-to-use Address Lookup.

+

If an error is returned, building the endpoint will fail with this error.

+
Source

fn with_addr_filter(self, filter: AddrFilter) -> Self
where + Self: Sized,

Sets a filter to control which addresses are published by this service

+

The filter receives the full set of transport addresses and returns them +as an ordered Vec, allowing both filtering (by omitting addresses) and +prioritization (by controlling output order). The service may apply +additional filtering on top based on its own constraints.

+

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl AddressLookupBuilder for DnsAddressLookupBuilder

Available on non-wasm_browser only.
Source§

impl AddressLookupBuilder for MdnsAddressLookupBuilder

Available on crate feature address-lookup-mdns only.
Source§

impl AddressLookupBuilder for Builder

Available on crate feature address-lookup-pkarr-dht only.
Source§

impl AddressLookupBuilder for PkarrPublisherBuilder

Source§

impl AddressLookupBuilder for PkarrResolverBuilder

Source§

impl<T: AddressLookup> AddressLookupBuilder for T

Blanket no-op impl of AddressLookupBuilder for T: AddressLookup.

+
\ No newline at end of file diff --git a/pr/3958/docs/iroh/address_lookup/trait.IntoAddressLookup.html b/pr/3958/docs/iroh/address_lookup/trait.IntoAddressLookup.html deleted file mode 100644 index 7188005e77..0000000000 --- a/pr/3958/docs/iroh/address_lookup/trait.IntoAddressLookup.html +++ /dev/null @@ -1,24 +0,0 @@ -IntoAddressLookup in iroh::address_lookup - Rust

IntoAddressLookup

Trait IntoAddressLookup 

Source
pub trait IntoAddressLookup:
-    Send
-    + Sync
-    + Debug
-    + 'static {
-    // Required method
-    fn into_address_lookup(
-        self,
-        endpoint: &Endpoint,
-    ) -> Result<impl AddressLookup, IntoAddressLookupError>;
-}
Expand description

Trait for structs that can be converted into AddressLookups.

-

This trait is implemented on builders for Address Lookup’s. Any type that implements this -trait can be added as a Address Lookup in Builder::address_lookup.

-

Any type that implements AddressLookup also implements IntoAddressLookup.

-

Iroh uses this trait to allow configuring the set of address lookup services on -the endpoint builder, while also providing them access to information about the -endpoint to IntoAddressLookup::into_address_lookup.

-

Required Methods§

Source

fn into_address_lookup( - self, - endpoint: &Endpoint, -) -> Result<impl AddressLookup, IntoAddressLookupError>

Turns this AddressLookup builder into a ready-to-use Address Lookup.

-

If an error is returned, building the endpoint will fail with this error.

-

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl IntoAddressLookup for DnsAddressLookupBuilder

Available on non-wasm_browser only.
Source§

impl IntoAddressLookup for MdnsAddressLookupBuilder

Available on crate feature address-lookup-mdns only.
Source§

impl IntoAddressLookup for Builder

Available on crate feature address-lookup-pkarr-dht only.
Source§

impl IntoAddressLookup for PkarrPublisherBuilder

Source§

impl IntoAddressLookup for PkarrResolverBuilder

Source§

impl<T: AddressLookup> IntoAddressLookup for T

Blanket no-op impl of IntoAddressLookup for T: AddressLookup.

-
\ No newline at end of file diff --git a/pr/3958/docs/iroh/all.html b/pr/3958/docs/iroh/all.html index 4452328edc..60bb24dd3f 100644 --- a/pr/3958/docs/iroh/all.html +++ b/pr/3958/docs/iroh/all.html @@ -1 +1 @@ -List of all items in this crate

All

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

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

All

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

\ No newline at end of file diff --git a/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html b/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html index edbafeb3ce..1eb65ce8b9 100644 --- a/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html +++ b/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_ENDPOINT_ORIGIN_PROD in iroh::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_PROD

Constant N0_DNS_ENDPOINT_ORIGIN_PROD 

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

The n0 testing DNS endpoint origin, for production.

+N0_DNS_ENDPOINT_ORIGIN_PROD in iroh::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_PROD

Constant N0_DNS_ENDPOINT_ORIGIN_PROD 

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

The n0 testing DNS endpoint origin, for production.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html b/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html index e1ffb45719..1afc6b794e 100644 --- a/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html +++ b/pr/3958/docs/iroh/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_ENDPOINT_ORIGIN_STAGING in iroh::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_STAGING

Constant N0_DNS_ENDPOINT_ORIGIN_STAGING 

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

The n0 testing DNS endpoint origin, for testing.

+N0_DNS_ENDPOINT_ORIGIN_STAGING in iroh::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_STAGING

Constant N0_DNS_ENDPOINT_ORIGIN_STAGING 

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

The n0 testing DNS endpoint origin, for testing.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/dns/struct.DnsResolver.html b/pr/3958/docs/iroh/dns/struct.DnsResolver.html index a2d73e6629..9b7d4c78fd 100644 --- a/pr/3958/docs/iroh/dns/struct.DnsResolver.html +++ b/pr/3958/docs/iroh/dns/struct.DnsResolver.html @@ -1,35 +1,35 @@ -DnsResolver in iroh::dns - Rust

DnsResolver

Struct DnsResolver 

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

The DNS resolver used throughout iroh.

-

Implementations§

Source§

impl DnsResolver

Source

pub fn new() -> DnsResolver

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

+DnsResolver in iroh::dns - Rust

DnsResolver

Struct DnsResolver 

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

The DNS resolver used throughout iroh.

+

Implementations§

Source§

impl DnsResolver

Source

pub fn new() -> DnsResolver

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

We first try to read the system’s resolver from /etc/resolv.conf. This does not work at least on some Androids, therefore we fallback to the default ResolverConfig which uses eg. to google’s 8.8.8.8 or 8.8.4.4.

-
Source

pub fn with_nameserver(nameserver: SocketAddr) -> DnsResolver

Creates a new DNS resolver configured with a single UDP DNS nameserver.

-
Source

pub fn builder() -> Builder

Creates a builder to construct a DNS resolver with custom options.

-
Source

pub fn custom(resolver: impl Resolver) -> DnsResolver

Creates a new DnsResolver from a struct that implements Resolver.

+
Source

pub fn with_nameserver(nameserver: SocketAddr) -> DnsResolver

Creates a new DNS resolver configured with a single UDP DNS nameserver.

+
Source

pub fn builder() -> Builder

Creates a builder to construct a DNS resolver with custom options.

+
Source

pub fn custom(resolver: impl Resolver) -> DnsResolver

Creates a new DnsResolver from a struct that implements Resolver.

If you need more customization for DNS resolving than the Builder allows, you can implement the Resolver trait on a struct and implement DNS resolution however you see fit.

-
Source

pub async fn clear_cache(&self)

Removes all entries from the cache.

-
Source

pub async fn reset(&self)

Recreates the inner resolver.

-
Source

pub async fn lookup_txt<T>( +

Source

pub async fn clear_cache(&self)

Removes all entries from the cache.

+
Source

pub async fn reset(&self)

Recreates the inner resolver.

+
Source

pub async fn lookup_txt<T>( &self, host: T, timeout: Duration, ) -> Result<impl Iterator<Item = TxtRecordData>, DnsError>
where T: ToString,

Looks up a TXT record.

-
Source

pub async fn lookup_ipv4<T>( +

Source

pub async fn lookup_ipv4<T>( &self, host: T, timeout: Duration, ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError>
where T: ToString,

Performs an IPv4 lookup with a timeout.

-
Source

pub async fn lookup_ipv6<T>( +

Source

pub async fn lookup_ipv6<T>( &self, host: T, timeout: Duration, ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError>
where T: ToString,

Performs an IPv6 lookup with a timeout.

-
Source

pub async fn lookup_ipv4_ipv6<T>( +

Source

pub async fn lookup_ipv4_ipv6<T>( &self, host: T, timeout: Duration, @@ -38,13 +38,13 @@ however you see fit.

LookupIpStrategy::Ipv4AndIpv6 will wait for ipv6 resolution timeout, even if it is not usable on the stack, so we manually query both lookups concurrently and time them out individually.

-

Source

pub async fn resolve_host( +

Source

pub async fn resolve_host( &self, url: &Url, prefer_ipv6: bool, timeout: Duration, ) -> Result<IpAddr, DnsError>

Resolves a hostname from a URL to an IP address.

-
Source

pub async fn lookup_ipv4_staggered( +

Source

pub async fn lookup_ipv4_staggered( &self, host: impl ToString, timeout: Duration, @@ -54,7 +54,7 @@ individually.

delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Source

pub async fn lookup_ipv6_staggered( +

Source

pub async fn lookup_ipv6_staggered( &self, host: impl ToString, timeout: Duration, @@ -64,7 +64,7 @@ result of the first successful call is returned, or a summary of all errors othe delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Source

pub async fn lookup_ipv4_ipv6_staggered( +

Source

pub async fn lookup_ipv4_ipv6_staggered( &self, host: impl ToString, timeout: Duration, @@ -75,18 +75,18 @@ result of the first successful call is returned, or a summary of all errors othe at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in Self::lookup_ipv4_ipv6. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Source

pub async fn lookup_endpoint_by_id( +

Source

pub async fn lookup_endpoint_by_id( &self, endpoint_id: &PublicKey, origin: &str, ) -> Result<EndpointInfo, LookupError>

Looks up endpoint info by EndpointId and origin domain name.

To lookup endpoints that published their endpoint info to the DNS servers run by n0, pass N0_DNS_ENDPOINT_ORIGIN_PROD as origin.

-
Source

pub async fn lookup_endpoint_by_domain_name( +

Source

pub async fn lookup_endpoint_by_domain_name( &self, name: &str, ) -> Result<EndpointInfo, LookupError>

Looks up endpoint info by DNS name.

-
Source

pub async fn lookup_endpoint_by_domain_name_staggered( +

Source

pub async fn lookup_endpoint_by_domain_name_staggered( &self, name: &str, delays_ms: &[u64], @@ -95,7 +95,7 @@ pass
Source

pub async fn lookup_endpoint_by_id_staggered( +

Source

pub async fn lookup_endpoint_by_id_staggered( &self, endpoint_id: &PublicKey, origin: &str, @@ -105,7 +105,7 @@ summary of all errors otherwise.

delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Trait Implementations§

Source§

impl Clone for DnsResolver

Source§

fn clone(&self) -> DnsResolver

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DnsResolver

Source§

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

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

impl Default for DnsResolver

Source§

fn default() -> DnsResolver

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

impl Resolve for DnsResolver

Trait Implementations§

Source§

impl Clone for DnsResolver

Source§

fn clone(&self) -> DnsResolver

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DnsResolver

Source§

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

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

impl Default for DnsResolver

Source§

fn default() -> DnsResolver

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

impl Resolve for DnsResolver

Source§

fn resolve( &self, name: Name, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Iterator<Item = SocketAddr> + Send>, Box<dyn Error + Send + Sync>>> + Send>>

Performs DNS resolution on a Name. diff --git a/pr/3958/docs/iroh/endpoint/connection/enum.IncomingAddr.html b/pr/3958/docs/iroh/endpoint/connection/enum.IncomingAddr.html new file mode 100644 index 0000000000..9c5450397d --- /dev/null +++ b/pr/3958/docs/iroh/endpoint/connection/enum.IncomingAddr.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../iroh/endpoint/enum.IncomingAddr.html...

+ + + \ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html b/pr/3958/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html index 33f624decf..37e9ed9bd7 100644 --- a/pr/3958/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html +++ b/pr/3958/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html @@ -1,2 +1,2 @@ -ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust

ENV_FORCE_STAGING_RELAYS

Constant ENV_FORCE_STAGING_RELAYS 

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

Environment variable to force the use of staging relays.

+ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust

ENV_FORCE_STAGING_RELAYS

Constant ENV_FORCE_STAGING_RELAYS 

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

Environment variable to force the use of staging relays.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/enum.AlpnError.html b/pr/3958/docs/iroh/endpoint/enum.AlpnError.html index 08665301fc..af49b3b1fd 100644 --- a/pr/3958/docs/iroh/endpoint/enum.AlpnError.html +++ b/pr/3958/docs/iroh/endpoint/enum.AlpnError.html @@ -1,4 +1,4 @@ -AlpnError in iroh::endpoint - Rust

AlpnError

Enum AlpnError 

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

AlpnError

Enum AlpnError 

Source
#[non_exhaustive]
pub enum AlpnError { ConnectionError { source: ConnectionError, meta: Meta, @@ -12,7 +12,7 @@ }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ConnectionError

Fields

§meta: Meta

Captured call-site metadata

§

Unavailable

Fields

§meta: Meta

Captured call-site metadata

§

UnknownHandshake

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for AlpnError

Source§

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

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

impl Display for AlpnError

Source§

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

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

impl Error for AlpnError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AlpnError> for AnyError

Source§

fn from(value: AlpnError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectionError> for AlpnError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl StackError for AlpnError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for AlpnError

Source§

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

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

impl Display for AlpnError

Source§

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

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

impl Error for AlpnError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AlpnError> for AnyError

Source§

fn from(value: AlpnError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectionError> for AlpnError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl StackError for AlpnError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.AuthenticationError.html b/pr/3958/docs/iroh/endpoint/enum.AuthenticationError.html index 73b4b155fb..e617d2d0be 100644 --- a/pr/3958/docs/iroh/endpoint/enum.AuthenticationError.html +++ b/pr/3958/docs/iroh/endpoint/enum.AuthenticationError.html @@ -1,4 +1,4 @@ -AuthenticationError in iroh::endpoint - Rust

AuthenticationError

Enum AuthenticationError 

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

AuthenticationError

Enum AuthenticationError 

Source
#[non_exhaustive]
pub enum AuthenticationError { RemoteId { source: RemoteEndpointIdError, meta: Meta, @@ -8,7 +8,7 @@ }, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

RemoteId

Fields

§meta: Meta

Captured call-site metadata

§

NoAlpn

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Clone for AuthenticationError

Source§

fn clone(&self) -> AuthenticationError

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AuthenticationError

Source§

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

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

impl Display for AuthenticationError

Source§

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

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

impl Error for AuthenticationError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AuthenticationError> for AnyError

Source§

fn from(value: AuthenticationError) -> AnyError

Converts to this type from the input type.
Source§

impl From<AuthenticationError> for ConnectingError

Source§

fn from(source: AuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoteEndpointIdError> for AuthenticationError

Source§

fn from(source: RemoteEndpointIdError) -> Self

Converts to this type from the input type.
Source§

impl StackError for AuthenticationError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for AuthenticationError

Source§

fn clone(&self) -> AuthenticationError

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AuthenticationError

Source§

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

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

impl Display for AuthenticationError

Source§

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

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

impl Error for AuthenticationError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AuthenticationError> for AnyError

Source§

fn from(value: AuthenticationError) -> AnyError

Converts to this type from the input type.
Source§

impl From<AuthenticationError> for ConnectingError

Source§

fn from(source: AuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoteEndpointIdError> for AuthenticationError

Source§

fn from(source: RemoteEndpointIdError) -> Self

Converts to this type from the input type.
Source§

impl StackError for AuthenticationError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.BindError.html b/pr/3958/docs/iroh/endpoint/enum.BindError.html index b3ad66467c..741078ebc0 100644 --- a/pr/3958/docs/iroh/endpoint/enum.BindError.html +++ b/pr/3958/docs/iroh/endpoint/enum.BindError.html @@ -1,4 +1,4 @@ -BindError in iroh::endpoint - Rust

BindError

Enum BindError 

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

BindError

Enum BindError 

Source
#[non_exhaustive]
pub enum BindError { Sockets { source: Error, meta: Meta, @@ -14,16 +14,21 @@ InvalidTransportConfig { meta: Meta, }, + InvalidCaRootConfig { + source: Error, + meta: Meta, + }, AddressLookup { - source: IntoAddressLookupError, + source: AddressLookupBuilderError, meta: Meta, }, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Sockets

Fields

§source: Error
§meta: Meta

Captured call-site metadata

§

CreateQuicEndpoint

Fields

§source: Error
§meta: Meta

Captured call-site metadata

§

CreateNetmonMonitor

Fields

§source: Error
§meta: Meta

Captured call-site metadata

§

InvalidTransportConfig

Fields

§meta: Meta

Captured call-site metadata

-
§

AddressLookup

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for BindError

Source§

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

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

impl Display for BindError

Source§

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

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

impl Error for BindError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<BindError> for AnyError

Source§

fn from(value: BindError) -> AnyError

Converts to this type from the input type.
Source§

impl From<IntoAddressLookupError> for BindError

Source§

fn from(source: IntoAddressLookupError) -> Self

Converts to this type from the input type.
Source§

impl StackError for BindError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

§

InvalidCaRootConfig

Fields

§source: Error
§meta: Meta

Captured call-site metadata

+
§

AddressLookup

Fields

§meta: Meta

Captured call-site metadata

+

Trait Implementations§

Source§

impl Debug for BindError

Source§

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

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

impl Display for BindError

Source§

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

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

impl Error for BindError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AddressLookupBuilderError> for BindError

Source§

fn from(source: AddressLookupBuilderError) -> Self

Converts to this type from the input type.
Source§

impl From<BindError> for AnyError

Source§

fn from(value: BindError) -> AnyError

Converts to this type from the input type.
Source§

impl StackError for BindError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.ConnectError.html b/pr/3958/docs/iroh/endpoint/enum.ConnectError.html index 41aaec6016..322449660f 100644 --- a/pr/3958/docs/iroh/endpoint/enum.ConnectError.html +++ b/pr/3958/docs/iroh/endpoint/enum.ConnectError.html @@ -1,4 +1,4 @@ -ConnectError in iroh::endpoint - Rust

ConnectError

Enum ConnectError 

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

ConnectError

Enum ConnectError 

Source
#[non_exhaustive]
pub enum ConnectError { Connect { source: ConnectWithOptsError, meta: Meta, @@ -14,7 +14,7 @@ }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Connect

Fields

§meta: Meta

Captured call-site metadata

§

Connecting

Fields

§meta: Meta

Captured call-site metadata

§

Connection

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for ConnectError

Source§

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

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

impl Display for ConnectError

Source§

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

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

impl Error for ConnectError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<ConnectError> for AnyError

Source§

fn from(value: ConnectError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectWithOptsError> for ConnectError

Source§

fn from(source: ConnectWithOptsError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectingError> for ConnectError

Source§

fn from(source: ConnectingError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl StackError for ConnectError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for ConnectError

Source§

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

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

impl Display for ConnectError

Source§

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

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

impl Error for ConnectError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<ConnectError> for AnyError

Source§

fn from(value: ConnectError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectWithOptsError> for ConnectError

Source§

fn from(source: ConnectWithOptsError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectingError> for ConnectError

Source§

fn from(source: ConnectingError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl StackError for ConnectError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.ConnectWithOptsError.html b/pr/3958/docs/iroh/endpoint/enum.ConnectWithOptsError.html index 3d8607f02e..b5eb069580 100644 --- a/pr/3958/docs/iroh/endpoint/enum.ConnectWithOptsError.html +++ b/pr/3958/docs/iroh/endpoint/enum.ConnectWithOptsError.html @@ -1,4 +1,4 @@ -ConnectWithOptsError in iroh::endpoint - Rust

ConnectWithOptsError

Enum ConnectWithOptsError 

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

ConnectWithOptsError

Enum ConnectWithOptsError 

Source
#[non_exhaustive]
pub enum ConnectWithOptsError { SelfConnect { meta: Meta, }, @@ -27,7 +27,7 @@
§meta: Meta

Captured call-site metadata

§

LocallyRejected

Fields

§meta: Meta

Captured call-site metadata

§

EndpointClosed

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for ConnectWithOptsError

Source§

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

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

impl Display for ConnectWithOptsError

Source§

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

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

impl Error for ConnectWithOptsError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<ConnectError> for ConnectWithOptsError

Source§

fn from(source: QuicConnectError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectWithOptsError> for AnyError

Source§

fn from(value: ConnectWithOptsError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectWithOptsError> for ConnectError

Source§

fn from(source: ConnectWithOptsError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ConnectWithOptsError

Source§

fn from(source: AddressLookupError) -> Self

Converts to this type from the input type.
Source§

impl StackError for ConnectWithOptsError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for ConnectWithOptsError

Source§

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

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

impl Display for ConnectWithOptsError

Source§

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

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

impl Error for ConnectWithOptsError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<ConnectError> for ConnectWithOptsError

Source§

fn from(source: QuicConnectError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectWithOptsError> for AnyError

Source§

fn from(value: ConnectWithOptsError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectWithOptsError> for ConnectError

Source§

fn from(source: ConnectWithOptsError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ConnectWithOptsError

Source§

fn from(source: AddressLookupError) -> Self

Converts to this type from the input type.
Source§

impl StackError for ConnectWithOptsError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.ConnectingError.html b/pr/3958/docs/iroh/endpoint/enum.ConnectingError.html index 8491337570..f24318d043 100644 --- a/pr/3958/docs/iroh/endpoint/enum.ConnectingError.html +++ b/pr/3958/docs/iroh/endpoint/enum.ConnectingError.html @@ -1,4 +1,4 @@ -ConnectingError in iroh::endpoint - Rust

ConnectingError

Enum ConnectingError 

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

ConnectingError

Enum ConnectingError 

Source
#[non_exhaustive]
pub enum ConnectingError { ConnectionError { source: ConnectionError, meta: Meta, @@ -19,7 +19,7 @@

§

InternalConsistencyError

Fields

§source: RemoteStateActorStoppedError

Private source type, cannot be created publicly.

§meta: Meta

Captured call-site metadata

§

LocallyRejected

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Clone for ConnectingError

Source§

fn clone(&self) -> ConnectingError

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectingError

Source§

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

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

impl Display for ConnectingError

Source§

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

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

impl Error for ConnectingError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AuthenticationError> for ConnectingError

Source§

fn from(source: AuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectingError> for AcceptError

Source§

fn from(source: ConnectingError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectingError> for AnyError

Source§

fn from(value: ConnectingError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectingError> for ConnectError

Source§

fn from(source: ConnectingError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectingError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl StackError for ConnectingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for ConnectingError

Source§

fn clone(&self) -> ConnectingError

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectingError

Source§

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

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

impl Display for ConnectingError

Source§

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

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

impl Error for ConnectingError

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AuthenticationError> for ConnectingError

Source§

fn from(source: AuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectingError> for AcceptError

Source§

fn from(source: ConnectingError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectingError> for AnyError

Source§

fn from(value: ConnectingError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ConnectingError> for ConnectError

Source§

fn from(source: ConnectingError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectingError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl StackError for ConnectingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

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

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.ConnectionError.html b/pr/3958/docs/iroh/endpoint/enum.ConnectionError.html index 010cfd4a20..b5a092dadf 100644 --- a/pr/3958/docs/iroh/endpoint/enum.ConnectionError.html +++ b/pr/3958/docs/iroh/endpoint/enum.ConnectionError.html @@ -21,7 +21,7 @@ and [TransportConfig::keep_alive_interval()].

§

LocallyClosed

The local application closed the connection

§

CidsExhausted

The connection could not be created because not enough of the CID space is available

Try using longer connection IDs.

-

Trait Implementations§

§

impl Clone for ConnectionError

§

fn clone(&self) -> ConnectionError

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

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

Performs copy-assignment from source. Read more
§

impl Debug for ConnectionError

§

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

Formats the value using the given formatter. Read more
§

impl Display for ConnectionError

§

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

Formats the value using the given formatter. Read more
§

impl Error for ConnectionError

§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<Close> for ConnectionError

§

fn from(x: Close) -> ConnectionError

Converts to this type from the input type.
§

impl From<CloseReason> for ConnectionError

§

fn from(value: CloseReason) -> ConnectionError

Converts to this type from the input type.
Source§

impl From<ConnectionError> for AcceptError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for AlpnError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectingError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ConnectionError> for ResetError

§

fn from(source: ConnectionError) -> ResetError

Converts to this type from the input type.
§

impl From<ConnectionError> for SendDatagramError

§

fn from(source: ConnectionError) -> SendDatagramError

Converts to this type from the input type.
§

impl From<ConnectionError> for StoppedError

§

fn from(source: ConnectionError) -> StoppedError

Converts to this type from the input type.
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<Error> for ConnectionError

§

fn from(source: Error) -> ConnectionError

Converts to this type from the input type.
§

impl PartialEq for ConnectionError

§

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

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

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

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

Trait Implementations§

§

impl Clone for ConnectionError

§

fn clone(&self) -> ConnectionError

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

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

Performs copy-assignment from source. Read more
§

impl Debug for ConnectionError

§

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

Formats the value using the given formatter. Read more
§

impl Display for ConnectionError

§

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

Formats the value using the given formatter. Read more
§

impl Error for ConnectionError

§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<Close> for ConnectionError

§

fn from(x: Close) -> ConnectionError

Converts to this type from the input type.
§

impl From<CloseReason> for ConnectionError

§

fn from(value: CloseReason) -> ConnectionError

Converts to this type from the input type.
Source§

impl From<ConnectionError> for AcceptError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for AlpnError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectionError> for ConnectingError

Source§

fn from(source: ConnectionError) -> Self

Converts to this type from the input type.
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ConnectionError> for ResetError

§

fn from(source: ConnectionError) -> ResetError

Converts to this type from the input type.
§

impl From<ConnectionError> for SendDatagramError

§

fn from(source: ConnectionError) -> SendDatagramError

Converts to this type from the input type.
§

impl From<ConnectionError> for StoppedError

§

fn from(source: ConnectionError) -> StoppedError

Converts to this type from the input type.
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<Error> for ConnectionError

§

fn from(source: Error) -> ConnectionError

Converts to this type from the input type.
§

impl PartialEq for ConnectionError

§

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

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

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

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

impl Eq for ConnectionError

§

impl StructuralPartialEq for ConnectionError

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where 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/3958/docs/iroh/endpoint/enum.DirectAddrType.html b/pr/3958/docs/iroh/endpoint/enum.DirectAddrType.html index 22437ad8d0..be83f433c3 100644 --- a/pr/3958/docs/iroh/endpoint/enum.DirectAddrType.html +++ b/pr/3958/docs/iroh/endpoint/enum.DirectAddrType.html @@ -1,4 +1,4 @@ -DirectAddrType in iroh::endpoint - Rust

DirectAddrType

Enum DirectAddrType 

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

DirectAddrType

Enum DirectAddrType 

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

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

-

Trait Implementations§

Source§

impl Clone for DirectAddrType

Source§

fn clone(&self) -> DirectAddrType

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddrType

Source§

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

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

impl Display for DirectAddrType

Source§

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

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

impl Hash for DirectAddrType

Source§

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

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

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

Trait Implementations§

Source§

impl Clone for DirectAddrType

Source§

fn clone(&self) -> DirectAddrType

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddrType

Source§

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

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

impl Display for DirectAddrType

Source§

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

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

impl Hash for DirectAddrType

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DirectAddrType

Source§

fn cmp(&self, other: &DirectAddrType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DirectAddrType

Source§

fn cmp(&self, other: &DirectAddrType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DirectAddrType

Source§

fn eq(&self, other: &DirectAddrType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for DirectAddrType

Source§

fn partial_cmp(&self, other: &DirectAddrType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DirectAddrType

Source§

fn eq(&self, other: &DirectAddrType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for DirectAddrType

Source§

fn partial_cmp(&self, other: &DirectAddrType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for DirectAddrType

Source§

impl Eq for DirectAddrType

Source§

impl StructuralPartialEq for DirectAddrType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for DirectAddrType

Source§

impl Eq for DirectAddrType

Source§

impl StructuralPartialEq for DirectAddrType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/enum.EndpointError.html b/pr/3958/docs/iroh/endpoint/enum.EndpointError.html index 62e0e9edfa..326d6d12a3 100644 --- a/pr/3958/docs/iroh/endpoint/enum.EndpointError.html +++ b/pr/3958/docs/iroh/endpoint/enum.EndpointError.html @@ -1,9 +1,9 @@ -EndpointError in iroh::endpoint - Rust

EndpointError

Enum EndpointError 

Source
#[non_exhaustive]
pub enum EndpointError { +EndpointError in iroh::endpoint - Rust

EndpointError

Enum EndpointError 

Source
#[non_exhaustive]
pub enum EndpointError { Closed { meta: Meta, }, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Closed

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for EndpointError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EndpointError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for EndpointError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<EndpointError> for AnyError

Source§

fn from(value: EndpointError) -> AnyError

Converts to this type from the input type.
Source§

impl From<EndpointError> for IntoAddressLookupError

Source§

fn from(source: EndpointError) -> Self

Converts to this type from the input type.
Source§

impl StackError for EndpointError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for EndpointError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EndpointError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for EndpointError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<EndpointError> for AddressLookupBuilderError

Source§

fn from(source: EndpointError) -> Self

Converts to this type from the input type.
Source§

impl From<EndpointError> for AnyError

Source§

fn from(value: EndpointError) -> AnyError

Converts to this type from the input type.
Source§

impl StackError for EndpointError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.IncomingAddr.html b/pr/3958/docs/iroh/endpoint/enum.IncomingAddr.html new file mode 100644 index 0000000000..16b9d5e357 --- /dev/null +++ b/pr/3958/docs/iroh/endpoint/enum.IncomingAddr.html @@ -0,0 +1,60 @@ +IncomingAddr in iroh::endpoint - Rust

IncomingAddr

Enum IncomingAddr 

Source
#[non_exhaustive]
pub enum IncomingAddr { + Ip(SocketAddr), + Relay { + url: RelayUrl, + endpoint_id: EndpointId, + }, +}
Expand description

The remote address for an incoming connection.

+

When the incoming connection is a direct connection, this is a SocketAddr. +When it is a relay connection, we know both the relay URL and the endpoint ID.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Ip(SocketAddr)

A direct connection from an IP address.

+
§

Relay

A connection via a relay.

+

Fields

§url: RelayUrl

The URL of the relay.

+
§endpoint_id: EndpointId

The endpoint ID of the remote peer.

+

Trait Implementations§

Source§

impl Clone for IncomingAddr

Source§

fn clone(&self) -> IncomingAddr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IncomingAddr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<IncomingAddr> for TransportAddr

Source§

fn from(addr: IncomingAddr) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for IncomingAddr

Source§

fn eq(&self, other: &IncomingAddr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Eq for IncomingAddr

Source§

impl StructuralPartialEq for IncomingAddr

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where + T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where + T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where + T: 'a,

§

fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> DynClone for T
where + T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where + Q: Eq + ?Sized, + K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+
§

impl<T> FromRef<T> for T
where + T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an +Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where + U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +if into_left is true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> +if into_left(&self) returns true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where + T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/enum.QuicConnectError.html b/pr/3958/docs/iroh/endpoint/enum.QuicConnectError.html index 6704e3e77e..33966f27a1 100644 --- a/pr/3958/docs/iroh/endpoint/enum.QuicConnectError.html +++ b/pr/3958/docs/iroh/endpoint/enum.QuicConnectError.html @@ -18,7 +18,7 @@ Errors in the parameters being used to create a new connection

§

NoDefaultClientConfig

No default client configuration was set up

Use Endpoint::connect_with to specify a client configuration.

§

UnsupportedVersion

The local endpoint does not support the QUIC version specified in the client configuration

-

Trait Implementations§

§

impl Clone for ConnectError

§

fn clone(&self) -> ConnectError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ConnectError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ConnectError> for ConnectWithOptsError

Source§

fn from(source: QuicConnectError) -> Self

Converts to this type from the input type.
§

impl From<UnsupportedVersion> for ConnectError

§

fn from(_: UnsupportedVersion) -> ConnectError

Converts to this type from the input type.
§

impl PartialEq for ConnectError

§

fn eq(&self, other: &ConnectError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +

Trait Implementations§

§

impl Clone for ConnectError

§

fn clone(&self) -> ConnectError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ConnectError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ConnectError> for ConnectWithOptsError

Source§

fn from(source: QuicConnectError) -> Self

Converts to this type from the input type.
§

impl From<UnsupportedVersion> for ConnectError

§

fn from(_: UnsupportedVersion) -> ConnectError

Converts to this type from the input type.
§

impl PartialEq for ConnectError

§

fn eq(&self, other: &ConnectError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ConnectError

§

impl StructuralPartialEq for ConnectError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/enum.RelayMode.html b/pr/3958/docs/iroh/endpoint/enum.RelayMode.html index d3bd483bf1..fc3fd0ba60 100644 --- a/pr/3958/docs/iroh/endpoint/enum.RelayMode.html +++ b/pr/3958/docs/iroh/endpoint/enum.RelayMode.html @@ -1,4 +1,4 @@ -RelayMode in iroh::endpoint - Rust

RelayMode

Enum RelayMode 

Source
pub enum RelayMode {
+RelayMode in iroh::endpoint - Rust

RelayMode

Enum RelayMode 

Source
pub enum RelayMode {
     Disabled,
     Default,
     Staging,
@@ -10,14 +10,14 @@ This means that neither listening nor dialing relays will be available.

See crate::defaults::prod for the severs used.

§

Staging

Use the staging relay servers from n0.

§

Custom(RelayMap)

Use a custom relay map.

-

Implementations§

Source§

impl RelayMode

Source

pub fn relay_map(&self) -> RelayMap

Returns the relay map for this mode.

-
Source

pub fn custom(map: impl IntoIterator<Item = RelayUrl>) -> Self

Create a custom relay mode from a list of RelayUrls.

+

Implementations§

Source§

impl RelayMode

Source

pub fn relay_map(&self) -> RelayMap

Returns the relay map for this mode.

+
Source

pub fn custom(map: impl IntoIterator<Item = RelayUrl>) -> Self

Create a custom relay mode from a list of RelayUrls.

§Example
RelayMode::custom([
     "https://use1-1.relay.n0.iroh-canary.iroh.link.".parse()?,
     "https://euw-1.relay.n0.iroh-canary.iroh.link.".parse()?,
-]);

Trait Implementations§

Source§

impl Clone for RelayMode

Source§

fn clone(&self) -> RelayMode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RelayMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<RelayMode> for Option<TransportConfig>

Source§

fn from(mode: RelayMode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RelayMode

Source§

fn eq(&self, other: &RelayMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for RelayMode

Source§

impl StructuralPartialEq for RelayMode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +]);

Trait Implementations§

Source§

impl Clone for RelayMode

Source§

fn clone(&self) -> RelayMode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RelayMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<RelayMode> for Option<TransportConfig>

Source§

fn from(mode: RelayMode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RelayMode

Source§

fn eq(&self, other: &RelayMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Eq for RelayMode

Source§

impl StructuralPartialEq for RelayMode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/enum.ZeroRttStatus.html b/pr/3958/docs/iroh/endpoint/enum.ZeroRttStatus.html index 086aa82c3a..75f41960e6 100644 --- a/pr/3958/docs/iroh/endpoint/enum.ZeroRttStatus.html +++ b/pr/3958/docs/iroh/endpoint/enum.ZeroRttStatus.html @@ -1,4 +1,4 @@ -ZeroRttStatus in iroh::endpoint - Rust

ZeroRttStatus

Enum ZeroRttStatus 

Source
pub enum ZeroRttStatus {
+ZeroRttStatus in iroh::endpoint - Rust

ZeroRttStatus

Enum ZeroRttStatus 

Source
pub enum ZeroRttStatus {
     Accepted(Connection),
     Rejected(Connection),
 }
Expand description

Returned from OutgoingZeroRttConnection::handshake_completed.

@@ -7,7 +7,7 @@ that were created before the handshake was completed.

§

Rejected(Connection)

If the 0-RTT data was rejected, any streams that were created before the handshake was completed will error and any data that was previously sent on those streams will need to be resent.

-

Trait Implementations§

Source§

impl Clone for ZeroRttStatus

Source§

fn clone(&self) -> ZeroRttStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ZeroRttStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for ZeroRttStatus

Source§

fn clone(&self) -> ZeroRttStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ZeroRttStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/fn.default_relay_mode.html b/pr/3958/docs/iroh/endpoint/fn.default_relay_mode.html index ca7c4a125a..13b1711743 100644 --- a/pr/3958/docs/iroh/endpoint/fn.default_relay_mode.html +++ b/pr/3958/docs/iroh/endpoint/fn.default_relay_mode.html @@ -1,4 +1,4 @@ -default_relay_mode in iroh::endpoint - Rust

default_relay_mode

Function default_relay_mode 

Source
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

+default_relay_mode in iroh::endpoint - Rust

default_relay_mode

Function default_relay_mode 

Source
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

If the IROH_FORCE_STAGING_RELAYS environment variable is non empty, it will return RelayMode::Staging. Otherwise, it will return RelayMode::Default.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/fn.force_staging_infra.html b/pr/3958/docs/iroh/endpoint/fn.force_staging_infra.html index d64c643c4f..cf8dfab3a8 100644 --- a/pr/3958/docs/iroh/endpoint/fn.force_staging_infra.html +++ b/pr/3958/docs/iroh/endpoint/fn.force_staging_infra.html @@ -1,2 +1,2 @@ -force_staging_infra in iroh::endpoint - Rust

force_staging_infra

Function force_staging_infra 

Source
pub fn force_staging_infra() -> bool
Expand description

Returns true if the use of staging relays is forced.

+force_staging_infra in iroh::endpoint - Rust

force_staging_infra

Function force_staging_infra 

Source
pub fn force_staging_infra() -> bool
Expand description

Returns true if the use of staging relays is forced.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/index.html b/pr/3958/docs/iroh/endpoint/index.html index 9a7594ae05..49001cfc6e 100644 --- a/pr/3958/docs/iroh/endpoint/index.html +++ b/pr/3958/docs/iroh/endpoint/index.html @@ -1,4 +1,4 @@ -iroh::endpoint - Rust

Module endpoint

Module endpoint 

Source
Expand description

The Endpoint allows establishing connections to other iroh endpoints.

+iroh::endpoint - Rust

Module endpoint

Module endpoint 

Source
Expand description

The Endpoint allows establishing connections to other iroh endpoints.

The Endpoint is the main API interface to manage a local iroh endpoint. It allows connecting to and accepting connections from other endpoints. See the module docs for more details on how iroh connections work.

@@ -46,7 +46,7 @@ An integer less than 2^62
Written
quinn types that are used in the public iroh API. Indicates how many bytes and chunks had been transferred in a write operation

Enums§

AfterHandshakeOutcome
Outcome of EndpointHooks::after_handshake
AlpnError
AuthenticationError
BeforeConnectOutcome
Outcome of EndpointHooks::before_connect
BindError
ConnectError
ConnectWithOptsError
ConnectingError
ConnectionError
quinn types that are used in the public iroh API. Reasons why a connection might be lost
Dir
quinn types that are used in the public iroh API. -Whether a stream communicates data in both directions or only from the initiator
DirectAddrType
The type of direct address.
EndpointError
FrameType
quinn_proto types that are used in the public iroh API.
InvalidSocketAddrNon-wasm_browser
QuicConnectError
quinn_proto types that are used in the public iroh API. +Whether a stream communicates data in both directions or only from the initiator
DirectAddrType
The type of direct address.
EndpointError
FrameType
quinn_proto types that are used in the public iroh API.
IncomingAddr
The remote address for an incoming connection.
InvalidSocketAddrNon-wasm_browser
QuicConnectError
quinn_proto types that are used in the public iroh API. Errors in the parameters being used to create a new connection
ReadError
quinn types that are used in the public iroh API. Errors that arise from reading from a stream.
ReadExactError
quinn types that are used in the public iroh API. Errors that arise from reading from a stream.
ReadToEndError
quinn types that are used in the public iroh API. diff --git a/pr/3958/docs/iroh/endpoint/presets/index.html b/pr/3958/docs/iroh/endpoint/presets/index.html index 9d77e86776..1b4bd178b8 100644 --- a/pr/3958/docs/iroh/endpoint/presets/index.html +++ b/pr/3958/docs/iroh/endpoint/presets/index.html @@ -1,8 +1,8 @@ -iroh::endpoint::presets - Rust

Module presets

Module presets 

Source
Expand description

Presets allow configuring an endpoint quickly with a chosen set of defaults.

+iroh::endpoint::presets - Rust

Module presets

Module presets 

Source
Expand description

Presets allow configuring an endpoint quickly with a chosen set of defaults.

§Example

use iroh::{Endpoint, RelayMode, Watcher, endpoint::presets};
 
 let endpoint = Endpoint::empty_builder(RelayMode::Disabled)
     .preset(presets::N0)
     .bind()
-    .await?;

Structs§

N0
Configures the endpoint to use the n0 defaults

Traits§

Preset
Defines a preset
\ No newline at end of file + .await?;

Structs§

N0
Configures the endpoint to use the n0 defaults
N0DisableRelay
Configures the endpoint to use the n0 defaults, but with relay mode disabled.

Traits§

Preset
Defines a preset

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/presets/sidebar-items.js b/pr/3958/docs/iroh/endpoint/presets/sidebar-items.js index 19cdedbe35..451cb924cf 100644 --- a/pr/3958/docs/iroh/endpoint/presets/sidebar-items.js +++ b/pr/3958/docs/iroh/endpoint/presets/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":["N0"],"trait":["Preset"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["N0","N0DisableRelay"],"trait":["Preset"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/presets/struct.N0.html b/pr/3958/docs/iroh/endpoint/presets/struct.N0.html index 7afdec0f06..04962b99e6 100644 --- a/pr/3958/docs/iroh/endpoint/presets/struct.N0.html +++ b/pr/3958/docs/iroh/endpoint/presets/struct.N0.html @@ -1,4 +1,4 @@ -N0 in iroh::endpoint::presets - Rust

N0

Struct N0 

Source
pub struct N0;
Expand description

Configures the endpoint to use the n0 defaults

+N0 in iroh::endpoint::presets - Rust

N0

Struct N0 

Source
pub struct N0;
Expand description

Configures the endpoint to use the n0 defaults

Currently this consists of

Trait Implementations§

Source§

impl Clone for N0

Source§

fn clone(&self) -> N0

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for N0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for N0

Source§

fn default() -> N0

Returns the “default value” for a type. Read more
Source§

impl Preset for N0

Source§

fn apply(self, builder: Builder) -> Builder

Applies the configuration to the passed in Builder.
Source§

impl Copy for N0

Auto Trait Implementations§

§

impl Freeze for N0

§

impl RefUnwindSafe for N0

§

impl Send for N0

§

impl Sync for N0

§

impl Unpin for N0

§

impl UnwindSafe for N0

Blanket Implementations§

Source§

impl<T> Any for T
where +

This preset includes an AddrFilter for the address lookup services that only publishes +the endpoint’s relay address, by default.

+

Trait Implementations§

Source§

impl Clone for N0

Source§

fn clone(&self) -> N0

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for N0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for N0

Source§

fn default() -> N0

Returns the “default value” for a type. Read more
Source§

impl Preset for N0

Source§

fn apply(self, builder: Builder) -> Builder

Applies the configuration to the passed in Builder.
Source§

impl Copy for N0

Auto Trait Implementations§

§

impl Freeze for N0

§

impl RefUnwindSafe for N0

§

impl Send for N0

§

impl Sync for N0

§

impl Unpin for N0

§

impl UnwindSafe for N0

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/presets/struct.N0DisableRelay.html b/pr/3958/docs/iroh/endpoint/presets/struct.N0DisableRelay.html new file mode 100644 index 0000000000..145297f531 --- /dev/null +++ b/pr/3958/docs/iroh/endpoint/presets/struct.N0DisableRelay.html @@ -0,0 +1,59 @@ +N0DisableRelay in iroh::endpoint::presets - Rust

N0DisableRelay

Struct N0DisableRelay 

Source
pub struct N0DisableRelay;
Expand description

Configures the endpoint to use the n0 defaults, but with relay mode disabled.

+

Currently this consists of

+
    +
  • setting RelayMode::Disabled
  • +
  • the DNS Address Lookup service, that publishes IP addresses rather than +relay urls.
  • +
+

The default address lookup service publishes to and resolves from the +n0.computer dns server iroh.link.

+

This is equivalent to adding both a crate::address_lookup::PkarrPublisher +and a crate::address_lookup::DnsAddressLookup, both configured to use the +n0.computer dns server.

+

This will by default use N0_DNS_PKARR_RELAY_PROD. +When in tests, or when the test-utils feature is enabled, this will use the +N0_DNS_PKARR_RELAY_STAGING.

+

This preset includes an AddrFilter for the address lookup services that only publishes +the endpoint’s IP addresses.

+

Trait Implementations§

Source§

impl Clone for N0DisableRelay

Source§

fn clone(&self) -> N0DisableRelay

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for N0DisableRelay

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for N0DisableRelay

Source§

fn default() -> N0DisableRelay

Returns the “default value” for a type. Read more
Source§

impl Preset for N0DisableRelay

Source§

fn apply(self, builder: Builder) -> Builder

Applies the configuration to the passed in Builder.
Source§

impl Copy for N0DisableRelay

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where + T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where + T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where + T: 'a,

§

fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> DynClone for T
where + T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+
§

impl<T> FromRef<T> for T
where + T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an +Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where + U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +if into_left is true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> +if into_left(&self) returns true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where + T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/presets/trait.Preset.html b/pr/3958/docs/iroh/endpoint/presets/trait.Preset.html index 86843b4436..78db067412 100644 --- a/pr/3958/docs/iroh/endpoint/presets/trait.Preset.html +++ b/pr/3958/docs/iroh/endpoint/presets/trait.Preset.html @@ -1,6 +1,6 @@ -Preset in iroh::endpoint::presets - Rust

Preset

Trait Preset 

Source
pub trait Preset {
+Preset in iroh::endpoint::presets - Rust

Preset

Trait Preset 

Source
pub trait Preset {
     // Required method
     fn apply(self, builder: Builder) -> Builder;
 }
Expand description

Defines a preset

-

Required Methods§

Source

fn apply(self, builder: Builder) -> Builder

Applies the configuration to the passed in Builder.

-

Implementors§

\ No newline at end of file +

Required Methods§

Source

fn apply(self, builder: Builder) -> Builder

Applies the configuration to the passed in Builder.

+

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/sidebar-items.js b/pr/3958/docs/iroh/endpoint/sidebar-items.js index 6bf34e69ec..e19f693d2b 100644 --- a/pr/3958/docs/iroh/endpoint/sidebar-items.js +++ b/pr/3958/docs/iroh/endpoint/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["ENV_FORCE_STAGING_RELAYS"],"enum":["AfterHandshakeOutcome","AlpnError","AuthenticationError","BeforeConnectOutcome","BindError","ConnectError","ConnectWithOptsError","ConnectingError","ConnectionError","Dir","DirectAddrType","EndpointError","FrameType","InvalidSocketAddr","QuicConnectError","ReadError","ReadExactError","ReadToEndError","RelayMode","ResetError","SendDatagramError","Side","Source","StoppedError","TransportAddrUsage","WriteError","ZeroRttStatus"],"fn":["default_relay_mode","force_staging_infra"],"mod":["presets"],"struct":["Accept","AcceptBi","AcceptUni","Accepting","AckFrequencyConfig","ApplicationClose","BindOpts","Builder","Chunk","ClosedStream","ConnectOptions","Connecting","Connection","ConnectionClose","ConnectionInfo","ConnectionStats","ControllerMetrics","CryptoError","DirectAddr","Endpoint","EndpointClosed","ExportKeyingMaterialError","FrameStats","HandshakeCompleted","IdleTimeout","Incoming","IncomingZeroRtt","Keys","MtuDiscoveryConfig","OpenBi","OpenUni","OutgoingZeroRtt","PathId","PathInfo","PathInfoList","PathInfoListIter","PathStats","PathWatcher","QlogConfig","QlogFileFactory","QuicTransportConfig","QuicTransportConfigBuilder","ReadDatagram","RecvStream","RemoteEndpointIdError","RemoteInfo","RetryError","RttEstimator","SendDatagram","SendStream","ServerConfig","ServerConfigBuilder","StreamId","TokenReuseError","TransportAddrInfo","TransportError","TransportErrorCode","TransportParameters","UdpStats","UnorderedRecvStream","UnsupportedVersion","ValidationTokenConfig","VarInt","VarIntBoundsExceeded","Written"],"trait":["AeadKey","ConnectionState","Controller","ControllerFactory","EndpointHooks","HandshakeTokenKey","HeaderKey","PacketKey","QlogFactory","TimeSource","ToSocketAddr","TokenLog"],"type":["IncomingZeroRttConnection","OutgoingZeroRttConnection"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["ENV_FORCE_STAGING_RELAYS"],"enum":["AfterHandshakeOutcome","AlpnError","AuthenticationError","BeforeConnectOutcome","BindError","ConnectError","ConnectWithOptsError","ConnectingError","ConnectionError","Dir","DirectAddrType","EndpointError","FrameType","IncomingAddr","InvalidSocketAddr","QuicConnectError","ReadError","ReadExactError","ReadToEndError","RelayMode","ResetError","SendDatagramError","Side","Source","StoppedError","TransportAddrUsage","WriteError","ZeroRttStatus"],"fn":["default_relay_mode","force_staging_infra"],"mod":["presets"],"struct":["Accept","AcceptBi","AcceptUni","Accepting","AckFrequencyConfig","ApplicationClose","BindOpts","Builder","Chunk","ClosedStream","ConnectOptions","Connecting","Connection","ConnectionClose","ConnectionInfo","ConnectionStats","ControllerMetrics","CryptoError","DirectAddr","Endpoint","EndpointClosed","ExportKeyingMaterialError","FrameStats","HandshakeCompleted","IdleTimeout","Incoming","IncomingZeroRtt","Keys","MtuDiscoveryConfig","OpenBi","OpenUni","OutgoingZeroRtt","PathId","PathInfo","PathInfoList","PathInfoListIter","PathStats","PathWatcher","QlogConfig","QlogFileFactory","QuicTransportConfig","QuicTransportConfigBuilder","ReadDatagram","RecvStream","RemoteEndpointIdError","RemoteInfo","RetryError","RttEstimator","SendDatagram","SendStream","ServerConfig","ServerConfigBuilder","StreamId","TokenReuseError","TransportAddrInfo","TransportError","TransportErrorCode","TransportParameters","UdpStats","UnorderedRecvStream","UnsupportedVersion","ValidationTokenConfig","VarInt","VarIntBoundsExceeded","Written"],"trait":["AeadKey","ConnectionState","Controller","ControllerFactory","EndpointHooks","HandshakeTokenKey","HeaderKey","PacketKey","QlogFactory","TimeSource","ToSocketAddr","TokenLog"],"type":["IncomingZeroRttConnection","OutgoingZeroRttConnection"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/struct.Accept.html b/pr/3958/docs/iroh/endpoint/struct.Accept.html index ae6f2bfeec..c17b11fec9 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Accept.html +++ b/pr/3958/docs/iroh/endpoint/struct.Accept.html @@ -1,6 +1,6 @@ -Accept in iroh::endpoint - Rust

Accept

Struct Accept 

Source
pub struct Accept<'a> { /* private fields */ }
Expand description

Future produced by Endpoint::accept.

-

Trait Implementations§

Source§

impl<'a> Debug for Accept<'a>

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Future for Accept<'_>

Source§

type Output = Option<Incoming>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering -the current task for wakeup if the value is not yet available. Read more
Source§

impl<'pin, 'a> Unpin for Accept<'a>
where +Accept in iroh::endpoint - Rust

Accept

Struct Accept 

Source
pub struct Accept<'a> { /* private fields */ }
Expand description

Future produced by Endpoint::accept.

+

Trait Implementations§

Source§

impl<'a> Debug for Accept<'a>

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Future for Accept<'_>

Source§

type Output = Option<Incoming>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering +the current task for wakeup if the value is not yet available. Read more
Source§

impl<'pin, 'a> Unpin for Accept<'a>
where PinnedFieldsOf<__Accept<'pin, 'a>>: Unpin,

Auto Trait Implementations§

§

impl<'a> !Freeze for Accept<'a>

§

impl<'a> !RefUnwindSafe for Accept<'a>

§

impl<'a> Send for Accept<'a>

§

impl<'a> Sync for Accept<'a>

§

impl<'a> !UnwindSafe for Accept<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/struct.Accepting.html b/pr/3958/docs/iroh/endpoint/struct.Accepting.html index 941551ff48..3b2d123e62 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Accepting.html +++ b/pr/3958/docs/iroh/endpoint/struct.Accepting.html @@ -1,5 +1,5 @@ -Accepting in iroh::endpoint - Rust

Accepting

Struct Accepting 

Source
pub struct Accepting { /* private fields */ }
Expand description

In-progress connection attempt future

-

Implementations§

Source§

impl Accepting

Source

pub fn into_0rtt(self) -> IncomingZeroRttConnection

Converts this Accepting into a 0-RTT or 0.5-RTT connection at the cost of weakened +Accepting in iroh::endpoint - Rust

Accepting

Struct Accepting 

Source
pub struct Accepting { /* private fields */ }
Expand description

In-progress connection attempt future

+

Implementations§

Source§

impl Accepting

Source

pub fn into_0rtt(self) -> IncomingZeroRttConnection

Converts this Accepting into a 0-RTT or 0.5-RTT connection at the cost of weakened security.

Returns a IncomingZeroRttConnection, which represents an incoming 0-RTT or 0.5-RTT connection.

If the connection was initiated with 0-RTT by the remote endpoint, the local endpoint @@ -16,9 +16,10 @@ authentication is required.

You can use RecvStream::is_0rtt to check whether a stream has been opened in 0-RTT and thus whether parts of the stream are operating under this reduced security level.

See also documentation for Connecting::into_0rtt.

-
Source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

-
Source

pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError>

Extracts the ALPN protocol from the peer’s handshake data.

-

Trait Implementations§

Source§

impl Debug for Accepting

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Future for Accepting

Source§

type Output = Result<Connection, ConnectingError>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering +
Source

pub fn remote_addr(&self) -> IncomingAddr

Returns the remote address of this connection.

+
Source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

+
Source

pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError>

Extracts the ALPN protocol from the peer’s handshake data.

+

Trait Implementations§

Source§

impl Debug for Accepting

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Future for Accepting

Source§

type Output = Result<Connection, ConnectingError>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/struct.AckFrequencyConfig.html b/pr/3958/docs/iroh/endpoint/struct.AckFrequencyConfig.html index 6e4156a2a8..b99342428d 100644 --- a/pr/3958/docs/iroh/endpoint/struct.AckFrequencyConfig.html +++ b/pr/3958/docs/iroh/endpoint/struct.AckFrequencyConfig.html @@ -3,7 +3,7 @@ Parameters for controlling the peer’s acknowledgement frequency

The parameters provided in this config will be sent to the peer at the beginning of the connection, so it can take them into account when sending acknowledgements (see each parameter’s description for details on how it influences acknowledgement frequency).

-

Quinn’s implementation follows the fourth draft of the +

noq’s implementation follows the fourth draft of the QUIC Acknowledgement Frequency extension. The defaults produce behavior slightly different than the behavior without this extension, because they change the way reordered packets are handled (see diff --git a/pr/3958/docs/iroh/endpoint/struct.Builder.html b/pr/3958/docs/iroh/endpoint/struct.Builder.html index 0df7de4091..4450728060 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Builder.html +++ b/pr/3958/docs/iroh/endpoint/struct.Builder.html @@ -1,13 +1,13 @@ -Builder in iroh::endpoint - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Expand description

Builder for Endpoint.

+Builder in iroh::endpoint - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Expand description

Builder for Endpoint.

By default the endpoint will generate a new random SecretKey, which will result in a new EndpointId.

To create the Endpoint call Builder::bind.

-

Implementations§

Source§

impl Builder

Source

pub fn new<P: Preset>(preset: P) -> Self

Creates a new Builder using the given Preset.

+

Implementations§

Source§

impl Builder

Source

pub fn new<P: Preset>(preset: P) -> Self

Creates a new Builder using the given Preset.

See presets for more.

Source

pub fn preset<P: Preset>(self, preset: P) -> Self

Applies the given Preset.

-
Source

pub fn empty(relay_mode: RelayMode) -> Self

Creates an empty builder with no address lookup services.

-
Source

pub async fn bind(self) -> Result<Endpoint, BindError>

Binds the endpoint.

-
Source

pub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr>
where +

Source

pub fn empty(relay_mode: RelayMode) -> Self

Creates an empty builder with no address lookup services.

+
Source

pub async fn bind(self) -> Result<Endpoint, BindError>

Binds the endpoint.

+
Source

pub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr>

Available on non-wasm_browser only.

Binds an IP socket at the provided socket address.

This is an advanced API to tightly control the sockets used by the endpoint. Most @@ -48,7 +48,7 @@ port 0 in the socket address assigns a random free port.

.bind_addr("127.0.0.1:0")? .bind_addr("[::1]:0")? .bind() - .await?;
Source

pub fn bind_addr_with_opts<A>( + .await?;

Source

pub fn bind_addr_with_opts<A>( self, addr: A, opts: BindOpts, @@ -107,16 +107,16 @@ routing with the prefix length and default route as described above does not app .bind_addr_with_opts("127.0.0.1:0", BindOpts::default().set_prefix_len(24))? .bind_addr_with_opts("[::1]:0", BindOpts::default().set_prefix_len(48))? .bind() - .await?;

Source

pub fn clear_ip_transports(self) -> Self

Available on non-wasm_browser only.

Removes all IP based transports.

-
Source

pub fn clear_relay_transports(self) -> Self

Removes all relay based transports.

-
Source

pub fn secret_key(self, secret_key: SecretKey) -> Self

Sets a secret key to authenticate with other peers.

+ .await?;

Source

pub fn clear_ip_transports(self) -> Self

Available on non-wasm_browser only.

Removes all IP based transports.

+
Source

pub fn clear_relay_transports(self) -> Self

Removes all relay based transports.

+
Source

pub fn secret_key(self, secret_key: SecretKey) -> Self

Sets a secret key to authenticate with other peers.

This secret key’s public key will be the PublicKey of this endpoint and thus also its EndpointId

If not set, a new secret key will be generated.

-
Source

pub fn alpns(self, alpn_protocols: Vec<Vec<u8>>) -> Self

Sets the ALPN protocols that this endpoint will accept on incoming connections.

+
Source

pub fn alpns(self, alpn_protocols: Vec<Vec<u8>>) -> Self

Sets the ALPN protocols that this endpoint will accept on incoming connections.

Not setting this will still allow creating connections, but to accept incoming connections at least one ALPN must be set.

-
Source

pub fn relay_mode(self, relay_mode: RelayMode) -> Self

Sets the relay servers to assist in establishing connectivity.

+
Source

pub fn relay_mode(self, relay_mode: RelayMode) -> Self

Sets the relay servers to assist in establishing connectivity.

Relay servers are used to establish initial connection with another iroh endpoint. They also perform various functions related to hole punching, see the crate docs for more details.

@@ -124,12 +124,12 @@ for more details.

When using RelayMode::Custom, the provided relay_map must contain at least one configured relay endpoint. If an invalid RelayMap is provided bind will result in an error.

-
Source

pub fn clear_address_lookup(self) -> Self

Removes all Address Lookup services from the builder.

+
Source

pub fn clear_address_lookup(self) -> Self

Removes all Address Lookup services from the builder.

If no Address Lookup is set, connecting to an endpoint without providing its direct addresses or relay URLs will fail.

See the documentation of the crate::address_lookup::AddressLookup trait for details.

-
Source

pub fn address_lookup(self, address_lookup: impl IntoAddressLookup) -> Self

Adds an additional Address Lookup for this endpoint.

-

Once the endpoint is created the provided IntoAddressLookup::into_address_lookup will be +

Source

pub fn address_lookup(self, address_lookup: impl AddressLookupBuilder) -> Self

Adds an additional Address Lookup for this endpoint.

+

Once the endpoint is created the provided AddressLookupBuilder::into_address_lookup will be called. This allows Address Lookup’s to finalize their configuration by e.g. using the secret key from the endpoint which can be needed to sign published information.

This method can be called multiple times and all the Address Lookup’s passed in @@ -139,13 +139,13 @@ will be combined using an internal instance of the

If no Address Lookup is set, connecting to an endpoint without providing its direct addresses or relay URLs will fail.

See the documentation of the crate::address_lookup::AddressLookup trait for details.

-
Source

pub fn user_data_for_address_lookup(self, user_data: UserData) -> Self

Sets the initial user-defined data to be published in Address Lookup’s for this node.

+
Source

pub fn user_data_for_address_lookup(self, user_data: UserData) -> Self

Sets the initial user-defined data to be published in Address Lookup’s for this node.

When using Address Lookup’s, this string of UserData will be published together with the endpoint’s addresses and relay URL. When other endpoints discover this endpoint, they retrieve the UserData in addition to the addressing info.

Iroh itself does not interpret the user-defined data in any way, it is purely left for applications to parse and use.

-
Source

pub fn transport_config(self, transport_config: QuicTransportConfig) -> Self

Sets a custom QuicTransportConfig for this endpoint.

+
Source

pub fn transport_config(self, transport_config: QuicTransportConfig) -> Self

Sets a custom QuicTransportConfig for this endpoint.

The transport config contains parameters governing the QUIC state machine.

If unset, the default config is used. Default values should be suitable for most internet applications. Applications protocols which forbid remotely-initiated @@ -153,40 +153,44 @@ streams should set max_concurrent_bidi_streams and max_concur zero.

Please be aware that changing some settings may have adverse effects on establishing and maintaining direct connections.

-
Source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Available on non-wasm_browser only.

Optionally sets a custom DNS resolver to use for this endpoint.

+
Source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Available on non-wasm_browser only.

Optionally sets a custom DNS resolver to use for this endpoint.

The DNS resolver is used to resolve relay hostnames, and endpoint addresses if crate::address_lookup::DnsAddressLookup is configured.

By default, a new DNS resolver is created which is configured to use the host system’s DNS configuration. You can pass a custom instance of DnsResolver here to use a differently configured DNS resolver for this endpoint, or to share a DnsResolver between multiple endpoints.

-
Source

pub fn proxy_url(self, url: Url) -> Self

Sets an explicit proxy url to proxy all HTTP(S) traffic through.

-
Source

pub fn proxy_from_env(self) -> Self

Sets the proxy url from the environment, in this order:

+
Source

pub fn proxy_url(self, url: Url) -> Self

Sets an explicit proxy url to proxy all HTTP(S) traffic through.

+
Source

pub fn proxy_from_env(self) -> Self

Sets the proxy url from the environment, in this order:

  • HTTP_PROXY
  • http_proxy
  • HTTPS_PROXY
  • https_proxy
-
Source

pub fn keylog(self, keylog: bool) -> Self

Enables saving the TLS pre-master key for connections.

+
Source

pub fn ca_roots_config(self, ca_roots_config: CaRootsConfig) -> Self

Sets the trusted CA root certificates for non-iroh TLS connections.

+

These Certificate Authority roots are used as trust anchors for verifying +the validity of TLS certificates presented by external services, such as +iroh relays, pkarr servers, or DNS-over-HTTPS resolvers. +They don’t need to be trusted for the integrity or authenticity of native +iroh connections, which rely on iroh’s own cryptographic authentication mechanisms.

+
Source

pub fn keylog(self, keylog: bool) -> Self

Enables saving the TLS pre-master key for connections.

This key should normally remain secret but can be useful to debug networking issues by decrypting captured traffic.

If keylog is true then setting the SSLKEYLOGFILE environment variable to a filename will result in this file being used to log the TLS pre-master keys.

-
Source

pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self

Available on crate features test-utils only.

Skip verification of SSL certificates from relay servers

-

May only be used in tests.

-
Source

pub fn max_tls_tickets(self, n: usize) -> Self

Set the maximum number of TLS tickets to cache.

+
Source

pub fn max_tls_tickets(self, n: usize) -> Self

Set the maximum number of TLS tickets to cache.

Set this to a larger value if you want to do 0rtt connections to a large number of clients.

The default is 256, taking about 150 KiB in memory.

-
Source

pub fn hooks(self, hooks: impl EndpointHooks + 'static) -> Self

Install hooks onto the endpoint.

+
Source

pub fn hooks(self, hooks: impl EndpointHooks + 'static) -> Self

Install hooks onto the endpoint.

Endpoint hooks intercept the connection establishment process of an Endpoint.

You can install multiple EndpointHooks by calling this function multiple times. Order matters: hooks are invoked in the order they were installed onto the endpoint builder. Once a hook returns reject, further processing is aborted and other hooks won’t be invoked.

See EndpointHooks for details on the possible interception points in the connection lifecycle.

-

Trait Implementations§

Source§

impl Debug for Builder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for Builder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.ConnectOptions.html b/pr/3958/docs/iroh/endpoint/struct.ConnectOptions.html index 8eec544ad6..d76c422441 100644 --- a/pr/3958/docs/iroh/endpoint/struct.ConnectOptions.html +++ b/pr/3958/docs/iroh/endpoint/struct.ConnectOptions.html @@ -1,12 +1,12 @@ -ConnectOptions in iroh::endpoint - Rust

ConnectOptions

Struct ConnectOptions 

Source
pub struct ConnectOptions { /* private fields */ }
Expand description

Options for the Endpoint::connect_with_opts function.

-

Implementations§

Source§

impl ConnectOptions

Source

pub fn new() -> Self

Initializes new connection options.

+ConnectOptions in iroh::endpoint - Rust

ConnectOptions

Struct ConnectOptions 

Source
pub struct ConnectOptions { /* private fields */ }
Expand description

Options for the Endpoint::connect_with_opts function.

+

Implementations§

Source§

impl ConnectOptions

Source

pub fn new() -> Self

Initializes new connection options.

By default, the connection will use the same options as Endpoint::connect, e.g. a default QuicTransportConfig.

-
Source

pub fn with_transport_config( +

Source

pub fn with_transport_config( self, transport_config: QuicTransportConfig, ) -> Self

Sets the QUIC transport config options for this connection.

-
Source

pub fn with_additional_alpns(self, alpns: Vec<Vec<u8>>) -> Self

Sets ALPN identifiers that should be signaled as supported on connection, in +

Source

pub fn with_additional_alpns(self, alpns: Vec<Vec<u8>>) -> Self

Sets ALPN identifiers that should be signaled as supported on connection, in addition to the main ALPN identifier used in Endpoint::connect_with_opts.

This allows connecting to servers that may only support older versions of your protocol. In this case, you would add the older ALPN identifiers with this @@ -20,7 +20,7 @@ list or the main ALPN identifiers on the accept side, see the endpoint builder’s Builder::alpns function.

-

Trait Implementations§

Source§

impl Clone for ConnectOptions

Source§

fn clone(&self) -> ConnectOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ConnectOptions

Source§

fn default() -> ConnectOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for ConnectOptions

Source§

fn clone(&self) -> ConnectOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ConnectOptions

Source§

fn default() -> ConnectOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.Connecting.html b/pr/3958/docs/iroh/endpoint/struct.Connecting.html index d0dbcca4cd..ded2a202d0 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Connecting.html +++ b/pr/3958/docs/iroh/endpoint/struct.Connecting.html @@ -1,6 +1,6 @@ -Connecting in iroh::endpoint - Rust

Connecting

Struct Connecting 

Source
pub struct Connecting { /* private fields */ }
Expand description

An outgoing connection in progress.

+Connecting in iroh::endpoint - Rust

Connecting

Struct Connecting 

Source
pub struct Connecting { /* private fields */ }
Expand description

An outgoing connection in progress.

This future resolves to a Connection once the handshake completes.

-

Implementations§

Source§

impl Connecting

Source

pub fn into_0rtt(self) -> Result<OutgoingZeroRttConnection, Connecting>

Converts this Connecting into a 0-RTT connection at the cost of weakened security.

+

Implementations§

Source§

impl Connecting

Source

pub fn into_0rtt(self) -> Result<OutgoingZeroRttConnection, Connecting>

Converts this Connecting into a 0-RTT connection at the cost of weakened security.

If 0-RTT can be attempted, returns a OutgoingZeroRttConnection, which represents outgoing 0-RTT connection.

If the 0-RTT cannot even be attempted, returns back the same Connecting without @@ -24,10 +24,10 @@ should therefore never invoke non-idempotent operations.

You can use RecvStream::is_0rtt to check whether a stream has been opened in 0-RTT and thus whether parts of the stream are operating under this reduced security level.

See also documentation for Accepting::into_0rtt.

-
Source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

-
Source

pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError>

Extracts the ALPN protocol from the peer’s handshake data.

-
Source

pub fn remote_id(&self) -> EndpointId

Returns the EndpointId of the endpoint that this connection attempt tries to connect to.

-

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

Source§

type Output = Result<Connection, ConnectingError>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering +
Source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

+
Source

pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError>

Extracts the ALPN protocol from the peer’s handshake data.

+
Source

pub fn remote_id(&self) -> EndpointId

Returns the EndpointId of the endpoint that this connection attempt tries to connect to.

+

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

Source§

type Output = Result<Connection, ConnectingError>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/struct.Connection.html b/pr/3958/docs/iroh/endpoint/struct.Connection.html index b2c0b608ec..744ceb5df0 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Connection.html +++ b/pr/3958/docs/iroh/endpoint/struct.Connection.html @@ -1,4 +1,4 @@ -Connection in iroh::endpoint - Rust

Connection

Struct Connection 

Source
pub struct Connection<State: ConnectionState = HandshakeCompleted> { /* private fields */ }
Expand description

A QUIC connection.

+Connection in iroh::endpoint - Rust

Connection

Struct Connection 

Source
pub struct Connection<State: ConnectionState = HandshakeCompleted> { /* private fields */ }
Expand description

A QUIC connection.

If all references to a connection (including every clone of the Connection handle, streams of incoming streams, and the various stream types) have been dropped, then the connection will be automatically closed with an error_code of 0 and an empty reason. You @@ -8,29 +8,29 @@ receiving CONNECTION_CLOSE the peer may drop any stream data not yet delivered t application. Connection::close describes in more detail how to gracefully close a connection without losing application data.

May be cloned to obtain another handle to the same connection.

-

Implementations§

Source§

impl<T: ConnectionState> Connection<T>

Source

pub fn open_uni(&self) -> OpenUni<'_> ⓘ

Initiates a new outgoing unidirectional stream.

+

Implementations§

Source§

impl<T: ConnectionState> Connection<T>

Source

pub fn open_uni(&self) -> OpenUni<'_> ⓘ

Initiates a new outgoing unidirectional stream.

Streams are cheap and instantaneous to open unless blocked by flow control. As a consequence, the peer won’t be notified that a stream has been opened until the stream is actually used.

-
Source

pub fn open_bi(&self) -> OpenBi<'_> ⓘ

Initiates a new outgoing bidirectional stream.

+
Source

pub fn open_bi(&self) -> OpenBi<'_> ⓘ

Initiates a new outgoing bidirectional stream.

Streams are cheap and instantaneous to open unless blocked by flow control. As a consequence, the peer won’t be notified that a stream has been opened until the stream is actually used. Calling open_bi then waiting on the RecvStream without writing anything to SendStream will never succeed.

-
Source

pub fn accept_uni(&self) -> AcceptUni<'_> ⓘ

Accepts the next incoming uni-directional stream.

-
Source

pub fn accept_bi(&self) -> AcceptBi<'_> ⓘ

Accept the next incoming bidirectional stream.

+
Source

pub fn accept_uni(&self) -> AcceptUni<'_> ⓘ

Accepts the next incoming uni-directional stream.

+
Source

pub fn accept_bi(&self) -> AcceptBi<'_> ⓘ

Accept the next incoming bidirectional stream.

Important Note: The peer that calls open_bi must write to its SendStream before the peer Connection is able to accept the stream using accept_bi(). Calling open_bi then waiting on the RecvStream without writing anything to the connected SendStream will never succeed.

-
Source

pub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ

Receives an application datagram.

-
Source

pub async fn closed(&self) -> ConnectionError

Wait for the connection to be closed for any reason.

+
Source

pub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ

Receives an application datagram.

+
Source

pub async fn closed(&self) -> ConnectionError

Wait for the connection to be closed for any reason.

Despite the return type’s name, closed connections are often not an error condition at the application layer. Cases that might be routine include ConnectionError::LocallyClosed and ConnectionError::ApplicationClosed.

-
Source

pub fn close_reason(&self) -> Option<ConnectionError>

If the connection is closed, the reason why.

+
Source

pub fn close_reason(&self) -> Option<ConnectionError>

If the connection is closed, the reason why.

Returns None if the connection is still open.

-
Source

pub fn close(&self, error_code: VarInt, reason: &[u8])

Closes the connection immediately.

+
Source

pub fn close(&self, error_code: VarInt, reason: &[u8])

Closes the connection immediately.

Pending operations will fail immediately with ConnectionError::LocallyClosed. No more data is sent to the peer and the peer may drop buffered data upon receiving the CONNECTION_CLOSE frame.

@@ -51,39 +51,39 @@ endpoint. Once the local side sends a CONNECTION_CLOSE frame in response to call close the remote endpoint may drop any data it received but is as yet undelivered to the application, including data that was acknowledged as received to the local endpoint.

-
Source

pub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>

Transmits data as an unreliable, unordered application datagram.

+
Source

pub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>

Transmits data as an unreliable, unordered application datagram.

Application datagrams are a low-level primitive. They may be lost or delivered out of order, and data must both fit inside a single QUIC packet and be smaller than the maximum dictated by the peer.

-
Source

pub fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_> ⓘ

Transmits data as an unreliable, unordered application datagram

+
Source

pub fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_> ⓘ

Transmits data as an unreliable, unordered application datagram

Unlike send_datagram(), this method will wait for buffer space during congestion conditions, which effectively prioritizes old datagrams over new datagrams.

See send_datagram() for details.

-
Source

pub fn max_datagram_size(&self) -> Option<usize>

Computes the maximum size of datagrams that may be passed to send_datagram.

+
Source

pub fn max_datagram_size(&self) -> Option<usize>

Computes the maximum size of datagrams that may be passed to send_datagram.

Returns None if datagrams are unsupported by the peer or disabled locally.

This may change over the lifetime of a connection according to variation in the path MTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the peer’s limit is large this is guaranteed to be a little over a kilobyte at minimum.

Not necessarily the maximum size of received datagrams.

-
Source

pub fn datagram_send_buffer_space(&self) -> usize

Bytes available in the outgoing datagram buffer.

+
Source

pub fn datagram_send_buffer_space(&self) -> usize

Bytes available in the outgoing datagram buffer.

When greater than zero, calling send_datagram with a datagram of at most this size is guaranteed not to cause older datagrams to be dropped.

-
Source

pub fn rtt(&self, path_id: PathId) -> Option<Duration>

Current best estimate of this connection’s latency (round-trip-time).

-
Source

pub fn stats(&self) -> ConnectionStats

Returns connection statistics.

-
Source

pub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>>

Current state of the congestion control algorithm, for debugging purposes.

-
Source

pub fn handshake_data(&self) -> Option<Box<dyn Any>>

Parameters negotiated during the handshake.

+
Source

pub fn rtt(&self, path_id: PathId) -> Option<Duration>

Current best estimate of this connection’s latency (round-trip-time).

+
Source

pub fn stats(&self) -> ConnectionStats

Returns connection statistics.

+
Source

pub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>>

Current state of the congestion control algorithm, for debugging purposes.

+
Source

pub fn handshake_data(&self) -> Option<Box<dyn Any>>

Parameters negotiated during the handshake.

Guaranteed to return Some on fully established connections or after Connecting::handshake_data() succeeds. See that method’s documentations for details on the returned value.

-
Source

pub fn peer_identity(&self) -> Option<Box<dyn Any>>

Cryptographic identity of the peer.

+
Source

pub fn peer_identity(&self) -> Option<Box<dyn Any>>

Cryptographic identity of the peer.

The dynamic type returned is determined by the configured Session. For the default rustls session, the return value can be downcast to a Vec<[rustls::pki_types::CertificateDer]>

-
Source

pub fn stable_id(&self) -> usize

A stable identifier for this connection.

+
Source

pub fn stable_id(&self) -> usize

A stable identifier for this connection.

Peer addresses and connection IDs can change, but this value will remain fixed for the lifetime of the connection.

-
Source

pub fn export_keying_material( +

Source

pub fn export_keying_material( &self, output: &mut [u8], label: &[u8], @@ -94,20 +94,20 @@ arguments and output buffers of equal length, they will get the same sequence of bytes in output. These bytes are cryptographically strong and pseudorandom, and are suitable for use as keying material.

See RFC5705 for more information.

-

Source

pub fn set_max_concurrent_uni_streams(&self, count: VarInt)

Modifies the number of unidirectional streams that may be concurrently opened.

+
Source

pub fn set_max_concurrent_uni_streams(&self, count: VarInt)

Modifies the number of unidirectional streams that may be concurrently opened.

No streams may be opened by the peer unless fewer than count are already open. Large counts increase both minimum and worst-case memory consumption.

-
Source

pub fn set_receive_window(&self, receive_window: VarInt)

See [quinn_proto::TransportConfig::receive_window].

-
Source

pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

Modifies the number of bidirectional streams that may be concurrently opened.

+
Source

pub fn set_receive_window(&self, receive_window: VarInt)

See [quinn_proto::TransportConfig::receive_window].

+
Source

pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

Modifies the number of bidirectional streams that may be concurrently opened.

No streams may be opened by the peer unless fewer than count are already open. Large counts increase both minimum and worst-case memory consumption.

-
Source§

impl Connection<HandshakeCompleted>

Source

pub fn alpn(&self) -> &[u8] ⓘ

Extracts the ALPN protocol from the peer’s handshake data.

-
Source

pub fn remote_id(&self) -> EndpointId

Returns the EndpointId from the peer’s TLS certificate.

+
Source§

impl Connection<HandshakeCompleted>

Source

pub fn alpn(&self) -> &[u8] ⓘ

Extracts the ALPN protocol from the peer’s handshake data.

+
Source

pub fn remote_id(&self) -> EndpointId

Returns the EndpointId from the peer’s TLS certificate.

The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is included in the TLS certificate presented during the handshake when connecting. This function allows you to get the EndpointId of the remote endpoint of this connection.

-
Source

pub fn paths(&self) -> PathWatcher

Returns a Watcher for the network paths of this connection.

+
Source

pub fn paths(&self) -> PathWatcher

Returns a Watcher for the network paths of this connection.

A connection can have several network paths to the remote endpoint, commonly there will be a path via the relay server and a holepunched path.

Returns a PathWatcher, which implements the Watcher trait. The watcher is updated @@ -126,12 +126,12 @@ stats for a path via Connection have been dropped. To reliably access path stats when a connection closes, wait for Connection::closed and then call Connection::paths and directly iterate over the path stats while the Connection struct is still in scope.

-
Source

pub fn side(&self) -> Side

Returns the side of the connection (client or server).

-
Source

pub fn to_info(&self) -> ConnectionInfo

Returns a connection info struct.

+
Source

pub fn side(&self) -> Side

Returns the side of the connection (client or server).

+
Source

pub fn to_info(&self) -> ConnectionInfo

Returns a connection info struct.

A ConnectionInfo is a weak handle to the connection that does not keep the connection alive, but does allow to access some information about the connection and to wait for the connection to be closed.

-
Source§

impl Connection<IncomingZeroRtt>

Source

pub fn alpn(&self) -> Option<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

-
Source

pub async fn handshake_completed(&self) -> Result<Connection, ConnectingError>

Waits until the full handshake occurs and then returns a Connection.

+
Source§

impl Connection<IncomingZeroRtt>

Source

pub fn alpn(&self) -> Option<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

+
Source

pub async fn handshake_completed(&self) -> Result<Connection, ConnectingError>

Waits until the full handshake occurs and then returns a Connection.

This may fail with ConnectingError::ConnectionError, if there was some general failure with the connection, such as a network timeout since we accepted the connection.

@@ -140,13 +140,13 @@ doesn’t use the right TLS authentication, which usually every iroh endpoint uses and requires.

Thus, those errors should only occur if someone connects to you with a modified iroh endpoint or with a plain QUIC client.

-
Source

pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

Returns the EndpointId from the peer’s TLS certificate.

+
Source

pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

Returns the EndpointId from the peer’s TLS certificate.

The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is included in the TLS certificate presented during the handshake when connecting. This function allows you to get the EndpointId of the remote endpoint of this connection.

-
Source§

impl Connection<OutgoingZeroRtt>

Source

pub fn alpn(&self) -> Option<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

-
Source

pub async fn handshake_completed( +

Source§

impl Connection<OutgoingZeroRtt>

Source

pub fn alpn(&self) -> Option<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

+
Source

pub async fn handshake_completed( &self, ) -> Result<ZeroRttStatus, ConnectingError>

Waits until the full handshake occurs and returns a ZeroRttStatus.

If ZeroRttStatus::Accepted is returned, than any streams created before @@ -162,14 +162,14 @@ doesn’t use the right TLS authentication, which usually every iroh endpoint uses and requires.

Thus, those errors should only occur if someone connects to you with a modified iroh endpoint or with a plain QUIC client.

-
Source

pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

Returns the EndpointId from the peer’s TLS certificate.

+
Source

pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

Returns the EndpointId from the peer’s TLS certificate.

The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is included in the TLS certificate presented during the handshake when connecting. This function allows you to get the EndpointId of the remote endpoint of this connection.

-

Trait Implementations§

Source§

impl<State: Clone + ConnectionState> Clone for Connection<State>
where - State::Data: Clone,

Source§

fn clone(&self) -> Connection<State>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<State: Debug + ConnectionState> Debug for Connection<State>
where - State::Data: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<State> Freeze for Connection<State>
where +

Trait Implementations§

Source§

impl<State: Clone + ConnectionState> Clone for Connection<State>
where + State::Data: Clone,

Source§

fn clone(&self) -> Connection<State>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<State: Debug + ConnectionState> Debug for Connection<State>
where + State::Data: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<State> Freeze for Connection<State>
where <State as ConnectionState>::Data: Freeze,

§

impl<State> RefUnwindSafe for Connection<State>
where <State as ConnectionState>::Data: RefUnwindSafe,

§

impl<State> Send for Connection<State>
where <State as ConnectionState>::Data: Send,

§

impl<State> Sync for Connection<State>
where diff --git a/pr/3958/docs/iroh/endpoint/struct.ConnectionInfo.html b/pr/3958/docs/iroh/endpoint/struct.ConnectionInfo.html index da1440c97b..e4cab3c673 100644 --- a/pr/3958/docs/iroh/endpoint/struct.ConnectionInfo.html +++ b/pr/3958/docs/iroh/endpoint/struct.ConnectionInfo.html @@ -1,15 +1,15 @@ -ConnectionInfo in iroh::endpoint - Rust

ConnectionInfo

Struct ConnectionInfo 

Source
pub struct ConnectionInfo { /* private fields */ }
Expand description

Information about a connection.

+ConnectionInfo in iroh::endpoint - Rust

ConnectionInfo

Struct ConnectionInfo 

Source
pub struct ConnectionInfo { /* private fields */ }
Expand description

Information about a connection.

A ConnectionInfo is a weak handle to a connection that exposes some information about the connection, but does not keep the connection alive.

-

Implementations§

Source§

impl ConnectionInfo

Source

pub fn alpn(&self) -> &[u8] ⓘ

Source

pub fn remote_id(&self) -> EndpointId

Source

pub fn is_alive(&self) -> bool

Source

pub fn paths(&self) -> PathWatcher

Returns a watcher for the network paths of this connection.

+

Implementations§

Source§

impl ConnectionInfo

Source

pub fn alpn(&self) -> &[u8] ⓘ

Source

pub fn remote_id(&self) -> EndpointId

Source

pub fn is_alive(&self) -> bool

Source

pub fn paths(&self) -> PathWatcher

Returns a watcher for the network paths of this connection.

See Connection::paths for details.

-
Source

pub fn stats(&self) -> Option<ConnectionStats>

Returns connection statistics.

+
Source

pub fn stats(&self) -> Option<ConnectionStats>

Returns connection statistics.

Returns None if the connection has been dropped.

-
Source

pub fn side(&self) -> Side

Returns the side of the connection (client or server).

-
Source

pub async fn closed(&self) -> Option<(ConnectionError, ConnectionStats)>

Waits for the connection to be closed, and returns the close reason and final connection stats.

+
Source

pub fn side(&self) -> Side

Returns the side of the connection (client or server).

+
Source

pub async fn closed(&self) -> Option<(ConnectionError, ConnectionStats)>

Waits for the connection to be closed, and returns the close reason and final connection stats.

Returns None if the connection has been dropped already before this call.

-
Source

pub fn selected_path(&self) -> Option<PathInfo>

Returns the currently selected path.

-

Trait Implementations§

Source§

impl Clone for ConnectionInfo

Source§

fn clone(&self) -> ConnectionInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectionInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Source

pub fn selected_path(&self) -> Option<PathInfo>

Returns the currently selected path.

+

Trait Implementations§

Source§

impl Clone for ConnectionInfo

Source§

fn clone(&self) -> ConnectionInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConnectionInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.DirectAddr.html b/pr/3958/docs/iroh/endpoint/struct.DirectAddr.html index 57bda784ac..d46b24d87f 100644 --- a/pr/3958/docs/iroh/endpoint/struct.DirectAddr.html +++ b/pr/3958/docs/iroh/endpoint/struct.DirectAddr.html @@ -1,4 +1,4 @@ -DirectAddr in iroh::endpoint - Rust

DirectAddr

Struct DirectAddr 

Source
pub struct DirectAddr {
+DirectAddr in iroh::endpoint - Rust

DirectAddr

Struct DirectAddr 

Source
pub struct DirectAddr {
     pub addr: SocketAddr,
     pub typ: DirectAddrType,
 }
Expand description

A direct address on which an iroh-endpoint might be contactable.

@@ -9,16 +9,16 @@ iroh endpoint, see Fields§

§addr: SocketAddr

The address.

§typ: DirectAddrType

The origin of this direct address.

-

Trait Implementations§

Source§

impl Clone for DirectAddr

Source§

fn clone(&self) -> DirectAddr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DirectAddr

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Trait Implementations§

Source§

impl Clone for DirectAddr

Source§

fn clone(&self) -> DirectAddr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DirectAddr

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DirectAddr

Source§

fn cmp(&self, other: &DirectAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DirectAddr

Source§

fn cmp(&self, other: &DirectAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DirectAddr

Source§

fn eq(&self, other: &DirectAddr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for DirectAddr

Source§

fn partial_cmp(&self, other: &DirectAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more

Source§

impl PartialEq for DirectAddr

Source§

fn eq(&self, other: &DirectAddr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for DirectAddr

Source§

fn partial_cmp(&self, other: &DirectAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Eq for DirectAddr

Source§

impl StructuralPartialEq for DirectAddr

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Eq for DirectAddr

Source§

impl StructuralPartialEq for DirectAddr

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.Endpoint.html b/pr/3958/docs/iroh/endpoint/struct.Endpoint.html index 20268458bb..963999e98b 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Endpoint.html +++ b/pr/3958/docs/iroh/endpoint/struct.Endpoint.html @@ -1,4 +1,4 @@ -Endpoint in iroh::endpoint - Rust

Endpoint

Struct Endpoint 

Source
pub struct Endpoint { /* private fields */ }
Expand description

Controls an iroh endpoint, establishing connections with other endpoints.

+Endpoint in iroh::endpoint - Rust

Endpoint

Struct Endpoint 

Source
pub struct Endpoint { /* private fields */ }
Expand description

Controls an iroh endpoint, establishing connections with other endpoints.

This is the main API interface to create connections to, and accept connections from other iroh endpoints. The connections are peer-to-peer and encrypted, a Relay server is used to make the connections reliable. See the [crate docs] for a more detailed @@ -16,27 +16,27 @@ the peer are created using the Connection::open_uni and Connection::open_bi functions.

Note that due to the light-weight properties of streams a stream will only be accepted once the initiating peer has sent some data on it.

-

Implementations§

Source§

impl Endpoint

Source

pub fn builder() -> Builder

Returns the builder for an Endpoint, with a production configuration.

+

Implementations§

Source§

impl Endpoint

Source

pub fn builder() -> Builder

Returns the builder for an Endpoint, with a production configuration.

This uses the presets::N0 as the configuration.

-
Source

pub fn empty_builder(relay_mode: RelayMode) -> Builder

Returns the builder for an Endpoint, with an empty configuration.

+
Source

pub fn empty_builder(relay_mode: RelayMode) -> Builder

Returns the builder for an Endpoint, with an empty configuration.

See Builder::empty for details.

-
Source

pub async fn bind() -> Result<Self, BindError>

Constructs a default Endpoint and binds it immediately.

+
Source

pub async fn bind() -> Result<Self, BindError>

Constructs a default Endpoint and binds it immediately.

Uses the presets::N0 as configuration.

-
Source

pub fn set_alpns(&self, alpns: Vec<Vec<u8>>)

Sets the list of accepted ALPN protocols.

+
Source

pub fn set_alpns(&self, alpns: Vec<Vec<u8>>)

Sets the list of accepted ALPN protocols.

This will only affect new incoming connections. Note that this overrides the current list of ALPNs.

If the endpoint is closed, this method will log a warning and ignore the request to set new ALPNs.

-
Source

pub async fn insert_relay( +

Source

pub async fn insert_relay( &self, relay: RelayUrl, config: Arc<RelayConfig>, ) -> Option<Arc<RelayConfig>>

Adds the provided configuration to the RelayMap.

Replacing and returning any existing configuration for RelayUrl.

Will also return None if the endpoint is closed.

-
Source

pub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>>

Removes the configuration from the RelayMap for the provided RelayUrl.

+
Source

pub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>>

Removes the configuration from the RelayMap for the provided RelayUrl.

Returns any existing configuration if it exists. Will also return None if the endpoint is closed.

-
Source

pub async fn connect( +

Source

pub async fn connect( &self, endpoint_addr: impl Into<EndpointAddr>, alpn: &[u8], @@ -56,7 +56,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_with_opts( +

Source

pub async fn connect_with_opts( &self, endpoint_addr: impl Into<EndpointAddr>, alpn: &[u8], @@ -76,17 +76,17 @@ security concerns. establishing and maintaining direct connections. Carefully test settings you use and consider this currently as still rather experimental. -

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 secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

-
Source

pub fn id(&self) -> EndpointId

Returns the endpoint id of this endpoint.

+
Source

pub fn secret_key(&self) -> &SecretKey

Returns the secret_key of this endpoint.

+
Source

pub fn id(&self) -> EndpointId

Returns the endpoint id of this endpoint.

This ID is the unique addressing information of this endpoint and other peers must know it to be able to connect to this endpoint.

-
Source

pub fn addr(&self) -> EndpointAddr

Returns the current EndpointAddr. +

Source

pub fn addr(&self) -> EndpointAddr

Returns the current EndpointAddr. As long as the endpoint was able to bind to a network interface, some local addresses will be available.

The state of other fields depends on the state of networking and connectivity. @@ -96,7 +96,7 @@ to ensure that the EndpointAddr will contain enough information to to be dialable by a remote endpoint over the internet.

You can use the Endpoint::watch_addr method to get updates when the EndpointAddr changes.

-
Source

pub fn watch_addr(&self) -> impl Watcher<Value = EndpointAddr> + use<>

Available on non-wasm_browser only.

Returns a Watcher for the current EndpointAddr for this endpoint.

+
Source

pub fn watch_addr(&self) -> impl Watcher<Value = EndpointAddr> + use<>

Available on non-wasm_browser only.

Returns a Watcher for the current EndpointAddr for this endpoint.

The observed EndpointAddr will have the current RelayUrl and direct addresses.

use iroh::{Endpoint, Watcher};
@@ -139,7 +139,7 @@ tokio::spawn(endpoint_closed.run_until(async move {
 }));
 // Do fancy things, then close the endpoint.
 // Our task above will stop even if there are still clones of `Endpoint` alive somewhere.
-endpoint.close().await;
Source

pub async fn online(&self)

A convenience method that waits for the endpoint to be considered “online”.

+endpoint.close().await;
Source

pub async fn online(&self)

A convenience method that waits for the endpoint to be considered “online”.

This currently means at least one relay server was connected, and at least one local IP address is available. Even if no relays are configured, this will still wait for a relay connection.

@@ -172,18 +172,25 @@ let endpoint = Endpoint::bind().await; // After this await returns we have a connection to at least one relay // and holepunching should work as expected. endpoint.online().await; -}
Source

pub fn bound_sockets(&self) -> Vec<SocketAddr>

Available on non-wasm_browser only.

Returns the local socket addresses on which the underlying sockets are bound.

+}
Source

pub fn bound_sockets(&self) -> Vec<SocketAddr>

Available on non-wasm_browser only.

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 dns_resolver(&self) -> Result<&DnsResolver, EndpointError>

Available on non-wasm_browser only.

Returns the DNS resolver used in this Endpoint.

+
Source

pub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError>

Available on non-wasm_browser only.

Returns the DNS resolver used in this Endpoint.

§Errors

Returns an EndpointError::Closed error if the endpoint is closed.

See Builder::dns_resolver.

-
Source

pub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError>

Returns the Address Lookup service, if configured.

+
Source

pub fn tls_config(&self) -> &ClientConfig

Returns the [rustls::ClientConfig] used by the endpoint for connecting to external services.

+

This might be useful for address lookup services or other functions +that want to use the same trust anchors as iroh does for verifying the +validity of TLS certificates presented by external services.

+

Note that this TLS config is unrelated to how iroh validates the authenticity +of iroh connections itself.

+

The config is based on the trust anchors set via Builder::ca_roots_config.

+
Source

pub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError>

Returns the Address Lookup service, if configured.

§Errors

Returns a EndpointError::Closed error if the endpoint is closed.

See Builder::address_lookup.

-
Source

pub fn metrics(&self) -> &EndpointMetrics

Available on crate feature metrics only.

Returns metrics collected for this endpoint.

+
Source

pub fn metrics(&self) -> &EndpointMetrics

Available on crate feature metrics only.

Returns metrics collected for this endpoint.

The endpoint internally collects various metrics about its operation. The returned EndpointMetrics struct contains all of these metrics.

You can access individual metrics directly by using the public fields:

@@ -253,13 +260,13 @@ registry.write().unwrap().register_all(endpoint.metrics()); .std_context("text")?; assert!(res.contains(r#"TYPE socket_recv_datagrams counter"#)); -assert!(res.contains(r#"socket_recv_datagrams_total 0"#));
Source

pub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo>

Returns addressing information about a recently used remote endpoint.

+assert!(res.contains(r#"socket_recv_datagrams_total 0"#));
Source

pub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo>

Returns addressing information about a recently used remote endpoint.

The returned RemoteInfo contains a list of all transport addresses for the remote that we know about. This is a snapshot in time and not a watcher.

Returns None if the endpoint doesn’t have information about the remote or if the endpoint is closed. When remote endpoints are no longer used, our endpoint will keep information around for a little while, and then drop it. Afterwards, this will return None.

-
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 @@ -268,14 +275,14 @@ 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.

If the endpoint is closed, this method will log a warning and ignore the request.

-
Source

pub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>)

Sets the initial user-defined data to be published in Address Lookups for this endpoint.

+
Source

pub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>)

Sets the initial user-defined data to be published in Address Lookups for this endpoint.

If the user-defined data passed to this function is different to the previous one, the endpoint will republish its endpoint info to the configured Address Lookups.

See also Builder::user_data_for_address_lookup for setting an initial value when building the endpoint.

If the endpoint is closed, this method will log a warning and ignore the request.

-
Source

pub async fn close(&self)

Closes the QUIC endpoint and the socket.

+
Source

pub async fn close(&self)

Closes the QUIC endpoint and the socket.

This will close any remaining open Connections with an error code of 0 and an empty reason. Though it is best practice to close those explicitly before with a custom error code and reason.

@@ -301,8 +308,8 @@ while TCP sockets usually get closed and drained by the operating system in the kernel during the “Time-Wait” period of the TCP socket.

Be aware however that the underlying UDP sockets are only closed once all clones of the the respective Endpoint are dropped.

-
Source

pub fn is_closed(&self) -> bool

Check if this endpoint is still alive, or already closed.

-
Source

pub fn closed(&self) -> EndpointClosed ⓘ

Returns a future that resolves once the endpoint closes.

+
Source

pub fn is_closed(&self) -> bool

Check if this endpoint is still alive, or already closed.

+
Source

pub fn closed(&self) -> EndpointClosed ⓘ

Returns a future that resolves once the endpoint closes.

The returned future does not contain a clone or reference to the Endpoint, so keeping the returned future alive does not prevent the endpoint from being dropped.

To run a task and stop it once the endpoint closes, you can use @@ -311,13 +318,13 @@ so keeping the returned future alive does not prevent the endpoint from being dr

let endpoint = Endpoint::bind().await?;
 tokio::spawn(endpoint.closed().run_until(async move {
     // the future will be aborted once the endpoint closes.
-}));
Source

pub fn create_server_config_builder( +}));

Source

pub fn create_server_config_builder( &self, alpns: Vec<Vec<u8>>, ) -> ServerConfigBuilder

Create a ServerConfigBuilder for this endpoint that includes the given alpns.

Use the ServerConfigBuilder to customize the ServerConfig connection configuration for a connection accepted using the Incoming::accept_with method.

-

Trait Implementations§

Source§

impl Clone for Endpoint

Source§

fn clone(&self) -> Endpoint

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Endpoint

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for Endpoint

Source§

fn clone(&self) -> Endpoint

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Endpoint

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.EndpointClosed.html b/pr/3958/docs/iroh/endpoint/struct.EndpointClosed.html index 5e2c996d9b..0b6ed94d41 100644 --- a/pr/3958/docs/iroh/endpoint/struct.EndpointClosed.html +++ b/pr/3958/docs/iroh/endpoint/struct.EndpointClosed.html @@ -1,9 +1,9 @@ -EndpointClosed in iroh::endpoint - Rust

EndpointClosed

Struct EndpointClosed 

Source
pub struct EndpointClosed { /* private fields */ }
Expand description

Future returned from Endpoint::closed.

-

Implementations§

Source§

impl EndpointClosed

Source

pub async fn run_until<F: Future>(self, fut: F) -> Option<F::Output>

Runs a future to completion, or until the Endpoint is closed.

+EndpointClosed in iroh::endpoint - Rust

EndpointClosed

Struct EndpointClosed 

Source
pub struct EndpointClosed { /* private fields */ }
Expand description

Future returned from Endpoint::closed.

+

Implementations§

Source§

impl EndpointClosed

Source

pub async fn run_until<F: Future>(self, fut: F) -> Option<F::Output>

Runs a future to completion, or until the Endpoint is closed.

Returns the output of fut if it completes before the endpoint closes, or None otherwise.

-

Trait Implementations§

Source§

impl Debug for EndpointClosed

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Future for EndpointClosed

Source§

type Output = ()

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering -the current task for wakeup if the value is not yet available. Read more
Source§

impl<'pin> Unpin for EndpointClosed
where +

Trait Implementations§

Source§

impl Debug for EndpointClosed

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Future for EndpointClosed

Source§

type Output = ()

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering +the current task for wakeup if the value is not yet available. Read more
Source§

impl<'pin> Unpin for EndpointClosed
where PinnedFieldsOf<__EndpointClosed<'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/3958/docs/iroh/endpoint/struct.HandshakeCompleted.html b/pr/3958/docs/iroh/endpoint/struct.HandshakeCompleted.html index b72a82899e..9a55ae89a7 100644 --- a/pr/3958/docs/iroh/endpoint/struct.HandshakeCompleted.html +++ b/pr/3958/docs/iroh/endpoint/struct.HandshakeCompleted.html @@ -1,5 +1,5 @@ -HandshakeCompleted in iroh::endpoint - Rust

HandshakeCompleted

Struct HandshakeCompleted 

Source
pub struct HandshakeCompleted;
Expand description

Marker type for a connection that has completed the handshake.

-

Trait Implementations§

Source§

impl Clone for HandshakeCompleted

Source§

fn clone(&self) -> HandshakeCompleted

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionState for HandshakeCompleted

Source§

type Data = HandshakeCompletedData

State-specific data stored in the Connection.
Source§

impl Debug for HandshakeCompleted

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +HandshakeCompleted in iroh::endpoint - Rust

HandshakeCompleted

Struct HandshakeCompleted 

Source
pub struct HandshakeCompleted;
Expand description

Marker type for a connection that has completed the handshake.

+

Trait Implementations§

Source§

impl Clone for HandshakeCompleted

Source§

fn clone(&self) -> HandshakeCompleted

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionState for HandshakeCompleted

Source§

type Data = HandshakeCompletedData

State-specific data stored in the Connection.
Source§

impl Debug for HandshakeCompleted

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.Incoming.html b/pr/3958/docs/iroh/endpoint/struct.Incoming.html index c11757cda6..2c8ac9aea8 100644 --- a/pr/3958/docs/iroh/endpoint/struct.Incoming.html +++ b/pr/3958/docs/iroh/endpoint/struct.Incoming.html @@ -1,31 +1,31 @@ -Incoming in iroh::endpoint - Rust

Incoming

Struct Incoming 

Source
pub struct Incoming { /* private fields */ }
Expand description

An incoming connection for which the server has not yet begun its parts of the +Incoming in iroh::endpoint - Rust

Incoming

Struct Incoming 

Source
pub struct Incoming { /* private fields */ }
Expand description

An incoming connection for which the server has not yet begun its parts of the handshake.

-

Implementations§

Source§

impl Incoming

Source

pub fn accept(self) -> Result<Accepting, ConnectionError>

Attempts to accept this incoming connection (an error may still occur).

+

Implementations§

Source§

impl Incoming

Source

pub fn accept(self) -> Result<Accepting, 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<Accepting, ConnectionError>

Accepts this incoming connection using a custom configuration.

Use the Endpoint::create_server_config_builder method to create a ServerConfigBuilder to customize a ServerConfig.

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_addr(&self) -> IncomingAddr

Returns the remote address of this incoming connection.

+
Source

pub fn remote_addr_validated(&self) -> bool

Whether the socket address that is initiating this connection has been validated.

This means that the sender of the initial packet has proved that they can receive -traffic sent to self.remote_address().

-

Trait Implementations§

Source§

impl Debug for Incoming

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl IntoFuture for Incoming

Source§

type Output = Result<Connection, ConnectingError>

The output that the future will produce on completion.
Source§

type IntoFuture = IncomingFuture

Which kind of future are we turning this into?
Source§

fn into_future(self) -> Self::IntoFuture

Creates a future from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +traffic sent to self.remote_addr().

+

Trait Implementations§

Source§

impl Debug for Incoming

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl IntoFuture for Incoming

Source§

type Output = Result<Connection, ConnectingError>

The output that the future will produce on completion.
Source§

type IntoFuture = IncomingFuture

Which kind of future are we turning this into?
Source§

fn into_future(self) -> Self::IntoFuture

Creates a future from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.IncomingZeroRtt.html b/pr/3958/docs/iroh/endpoint/struct.IncomingZeroRtt.html index 6f1ce71dc9..204d2c1db8 100644 --- a/pr/3958/docs/iroh/endpoint/struct.IncomingZeroRtt.html +++ b/pr/3958/docs/iroh/endpoint/struct.IncomingZeroRtt.html @@ -1,5 +1,5 @@ -IncomingZeroRtt in iroh::endpoint - Rust

IncomingZeroRtt

Struct IncomingZeroRtt 

Source
pub struct IncomingZeroRtt;
Expand description

Marker type for a connection that is in the incoming 0-RTT state.

-

Trait Implementations§

Source§

impl Clone for IncomingZeroRtt

Source§

fn clone(&self) -> IncomingZeroRtt

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionState for IncomingZeroRtt

Source§

type Data = IncomingZeroRttData

State-specific data stored in the Connection.
Source§

impl Debug for IncomingZeroRtt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +IncomingZeroRtt in iroh::endpoint - Rust

IncomingZeroRtt

Struct IncomingZeroRtt 

Source
pub struct IncomingZeroRtt;
Expand description

Marker type for a connection that is in the incoming 0-RTT state.

+

Trait Implementations§

Source§

impl Clone for IncomingZeroRtt

Source§

fn clone(&self) -> IncomingZeroRtt

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionState for IncomingZeroRtt

Source§

type Data = IncomingZeroRttData

State-specific data stored in the Connection.
Source§

impl Debug for IncomingZeroRtt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html b/pr/3958/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html index d78b4af73b..b70c595cb3 100644 --- a/pr/3958/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html +++ b/pr/3958/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html @@ -16,7 +16,7 @@ amount of bytes.

Most networks have an MTU higher than 1200. Through MTU discovery, endpoints can detect the path’s MTU and, if it turns out to be higher, start sending bigger packets.

§MTU discovery internals

-

Quinn implements MTU discovery through DPLPMTUD (Datagram Packetization Layer Path MTU +

noq implements MTU discovery through DPLPMTUD (Datagram Packetization Layer Path MTU Discovery), described in section 14.3 of RFC 9000. This method consists of sending QUIC packets padded to a particular size (called PMTU probes), and waiting to see if the remote @@ -29,7 +29,7 @@ packet’s size.

subsequent discoveries are scheduled to run when the interval has elapsed, starting from the last time when MTU discovery completed.

Since the search space for MTUs is quite big (the smallest possible MTU is 1200, and the highest -is 65527), Quinn performs a binary search to keep the number of probes as low as possible. The +is 65527), noq performs a binary search to keep the number of probes as low as possible. The lower bound of the search is equal to [TransportConfig::initial_mtu] in the initial MTU discovery run, and is equal to the currently discovered MTU in subsequent runs. The upper bound is determined by the minimum of MtuDiscoveryConfig::upper_bound and the diff --git a/pr/3958/docs/iroh/endpoint/struct.OutgoingZeroRtt.html b/pr/3958/docs/iroh/endpoint/struct.OutgoingZeroRtt.html index 0a4c9ae9c6..c7aa5cd37d 100644 --- a/pr/3958/docs/iroh/endpoint/struct.OutgoingZeroRtt.html +++ b/pr/3958/docs/iroh/endpoint/struct.OutgoingZeroRtt.html @@ -1,5 +1,5 @@ -OutgoingZeroRtt in iroh::endpoint - Rust

OutgoingZeroRtt

Struct OutgoingZeroRtt 

Source
pub struct OutgoingZeroRtt;
Expand description

Marker type for a connection that is in the outgoing 0-RTT state.

-

Trait Implementations§

Source§

impl Clone for OutgoingZeroRtt

Source§

fn clone(&self) -> OutgoingZeroRtt

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionState for OutgoingZeroRtt

Source§

type Data = OutgoingZeroRttData

State-specific data stored in the Connection.
Source§

impl Debug for OutgoingZeroRtt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +OutgoingZeroRtt in iroh::endpoint - Rust

OutgoingZeroRtt

Struct OutgoingZeroRtt 

Source
pub struct OutgoingZeroRtt;
Expand description

Marker type for a connection that is in the outgoing 0-RTT state.

+

Trait Implementations§

Source§

impl Clone for OutgoingZeroRtt

Source§

fn clone(&self) -> OutgoingZeroRtt

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConnectionState for OutgoingZeroRtt

Source§

type Data = OutgoingZeroRttData

State-specific data stored in the Connection.
Source§

impl Debug for OutgoingZeroRtt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/endpoint/struct.RemoteEndpointIdError.html b/pr/3958/docs/iroh/endpoint/struct.RemoteEndpointIdError.html index 6e09f42173..7dc8176e12 100644 --- a/pr/3958/docs/iroh/endpoint/struct.RemoteEndpointIdError.html +++ b/pr/3958/docs/iroh/endpoint/struct.RemoteEndpointIdError.html @@ -1,5 +1,5 @@ -RemoteEndpointIdError in iroh::endpoint - Rust

RemoteEndpointIdError

Struct RemoteEndpointIdError 

Source
pub struct RemoteEndpointIdError { /* private fields */ }

Implementations§

Source§

impl RemoteEndpointIdError

Source

pub fn new() -> Self

Creates a new RemoteEndpointIdError error.

-

Trait Implementations§

Source§

impl Clone for RemoteEndpointIdError

Source§

fn clone(&self) -> RemoteEndpointIdError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RemoteEndpointIdError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RemoteEndpointIdError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RemoteEndpointIdError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<RemoteEndpointIdError> for AcceptError

Source§

fn from(source: RemoteEndpointIdError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoteEndpointIdError> for AnyError

Source§

fn from(value: RemoteEndpointIdError) -> AnyError

Converts to this type from the input type.
Source§

impl From<RemoteEndpointIdError> for AuthenticationError

Source§

fn from(source: RemoteEndpointIdError) -> Self

Converts to this type from the input type.
Source§

impl StackError for RemoteEndpointIdError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +RemoteEndpointIdError in iroh::endpoint - Rust

RemoteEndpointIdError

Struct RemoteEndpointIdError 

Source
pub struct RemoteEndpointIdError { /* private fields */ }

Implementations§

Source§

impl RemoteEndpointIdError

Source

pub fn new() -> Self

Creates a new RemoteEndpointIdError error.

+

Trait Implementations§

Source§

impl Clone for RemoteEndpointIdError

Source§

fn clone(&self) -> RemoteEndpointIdError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RemoteEndpointIdError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RemoteEndpointIdError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RemoteEndpointIdError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<RemoteEndpointIdError> for AcceptError

Source§

fn from(source: RemoteEndpointIdError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoteEndpointIdError> for AnyError

Source§

fn from(value: RemoteEndpointIdError) -> AnyError

Converts to this type from the input type.
Source§

impl From<RemoteEndpointIdError> for AuthenticationError

Source§

fn from(source: RemoteEndpointIdError) -> Self

Converts to this type from the input type.
Source§

impl StackError for RemoteEndpointIdError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/struct.RetryError.html b/pr/3958/docs/iroh/endpoint/struct.RetryError.html index 649776f4b8..7ae2c75fae 100644 --- a/pr/3958/docs/iroh/endpoint/struct.RetryError.html +++ b/pr/3958/docs/iroh/endpoint/struct.RetryError.html @@ -1,7 +1,7 @@ -RetryError in iroh::endpoint - Rust

RetryError

Struct RetryError 

Source
pub struct RetryError { /* private fields */ }
Expand description

Error for attempting to retry an Incoming which already bears a token from a previous retry

-

Implementations§

Source§

impl RetryError

Source

pub fn new(err: RetryError, ep: Endpoint) -> Self

Creates a new RetryError error.

-
Source§

impl RetryError

Source

pub fn into_incoming(self) -> Incoming

Get the Incoming

-

Trait Implementations§

Source§

impl Debug for RetryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RetryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RetryError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<RetryError> for AnyError

Source§

fn from(value: RetryError) -> AnyError

Converts to this type from the input type.
Source§

impl StackError for RetryError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +RetryError in iroh::endpoint - Rust

RetryError

Struct RetryError 

Source
pub struct RetryError { /* private fields */ }
Expand description

Error for attempting to retry an Incoming which already bears a token from a previous retry

+

Implementations§

Source§

impl RetryError

Source

pub fn new(err: RetryError, ep: Endpoint) -> Self

Creates a new RetryError error.

+
Source§

impl RetryError

Source

pub fn into_incoming(self) -> Incoming

Get the Incoming

+

Trait Implementations§

Source§

impl Debug for RetryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RetryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RetryError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<RetryError> for AnyError

Source§

fn from(value: RetryError) -> AnyError

Converts to this type from the input type.
Source§

impl StackError for RetryError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint/trait.AeadKey.html b/pr/3958/docs/iroh/endpoint/trait.AeadKey.html index 9ecc907b5e..7afc958bdf 100644 --- a/pr/3958/docs/iroh/endpoint/trait.AeadKey.html +++ b/pr/3958/docs/iroh/endpoint/trait.AeadKey.html @@ -30,4 +30,4 @@ A key for sealing data with AEAD-based algorithms

&self, data: &'a mut [u8], additional_data: &[u8], -) -> Result<&'a mut [u8], CryptoError>

Implementors§

\ No newline at end of file +) -> Result<&'a mut [u8], CryptoError>

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.ConnectionState.html b/pr/3958/docs/iroh/endpoint/trait.ConnectionState.html index 07b0e198fa..3296d96f93 100644 --- a/pr/3958/docs/iroh/endpoint/trait.ConnectionState.html +++ b/pr/3958/docs/iroh/endpoint/trait.ConnectionState.html @@ -1,5 +1,5 @@ -ConnectionState in iroh::endpoint - Rust

ConnectionState

Trait ConnectionState 

Source
pub trait ConnectionState: Sealed {
+ConnectionState in iroh::endpoint - Rust

ConnectionState

Trait ConnectionState 

Source
pub trait ConnectionState: Sealed {
     type Data: Debug + Clone;
 }
Expand description

Trait to track the state of a Connection at compile time.

-

Required Associated Types§

Source

type Data: Debug + Clone

State-specific data stored in the Connection.

-

Implementors§

Source§

impl ConnectionState for HandshakeCompleted

Source§

type Data = HandshakeCompletedData

Source§

impl ConnectionState for IncomingZeroRtt

Source§

type Data = IncomingZeroRttData

Source§

impl ConnectionState for OutgoingZeroRtt

Source§

type Data = OutgoingZeroRttData

\ No newline at end of file +

Required Associated Types§

Source

type Data: Debug + Clone

State-specific data stored in the Connection.

+

Implementors§

Source§

impl ConnectionState for HandshakeCompleted

Source§

type Data = HandshakeCompletedData

Source§

impl ConnectionState for IncomingZeroRtt

Source§

type Data = IncomingZeroRttData

Source§

impl ConnectionState for OutgoingZeroRtt

Source§

type Data = OutgoingZeroRttData

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.Controller.html b/pr/3958/docs/iroh/endpoint/trait.Controller.html index 4b15e6af67..fcb9a3ccda 100644 --- a/pr/3958/docs/iroh/endpoint/trait.Controller.html +++ b/pr/3958/docs/iroh/endpoint/trait.Controller.html @@ -77,4 +77,4 @@ application data prior to receiving these acknowledgements.

This function is called when all packets that were deemed lost (for instance because of packet reordering) are acknowledged after the congestion event was raised.

fn metrics(&self) -> ControllerMetrics

Retrieve implementation-specific metrics used to populate qlog traces when they are enabled

-

Implementors§

§

impl Controller for Bbr

§

impl Controller for Cubic

§

impl Controller for NewReno

\ No newline at end of file +

Implementors§

§

impl Controller for Bbr

§

impl Controller for Cubic

§

impl Controller for NewReno

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.ControllerFactory.html b/pr/3958/docs/iroh/endpoint/trait.ControllerFactory.html index 43280546bd..cb3f3150eb 100644 --- a/pr/3958/docs/iroh/endpoint/trait.ControllerFactory.html +++ b/pr/3958/docs/iroh/endpoint/trait.ControllerFactory.html @@ -8,4 +8,4 @@ }
Expand description

quinn_proto types that are used in the public iroh API. Constructs controllers on demand

Required Methods§

fn build(self: Arc<Self>, now: Instant, current_mtu: u16) -> Box<dyn Controller>

Construct a fresh Controller

-

Implementors§

§

impl ControllerFactory for BbrConfig

§

impl ControllerFactory for CubicConfig

§

impl ControllerFactory for NewRenoConfig

\ No newline at end of file +

Implementors§

§

impl ControllerFactory for BbrConfig

§

impl ControllerFactory for CubicConfig

§

impl ControllerFactory for NewRenoConfig

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.HandshakeTokenKey.html b/pr/3958/docs/iroh/endpoint/trait.HandshakeTokenKey.html index 67223a30c7..2176c65c49 100644 --- a/pr/3958/docs/iroh/endpoint/trait.HandshakeTokenKey.html +++ b/pr/3958/docs/iroh/endpoint/trait.HandshakeTokenKey.html @@ -4,4 +4,4 @@ }
Expand description

quinn_proto types that are used in the public iroh API. A pseudo random key for HKDF

Required Methods§

fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Box<dyn AeadKey>

Derive AEAD using hkdf

-

Implementations on Foreign Types§

§

impl HandshakeTokenKey for Prk

§

fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Box<dyn AeadKey>

Implementors§

\ No newline at end of file +

Implementations on Foreign Types§

§

impl HandshakeTokenKey for Prk

§

fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Box<dyn AeadKey>

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.HeaderKey.html b/pr/3958/docs/iroh/endpoint/trait.HeaderKey.html index 0a5cd1cf50..84ce11d1d9 100644 --- a/pr/3958/docs/iroh/endpoint/trait.HeaderKey.html +++ b/pr/3958/docs/iroh/endpoint/trait.HeaderKey.html @@ -8,4 +8,4 @@ Keys used to protect packet headers

Required Methods§

fn decrypt(&self, pn_offset: usize, packet: &mut [u8])

Decrypt the given packet’s header

fn encrypt(&self, pn_offset: usize, packet: &mut [u8])

Encrypt the given packet’s header

fn sample_size(&self) -> usize

The sample size used for this key’s algorithm

-

Implementations on Foreign Types§

§

impl HeaderKey for Box<dyn HeaderProtectionKey>

§

fn decrypt(&self, pn_offset: usize, packet: &mut [u8])

§

fn encrypt(&self, pn_offset: usize, packet: &mut [u8])

§

fn sample_size(&self) -> usize

Implementors§

\ No newline at end of file +

Implementations on Foreign Types§

§

impl HeaderKey for Box<dyn HeaderProtectionKey>

§

fn decrypt(&self, pn_offset: usize, packet: &mut [u8])

§

fn encrypt(&self, pn_offset: usize, packet: &mut [u8])

§

fn sample_size(&self) -> usize

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.PacketKey.html b/pr/3958/docs/iroh/endpoint/trait.PacketKey.html index eb918d6476..21c975123e 100644 --- a/pr/3958/docs/iroh/endpoint/trait.PacketKey.html +++ b/pr/3958/docs/iroh/endpoint/trait.PacketKey.html @@ -49,4 +49,4 @@ abandoned

packet: u64, header: &[u8], payload: &mut BytesMut, -) -> Result<(), CryptoError>

§

fn tag_len(&self) -> usize

§

fn confidentiality_limit(&self) -> u64

§

fn integrity_limit(&self) -> u64

Implementors§

\ No newline at end of file +) -> Result<(), CryptoError>
§

fn tag_len(&self) -> usize

§

fn confidentiality_limit(&self) -> u64

§

fn integrity_limit(&self) -> u64

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.QlogFactory.html b/pr/3958/docs/iroh/endpoint/trait.QlogFactory.html index 77a3f0932d..e8f7b82ccd 100644 --- a/pr/3958/docs/iroh/endpoint/trait.QlogFactory.html +++ b/pr/3958/docs/iroh/endpoint/trait.QlogFactory.html @@ -20,4 +20,4 @@ now: Instant, ) -> Option<QlogConfig>

Returns a QlogConfig for a connection, if logging should be enabled.

If None is returned, qlog capture is disabled for the connection.

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.TimeSource.html b/pr/3958/docs/iroh/endpoint/trait.TimeSource.html index e8be7452cd..5ca7a88378 100644 --- a/pr/3958/docs/iroh/endpoint/trait.TimeSource.html +++ b/pr/3958/docs/iroh/endpoint/trait.TimeSource.html @@ -5,4 +5,4 @@ Object to get current SystemTime

This exists to allow system time to be mocked in tests, or wherever else desired.

Required Methods§

fn now(&self) -> SystemTime

Get SystemTime::now() or the mocked equivalent

-

Implementors§

§

impl TimeSource for StdSystemTime

\ No newline at end of file +

Implementors§

§

impl TimeSource for StdSystemTime

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/trait.TokenLog.html b/pr/3958/docs/iroh/endpoint/trait.TokenLog.html index 6787db7c6a..16f56cd7f6 100644 --- a/pr/3958/docs/iroh/endpoint/trait.TokenLog.html +++ b/pr/3958/docs/iroh/endpoint/trait.TokenLog.html @@ -43,4 +43,4 @@ attacks. The QUIC specification requires that this be limited, if not preven vulnerability; it is permissible for a TokenLog to always return Err. A false positive causes the token to be ignored, which may cause the transmission of some 0.5-RTT data to be delayed until the handshake completes, if a sufficient amount of 0.5-RTT data it sent.

-

Implementors§

§

impl TokenLog for BloomTokenLog

§

impl TokenLog for NoneTokenLog

\ No newline at end of file +

Implementors§

§

impl TokenLog for BloomTokenLog

§

impl TokenLog for NoneTokenLog

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint/type.IncomingZeroRttConnection.html b/pr/3958/docs/iroh/endpoint/type.IncomingZeroRttConnection.html index 6ae8b4db49..6713e1ee32 100644 --- a/pr/3958/docs/iroh/endpoint/type.IncomingZeroRttConnection.html +++ b/pr/3958/docs/iroh/endpoint/type.IncomingZeroRttConnection.html @@ -1,4 +1,4 @@ -IncomingZeroRttConnection in iroh::endpoint - Rust

IncomingZeroRttConnection

Type Alias IncomingZeroRttConnection 

Source
pub type IncomingZeroRttConnection = Connection<IncomingZeroRtt>;
Expand description

A QUIC connection on the server-side that can possibly accept 0-RTT data.

+IncomingZeroRttConnection in iroh::endpoint - Rust

IncomingZeroRttConnection

Type Alias IncomingZeroRttConnection 

Source
pub type IncomingZeroRttConnection = Connection<IncomingZeroRtt>;
Expand description

A QUIC connection on the server-side that can possibly accept 0-RTT data.

It is very similar to a Connection, but the IncomingZeroRttConnection::remote_id and IncomingZeroRttConnection::alpn may not be set yet, since the handshake has not necessarily occurred yet.

diff --git a/pr/3958/docs/iroh/endpoint/type.OutgoingZeroRttConnection.html b/pr/3958/docs/iroh/endpoint/type.OutgoingZeroRttConnection.html index 7ec215caeb..6ca96a1f86 100644 --- a/pr/3958/docs/iroh/endpoint/type.OutgoingZeroRttConnection.html +++ b/pr/3958/docs/iroh/endpoint/type.OutgoingZeroRttConnection.html @@ -1,4 +1,4 @@ -OutgoingZeroRttConnection in iroh::endpoint - Rust

OutgoingZeroRttConnection

Type Alias OutgoingZeroRttConnection 

Source
pub type OutgoingZeroRttConnection = Connection<OutgoingZeroRtt>;
Expand description

The client side of a 0-RTT connection.

+OutgoingZeroRttConnection in iroh::endpoint - Rust

OutgoingZeroRttConnection

Type Alias OutgoingZeroRttConnection 

Source
pub type OutgoingZeroRttConnection = Connection<OutgoingZeroRtt>;
Expand description

The client side of a 0-RTT connection.

This is created using Connecting::into_0rtt.

Creating a OutgoingZeroRttConnection means that the endpoint is capable of attempting a 0-RTT connection with the remote. The remote may still diff --git a/pr/3958/docs/iroh/endpoint_info/constant.IROH_TXT_NAME.html b/pr/3958/docs/iroh/endpoint_info/constant.IROH_TXT_NAME.html index 9f19787027..bbe39e685c 100644 --- a/pr/3958/docs/iroh/endpoint_info/constant.IROH_TXT_NAME.html +++ b/pr/3958/docs/iroh/endpoint_info/constant.IROH_TXT_NAME.html @@ -1,2 +1,2 @@ -IROH_TXT_NAME in iroh::endpoint_info - Rust

IROH_TXT_NAME

Constant IROH_TXT_NAME 

Source
pub const IROH_TXT_NAME: &'static str;
Expand description

The DNS name for the iroh TXT record.

+IROH_TXT_NAME in iroh::endpoint_info - Rust

IROH_TXT_NAME

Constant IROH_TXT_NAME 

Source
pub const IROH_TXT_NAME: &'static str;
Expand description

The DNS name for the iroh TXT record.

\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint_info/enum.DecodingError.html b/pr/3958/docs/iroh/endpoint_info/enum.DecodingError.html index 2d4bfb13e5..9bf09dc526 100644 --- a/pr/3958/docs/iroh/endpoint_info/enum.DecodingError.html +++ b/pr/3958/docs/iroh/endpoint_info/enum.DecodingError.html @@ -1,4 +1,4 @@ -DecodingError in iroh::endpoint_info - Rust

DecodingError

Enum DecodingError 

Source
#[non_exhaustive]
pub enum DecodingError { +DecodingError in iroh::endpoint_info - Rust

DecodingError

Enum DecodingError 

Source
#[non_exhaustive]
pub enum DecodingError { InvalidEncodingZ32 { source: Z32Error, meta: Meta, @@ -14,7 +14,7 @@ }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

InvalidEncodingZ32

Fields

§source: Z32Error
§meta: Meta

Captured call-site metadata

§

InvalidLength

Fields

§len: usize
§meta: Meta

Captured call-site metadata

§

InvalidKey

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for DecodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> ParseError

Converts to this type from the input type.
Source§

impl StackError for DecodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for DecodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> ParseError

Converts to this type from the input type.
Source§

impl StackError for DecodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3958/docs/iroh/endpoint_info/enum.EncodingError.html index 8e0715f443..13ab7f43dc 100644 --- a/pr/3958/docs/iroh/endpoint_info/enum.EncodingError.html +++ b/pr/3958/docs/iroh/endpoint_info/enum.EncodingError.html @@ -1,4 +1,4 @@ -EncodingError in iroh::endpoint_info - Rust

EncodingError

Enum EncodingError 

Source
#[non_exhaustive]
pub enum EncodingError { +EncodingError in iroh::endpoint_info - Rust

EncodingError

Enum EncodingError 

Source
#[non_exhaustive]
pub enum EncodingError { FailedBuildingPacket { source: SignedPacketBuildError, meta: Meta, @@ -9,7 +9,7 @@ }, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

FailedBuildingPacket

Fields

§source: SignedPacketBuildError
§meta: Meta

Captured call-site metadata

§

InvalidTxtEntry

Fields

§source: SimpleDnsError
§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for EncodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl StackError for EncodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for EncodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl StackError for EncodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3958/docs/iroh/endpoint_info/enum.ParseError.html index 2d579593c5..a2d6da2efd 100644 --- a/pr/3958/docs/iroh/endpoint_info/enum.ParseError.html +++ b/pr/3958/docs/iroh/endpoint_info/enum.ParseError.html @@ -1,4 +1,4 @@ -ParseError in iroh::endpoint_info - Rust

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { +ParseError in iroh::endpoint_info - Rust

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { UnexpectedFormat { s: String, meta: Meta, @@ -29,7 +29,7 @@

§

Utf8

Fields

§source: Utf8Error
§meta: Meta

Captured call-site metadata

§

NotAnIrohRecord

Fields

§label: String
§meta: Meta

Captured call-site metadata

§

DecodingError

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for ParseError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> ParseError

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ParseError

Source§

fn from(source: Utf8Error) -> ParseError

Converts to this type from the input type.
Source§

impl StackError for ParseError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for ParseError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> ParseError

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ParseError

Source§

fn from(source: Utf8Error) -> ParseError

Converts to this type from the input type.
Source§

impl StackError for ParseError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/index.html b/pr/3958/docs/iroh/endpoint_info/index.html index 07f19f15bf..5032b3c1ae 100644 --- a/pr/3958/docs/iroh/endpoint_info/index.html +++ b/pr/3958/docs/iroh/endpoint_info/index.html @@ -1,4 +1,4 @@ -iroh::endpoint_info - Rust

Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by EndpointId.

+iroh::endpoint_info - Rust

Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by EndpointId.

Dialing by EndpointId is supported by iroh endpoints publishing Pkarr records to DNS servers or the Mainline DHT. This module supports creating and parsing these records.

DNS records are published under the following names:

@@ -30,5 +30,6 @@ in RFC1464. The following Each address is an IPv4 or IPv6 address with a port.

-

Structs§

EndpointData
Data about an endpoint that may be published to and resolved from discovery services.
EndpointInfo
Information about an endpoint that may be published to and resolved from discovery services.
MaxLengthExceededError
Error returned when an input value is too long for UserData.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

DecodingError
EncodingError
ParseError

Constants§

IROH_TXT_NAME
The DNS name for the iroh TXT record.

Traits§

EndpointIdExt
Extension methods for EndpointId to encode to and decode from [z32], +

Structs§

AddrFilter
A filter and/or reordering function applied to transport addresses, +typically used by AddressLookup services in iroh before publishing.
EndpointData
Data about an endpoint that may be published to and resolved from discovery services.
EndpointInfo
Information about an endpoint that may be published to and resolved from discovery services.
MaxLengthExceededError
Error returned when an input value is too long for UserData.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

DecodingError
EncodingError
ParseError

Constants§

IROH_TXT_NAME
The DNS name for the iroh TXT record.

Traits§

EndpointIdExt
Extension methods for EndpointId to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint_info/sidebar-items.js b/pr/3958/docs/iroh/endpoint_info/sidebar-items.js index 9129a8b3af..0a463f534a 100644 --- a/pr/3958/docs/iroh/endpoint_info/sidebar-items.js +++ b/pr/3958/docs/iroh/endpoint_info/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["IROH_TXT_NAME"],"enum":["DecodingError","EncodingError","ParseError"],"struct":["EndpointData","EndpointInfo","MaxLengthExceededError","UserData"],"trait":["EndpointIdExt"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["IROH_TXT_NAME"],"enum":["DecodingError","EncodingError","ParseError"],"struct":["AddrFilter","EndpointData","EndpointInfo","MaxLengthExceededError","UserData"],"trait":["EndpointIdExt"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3958/docs/iroh/endpoint_info/struct.AddrFilter.html new file mode 100644 index 0000000000..8858ad5871 --- /dev/null +++ b/pr/3958/docs/iroh/endpoint_info/struct.AddrFilter.html @@ -0,0 +1,56 @@ +AddrFilter in iroh::endpoint_info - Rust

AddrFilter

Struct AddrFilter 

Source
pub struct AddrFilter(/* private fields */);
Expand description

A filter and/or reordering function applied to transport addresses, +typically used by AddressLookup services in iroh before publishing.

+

Takes the full set of transport addresses and returns them as an ordered Vec, +allowing both filtering (by omitting addresses) and reordering (by controlling +the output order). A BTreeSet cannot preserve a custom order, so the return +type is Vec to make reordering possible.

+

See the documentation for each address lookup implementation for details on +what additional filtering the implementation may perform on top.

+

Implementations§

Source§

impl AddrFilter

Source

pub fn new( + f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, +) -> AddrFilter

Create a new AddrFilter

+
Source

pub fn relay_only() -> AddrFilter

Only keep relay addresses.

+
Source

pub fn ip_only() -> AddrFilter

Only keep direct IP addresses.

+
Source

pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>

Apply the address filter function to a set of addresses.

+

Trait Implementations§

Source§

impl Clone for AddrFilter

Source§

fn clone(&self) -> AddrFilter

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AddrFilter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for AddrFilter

Source§

fn default() -> AddrFilter

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where + T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where + T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where + T: 'a,

§

fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> DynClone for T
where + T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+
§

impl<T> FromRef<T> for T
where + T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an +Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where + U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +if into_left is true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> +if into_left(&self) returns true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where + T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/pr/3958/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3958/docs/iroh/endpoint_info/struct.EndpointData.html index 372e7bde35..26c9dcd686 100644 --- a/pr/3958/docs/iroh/endpoint_info/struct.EndpointData.html +++ b/pr/3958/docs/iroh/endpoint_info/struct.EndpointData.html @@ -1,24 +1,26 @@ -EndpointData in iroh::endpoint_info - Rust

EndpointData

Struct EndpointData 

Source
pub struct EndpointData { /* private fields */ }
Expand description

Data about an endpoint that may be published to and resolved from discovery services.

+EndpointData in iroh::endpoint_info - Rust

EndpointData

Struct EndpointData 

Source
pub struct EndpointData { /* private fields */ }
Expand description

Data about an endpoint that may be published to and resolved from discovery services.

This includes an optional RelayUrl, a set of direct addresses, and the optional UserData, a string that can be set by applications and is not parsed or used by iroh itself.

This struct does not include the endpoint’s EndpointId, only the data about a certain endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.

-

Implementations§

Source§

impl EndpointData

Source

pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData

Creates a new EndpointData with a relay URL and a set of direct addresses.

-
Source

pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData

Sets the relay URL and returns the updated endpoint data.

-
Source

pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData

Sets the direct addresses and returns the updated endpoint data.

-
Source

pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData

Sets the user-defined data and returns the updated endpoint data.

-
Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

-
Source

pub fn user_data(&self) -> Option<&UserData>

Returns the optional user-defined data of the endpoint.

-
Source

pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of the endpoint.

-
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

-
Source

pub fn set_user_data(&mut self, user_data: Option<UserData>)

Sets the user-defined data of the endpoint data.

-
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

-
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

-

Trait Implementations§

Source§

impl Clone for EndpointData

Source§

fn clone(&self) -> EndpointData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for EndpointData

Source§

fn default() -> EndpointData

Returns the “default value” for a type. Read more
Source§

impl From<EndpointAddr> for EndpointData

Source§

fn from(endpoint_addr: EndpointAddr) -> EndpointData

Converts to this type from the input type.
Source§

impl PartialEq for EndpointData

Source§

fn eq(&self, other: &EndpointData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for EndpointData

Source§

impl StructuralPartialEq for EndpointData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Implementations§

Source§

impl EndpointData

Source

pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData

Creates a new EndpointData with a relay URL and a set of direct addresses.

+
Source

pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData

Sets the relay URL and returns the updated endpoint data.

+
Source

pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData

Sets the direct addresses and returns the updated endpoint data.

+
Source

pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData

Sets the user-defined data and returns the updated endpoint data.

+
Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

+
Source

pub fn user_data(&self) -> Option<&UserData>

Returns the optional user-defined data of the endpoint.

+
Source

pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of the endpoint.

+
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

+
Source

pub fn set_user_data(&mut self, user_data: Option<UserData>)

Sets the user-defined data of the endpoint data.

+
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

+
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

+
Source

pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

Apply the given filter to the current addresses.

+

Returns a vec to allow re-ordering of addresses.

+

Trait Implementations§

Source§

impl Clone for EndpointData

Source§

fn clone(&self) -> EndpointData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for EndpointData

Source§

fn default() -> EndpointData

Returns the “default value” for a type. Read more
Source§

impl From<EndpointAddr> for EndpointData

Source§

fn from(endpoint_addr: EndpointAddr) -> EndpointData

Converts to this type from the input type.
Source§

impl PartialEq for EndpointData

Source§

fn eq(&self, other: &EndpointData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Eq for EndpointData

Source§

impl StructuralPartialEq for EndpointData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3958/docs/iroh/endpoint_info/struct.EndpointInfo.html index e96d0151fd..cc84adc2aa 100644 --- a/pr/3958/docs/iroh/endpoint_info/struct.EndpointInfo.html +++ b/pr/3958/docs/iroh/endpoint_info/struct.EndpointInfo.html @@ -1,42 +1,44 @@ -EndpointInfo in iroh::endpoint_info - Rust

EndpointInfo

Struct EndpointInfo 

Source
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust

EndpointInfo

Struct EndpointInfo 

Source
pub struct EndpointInfo {
     pub endpoint_id: PublicKey,
     pub data: EndpointData,
 }
Expand description

Information about an endpoint that may be published to and resolved from discovery services.

This struct couples a EndpointId with its associated EndpointData.

Fields§

§endpoint_id: PublicKey

The EndpointId of the endpoint this is about.

§data: EndpointData

The information published about the endpoint.

-

Implementations§

Source§

impl EndpointInfo

Source

pub fn new(endpoint_id: PublicKey) -> EndpointInfo

Creates a new EndpointInfo with an empty EndpointData.

-
Source

pub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo

Creates a new EndpointInfo from its parts.

-
Source

pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo

Sets the relay URL and returns the updated endpoint info.

-
Source

pub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo

Sets the IP based addresses and returns the updated endpoint info.

-
Source

pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo

Sets the user-defined data and returns the updated endpoint info.

-
Source

pub fn to_endpoint_addr(&self) -> EndpointAddr

Converts into a EndpointAddr by cloning the needed fields.

-
Source

pub fn into_endpoint_addr(self) -> EndpointAddr

Converts into a EndpointAddr without cloning.

-
Source

pub fn from_txt_lookup( +

Implementations§

Source§

impl EndpointInfo

Source

pub fn new(endpoint_id: PublicKey) -> EndpointInfo

Creates a new EndpointInfo with an empty EndpointData.

+
Source

pub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo

Creates a new EndpointInfo from its parts.

+
Source

pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo

Sets the relay URL and returns the updated endpoint info.

+
Source

pub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo

Sets the IP based addresses and returns the updated endpoint info.

+
Source

pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo

Sets the user-defined data and returns the updated endpoint info.

+
Source

pub fn to_endpoint_addr(&self) -> EndpointAddr

Converts into a EndpointAddr by cloning the needed fields.

+
Source

pub fn into_endpoint_addr(self) -> EndpointAddr

Converts into a EndpointAddr without cloning.

+
Source

pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, ) -> Result<EndpointInfo, ParseError>

Parses a EndpointInfo from DNS TXT lookup.

-
Source

pub fn from_pkarr_signed_packet( +

Source

pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<EndpointInfo, ParseError>

Parses a EndpointInfo from a [pkarr::SignedPacket].

-
Source

pub fn to_pkarr_signed_packet( +

Source

pub fn to_pkarr_signed_packet( &self, secret_key: &SecretKey, ttl: u32, ) -> Result<SignedPacket, EncodingError>

Creates a [pkarr::SignedPacket].

This constructs a DNS packet and signs it with a SecretKey.

-
Source

pub fn to_txt_strings(&self) -> Vec<String>

Converts into a list of {key}={value} strings.

-

Methods from Deref<Target = EndpointData>§

Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

-
Source

pub fn user_data(&self) -> Option<&UserData>

Returns the optional user-defined data of the endpoint.

-
Source

pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of the endpoint.

-
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

-
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

-
Source

pub fn set_user_data(&mut self, user_data: Option<UserData>)

Sets the user-defined data of the endpoint data.

-
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

-
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

-

Trait Implementations§

Source§

impl Clone for EndpointInfo

Source§

fn clone(&self) -> EndpointInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointInfo

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for EndpointInfo

Source§

type Target = EndpointData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<EndpointInfo as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for EndpointInfo

Source§

fn deref_mut(&mut self) -> &mut <EndpointInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointAddr> for EndpointInfo

Source§

fn from(addr: EndpointAddr) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointInfo> for EndpointAddr

Source§

fn from(value: EndpointInfo) -> EndpointAddr

Converts to this type from the input type.
Source§

impl From<Item> for EndpointInfo

Source§

fn from(item: Item) -> Self

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl PartialEq for EndpointInfo

Source§

fn eq(&self, other: &EndpointInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for EndpointInfo

Source§

impl StructuralPartialEq for EndpointInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Source

pub fn to_txt_strings(&self) -> Vec<String>

Converts into a list of {key}={value} strings.

+

Methods from Deref<Target = EndpointData>§

Source

pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the relay URL of the endpoint.

+
Source

pub fn user_data(&self) -> Option<&UserData>

Returns the optional user-defined data of the endpoint.

+
Source

pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of the endpoint.

+
Source

pub fn clear_ip_addrs(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn clear_relay_urls(&mut self)

Removes all direct addresses from the endpoint data.

+
Source

pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

Add addresses to the endpoint data.

+
Source

pub fn set_user_data(&mut self, user_data: Option<UserData>)

Sets the user-defined data of the endpoint data.

+
Source

pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

Returns the full list of all known addresses

+
Source

pub fn has_addrs(&self) -> bool

Does this have any addresses?

+
Source

pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

Apply the given filter to the current addresses.

+

Returns a vec to allow re-ordering of addresses.

+

Trait Implementations§

Source§

impl Clone for EndpointInfo

Source§

fn clone(&self) -> EndpointInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointInfo

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for EndpointInfo

Source§

type Target = EndpointData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<EndpointInfo as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for EndpointInfo

Source§

fn deref_mut(&mut self) -> &mut <EndpointInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointAddr> for EndpointInfo

Source§

fn from(addr: EndpointAddr) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointInfo> for EndpointAddr

Source§

fn from(value: EndpointInfo) -> EndpointAddr

Converts to this type from the input type.
Source§

impl From<Item> for EndpointInfo

Source§

fn from(item: Item) -> Self

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for EndpointInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo

Converts to this type from the input type.
Source§

impl PartialEq for EndpointInfo

Source§

fn eq(&self, other: &EndpointInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Eq for EndpointInfo

Source§

impl StructuralPartialEq for EndpointInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3958/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html index dd6ada4212..443b8c68fb 100644 --- a/pr/3958/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html +++ b/pr/3958/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html @@ -1,6 +1,6 @@ -MaxLengthExceededError in iroh::endpoint_info - Rust

MaxLengthExceededError

Struct MaxLengthExceededError 

Source
pub struct MaxLengthExceededError { /* private fields */ }
Expand description

Error returned when an input value is too long for UserData.

-

Implementations§

Trait Implementations§

Source§

impl Debug for MaxLengthExceededError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for MaxLengthExceededError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for MaxLengthExceededError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl StackError for MaxLengthExceededError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +MaxLengthExceededError in iroh::endpoint_info - Rust

MaxLengthExceededError

Struct MaxLengthExceededError 

Source
pub struct MaxLengthExceededError { /* private fields */ }
Expand description

Error returned when an input value is too long for UserData.

+

Implementations§

Trait Implementations§

Source§

impl Debug for MaxLengthExceededError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for MaxLengthExceededError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for MaxLengthExceededError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl StackError for MaxLengthExceededError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/struct.UserData.html b/pr/3958/docs/iroh/endpoint_info/struct.UserData.html index 80187e54d6..e97c1f5113 100644 --- a/pr/3958/docs/iroh/endpoint_info/struct.UserData.html +++ b/pr/3958/docs/iroh/endpoint_info/struct.UserData.html @@ -1,24 +1,24 @@ -UserData in iroh::endpoint_info - Rust

UserData

Struct UserData 

Source
pub struct UserData(/* private fields */);
Expand description

Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

+UserData in iroh::endpoint_info - Rust

UserData

Struct UserData 

Source
pub struct UserData(/* private fields */);
Expand description

Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Iroh does not keep track of or examine the user-defined data.

UserData implements FromStr and TryFrom<String>, so you can convert &str and String into UserData easily.

-

Implementations§

Source§

impl UserData

Source

pub const MAX_LENGTH: usize = 245usize

The max byte length allowed for user-defined data.

+

Implementations§

Source§

impl UserData

Source

pub const MAX_LENGTH: usize = 245usize

The max byte length allowed for user-defined data.

In DNS discovery services, the user-defined data is stored in a TXT record character string, which has a max length of 255 bytes. We need to subtract the user-data= prefix, which leaves 245 bytes for the actual user-defined data.

-

Trait Implementations§

Source§

impl AsRef<str> for UserData

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for UserData

Source§

fn clone(&self) -> UserData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UserData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for UserData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl FromStr for UserData

Source§

type Err = MaxLengthExceededError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<UserData, <UserData as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for UserData

Source§

fn hash<__H>(&self, state: &mut __H)
where +

Trait Implementations§

Source§

impl AsRef<str> for UserData

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for UserData

Source§

fn clone(&self) -> UserData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UserData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for UserData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl FromStr for UserData

Source§

type Err = MaxLengthExceededError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<UserData, <UserData as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for UserData

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UserData

Source§

fn cmp(&self, other: &UserData) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UserData

Source§

fn cmp(&self, other: &UserData) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UserData

Source§

fn eq(&self, other: &UserData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for UserData

Source§

fn partial_cmp(&self, other: &UserData) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more

Source§

impl PartialEq for UserData

Source§

fn eq(&self, other: &UserData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for UserData

Source§

fn partial_cmp(&self, other: &UserData) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl TryFrom<String> for UserData

Source§

type Error = MaxLengthExceededError

The type returned in the event of a conversion error.
Source§

fn try_from( +the >= operator. Read more

Source§

impl TryFrom<String> for UserData

Source§

type Error = MaxLengthExceededError

The type returned in the event of a conversion error.
Source§

fn try_from( value: String, -) -> Result<UserData, <UserData as TryFrom<String>>::Error>

Performs the conversion.
Source§

impl Eq for UserData

Source§

impl StructuralPartialEq for UserData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T

Performs the conversion.
Source§

impl Eq for UserData

Source§

impl StructuralPartialEq for UserData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3958/docs/iroh/endpoint_info/trait.EndpointIdExt.html index 6ea6893f49..cd55ce6904 100644 --- a/pr/3958/docs/iroh/endpoint_info/trait.EndpointIdExt.html +++ b/pr/3958/docs/iroh/endpoint_info/trait.EndpointIdExt.html @@ -1,9 +1,9 @@ -EndpointIdExt in iroh::endpoint_info - Rust

EndpointIdExt

Trait EndpointIdExt 

Source
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust

EndpointIdExt

Trait EndpointIdExt 

Source
pub trait EndpointIdExt {
     // Required methods
     fn to_z32(&self) -> String;
     fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
 }
Expand description

Extension methods for EndpointId to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.

-

Required Methods§

Source

fn to_z32(&self) -> String

Encodes a EndpointId in z-base-32 encoding.

-
Source

fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

Parses a EndpointId from z-base-32 encoding.

-

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file +

Required Methods§

Source

fn to_z32(&self) -> String

Encodes a EndpointId in z-base-32 encoding.

+
Source

fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

Parses a EndpointId from z-base-32 encoding.

+

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh/enum.TransportAddr.html b/pr/3958/docs/iroh/enum.TransportAddr.html index 1b008a2358..411a23aeaf 100644 --- a/pr/3958/docs/iroh/enum.TransportAddr.html +++ b/pr/3958/docs/iroh/enum.TransportAddr.html @@ -1,4 +1,4 @@ -TransportAddr in iroh - Rust

TransportAddr

Enum TransportAddr 

Source
#[non_exhaustive]
pub enum TransportAddr { +TransportAddr in iroh - Rust

TransportAddr

Enum TransportAddr 

Source
#[non_exhaustive]
pub enum TransportAddr { Relay(RelayUrl), Ip(SocketAddr), }
Expand description

Available address types.

@@ -9,7 +9,7 @@

Trait Implementations§

Source§

impl Clone for TransportAddr

Source§

fn clone(&self) -> TransportAddr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransportAddr

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TransportAddr

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<TransportAddr, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<TransportAddrInfo> for TransportAddr

Source§

fn from(value: TransportAddrInfo) -> Self

Converts to this type from the input type.
Source§

impl Hash for TransportAddr

Source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<IncomingAddr> for TransportAddr

Source§

fn from(addr: IncomingAddr) -> Self

Converts to this type from the input type.
Source§

impl From<TransportAddrInfo> for TransportAddr

Source§

fn from(value: TransportAddrInfo) -> Self

Converts to this type from the input type.
Source§

impl Hash for TransportAddr

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for TransportAddr

Source§

fn cmp(&self, other: &TransportAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where @@ -41,7 +41,7 @@ the >= operator. Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an diff --git a/pr/3958/docs/iroh/index.html b/pr/3958/docs/iroh/index.html index aab596710c..9d27378bd2 100644 --- a/pr/3958/docs/iroh/index.html +++ b/pr/3958/docs/iroh/index.html @@ -180,4 +180,4 @@ connecting using only the Re-exports§
pub use endpoint::Endpoint;
pub use endpoint::RelayMode;

Modules§

address_lookup
Lookup the address of an Endpoint ID.
defaults
Default values used in iroh
dnsNon-wasm_browser
This module exports a DNS resolver, which is also the default resolver used in the -crate::Endpoint if no custom resolver is configured.
endpoint
The Endpoint allows establishing connections to other iroh endpoints.
endpoint_info
Support for handling DNS resource records for dialing by EndpointId.
metrics
Co-locating all of the iroh metrics structs
protocol
Tools for spawning an accept loop that routes incoming requests to the right protocol.
test_utilstest-utils
Internal utilities to support testing.

Structs§

EndpointAddr
Network-level addressing information for an iroh endpoint.
NetReport
A net_report report.
PublicKey
A public key.
RelayConfig
Information on a specific relay server.
RelayMap
List of relay server configurations to be used in an iroh endpoint.
RelayUrl
A URL identifying a relay server.
RelayUrlParseError
Can occur when parsing a string into a RelayUrl.
SecretKey
A secret key.
Signature
Ed25519 signature.
SignatureError
Verification of a signature failed.

Enums§

KeyParsingError
Error when deserialising a PublicKey or a SecretKey.
TransportAddr
Available address types.

Constants§

NET_REPORT_TIMEOUT
The maximum amount of time, in seconds, the net_report will spend gathering a single report.

Traits§

Watcher
A handle to a value that’s represented by one or more underlying [Watchable]s.

Type Aliases§

EndpointId
The identifier for an endpoint in the (iroh) network.
\ No newline at end of file +crate::Endpoint if no custom resolver is configured.
endpoint
The Endpoint allows establishing connections to other iroh endpoints.
endpoint_info
Support for handling DNS resource records for dialing by EndpointId.
metrics
Co-locating all of the iroh metrics structs
protocol
Tools for spawning an accept loop that routes incoming requests to the right protocol.
test_utilstest-utils
Internal utilities to support testing.
tls
TLS configuration for iroh.

Structs§

EndpointAddr
Network-level addressing information for an iroh endpoint.
NetReport
A net_report report.
PublicKey
A public key.
RelayConfig
Information on a specific relay server.
RelayMap
List of relay server configurations to be used in an iroh endpoint.
RelayUrl
A URL identifying a relay server.
RelayUrlParseError
Can occur when parsing a string into a RelayUrl.
SecretKey
A secret key.
Signature
Ed25519 signature.
SignatureError
Verification of a signature failed.

Enums§

KeyParsingError
Error when deserialising a PublicKey or a SecretKey.
TransportAddr
Available address types.

Constants§

NET_REPORT_TIMEOUT
The maximum amount of time, in seconds, the net_report will spend gathering a single report.

Traits§

Watcher
A handle to a value that’s represented by one or more underlying [Watchable]s.

Type Aliases§

EndpointId
The identifier for an endpoint in the (iroh) network.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/sidebar-items.js b/pr/3958/docs/iroh/sidebar-items.js index 1c752cbe87..e140d37b49 100644 --- a/pr/3958/docs/iroh/sidebar-items.js +++ b/pr/3958/docs/iroh/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["NET_REPORT_TIMEOUT"],"enum":["KeyParsingError","TransportAddr"],"mod":["address_lookup","defaults","dns","endpoint","endpoint_info","metrics","protocol","test_utils"],"struct":["EndpointAddr","NetReport","PublicKey","RelayConfig","RelayMap","RelayUrl","RelayUrlParseError","SecretKey","Signature","SignatureError"],"trait":["Watcher"],"type":["EndpointId"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["NET_REPORT_TIMEOUT"],"enum":["KeyParsingError","TransportAddr"],"mod":["address_lookup","defaults","dns","endpoint","endpoint_info","metrics","protocol","test_utils","tls"],"struct":["EndpointAddr","NetReport","PublicKey","RelayConfig","RelayMap","RelayUrl","RelayUrlParseError","SecretKey","Signature","SignatureError"],"trait":["Watcher"],"type":["EndpointId"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/struct.EndpointAddr.html b/pr/3958/docs/iroh/struct.EndpointAddr.html index 75ade5e24a..fda0e271a0 100644 --- a/pr/3958/docs/iroh/struct.EndpointAddr.html +++ b/pr/3958/docs/iroh/struct.EndpointAddr.html @@ -45,7 +45,7 @@ depending on the situation.

Trait Implementations§

Source§

impl Clone for EndpointAddr

Source§

fn clone(&self) -> EndpointAddr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EndpointAddr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EndpointAddr

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<EndpointAddr> for EndpointData

Source§

fn from(endpoint_addr: EndpointAddr) -> EndpointData

Converts to this type from the input type.
Source§

impl From<EndpointAddr> for EndpointInfo

Source§

fn from(addr: EndpointAddr) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointInfo> for EndpointAddr

Source§

fn from(value: EndpointInfo) -> EndpointAddr

Converts to this type from the input type.
Source§

impl From<PublicKey> for EndpointAddr

Source§

fn from(endpoint_id: PublicKey) -> EndpointAddr

Converts to this type from the input type.
Source§

impl Hash for EndpointAddr

Source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<EndpointAddr> for EndpointData

Source§

fn from(endpoint_addr: EndpointAddr) -> EndpointData

Converts to this type from the input type.
Source§

impl From<EndpointAddr> for EndpointInfo

Source§

fn from(addr: EndpointAddr) -> EndpointInfo

Converts to this type from the input type.
Source§

impl From<EndpointInfo> for EndpointAddr

Source§

fn from(value: EndpointInfo) -> EndpointAddr

Converts to this type from the input type.
Source§

impl From<PublicKey> for EndpointAddr

Source§

fn from(endpoint_id: PublicKey) -> EndpointAddr

Converts to this type from the input type.
Source§

impl Hash for EndpointAddr

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for EndpointAddr

Source§

fn cmp(&self, other: &EndpointAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where diff --git a/pr/3958/docs/iroh/struct.PublicKey.html b/pr/3958/docs/iroh/struct.PublicKey.html index ccd37e4b81..a3d30cf193 100644 --- a/pr/3958/docs/iroh/struct.PublicKey.html +++ b/pr/3958/docs/iroh/struct.PublicKey.html @@ -20,7 +20,7 @@ representation of the key.

Trait Implementations§

Source§

impl AsRef<[u8]> for PublicKey

Source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<[u8; 32]> for PublicKey

Source§

fn borrow(&self) -> &[u8; 32]

Immutably borrows from an owned value. Read more
Source§

impl Clone for PublicKey

Source§

fn clone(&self) -> PublicKey

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PublicKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for PublicKey

Source§

type Target = [u8; 32]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<PublicKey as Deref>::Target

Dereferences the value.
Source§

impl<'de> Deserialize<'de> for PublicKey

Source§

fn deserialize<D>( deserializer: D, ) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for PublicKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl EndpointIdExt for PublicKey

Source§

fn to_z32(&self) -> String

Encodes a EndpointId in z-base-32 encoding.
Source§

fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

Parses a EndpointId from z-base-32 encoding.
Source§

impl From<PublicKey> for EndpointAddr

Source§

fn from(endpoint_id: PublicKey) -> EndpointAddr

Converts to this type from the input type.
Source§

impl FromStr for PublicKey

Deserialises the PublicKey from it’s base32 encoding.

+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for PublicKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl EndpointIdExt for PublicKey

Source§

fn to_z32(&self) -> String

Encodes a EndpointId in z-base-32 encoding.
Source§

fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

Parses a EndpointId from z-base-32 encoding.
Source§

impl From<PublicKey> for EndpointAddr

Source§

fn from(endpoint_id: PublicKey) -> EndpointAddr

Converts to this type from the input type.
Source§

impl FromStr for PublicKey

Deserialises the PublicKey from it’s base32 encoding.

Display is capable of serialising this format.

Source§

type Err = KeyParsingError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for PublicKey

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where diff --git a/pr/3958/docs/iroh/test_utils/index.html b/pr/3958/docs/iroh/test_utils/index.html index 082309e7a6..e9b7fb2856 100644 --- a/pr/3958/docs/iroh/test_utils/index.html +++ b/pr/3958/docs/iroh/test_utils/index.html @@ -1,2 +1,2 @@ -iroh::test_utils - Rust

Module test_utils

Module test_utils 

Source
Available on crate features test-utils only.
Expand description

Internal utilities to support testing.

+iroh::test_utils - Rust

Module test_utils

Module test_utils 

Source
Available on crate features test-utils only.
Expand description

Internal utilities to support testing.

Structs§

CleanupDropGuard
A drop guard to clean up test infrastructure.
DnsPkarrServer
Handle and drop guard for test DNS and Pkarr servers.
QlogFileGroup
Builder to create one or more related qlog configs.

Functions§

run_relay_server
Runs a relay server with QUIC enabled suitable for tests.
run_relay_server_with
Runs a relay server.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3958/docs/iroh/test_utils/struct.DnsPkarrServer.html index b30b6481b3..8dda89f769 100644 --- a/pr/3958/docs/iroh/test_utils/struct.DnsPkarrServer.html +++ b/pr/3958/docs/iroh/test_utils/struct.DnsPkarrServer.html @@ -1,4 +1,4 @@ -DnsPkarrServer in iroh::test_utils - Rust

DnsPkarrServer

Struct DnsPkarrServer 

Source
pub struct DnsPkarrServer {
+DnsPkarrServer in iroh::test_utils - Rust

DnsPkarrServer

Struct DnsPkarrServer 

Source
pub struct DnsPkarrServer {
     pub endpoint_origin: String,
     pub nameserver: SocketAddr,
     pub pkarr_url: Url,
@@ -8,18 +8,17 @@
 

Fields§

§endpoint_origin: String

The endpoint origin domain.

§nameserver: SocketAddr

The socket address of the DNS server.

§pkarr_url: Url

The HTTP URL of the Pkarr server.

-

Implementations§

Source§

impl DnsPkarrServer

Source

pub async fn run() -> Result<Self>

Run DNS and Pkarr servers on localhost.

-
Source

pub async fn run_with_origin(endpoint_origin: String) -> Result<Self>

Run DNS and Pkarr servers on localhost with the specified endpoint_origin domain.

-
Source

pub fn address_lookup(&self, secret_key: SecretKey) -> ConcurrentAddressLookup

Create a ConcurrentAddressLookup with crate::address_lookup::DnsAddressLookup and PkarrPublisher -configured to use the test servers.

-
Source

pub fn dns_resolver(&self) -> DnsResolver

Create a DnsResolver configured to use the test DNS server.

-
Source

pub async fn on_endpoint( +

Implementations§

Source§

impl DnsPkarrServer

Source

pub async fn run() -> Result<Self>

Run DNS and Pkarr servers on localhost.

+
Source

pub async fn run_with_origin(endpoint_origin: String) -> Result<Self>

Run DNS and Pkarr servers on localhost with the specified endpoint_origin domain.

+
Source

pub fn preset(&self) -> impl Preset

Returns a Preset to apply the DNS address lookup and Pkarr Publisher to an endpoint.

+
Source

pub fn dns_resolver(&self) -> DnsResolver

Create a DnsResolver configured to use the test DNS server.

+
Source

pub async fn on_endpoint( &self, endpoint_id: &EndpointId, timeout: Duration, ) -> Result<()>

Wait until a Pkarr announce for an endpoint is published to the server.

If timeout elapses an error is returned.

-

Trait Implementations§

Source§

impl Debug for DnsPkarrServer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for DnsPkarrServer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh/tls/fn.default_provider.html b/pr/3958/docs/iroh/tls/fn.default_provider.html new file mode 100644 index 0000000000..4e4ccfd0cc --- /dev/null +++ b/pr/3958/docs/iroh/tls/fn.default_provider.html @@ -0,0 +1,3 @@ +default_provider in iroh::tls - Rust

default_provider

Function default_provider 

Source
pub fn default_provider() -> Arc<CryptoProvider>
Expand description

Returns iroh’s default crypto provider.

+

Currently, this is [rustls::crypto::ring].

+
\ No newline at end of file diff --git a/pr/3958/docs/iroh/tls/index.html b/pr/3958/docs/iroh/tls/index.html new file mode 100644 index 0000000000..aa792b5294 --- /dev/null +++ b/pr/3958/docs/iroh/tls/index.html @@ -0,0 +1,6 @@ +iroh::tls - Rust

Module tls

Module tls 

Source
Expand description

TLS configuration for iroh.

+

Currently there is one mechanisms available

+
    +
  • Raw Public Keys, using the TLS extension described in RFC 7250
  • +
+

Structs§

CaRootsConfig
Configures the trusted CA root certificates for non-iroh TLS connections.

Functions§

default_provider
Returns iroh’s default crypto provider.
\ No newline at end of file diff --git a/pr/3958/docs/iroh/tls/sidebar-items.js b/pr/3958/docs/iroh/tls/sidebar-items.js new file mode 100644 index 0000000000..d13f8ba73f --- /dev/null +++ b/pr/3958/docs/iroh/tls/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["default_provider"],"struct":["CaRootsConfig"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh/tls/struct.CaRootsConfig.html b/pr/3958/docs/iroh/tls/struct.CaRootsConfig.html new file mode 100644 index 0000000000..a23a69d213 --- /dev/null +++ b/pr/3958/docs/iroh/tls/struct.CaRootsConfig.html @@ -0,0 +1,73 @@ +CaRootsConfig in iroh::tls - Rust

CaRootsConfig

Struct CaRootsConfig 

Source
pub struct CaRootsConfig { /* private fields */ }
Expand description

Configures the trusted CA root certificates for non-iroh TLS connections.

+

These roots are used whenever iroh establishes standard TLS connections to +external services, such as iroh relays, pkarr servers, or DNS-over-HTTPS +resolvers.

+

The configured Certificate Authority (CA) roots are only used for verifying +the validity of TLS certificates presented by those external services. These +CAs don’t need to be trusted for the integrity or authenticity of native +iroh connections, which rely on iroh’s own cryptographic authentication mechanisms.

+

Implementations§

Source§

impl CaRootsConfig

Source

pub fn system() -> CaRootsConfig

Use the operating system’s certificate facilities for verifying the validity of TLS certificates.

+

See [rustls_platform_verifier] for details how trust anchors are retrieved on different platforms.

+

Note: Additional certificates added via Self::with_extra_roots will be ignored on Android due to +missing support in [rustls].

+
Source

pub fn embedded() -> CaRootsConfig

Use a compiled-in copy of the root certificates trusted by Mozilla.

+

See [webpki_roots] for details.

+
Source

pub fn insecure_skip_verify() -> CaRootsConfig

INSECURE: Do not verify server certificates at all.

+

May only be used in tests or local development setups.

+
Source

pub fn custom( + roots: impl IntoIterator<Item = CertificateDer<'static>>, +) -> CaRootsConfig

Only trust the explicitly set root certificates.

+
Source

pub fn with_extra_roots( + self, + extra_roots: impl IntoIterator<Item = CertificateDer<'static>>, +) -> CaRootsConfig

Add additional root certificates to the list of trusted certificates.

+
Source

pub fn server_cert_verifier( + &self, + crypto_provider: Arc<CryptoProvider>, +) -> Result<Arc<dyn ServerCertVerifier>, Error>

Builds a [ServerCertVerifier] from this config.

+
Source

pub fn client_config( + &self, + crypto_provider: Arc<CryptoProvider>, +) -> Result<ClientConfig, Error>

Build a [ClientConfig] from this config.

+

Trait Implementations§

Source§

impl Clone for CaRootsConfig

Source§

fn clone(&self) -> CaRootsConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CaRootsConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for CaRootsConfig

Source§

fn default() -> CaRootsConfig

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where + T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where + T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where + T: 'a,

§

fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where + T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where + T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> DynClone for T
where + T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

+
§

impl<T> FromRef<T> for T
where + T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an +Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where + U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> +if into_left is true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> +if into_left(&self) returns true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where + T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where + T: Policy<B, E>, + P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where + V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
\ No newline at end of file diff --git a/pr/3958/docs/iroh_bench/iroh/fn.client.html b/pr/3958/docs/iroh_bench/iroh/fn.client.html index 93294e0524..511ebeeea9 100644 --- a/pr/3958/docs/iroh_bench/iroh/fn.client.html +++ b/pr/3958/docs/iroh_bench/iroh/fn.client.html @@ -1,4 +1,4 @@ -client in iroh_bench::iroh - Rust

client

Function client 

Source
pub async fn client(
+client in iroh_bench::iroh - Rust

client

Function client 

Source
pub async fn client(
     server_addr: EndpointAddr,
     relay_url: Option<RelayUrl>,
     opt: Opt,
diff --git a/pr/3958/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3958/docs/iroh_bench/iroh/fn.connect_client.html
index 6e1d8ce64f..2530765a7d 100644
--- a/pr/3958/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3958/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,4 +1,4 @@
-connect_client in iroh_bench::iroh - Rust

connect_client

Function connect_client 

Source
pub async fn connect_client(
+connect_client in iroh_bench::iroh - Rust

connect_client

Function connect_client 

Source
pub async fn connect_client(
     server_addr: EndpointAddr,
     relay_url: Option<RelayUrl>,
     opt: Opt,
diff --git a/pr/3958/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3958/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 5e963300d9..6938f0b91a 100644
--- a/pr/3958/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3958/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,4 +1,4 @@
-handle_client_stream in iroh_bench::iroh - Rust

handle_client_stream

Function handle_client_stream 

Source
pub async fn handle_client_stream(
+handle_client_stream in iroh_bench::iroh - Rust

handle_client_stream

Function handle_client_stream 

Source
pub async fn handle_client_stream(
     connection: &Connection,
     upload_size: u64,
     read_unordered: bool,
diff --git a/pr/3958/docs/iroh_bench/iroh/fn.server.html b/pr/3958/docs/iroh_bench/iroh/fn.server.html
index 0ae45c0e8d..72f6aee0a2 100644
--- a/pr/3958/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3958/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust

server

Function server 

Source
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description

Take the provided endpoint and run the server

+server in iroh_bench::iroh - Rust

server

Function server 

Source
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description

Take the provided endpoint and run the server

\ No newline at end of file diff --git a/pr/3958/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3958/docs/iroh_bench/iroh/fn.server_endpoint.html index f4892f8a86..c12bc98a09 100644 --- a/pr/3958/docs/iroh_bench/iroh/fn.server_endpoint.html +++ b/pr/3958/docs/iroh_bench/iroh/fn.server_endpoint.html @@ -1,4 +1,4 @@ -server_endpoint in iroh_bench::iroh - Rust

server_endpoint

Function server_endpoint 

Source
pub fn server_endpoint(
+server_endpoint in iroh_bench::iroh - Rust

server_endpoint

Function server_endpoint 

Source
pub fn server_endpoint(
     rt: &Runtime,
     relay_url: &Option<RelayUrl>,
     opt: &Opt,
diff --git a/pr/3958/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3958/docs/iroh_bench/iroh/fn.transport_config.html
index dfa5379dcc..41773e87f4 100644
--- a/pr/3958/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3958/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
-transport_config in iroh_bench::iroh - Rust

transport_config

Function transport_config 

Source
pub fn transport_config(
+transport_config in iroh_bench::iroh - Rust

transport_config

Function transport_config 

Source
pub fn transport_config(
     max_streams: usize,
     initial_mtu: u16,
 ) -> QuicTransportConfig
\ No newline at end of file diff --git a/pr/3958/docs/iroh_bench/iroh/index.html b/pr/3958/docs/iroh_bench/iroh/index.html index 0c067b7234..757fa92d31 100644 --- a/pr/3958/docs/iroh_bench/iroh/index.html +++ b/pr/3958/docs/iroh_bench/iroh/index.html @@ -1 +1 @@ -iroh_bench::iroh - Rust

Module iroh

Module iroh 

Source

Constants§

ALPN

Functions§

client
Create and run a client
connect_client
Create a client endpoint and client connection
handle_client_stream
server
Take the provided endpoint and run the server
server_endpoint
Creates a server endpoint which runs on the given runtime
transport_config
\ No newline at end of file +iroh_bench::iroh - Rust

Module iroh

Module iroh 

Source

Constants§

ALPN

Functions§

client
Create and run a client
connect_client
Create a client endpoint and client connection
handle_client_stream
server
Take the provided endpoint and run the server
server_endpoint
Creates a server endpoint which runs on the given runtime
transport_config
\ No newline at end of file diff --git a/pr/3958/docs/iroh_dns_server/http/index.html b/pr/3958/docs/iroh_dns_server/http/index.html index b72ba95137..001bec9e23 100644 --- a/pr/3958/docs/iroh_dns_server/http/index.html +++ b/pr/3958/docs/iroh_dns_server/http/index.html @@ -1,2 +1,2 @@ -iroh_dns_server::http - Rust

Module http

Module http 

Source
Expand description

HTTP server part of iroh-dns-server

+iroh_dns_server::http - Rust

Module http

Module http 

Source
Expand description

HTTP server part of iroh-dns-server

Structs§

HttpConfig
Config for the HTTP server
HttpServer
The HTTP(S) server part of iroh-dns-server
HttpsConfig
Config for the HTTPS server

Enums§

CertMode
The mode how SSL certificates should be created.
RateLimitConfig
Config for http server rate limit.
\ No newline at end of file diff --git a/pr/3958/docs/iroh_dns_server/index.html b/pr/3958/docs/iroh_dns_server/index.html index 3daaf90b0a..aeb112fa27 100644 --- a/pr/3958/docs/iroh_dns_server/index.html +++ b/pr/3958/docs/iroh_dns_server/index.html @@ -1,2 +1,2 @@ -iroh_dns_server - Rust

Crate iroh_dns_server

Crate iroh_dns_server 

Source
Expand description

A DNS server and pkarr relay

+iroh_dns_server - Rust

Crate iroh_dns_server

Crate iroh_dns_server 

Source
Expand description

A DNS server and pkarr relay

Modules§

config
Configuration for the server
dns
Implementation of a DNS name server for iroh endpoint announces
http
HTTP server part of iroh-dns-server
metrics
Metrics support for the server
server
The main server which combines the DNS and HTTP(S) servers.
state
Shared state and store for the iroh-dns-server

Structs§

ZoneStore
A store for pkarr signed packets.
\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/all.html b/pr/3958/docs/iroh_relay/all.html index 8021f5eccb..2fa0567e60 100644 --- a/pr/3958/docs/iroh_relay/all.html +++ b/pr/3958/docs/iroh_relay/all.html @@ -1 +1 @@ -List of all items in this crate

All

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

\ No newline at end of file +List of all items in this crate

All

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/client/fn.make_dangerous_client_config.html b/pr/3958/docs/iroh_relay/client/fn.make_dangerous_client_config.html index 5451a079dd..67e712f0c3 100644 --- a/pr/3958/docs/iroh_relay/client/fn.make_dangerous_client_config.html +++ b/pr/3958/docs/iroh_relay/client/fn.make_dangerous_client_config.html @@ -1,3 +1,3 @@ -make_dangerous_client_config in iroh_relay::client - Rust

make_dangerous_client_config

Function make_dangerous_client_config 

Source
pub fn make_dangerous_client_config() -> ClientConfig
Available on crate features test-utils only.
Expand description

Creates a client config that trusts any servers without verifying their TLS certificate.

+make_dangerous_client_config in iroh_relay::client - Rust

make_dangerous_client_config

Function make_dangerous_client_config 

Source
pub fn make_dangerous_client_config() -> ClientConfig
Available on crate features test-utils only.
Expand description

Creates a client config that trusts any servers without verifying their TLS certificate.

Should be used for testing local relay setups only.

\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/client/index.html b/pr/3958/docs/iroh_relay/client/index.html index 02db210779..417ebe1ab2 100644 --- a/pr/3958/docs/iroh_relay/client/index.html +++ b/pr/3958/docs/iroh_relay/client/index.html @@ -1,3 +1,3 @@ -iroh_relay::client - Rust

Module client

Module client 

Source
Expand description

Exposes Client, which allows to establish connections to a relay server.

+iroh_relay::client - Rust

Module client

Module client 

Source
Expand description

Exposes Client, which allows to establish connections to a relay server.

Based on tailscale/derp/derphttp/derphttp_client.go

Structs§

Client
A relay client.
ClientBuilder
Build a Client.
ClientSink
The send half of a relay client.
ClientStream
The receive half of a relay client.

Enums§

ConnectError
Connection errors.
DialError
Errors that can occur while dialing the relay server.
RecvError
Errors when receiving messages from the relay server.
SendError
Error for sending messages to the relay server.

Functions§

make_dangerous_client_configtest-utils
Creates a client config that trusts any servers without verifying their TLS certificate.
\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/client/struct.Client.html b/pr/3958/docs/iroh_relay/client/struct.Client.html index f1ff93cb72..b36a44621c 100644 --- a/pr/3958/docs/iroh_relay/client/struct.Client.html +++ b/pr/3958/docs/iroh_relay/client/struct.Client.html @@ -1,20 +1,20 @@ -Client in iroh_relay::client - Rust

Client

Struct Client 

Source
pub struct Client { /* private fields */ }
Expand description

A relay client.

-

Implementations§

Source§

impl Client

Source

pub fn split(self) -> (ClientStream, ClientSink)

Splits the client into a sink and a stream.

-

Trait Implementations§

Source§

impl Debug for Client

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Sink<ClientToRelayMsg> for Client

Source§

type Error = SendError

The type of value produced by the sink when an error occurs.
Source§

fn poll_ready( +Client in iroh_relay::client - Rust

Client

Struct Client 

Source
pub struct Client { /* private fields */ }
Expand description

A relay client.

+

Implementations§

Source§

impl Client

Source

pub fn split(self) -> (ClientStream, ClientSink)

Splits the client into a sink and a stream.

+

Trait Implementations§

Source§

impl Debug for Client

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Sink<ClientToRelayMsg> for Client

Source§

type Error = SendError

The type of value produced by the sink when an error occurs.
Source§

fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
Source§

fn start_send( +) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
Source§

fn start_send( self: Pin<&mut Self>, item: ClientToRelayMsg, ) -> Result<(), Self::Error>

Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to -poll_ready which returned Poll::Ready(Ok(())). Read more
Source§

fn poll_flush( +poll_ready which returned Poll::Ready(Ok(())). Read more

Source§

fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
Source§

fn poll_close( +) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
Source§

fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

Flush any remaining output and close this sink, if necessary. Read more

Source§

impl Stream for Client

Source§

type Item = Result<RelayToClientMsg, RecvError>

Values yielded by the stream.
Source§

fn poll_next( +) -> Poll<Result<(), Self::Error>>

Flush any remaining output and close this sink, if necessary. Read more
Source§

impl Stream for Client

Source§

type Item = Result<RelayToClientMsg, RecvError>

Values yielded by the stream.
Source§

fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Self::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/3958/docs/iroh_relay/client/struct.ClientBuilder.html b/pr/3958/docs/iroh_relay/client/struct.ClientBuilder.html index 77dead5156..61b3ea0ab6 100644 --- a/pr/3958/docs/iroh_relay/client/struct.ClientBuilder.html +++ b/pr/3958/docs/iroh_relay/client/struct.ClientBuilder.html @@ -1,21 +1,20 @@ -ClientBuilder in iroh_relay::client - Rust

ClientBuilder

Struct ClientBuilder 

Source
pub struct ClientBuilder { /* private fields */ }
Expand description

Build a Client.

-

Implementations§

Source§

impl ClientBuilder

Source

pub fn new( - url: impl Into<RelayUrl>, - secret_key: SecretKey, +ClientBuilder in iroh_relay::client - Rust

ClientBuilder

Struct ClientBuilder 

Source
pub struct ClientBuilder { /* private fields */ }
Expand description

Build a Client.

+

Implementations§

Source§

impl ClientBuilder

Source

pub fn new( + url: impl Into<RelayUrl>, + secret_key: SecretKey, dns_resolver: DnsResolver, ) -> Self

Create a new ClientBuilder

-
Source

pub fn address_family_selector<S>(self, selector: S) -> Self
where +

Source

pub fn tls_client_config(self, tls_config: ClientConfig) -> Self

Sets a custom TLS config.

+
Source

pub fn address_family_selector<S>(self, selector: S) -> Self
where S: Fn() -> bool + Send + Sync + 'static,

Returns if we should prefer ipv6 it replaces the relayhttp.AddressFamilySelector we pass It provides the hint as to whether in an IPv4-vs-IPv6 race that IPv4 should be held back a bit to give IPv6 a better-than-50/50 chance of winning. We only return true when we believe IPv6 will work anyway, so we don’t artificially delay the connection speed.

-
Source

pub fn insecure_skip_cert_verify(self, skip: bool) -> Self

Available on crate features test-utils only.

Skip the verification of the relay server’s SSL certificates.

-

May only be used in tests.

-
Source

pub fn proxy_url(self, url: Url) -> Self

Set an explicit proxy url to proxy all HTTP(S) traffic through.

-
Source

pub fn key_cache_capacity(self, capacity: usize) -> Self

Set the capacity of the cache for public keys.

-
Source

pub async fn connect(&self) -> Result<Client, ConnectError>

Available on non-wasm_browser only.

Establishes a new connection to the relay server.

+
Source

pub fn proxy_url(self, url: Url) -> Self

Set an explicit proxy url to proxy all HTTP(S) traffic through.

+
Source

pub fn key_cache_capacity(self, capacity: usize) -> Self

Set the capacity of the cache for public keys.

+
Source

pub async fn connect(&self) -> Result<Client, ConnectError>

Available on non-wasm_browser only.

Establishes a new connection to the relay server.

Trait Implementations§

Source§

impl Clone for ClientBuilder

Source§

fn clone(&self) -> ClientBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClientBuilder

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3958/docs/iroh_relay/client/struct.ClientSink.html b/pr/3958/docs/iroh_relay/client/struct.ClientSink.html index 51e9169239..6fdc097b17 100644 --- a/pr/3958/docs/iroh_relay/client/struct.ClientSink.html +++ b/pr/3958/docs/iroh_relay/client/struct.ClientSink.html @@ -1,16 +1,16 @@ -ClientSink in iroh_relay::client - Rust

ClientSink

Struct ClientSink 

Source
pub struct ClientSink { /* private fields */ }
Expand description

The send half of a relay client.

-

Trait Implementations§

Source§

impl Debug for ClientSink

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Sink<ClientToRelayMsg> for ClientSink

Source§

type Error = SendError

The type of value produced by the sink when an error occurs.
Source§

fn poll_ready( +ClientSink in iroh_relay::client - Rust

ClientSink

Struct ClientSink 

Source
pub struct ClientSink { /* private fields */ }
Expand description

The send half of a relay client.

+

Trait Implementations§

Source§

impl Debug for ClientSink

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Sink<ClientToRelayMsg> for ClientSink

Source§

type Error = SendError

The type of value produced by the sink when an error occurs.
Source§

fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
Source§

fn start_send( +) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
Source§

fn start_send( self: Pin<&mut Self>, item: ClientToRelayMsg, ) -> Result<(), Self::Error>

Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to -poll_ready which returned Poll::Ready(Ok(())). Read more
Source§

fn poll_flush( +poll_ready which returned Poll::Ready(Ok(())). Read more

Source§

fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
Source§

fn poll_close( +) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
Source§

fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

Flush any remaining output and close this sink, if necessary. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/pr/3958/docs/iroh_relay/client/struct.ClientStream.html b/pr/3958/docs/iroh_relay/client/struct.ClientStream.html index 8e3c211493..0fc148b3db 100644 --- a/pr/3958/docs/iroh_relay/client/struct.ClientStream.html +++ b/pr/3958/docs/iroh_relay/client/struct.ClientStream.html @@ -1,6 +1,6 @@ -ClientStream in iroh_relay::client - Rust

ClientStream

Struct ClientStream 

Source
pub struct ClientStream { /* private fields */ }
Expand description

The receive half of a relay client.

-

Implementations§

Source§

impl ClientStream

Source

pub fn local_addr(&self) -> Option<SocketAddr>

Returns the local address of the client.

-

Trait Implementations§

Source§

impl Debug for ClientStream

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Stream for ClientStream

Source§

type Item = Result<RelayToClientMsg, RecvError>

Values yielded by the stream.
Source§

fn poll_next( +ClientStream in iroh_relay::client - Rust

ClientStream

Struct ClientStream 

Source
pub struct ClientStream { /* private fields */ }
Expand description

The receive half of a relay client.

+

Implementations§

Source§

impl ClientStream

Source

pub fn local_addr(&self) -> Option<SocketAddr>

Returns the local address of the client.

+

Trait Implementations§

Source§

impl Debug for ClientStream

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Stream for ClientStream

Source§

type Item = Result<RelayToClientMsg, RecvError>

Values yielded by the stream.
Source§

fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Self::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html b/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html index 2e1c7965c2..023e0bdf2f 100644 --- a/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html +++ b/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_ENDPOINT_ORIGIN_PROD in iroh_relay::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_PROD

Constant N0_DNS_ENDPOINT_ORIGIN_PROD 

Source
pub const N0_DNS_ENDPOINT_ORIGIN_PROD: &str = "dns.iroh.link";
Available on non-wasm_browser only.
Expand description

The n0 testing DNS endpoint origin, for production.

+N0_DNS_ENDPOINT_ORIGIN_PROD in iroh_relay::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_PROD

Constant N0_DNS_ENDPOINT_ORIGIN_PROD 

Source
pub const N0_DNS_ENDPOINT_ORIGIN_PROD: &str = "dns.iroh.link";
Available on non-wasm_browser only.
Expand description

The n0 testing DNS endpoint origin, for production.

\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html b/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html index 72b3c43011..0ec3915aaf 100644 --- a/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html +++ b/pr/3958/docs/iroh_relay/dns/constant.N0_DNS_ENDPOINT_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_ENDPOINT_ORIGIN_STAGING in iroh_relay::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_STAGING

Constant N0_DNS_ENDPOINT_ORIGIN_STAGING 

Source
pub const N0_DNS_ENDPOINT_ORIGIN_STAGING: &str = "staging-dns.iroh.link";
Available on non-wasm_browser only.
Expand description

The n0 testing DNS endpoint origin, for testing.

+N0_DNS_ENDPOINT_ORIGIN_STAGING in iroh_relay::dns - Rust

N0_DNS_ENDPOINT_ORIGIN_STAGING

Constant N0_DNS_ENDPOINT_ORIGIN_STAGING 

Source
pub const N0_DNS_ENDPOINT_ORIGIN_STAGING: &str = "staging-dns.iroh.link";
Available on non-wasm_browser only.
Expand description

The n0 testing DNS endpoint origin, for testing.

\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/dns/enum.DnsError.html b/pr/3958/docs/iroh_relay/dns/enum.DnsError.html index 3e8943287a..8433133926 100644 --- a/pr/3958/docs/iroh_relay/dns/enum.DnsError.html +++ b/pr/3958/docs/iroh_relay/dns/enum.DnsError.html @@ -1,4 +1,4 @@ -DnsError in iroh_relay::dns - Rust

DnsError

Enum DnsError 

Source
#[non_exhaustive]
pub enum DnsError { +DnsError in iroh_relay::dns - Rust

DnsError

Enum DnsError 

Source
#[non_exhaustive]
pub enum DnsError { Timeout { source: Elapsed, meta: Meta, @@ -28,7 +28,7 @@
§

MissingHost

Fields

§meta: Meta

Captured call-site metadata

§

Resolve

Fields

§source: ResolveError
§meta: Meta

Captured call-site metadata

§

InvalidResponse

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for DnsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DnsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for DnsError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DnsError> for AnyError

Source§

fn from(value: DnsError) -> AnyError

Converts to this type from the input type.
Source§

impl From<DnsError> for DialError

Source§

fn from(source: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<DnsError> for LookupError

Source§

fn from(source: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<Elapsed> for DnsError

Source§

fn from(source: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<ResolveError> for DnsError

Source§

fn from(source: ResolveError) -> Self

Converts to this type from the input type.
Source§

impl StackError for DnsError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for DnsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DnsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for DnsError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DnsError> for AnyError

Source§

fn from(value: DnsError) -> AnyError

Converts to this type from the input type.
Source§

impl From<DnsError> for DialError

Source§

fn from(source: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<DnsError> for LookupError

Source§

fn from(source: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<Elapsed> for DnsError

Source§

fn from(source: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<ResolveError> for DnsError

Source§

fn from(source: ResolveError) -> Self

Converts to this type from the input type.
Source§

impl StackError for DnsError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh_relay/dns/enum.DnsProtocol.html b/pr/3958/docs/iroh_relay/dns/enum.DnsProtocol.html index 0db763f15e..1b5bc80faa 100644 --- a/pr/3958/docs/iroh_relay/dns/enum.DnsProtocol.html +++ b/pr/3958/docs/iroh_relay/dns/enum.DnsProtocol.html @@ -1,4 +1,4 @@ -DnsProtocol in iroh_relay::dns - Rust

DnsProtocol

Enum DnsProtocol 

Source
#[non_exhaustive]
pub enum DnsProtocol { +DnsProtocol in iroh_relay::dns - Rust

DnsProtocol

Enum DnsProtocol 

Source
#[non_exhaustive]
pub enum DnsProtocol { Udp, Tcp, Tls, @@ -12,8 +12,8 @@

Performs DNS lookups over TLS-encrypted TCP connections, as defined in RFC 7858.

§

Https

DNS over HTTPS

Performs DNS lookups over HTTPS, as defined in RFC 8484.

-

Trait Implementations§

Source§

impl Clone for DnsProtocol

Source§

fn clone(&self) -> DnsProtocol

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DnsProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DnsProtocol

Source§

fn default() -> DnsProtocol

Returns the “default value” for a type. Read more
Source§

impl PartialEq for DnsProtocol

Source§

fn eq(&self, other: &DnsProtocol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Copy for DnsProtocol

Source§

impl Eq for DnsProtocol

Source§

impl StructuralPartialEq for DnsProtocol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for DnsProtocol

Source§

fn clone(&self) -> DnsProtocol

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DnsProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DnsProtocol

Source§

fn default() -> DnsProtocol

Returns the “default value” for a type. Read more
Source§

impl PartialEq for DnsProtocol

Source§

fn eq(&self, other: &DnsProtocol) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Copy for DnsProtocol

Source§

impl Eq for DnsProtocol

Source§

impl StructuralPartialEq for DnsProtocol

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh_relay/dns/enum.LookupError.html b/pr/3958/docs/iroh_relay/dns/enum.LookupError.html index e7406c8c14..b390ae329a 100644 --- a/pr/3958/docs/iroh_relay/dns/enum.LookupError.html +++ b/pr/3958/docs/iroh_relay/dns/enum.LookupError.html @@ -1,4 +1,4 @@ -LookupError in iroh_relay::dns - Rust

LookupError

Enum LookupError 

Source
#[non_exhaustive]
pub enum LookupError { +LookupError in iroh_relay::dns - Rust

LookupError

Enum LookupError 

Source
#[non_exhaustive]
pub enum LookupError { ParseError { source: ParseError, meta: Meta, @@ -9,7 +9,7 @@ }, }
Available on non-wasm_browser only.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ParseError

Fields

§source: ParseError
§meta: Meta

Captured call-site metadata

§

LookupFailed

Fields

§source: DnsError
§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for LookupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LookupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for LookupError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DnsError> for LookupError

Source§

fn from(source: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<LookupError> for AnyError

Source§

fn from(value: LookupError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ParseError> for LookupError

Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl StackError for LookupError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for LookupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LookupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for LookupError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DnsError> for LookupError

Source§

fn from(source: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<LookupError> for AnyError

Source§

fn from(value: LookupError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ParseError> for LookupError

Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl StackError for LookupError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh_relay/dns/index.html b/pr/3958/docs/iroh_relay/dns/index.html index e5d99ef1df..9ba4a3798d 100644 --- a/pr/3958/docs/iroh_relay/dns/index.html +++ b/pr/3958/docs/iroh_relay/dns/index.html @@ -1,2 +1,2 @@ -iroh_relay::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

DNS resolver

+iroh_relay::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

DNS resolver

Structs§

Builder
Builder for DnsResolver.
DnsResolver
The DNS resolver used throughout iroh.
StaggeredError
Error returned when a staggered call fails.
TxtRecordData
Record data for a TXT record.

Enums§

DnsError
Potential errors related to dns.
DnsProtocol
Protocols over which DNS records can be resolved.
LookupError

Constants§

N0_DNS_ENDPOINT_ORIGIN_PROD
The n0 testing DNS endpoint origin, for production.
N0_DNS_ENDPOINT_ORIGIN_STAGING
The n0 testing DNS endpoint origin, for testing.

Traits§

Resolver
Trait for DNS resolvers used in iroh.

Type Aliases§

BoxIter
Boxed iterator alias.
\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/dns/struct.Builder.html b/pr/3958/docs/iroh_relay/dns/struct.Builder.html index 6874218993..5140a6b7e3 100644 --- a/pr/3958/docs/iroh_relay/dns/struct.Builder.html +++ b/pr/3958/docs/iroh_relay/dns/struct.Builder.html @@ -1,15 +1,16 @@ -Builder in iroh_relay::dns - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Builder for DnsResolver.

-

Implementations§

Source§

impl Builder

Source

pub fn with_system_defaults(self) -> Self

Makes the builder respect the host system’s DNS configuration.

+Builder in iroh_relay::dns - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Builder for DnsResolver.

+

Implementations§

Source§

impl Builder

Source

pub fn with_system_defaults(self) -> Self

Makes the builder respect the host system’s DNS configuration.

We first try to read the system’s resolver from /etc/resolv.conf. This does not work at least on some Androids, therefore we fallback to a default config which uses Google’s 8.8.8.8 or 8.8.4.4.

-
Source

pub fn with_nameserver(self, addr: SocketAddr, protocol: DnsProtocol) -> Self

Adds a single nameserver.

-
Source

pub fn with_nameservers( +

Source

pub fn with_nameserver(self, addr: SocketAddr, protocol: DnsProtocol) -> Self

Adds a single nameserver.

+
Source

pub fn with_nameservers( self, nameservers: impl IntoIterator<Item = (SocketAddr, DnsProtocol)>, ) -> Self

Adds a list of nameservers.

-
Source

pub fn build(self) -> DnsResolver

Builds the DNS resolver.

-

Trait Implementations§

Source§

impl Clone for Builder

Source§

fn clone(&self) -> Builder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Builder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Builder

Source§

fn default() -> Builder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Source

pub fn tls_client_config(self, client_config: ClientConfig) -> Self

Sets a custom TLS verification config.

+
Source

pub fn build(self) -> DnsResolver

Builds the DNS resolver.

+

Trait Implementations§

Source§

impl Clone for Builder

Source§

fn clone(&self) -> Builder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Builder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Builder

Source§

fn default() -> Builder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( diff --git a/pr/3958/docs/iroh_relay/dns/struct.DnsResolver.html b/pr/3958/docs/iroh_relay/dns/struct.DnsResolver.html index 49ba5e7d14..2337881b28 100644 --- a/pr/3958/docs/iroh_relay/dns/struct.DnsResolver.html +++ b/pr/3958/docs/iroh_relay/dns/struct.DnsResolver.html @@ -1,32 +1,32 @@ -DnsResolver in iroh_relay::dns - Rust

DnsResolver

Struct DnsResolver 

Source
pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.
Expand description

The DNS resolver used throughout iroh.

-

Implementations§

Source§

impl DnsResolver

Source

pub fn new() -> Self

Creates a new DNS resolver with sensible cross-platform defaults.

+DnsResolver in iroh_relay::dns - Rust

DnsResolver

Struct DnsResolver 

Source
pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.
Expand description

The DNS resolver used throughout iroh.

+

Implementations§

Source§

impl DnsResolver

Source

pub fn new() -> Self

Creates a new DNS resolver with sensible cross-platform defaults.

We first try to read the system’s resolver from /etc/resolv.conf. This does not work at least on some Androids, therefore we fallback to the default ResolverConfig which uses eg. to google’s 8.8.8.8 or 8.8.4.4.

-
Source

pub fn with_nameserver(nameserver: SocketAddr) -> Self

Creates a new DNS resolver configured with a single UDP DNS nameserver.

-
Source

pub fn builder() -> Builder

Creates a builder to construct a DNS resolver with custom options.

-
Source

pub fn custom(resolver: impl Resolver) -> Self

Creates a new DnsResolver from a struct that implements Resolver.

+
Source

pub fn with_nameserver(nameserver: SocketAddr) -> Self

Creates a new DNS resolver configured with a single UDP DNS nameserver.

+
Source

pub fn builder() -> Builder

Creates a builder to construct a DNS resolver with custom options.

+
Source

pub fn custom(resolver: impl Resolver) -> Self

Creates a new DnsResolver from a struct that implements Resolver.

If you need more customization for DNS resolving than the Builder allows, you can implement the Resolver trait on a struct and implement DNS resolution however you see fit.

-
Source

pub async fn clear_cache(&self)

Removes all entries from the cache.

-
Source

pub async fn reset(&self)

Recreates the inner resolver.

-
Source

pub async fn lookup_txt<T: ToString>( +

Source

pub async fn clear_cache(&self)

Removes all entries from the cache.

+
Source

pub async fn reset(&self)

Recreates the inner resolver.

+
Source

pub async fn lookup_txt<T: ToString>( &self, host: T, timeout: Duration, ) -> Result<impl Iterator<Item = TxtRecordData>, DnsError>

Looks up a TXT record.

-
Source

pub async fn lookup_ipv4<T: ToString>( +

Source

pub async fn lookup_ipv4<T: ToString>( &self, host: T, timeout: Duration, ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError>

Performs an IPv4 lookup with a timeout.

-
Source

pub async fn lookup_ipv6<T: ToString>( +

Source

pub async fn lookup_ipv6<T: ToString>( &self, host: T, timeout: Duration, ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError>

Performs an IPv6 lookup with a timeout.

-
Source

pub async fn lookup_ipv4_ipv6<T: ToString>( +

Source

pub async fn lookup_ipv4_ipv6<T: ToString>( &self, host: T, timeout: Duration, @@ -34,13 +34,13 @@ however you see fit.

LookupIpStrategy::Ipv4AndIpv6 will wait for ipv6 resolution timeout, even if it is not usable on the stack, so we manually query both lookups concurrently and time them out individually.

-

Source

pub async fn resolve_host( +

Source

pub async fn resolve_host( &self, url: &Url, prefer_ipv6: bool, timeout: Duration, ) -> Result<IpAddr, DnsError>

Resolves a hostname from a URL to an IP address.

-
Source

pub async fn lookup_ipv4_staggered( +

Source

pub async fn lookup_ipv4_staggered( &self, host: impl ToString, timeout: Duration, @@ -50,7 +50,7 @@ individually.

delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Source

pub async fn lookup_ipv6_staggered( +

Source

pub async fn lookup_ipv6_staggered( &self, host: impl ToString, timeout: Duration, @@ -60,7 +60,7 @@ result of the first successful call is returned, or a summary of all errors othe delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Source

pub async fn lookup_ipv4_ipv6_staggered( +

Source

pub async fn lookup_ipv4_ipv6_staggered( &self, host: impl ToString, timeout: Duration, @@ -71,18 +71,18 @@ result of the first successful call is returned, or a summary of all errors othe at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in Self::lookup_ipv4_ipv6. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Source

pub async fn lookup_endpoint_by_id( +

Source

pub async fn lookup_endpoint_by_id( &self, - endpoint_id: &EndpointId, + endpoint_id: &EndpointId, origin: &str, -) -> Result<EndpointInfo, LookupError>

Looks up endpoint info by [EndpointId] and origin domain name.

+) -> Result<EndpointInfo, LookupError>

Looks up endpoint info by EndpointId and origin domain name.

To lookup endpoints that published their endpoint info to the DNS servers run by n0, pass N0_DNS_ENDPOINT_ORIGIN_PROD as origin.

-
Source

pub async fn lookup_endpoint_by_domain_name( +

Source

pub async fn lookup_endpoint_by_domain_name( &self, name: &str, ) -> Result<EndpointInfo, LookupError>

Looks up endpoint info by DNS name.

-
Source

pub async fn lookup_endpoint_by_domain_name_staggered( +

Source

pub async fn lookup_endpoint_by_domain_name_staggered( &self, name: &str, delays_ms: &[u64], @@ -91,17 +91,17 @@ pass
Source

pub async fn lookup_endpoint_by_id_staggered( +

Source

pub async fn lookup_endpoint_by_id_staggered( &self, - endpoint_id: &EndpointId, + endpoint_id: &EndpointId, origin: &str, delays_ms: &[u64], -) -> Result<EndpointInfo, StaggeredError<LookupError>>

Looks up endpoint info by [EndpointId] and origin domain name.

+) -> Result<EndpointInfo, StaggeredError<LookupError>>

Looks up endpoint info by EndpointId and origin domain name.

From the moment this function is called, each lookup is scheduled after the delays in delays_ms with the first call being done immediately. [200ms, 300ms] results in calls at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a summary of all errors otherwise.

-

Trait Implementations§

Source§

impl Clone for DnsResolver

Source§

fn clone(&self) -> DnsResolver

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DnsResolver

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DnsResolver

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Resolve for DnsResolver

Source§

fn resolve(&self, name: Name) -> Resolving

Performs DNS resolution on a Name. +

Trait Implementations§

Source§

impl Clone for DnsResolver

Source§

fn clone(&self) -> DnsResolver

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DnsResolver

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DnsResolver

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Resolve for DnsResolver

Source§

fn resolve(&self, name: Name) -> Resolving

Performs DNS resolution on a Name. The return type is a future containing an iterator of SocketAddr. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3958/docs/iroh_relay/dns/struct.StaggeredError.html b/pr/3958/docs/iroh_relay/dns/struct.StaggeredError.html index 067e443ab4..d447228dda 100644 --- a/pr/3958/docs/iroh_relay/dns/struct.StaggeredError.html +++ b/pr/3958/docs/iroh_relay/dns/struct.StaggeredError.html @@ -1,7 +1,7 @@ -StaggeredError in iroh_relay::dns - Rust

StaggeredError

Struct StaggeredError 

Source
pub struct StaggeredError<E: StackError + 'static> { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Error returned when a staggered call fails.

-

Implementations§

Source§

impl<E: StackError + 'static> StaggeredError<E>

Source

pub fn new(errors: Vec<E>) -> Self

Creates a new StaggeredError error.

-
Source§

impl<E: StackError + 'static> StaggeredError<E>

Source

pub fn iter(&self) -> impl Iterator<Item = &E>

Returns an iterator over all encountered errors.

-

Trait Implementations§

Source§

impl<E: StackError + 'static> Debug for StaggeredError<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: StackError + 'static> Display for StaggeredError<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: StackError + 'static> Error for StaggeredError<E>

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<E: StackError + 'static> From<StaggeredError<E>> for AnyError

Source§

fn from(value: StaggeredError<E>) -> AnyError

Converts to this type from the input type.
Source§

impl<E: StackError + 'static> StackError for StaggeredError<E>

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

§

impl<E> Freeze for StaggeredError<E>

§

impl<E> RefUnwindSafe for StaggeredError<E>
where +StaggeredError in iroh_relay::dns - Rust

StaggeredError

Struct StaggeredError 

Source
pub struct StaggeredError<E: StackError + 'static> { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Error returned when a staggered call fails.

+

Implementations§

Source§

impl<E: StackError + 'static> StaggeredError<E>

Source

pub fn new(errors: Vec<E>) -> Self

Creates a new StaggeredError error.

+
Source§

impl<E: StackError + 'static> StaggeredError<E>

Source

pub fn iter(&self) -> impl Iterator<Item = &E>

Returns an iterator over all encountered errors.

+

Trait Implementations§

Source§

impl<E: StackError + 'static> Debug for StaggeredError<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: StackError + 'static> Display for StaggeredError<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: StackError + 'static> Error for StaggeredError<E>

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<E: StackError + 'static> From<StaggeredError<E>> for AnyError

Source§

fn from(value: StaggeredError<E>) -> AnyError

Converts to this type from the input type.
Source§

impl<E: StackError + 'static> StackError for StaggeredError<E>

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

§

impl<E> Freeze for StaggeredError<E>

§

impl<E> RefUnwindSafe for StaggeredError<E>
where E: RefUnwindSafe,

§

impl<E> Send for StaggeredError<E>

§

impl<E> Sync for StaggeredError<E>

§

impl<E> Unpin for StaggeredError<E>
where E: Unpin,

§

impl<E> UnwindSafe for StaggeredError<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/pr/3958/docs/iroh_relay/dns/struct.TxtRecordData.html b/pr/3958/docs/iroh_relay/dns/struct.TxtRecordData.html index 88472cf6a6..8294e6b0da 100644 --- a/pr/3958/docs/iroh_relay/dns/struct.TxtRecordData.html +++ b/pr/3958/docs/iroh_relay/dns/struct.TxtRecordData.html @@ -1,11 +1,11 @@ -TxtRecordData in iroh_relay::dns - Rust

TxtRecordData

Struct TxtRecordData 

Source
pub struct TxtRecordData(/* private fields */);
Available on non-wasm_browser only.
Expand description

Record data for a TXT record.

+TxtRecordData in iroh_relay::dns - Rust

TxtRecordData

Struct TxtRecordData 

Source
pub struct TxtRecordData(/* private fields */);
Available on non-wasm_browser only.
Expand description

Record data for a TXT record.

This contains a list of character strings, as defined in RFC 1035 Section 3.3.14.

TxtRecordData implements fmt::Display, so you can call ToString::to_string to convert the record data into a string. This will parse each character string with String::from_utf8_lossy and then concatenate all strings without a separator.

If you want to process each character string individually, use Self::iter.

-

Implementations§

Source§

impl TxtRecordData

Source

pub fn iter(&self) -> impl Iterator<Item = &[u8]>

Returns an iterator over the character strings contained in this TXT record.

-

Trait Implementations§

Source§

impl Clone for TxtRecordData

Source§

fn clone(&self) -> TxtRecordData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TxtRecordData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TxtRecordData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Vec<Box<[u8]>>> for TxtRecordData

Source§

fn from(value: Vec<Box<[u8]>>) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<Box<[u8]>> for TxtRecordData

Source§

fn from_iter<T: IntoIterator<Item = Box<[u8]>>>(iter: T) -> Self

Creates a value from an iterator. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Implementations§

Source§

impl TxtRecordData

Source

pub fn iter(&self) -> impl Iterator<Item = &[u8]>

Returns an iterator over the character strings contained in this TXT record.

+

Trait Implementations§

Source§

impl Clone for TxtRecordData

Source§

fn clone(&self) -> TxtRecordData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TxtRecordData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TxtRecordData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Vec<Box<[u8]>>> for TxtRecordData

Source§

fn from(value: Vec<Box<[u8]>>) -> Self

Converts to this type from the input type.
Source§

impl FromIterator<Box<[u8]>> for TxtRecordData

Source§

fn from_iter<T: IntoIterator<Item = Box<[u8]>>>(iter: T) -> Self

Creates a value from an iterator. 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/3958/docs/iroh_relay/dns/trait.Resolver.html b/pr/3958/docs/iroh_relay/dns/trait.Resolver.html index 144c558347..371aeead15 100644 --- a/pr/3958/docs/iroh_relay/dns/trait.Resolver.html +++ b/pr/3958/docs/iroh_relay/dns/trait.Resolver.html @@ -1,4 +1,4 @@ -Resolver in iroh_relay::dns - Rust

Resolver

Trait Resolver 

Source
pub trait Resolver:
+Resolver in iroh_relay::dns - Rust

Resolver

Trait Resolver 

Source
pub trait Resolver:
     Debug
     + Send
     + Sync
@@ -19,20 +19,20 @@
     fn clear_cache(&self);
     fn reset(&mut self);
 }
Available on non-wasm_browser only.
Expand description

Trait for DNS resolvers used in iroh.

-

Required Methods§

Required Methods§

Source

fn lookup_ipv4( &self, host: String, ) -> BoxFuture<Result<BoxIter<Ipv4Addr>, DnsError>>

Looks up an IPv4 address.

-
Source

fn lookup_ipv6( +

Source

fn lookup_ipv6( &self, host: String, ) -> BoxFuture<Result<BoxIter<Ipv6Addr>, DnsError>>

Looks up an IPv6 address.

-
Source

fn lookup_txt( +

Source

fn lookup_txt( &self, host: String, ) -> BoxFuture<Result<BoxIter<TxtRecordData>, DnsError>>

Looks up TXT records.

-
Source

fn clear_cache(&self)

Clears the internal cache.

-
Source

fn reset(&mut self)

Completely resets the DNS resolver.

+
Source

fn clear_cache(&self)

Clears the internal cache.

+
Source

fn reset(&mut self)

Completely resets the DNS resolver.

This is called when the host’s network changes majorly. Implementations should rebind all sockets and refresh the nameserver configuration if read from the host system.

Implementors§

\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/dns/type.BoxIter.html b/pr/3958/docs/iroh_relay/dns/type.BoxIter.html index fd1f7058e5..dc90090119 100644 --- a/pr/3958/docs/iroh_relay/dns/type.BoxIter.html +++ b/pr/3958/docs/iroh_relay/dns/type.BoxIter.html @@ -1,2 +1,2 @@ -BoxIter in iroh_relay::dns - Rust

BoxIter

Type Alias BoxIter 

Source
pub type BoxIter<T> = Box<dyn Iterator<Item = T> + Send + 'static>;
Available on non-wasm_browser only.
Expand description

Boxed iterator alias.

+BoxIter in iroh_relay::dns - Rust

BoxIter

Type Alias BoxIter 

Source
pub type BoxIter<T> = Box<dyn Iterator<Item = T> + Send + 'static>;
Available on non-wasm_browser only.
Expand description

Boxed iterator alias.

Aliased Type§

pub struct BoxIter<T>(/* private fields */);
\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/endpoint_info/constant.IROH_TXT_NAME.html b/pr/3958/docs/iroh_relay/endpoint_info/constant.IROH_TXT_NAME.html index 31cd8c77d4..78cd585244 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/constant.IROH_TXT_NAME.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/constant.IROH_TXT_NAME.html @@ -1,2 +1,2 @@ -IROH_TXT_NAME in iroh_relay::endpoint_info - Rust

IROH_TXT_NAME

Constant IROH_TXT_NAME 

Source
pub const IROH_TXT_NAME: &str = "_iroh";
Expand description

The DNS name for the iroh TXT record.

+IROH_TXT_NAME in iroh_relay::endpoint_info - Rust

IROH_TXT_NAME

Constant IROH_TXT_NAME 

Source
pub const IROH_TXT_NAME: &str = "_iroh";
Expand description

The DNS name for the iroh TXT record.

\ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3958/docs/iroh_relay/endpoint_info/enum.DecodingError.html index b83bc53fd5..728ffbb659 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/enum.DecodingError.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/enum.DecodingError.html @@ -1,4 +1,4 @@ -DecodingError in iroh_relay::endpoint_info - Rust

DecodingError

Enum DecodingError 

Source
#[non_exhaustive]
pub enum DecodingError { +DecodingError in iroh_relay::endpoint_info - Rust

DecodingError

Enum DecodingError 

Source
#[non_exhaustive]
pub enum DecodingError { InvalidEncodingZ32 { source: Z32Error, meta: Meta, @@ -8,13 +8,13 @@ meta: Meta, }, InvalidKey { - source: KeyParsingError, + source: KeyParsingError, meta: Meta, }, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

InvalidEncodingZ32

Fields

§source: Z32Error
§meta: Meta

Captured call-site metadata

§

InvalidLength

Fields

§len: usize
§meta: Meta

Captured call-site metadata

-
§

InvalidKey

Fields

§source: KeyParsingError
§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for DecodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for AnyError

Source§

fn from(value: DecodingError) -> AnyError

Converts to this type from the input type.
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> Self

Converts to this type from the input type.
Source§

impl StackError for DecodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

§

InvalidKey

Fields

§meta: Meta

Captured call-site metadata

+

Trait Implementations§

Source§

impl Debug for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for DecodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for DecodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for AnyError

Source§

fn from(value: DecodingError) -> AnyError

Converts to this type from the input type.
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> Self

Converts to this type from the input type.
Source§

impl StackError for DecodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3958/docs/iroh_relay/endpoint_info/enum.EncodingError.html index 63b7faea71..006829ac46 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/enum.EncodingError.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/enum.EncodingError.html @@ -1,4 +1,4 @@ -EncodingError in iroh_relay::endpoint_info - Rust

EncodingError

Enum EncodingError 

Source
#[non_exhaustive]
pub enum EncodingError { +EncodingError in iroh_relay::endpoint_info - Rust

EncodingError

Enum EncodingError 

Source
#[non_exhaustive]
pub enum EncodingError { FailedBuildingPacket { source: SignedPacketBuildError, meta: Meta, @@ -9,7 +9,7 @@ }, }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

FailedBuildingPacket

Fields

§source: SignedPacketBuildError
§meta: Meta

Captured call-site metadata

§

InvalidTxtEntry

Fields

§source: SimpleDnsError
§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for EncodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<EncodingError> for AnyError

Source§

fn from(value: EncodingError) -> AnyError

Converts to this type from the input type.
Source§

impl StackError for EncodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EncodingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for EncodingError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<EncodingError> for AnyError

Source§

fn from(value: EncodingError) -> AnyError

Converts to this type from the input type.
Source§

impl StackError for EncodingError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3958/docs/iroh_relay/endpoint_info/enum.ParseError.html index 23f28d3d48..630db80cd1 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/enum.ParseError.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/enum.ParseError.html @@ -1,4 +1,4 @@ -ParseError in iroh_relay::endpoint_info - Rust

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { +ParseError in iroh_relay::endpoint_info - Rust

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { UnexpectedFormat { s: String, meta: Meta, @@ -29,7 +29,7 @@

§

Utf8

Fields

§source: Utf8Error
§meta: Meta

Captured call-site metadata

§

NotAnIrohRecord

Fields

§label: String
§meta: Meta

Captured call-site metadata

§

DecodingError

Fields

§meta: Meta

Captured call-site metadata

-

Trait Implementations§

Source§

impl Debug for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ParseError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for AnyError

Source§

fn from(value: ParseError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ParseError> for LookupError

Available on non-wasm_browser only.
Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ParseError

Source§

fn from(source: Utf8Error) -> Self

Converts to this type from the input type.
Source§

impl StackError for ParseError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ParseError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DecodingError> for ParseError

Source§

fn from(source: DecodingError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for AnyError

Source§

fn from(value: ParseError) -> AnyError

Converts to this type from the input type.
Source§

impl From<ParseError> for LookupError

Available on non-wasm_browser only.
Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for ParseError

Source§

fn from(source: Utf8Error) -> Self

Converts to this type from the input type.
Source§

impl StackError for ParseError

Source§

fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

Returns this error as a std error reference.
Source§

fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

Returns this error as a std error.
Source§

fn as_dyn(&self) -> &dyn StackError

Returns this error as a dyn StackError.
Source§

fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

Returns the next source in the chain, if any.
Source§

fn meta(&self) -> Option<&Meta>

Returns metadata captured at creation time, if available.
Source§

fn source(&self) -> Option<ErrorRef<'_>>

Returns the next source in the chain, if any.
Source§

fn is_transparent(&self) -> bool

Returns whether this error is transparent and should be skipped in reports.
§

fn as_ref(&self) -> ErrorRef<'_>

Returns this error as an [ErrorRef]. Read more
§

fn stack(&self) -> Chain<'_>

Returns an iterator over this error followed by its sources.
§

fn sources(&self) -> Chain<'_>

Returns an iterator over sources of this error (skipping self).
§

fn report(&self) -> Report<'_>

Returns a [Report] to output the error with configurable formatting.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/index.html b/pr/3958/docs/iroh_relay/endpoint_info/index.html index 5a81f61597..658dbe075c 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/index.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/index.html @@ -1,5 +1,5 @@ -iroh_relay::endpoint_info - Rust

Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by [EndpointId].

-

Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS +iroh_relay::endpoint_info - Rust

Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by EndpointId.

+

Dialing by EndpointId is supported by iroh endpoints publishing Pkarr records to DNS servers or the Mainline DHT. This module supports creating and parsing these records.

DNS records are published under the following names:

_iroh.<z32-endpoint-id>.<origin-domain> TXT

@@ -8,7 +8,7 @@ servers or the Mainline DHT. This module supports creating and parsing these re

_iroh is the record name as defined by IROH_TXT_NAME.

  • -

    <z32-endpoint-id> is the z-base-32 encoding of the [EndpointId].

    +

    <z32-endpoint-id> is the z-base-32 encoding of the EndpointId.

  • <origin-domain> is the domain name of the publishing DNS server, @@ -23,12 +23,13 @@ servers or the Mainline DHT. This module supports creating and parsing these re in RFC1464. The following attributes are defined:

    • -

      relay=<url>: The home RelayUrl of this endpoint.

      +

      relay=<url>: The home RelayUrl of this endpoint.

    • addr=<addr> <addr>: A space-separated list of sockets addresses for this iroh endpoint. Each address is an IPv4 or IPv6 address with a port.

    -
  • Structs§

    EndpointData
    Data about an endpoint that may be published to and resolved from discovery services.
    EndpointInfo
    Information about an endpoint that may be published to and resolved from discovery services.
    MaxLengthExceededError
    Error returned when an input value is too long for UserData.
    UserData
    Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

    Enums§

    DecodingError
    EncodingError
    ParseError

    Constants§

    IROH_TXT_NAME
    The DNS name for the iroh TXT record.

    Traits§

    EndpointIdExt
    Extension methods for [EndpointId] to encode to and decode from [z32], +

    Structs§

    AddrFilter
    A filter and/or reordering function applied to transport addresses, +typically used by AddressLookup services in iroh before publishing.
    EndpointData
    Data about an endpoint that may be published to and resolved from discovery services.
    EndpointInfo
    Information about an endpoint that may be published to and resolved from discovery services.
    MaxLengthExceededError
    Error returned when an input value is too long for UserData.
    UserData
    Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

    Enums§

    DecodingError
    EncodingError
    ParseError

    Constants§

    IROH_TXT_NAME
    The DNS name for the iroh TXT record.

    Traits§

    EndpointIdExt
    Extension methods for EndpointId to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.
    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/endpoint_info/sidebar-items.js b/pr/3958/docs/iroh_relay/endpoint_info/sidebar-items.js index 9129a8b3af..0a463f534a 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/sidebar-items.js +++ b/pr/3958/docs/iroh_relay/endpoint_info/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["IROH_TXT_NAME"],"enum":["DecodingError","EncodingError","ParseError"],"struct":["EndpointData","EndpointInfo","MaxLengthExceededError","UserData"],"trait":["EndpointIdExt"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["IROH_TXT_NAME"],"enum":["DecodingError","EncodingError","ParseError"],"struct":["AddrFilter","EndpointData","EndpointInfo","MaxLengthExceededError","UserData"],"trait":["EndpointIdExt"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3958/docs/iroh_relay/endpoint_info/struct.AddrFilter.html new file mode 100644 index 0000000000..f95d073ca9 --- /dev/null +++ b/pr/3958/docs/iroh_relay/endpoint_info/struct.AddrFilter.html @@ -0,0 +1,55 @@ +AddrFilter in iroh_relay::endpoint_info - Rust

    AddrFilter

    Struct AddrFilter 

    Source
    pub struct AddrFilter(/* private fields */);
    Expand description

    A filter and/or reordering function applied to transport addresses, +typically used by AddressLookup services in iroh before publishing.

    +

    Takes the full set of transport addresses and returns them as an ordered Vec, +allowing both filtering (by omitting addresses) and reordering (by controlling +the output order). A BTreeSet cannot preserve a custom order, so the return +type is Vec to make reordering possible.

    +

    See the documentation for each address lookup implementation for details on +what additional filtering the implementation may perform on top.

    +

    Implementations§

    Source§

    impl AddrFilter

    Source

    pub fn new( + f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, +) -> Self

    Create a new AddrFilter

    +
    Source

    pub fn relay_only() -> Self

    Only keep relay addresses.

    +
    Source

    pub fn ip_only() -> Self

    Only keep direct IP addresses.

    +
    Source

    pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>

    Apply the address filter function to a set of addresses.

    +

    Trait Implementations§

    Source§

    impl Clone for AddrFilter

    Source§

    fn clone(&self) -> AddrFilter

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for AddrFilter

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for AddrFilter

    Source§

    fn default() -> AddrFilter

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where + T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where + T: 'a,

    §

    fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

    Source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    Source§

    unsafe fn clone_to_uninit(&self, dest: *mut u8)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dest. Read more
    §

    impl<T> CompatExt for T

    §

    fn compat(self) -> Compat<T>

    Applies the [Compat] adapter by value. Read more
    §

    fn compat_ref(&self) -> Compat<&T>

    Applies the [Compat] adapter by shared reference. Read more
    §

    fn compat_mut(&mut self) -> Compat<&mut T>

    Applies the [Compat] adapter by mutable reference. Read more
    Source§

    impl<T> DynClone for T
    where + T: Clone,

    Source§

    fn __clone_box(&self, _: Private) -> *mut ()

    Source§

    impl<T> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an +Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    Source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    Source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    Source§

    impl<T> IntoEither for T

    Source§

    fn into_either(self, into_left: bool) -> Either<Self, Self>

    Converts self into a Left variant of Either<Self, Self> +if into_left is true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
    Source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> +if into_left(&self) returns true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops the object pointed to by the given pointer. Read more
    §

    impl<T> PolicyExt for T
    where + T: ?Sized,

    §

    fn and<P, B, E>(self, other: P) -> And<T, P>
    where + T: Policy<B, E>, + P: Policy<B, E>,

    Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
    §

    fn or<P, B, E>(self, other: P) -> Or<T, P>
    where + T: Policy<B, E>, + P: Policy<B, E>,

    Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
    Source§

    impl<T> Same for T

    Source§

    type Output = T

    Should always be Self
    Source§

    impl<T> ToOwned for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    Source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    Source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    Source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    Source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointData.html index 4cb39187f1..cf0642e210 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointData.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointData.html @@ -1,24 +1,26 @@ -EndpointData in iroh_relay::endpoint_info - Rust

    EndpointData

    Struct EndpointData 

    Source
    pub struct EndpointData { /* private fields */ }
    Expand description

    Data about an endpoint that may be published to and resolved from discovery services.

    -

    This includes an optional [RelayUrl], a set of direct addresses, and the optional +EndpointData in iroh_relay::endpoint_info - Rust

    EndpointData

    Struct EndpointData 

    Source
    pub struct EndpointData { /* private fields */ }
    Expand description

    Data about an endpoint that may be published to and resolved from discovery services.

    +

    This includes an optional RelayUrl, a set of direct addresses, and the optional UserData, a string that can be set by applications and is not parsed or used by iroh itself.

    -

    This struct does not include the endpoint’s [EndpointId], only the data about a certain -endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.

    -

    Implementations§

    Source§

    impl EndpointData

    Source

    pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self

    Creates a new EndpointData with a relay URL and a set of direct addresses.

    -
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated endpoint data.

    -
    Source

    pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self

    Sets the direct addresses and returns the updated endpoint data.

    -
    Source

    pub fn with_user_data(self, user_data: Option<UserData>) -> Self

    Sets the user-defined data and returns the updated endpoint data.

    -
    Source

    pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

    Returns the relay URL of the endpoint.

    -
    Source

    pub fn user_data(&self) -> Option<&UserData>

    Returns the optional user-defined data of the endpoint.

    -
    Source

    pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of the endpoint.

    -
    Source

    pub fn clear_ip_addrs(&mut self)

    Removes all direct addresses from the endpoint data.

    -
    Source

    pub fn clear_relay_urls(&mut self)

    Removes all direct addresses from the endpoint data.

    -
    Source

    pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

    Add addresses to the endpoint data.

    -
    Source

    pub fn set_user_data(&mut self, user_data: Option<UserData>)

    Sets the user-defined data of the endpoint data.

    -
    Source

    pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

    Returns the full list of all known addresses

    -
    Source

    pub fn has_addrs(&self) -> bool

    Does this have any addresses?

    -

    Trait Implementations§

    Source§

    impl Clone for EndpointData

    Source§

    fn clone(&self) -> EndpointData

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for EndpointData

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for EndpointData

    Source§

    fn default() -> EndpointData

    Returns the “default value” for a type. Read more
    Source§

    impl From<EndpointAddr> for EndpointData

    Source§

    fn from(endpoint_addr: EndpointAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for EndpointData

    Source§

    fn eq(&self, other: &EndpointData) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for EndpointData

    Source§

    impl StructuralPartialEq for EndpointData

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    This struct does not include the endpoint’s EndpointId, only the data about a certain +endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.

    +

    Implementations§

    Source§

    impl EndpointData

    Source

    pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self

    Creates a new EndpointData with a relay URL and a set of direct addresses.

    +
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated endpoint data.

    +
    Source

    pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self

    Sets the direct addresses and returns the updated endpoint data.

    +
    Source

    pub fn with_user_data(self, user_data: Option<UserData>) -> Self

    Sets the user-defined data and returns the updated endpoint data.

    +
    Source

    pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

    Returns the relay URL of the endpoint.

    +
    Source

    pub fn user_data(&self) -> Option<&UserData>

    Returns the optional user-defined data of the endpoint.

    +
    Source

    pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of the endpoint.

    +
    Source

    pub fn clear_ip_addrs(&mut self)

    Removes all direct addresses from the endpoint data.

    +
    Source

    pub fn clear_relay_urls(&mut self)

    Removes all direct addresses from the endpoint data.

    +
    Source

    pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

    Add addresses to the endpoint data.

    +
    Source

    pub fn set_user_data(&mut self, user_data: Option<UserData>)

    Sets the user-defined data of the endpoint data.

    +
    Source

    pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

    Returns the full list of all known addresses

    +
    Source

    pub fn has_addrs(&self) -> bool

    Does this have any addresses?

    +
    Source

    pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

    Apply the given filter to the current addresses.

    +

    Returns a vec to allow re-ordering of addresses.

    +

    Trait Implementations§

    Source§

    impl Clone for EndpointData

    Source§

    fn clone(&self) -> EndpointData

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for EndpointData

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for EndpointData

    Source§

    fn default() -> EndpointData

    Returns the “default value” for a type. Read more
    Source§

    impl From<EndpointAddr> for EndpointData

    Source§

    fn from(endpoint_addr: EndpointAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for EndpointData

    Source§

    fn eq(&self, other: &EndpointData) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for EndpointData

    Source§

    impl StructuralPartialEq for EndpointData

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html index 895bfe4f7c..d559dd4e55 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html @@ -1,42 +1,44 @@ -EndpointInfo in iroh_relay::endpoint_info - Rust

    EndpointInfo

    Struct EndpointInfo 

    Source
    pub struct EndpointInfo {
    -    pub endpoint_id: EndpointId,
    +EndpointInfo in iroh_relay::endpoint_info - Rust

    EndpointInfo

    Struct EndpointInfo 

    Source
    pub struct EndpointInfo {
    +    pub endpoint_id: EndpointId,
         pub data: EndpointData,
     }
    Expand description

    Information about an endpoint that may be published to and resolved from discovery services.

    -

    This struct couples a [EndpointId] with its associated EndpointData.

    -

    Fields§

    §endpoint_id: EndpointId

    The [EndpointId] of the endpoint this is about.

    +

    This struct couples a EndpointId with its associated EndpointData.

    +

    Fields§

    §endpoint_id: EndpointId

    The EndpointId of the endpoint this is about.

    §data: EndpointData

    The information published about the endpoint.

    -

    Implementations§

    Source§

    impl EndpointInfo

    Source

    pub fn new(endpoint_id: EndpointId) -> Self

    Creates a new EndpointInfo with an empty EndpointData.

    -
    Source

    pub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self

    Creates a new EndpointInfo from its parts.

    -
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated endpoint info.

    -
    Source

    pub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self

    Sets the IP based addresses and returns the updated endpoint info.

    -
    Source

    pub fn with_user_data(self, user_data: Option<UserData>) -> Self

    Sets the user-defined data and returns the updated endpoint info.

    -
    Source

    pub fn to_endpoint_addr(&self) -> EndpointAddr

    Converts into a [EndpointAddr] by cloning the needed fields.

    -
    Source

    pub fn into_endpoint_addr(self) -> EndpointAddr

    Converts into a [EndpointAddr] without cloning.

    -
    Source

    pub fn from_txt_lookup( +

    Implementations§

    Source§

    impl EndpointInfo

    Source

    pub fn new(endpoint_id: EndpointId) -> Self

    Creates a new EndpointInfo with an empty EndpointData.

    +
    Source

    pub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self

    Creates a new EndpointInfo from its parts.

    +
    Source

    pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

    Sets the relay URL and returns the updated endpoint info.

    +
    Source

    pub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self

    Sets the IP based addresses and returns the updated endpoint info.

    +
    Source

    pub fn with_user_data(self, user_data: Option<UserData>) -> Self

    Sets the user-defined data and returns the updated endpoint info.

    +
    Source

    pub fn to_endpoint_addr(&self) -> EndpointAddr

    Converts into a EndpointAddr by cloning the needed fields.

    +
    Source

    pub fn into_endpoint_addr(self) -> EndpointAddr

    Converts into a EndpointAddr without cloning.

    +
    Source

    pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, ) -> Result<Self, ParseError>

    Available on non-wasm_browser only.

    Parses a EndpointInfo from DNS TXT lookup.

    -
    Source

    pub fn from_pkarr_signed_packet( +

    Source

    pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<Self, ParseError>

    Parses a EndpointInfo from a [pkarr::SignedPacket].

    -
    Source

    pub fn to_pkarr_signed_packet( +

    Source

    pub fn to_pkarr_signed_packet( &self, - secret_key: &SecretKey, + secret_key: &SecretKey, ttl: u32, ) -> Result<SignedPacket, EncodingError>

    Creates a [pkarr::SignedPacket].

    -

    This constructs a DNS packet and signs it with a [SecretKey].

    -
    Source

    pub fn to_txt_strings(&self) -> Vec<String>

    Converts into a list of {key}={value} strings.

    -

    Methods from Deref<Target = EndpointData>§

    Source

    pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

    Returns the relay URL of the endpoint.

    -
    Source

    pub fn user_data(&self) -> Option<&UserData>

    Returns the optional user-defined data of the endpoint.

    -
    Source

    pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of the endpoint.

    -
    Source

    pub fn clear_ip_addrs(&mut self)

    Removes all direct addresses from the endpoint data.

    -
    Source

    pub fn clear_relay_urls(&mut self)

    Removes all direct addresses from the endpoint data.

    -
    Source

    pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

    Add addresses to the endpoint data.

    -
    Source

    pub fn set_user_data(&mut self, user_data: Option<UserData>)

    Sets the user-defined data of the endpoint data.

    -
    Source

    pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

    Returns the full list of all known addresses

    -
    Source

    pub fn has_addrs(&self) -> bool

    Does this have any addresses?

    -

    Trait Implementations§

    Source§

    impl Clone for EndpointInfo

    Source§

    fn clone(&self) -> EndpointInfo

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for EndpointInfo

    Source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for EndpointInfo

    Source§

    type Target = EndpointData

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for EndpointInfo

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<EndpointAddr> for EndpointInfo

    Source§

    fn from(addr: EndpointAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl From<EndpointInfo> for EndpointAddr

    Source§

    fn from(value: EndpointInfo) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for EndpointInfo

    Source§

    fn eq(&self, other: &EndpointInfo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for EndpointInfo

    Source§

    impl StructuralPartialEq for EndpointInfo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    This constructs a DNS packet and signs it with a SecretKey.

    +

    Source

    pub fn to_txt_strings(&self) -> Vec<String>

    Converts into a list of {key}={value} strings.

    +

    Methods from Deref<Target = EndpointData>§

    Source

    pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>

    Returns the relay URL of the endpoint.

    +
    Source

    pub fn user_data(&self) -> Option<&UserData>

    Returns the optional user-defined data of the endpoint.

    +
    Source

    pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of the endpoint.

    +
    Source

    pub fn clear_ip_addrs(&mut self)

    Removes all direct addresses from the endpoint data.

    +
    Source

    pub fn clear_relay_urls(&mut self)

    Removes all direct addresses from the endpoint data.

    +
    Source

    pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)

    Add addresses to the endpoint data.

    +
    Source

    pub fn set_user_data(&mut self, user_data: Option<UserData>)

    Sets the user-defined data of the endpoint data.

    +
    Source

    pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>

    Returns the full list of all known addresses

    +
    Source

    pub fn has_addrs(&self) -> bool

    Does this have any addresses?

    +
    Source

    pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>

    Apply the given filter to the current addresses.

    +

    Returns a vec to allow re-ordering of addresses.

    +

    Trait Implementations§

    Source§

    impl Clone for EndpointInfo

    Source§

    fn clone(&self) -> EndpointInfo

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for EndpointInfo

    Source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for EndpointInfo

    Source§

    type Target = EndpointData

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for EndpointInfo

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<EndpointAddr> for EndpointInfo

    Source§

    fn from(addr: EndpointAddr) -> Self

    Converts to this type from the input type.
    Source§

    impl From<EndpointInfo> for EndpointAddr

    Source§

    fn from(value: EndpointInfo) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for EndpointInfo

    Source§

    fn eq(&self, other: &EndpointInfo) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for EndpointInfo

    Source§

    impl StructuralPartialEq for EndpointInfo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3958/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html index cdf4d0f77b..a085649c3e 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html @@ -1,6 +1,6 @@ -MaxLengthExceededError in iroh_relay::endpoint_info - Rust

    MaxLengthExceededError

    Struct MaxLengthExceededError 

    Source
    pub struct MaxLengthExceededError { /* private fields */ }
    Expand description

    Error returned when an input value is too long for UserData.

    -

    Implementations§

    Source§

    impl MaxLengthExceededError

    Source

    pub fn new() -> Self

    Creates a new MaxLengthExceededError error.

    -

    Trait Implementations§

    Source§

    impl Debug for MaxLengthExceededError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for MaxLengthExceededError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for MaxLengthExceededError

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<MaxLengthExceededError> for AnyError

    Source§

    fn from(value: MaxLengthExceededError) -> AnyError

    Converts to this type from the input type.
    Source§

    impl StackError for MaxLengthExceededError

    Source§

    fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

    Returns this error as a std error reference.
    Source§

    fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

    Returns this error as a std error.
    Source§

    fn as_dyn(&self) -> &dyn StackError

    Returns this error as a dyn StackError.
    Source§

    fn meta(&self) -> Option<&Meta>

    Returns metadata captured at creation time, if available.
    Source§

    fn source(&self) -> Option<ErrorRef<'_>>

    Returns the next source in the chain, if any.
    Source§

    fn is_transparent(&self) -> bool

    Returns whether this error is transparent and should be skipped in reports.
    Source§

    fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

    Returns the next source in the chain, if any.
    §

    fn as_ref(&self) -> ErrorRef<'_>

    Returns this error as an [ErrorRef]. Read more
    §

    fn stack(&self) -> Chain<'_>

    Returns an iterator over this error followed by its sources.
    §

    fn sources(&self) -> Chain<'_>

    Returns an iterator over sources of this error (skipping self).
    §

    fn report(&self) -> Report<'_>

    Returns a [Report] to output the error with configurable formatting.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +MaxLengthExceededError in iroh_relay::endpoint_info - Rust

    MaxLengthExceededError

    Struct MaxLengthExceededError 

    Source
    pub struct MaxLengthExceededError { /* private fields */ }
    Expand description

    Error returned when an input value is too long for UserData.

    +

    Implementations§

    Source§

    impl MaxLengthExceededError

    Source

    pub fn new() -> Self

    Creates a new MaxLengthExceededError error.

    +

    Trait Implementations§

    Source§

    impl Debug for MaxLengthExceededError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for MaxLengthExceededError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for MaxLengthExceededError

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<MaxLengthExceededError> for AnyError

    Source§

    fn from(value: MaxLengthExceededError) -> AnyError

    Converts to this type from the input type.
    Source§

    impl StackError for MaxLengthExceededError

    Source§

    fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

    Returns this error as a std error reference.
    Source§

    fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

    Returns this error as a std error.
    Source§

    fn as_dyn(&self) -> &dyn StackError

    Returns this error as a dyn StackError.
    Source§

    fn meta(&self) -> Option<&Meta>

    Returns metadata captured at creation time, if available.
    Source§

    fn source(&self) -> Option<ErrorRef<'_>>

    Returns the next source in the chain, if any.
    Source§

    fn is_transparent(&self) -> bool

    Returns whether this error is transparent and should be skipped in reports.
    Source§

    fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

    Returns the next source in the chain, if any.
    §

    fn as_ref(&self) -> ErrorRef<'_>

    Returns this error as an [ErrorRef]. Read more
    §

    fn stack(&self) -> Chain<'_>

    Returns an iterator over this error followed by its sources.
    §

    fn sources(&self) -> Chain<'_>

    Returns an iterator over sources of this error (skipping self).
    §

    fn report(&self) -> Report<'_>

    Returns a [Report] to output the error with configurable formatting.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3958/docs/iroh_relay/endpoint_info/struct.UserData.html index f19a66f985..416268f092 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/struct.UserData.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/struct.UserData.html @@ -1,21 +1,21 @@ -UserData in iroh_relay::endpoint_info - Rust

    UserData

    Struct UserData 

    Source
    pub struct UserData(/* private fields */);
    Expand description

    Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

    +UserData in iroh_relay::endpoint_info - Rust

    UserData

    Struct UserData 

    Source
    pub struct UserData(/* private fields */);
    Expand description

    Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

    Iroh does not keep track of or examine the user-defined data.

    UserData implements FromStr and TryFrom<String>, so you can convert &str and String into UserData easily.

    -

    Implementations§

    Source§

    impl UserData

    Source

    pub const MAX_LENGTH: usize = 245usize

    The max byte length allowed for user-defined data.

    +

    Implementations§

    Source§

    impl UserData

    Source

    pub const MAX_LENGTH: usize = 245usize

    The max byte length allowed for user-defined data.

    In DNS discovery services, the user-defined data is stored in a TXT record character string, which has a max length of 255 bytes. We need to subtract the user-data= prefix, which leaves 245 bytes for the actual user-defined data.

    -

    Trait Implementations§

    Source§

    impl AsRef<str> for UserData

    Source§

    fn as_ref(&self) -> &str

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for UserData

    Source§

    fn clone(&self) -> UserData

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UserData

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for UserData

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl FromStr for UserData

    Source§

    type Err = MaxLengthExceededError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl Hash for UserData

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl AsRef<str> for UserData

    Source§

    fn as_ref(&self) -> &str

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for UserData

    Source§

    fn clone(&self) -> UserData

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UserData

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for UserData

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl FromStr for UserData

    Source§

    type Err = MaxLengthExceededError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl Hash for UserData

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for UserData

    Source§

    fn cmp(&self, other: &UserData) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for UserData

    Source§

    fn cmp(&self, other: &UserData) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for UserData

    Source§

    fn eq(&self, other: &UserData) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for UserData

    Source§

    fn partial_cmp(&self, other: &UserData) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    Source§

    impl PartialEq for UserData

    Source§

    fn eq(&self, other: &UserData) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for UserData

    Source§

    fn partial_cmp(&self, other: &UserData) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl TryFrom<String> for UserData

    Source§

    type Error = MaxLengthExceededError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: String) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Eq for UserData

    Source§

    impl StructuralPartialEq for UserData

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl TryFrom<String> for UserData

    Source§

    type Error = MaxLengthExceededError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: String) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Eq for UserData

    Source§

    impl StructuralPartialEq for UserData

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> 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/3958/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3958/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html index 0bd49dc493..57884727d8 100644 --- a/pr/3958/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html +++ b/pr/3958/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html @@ -1,9 +1,9 @@ -EndpointIdExt in iroh_relay::endpoint_info - Rust

    EndpointIdExt

    Trait EndpointIdExt 

    Source
    pub trait EndpointIdExt {
    +EndpointIdExt in iroh_relay::endpoint_info - Rust

    EndpointIdExt

    Trait EndpointIdExt 

    Source
    pub trait EndpointIdExt {
         // Required methods
         fn to_z32(&self) -> String;
    -    fn from_z32(s: &str) -> Result<EndpointId, DecodingError>;
    -}
    Expand description

    Extension methods for [EndpointId] to encode to and decode from [z32], + fn from_z32(s: &str) -> Result<EndpointId, DecodingError>; +}

    Expand description

    Extension methods for EndpointId to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.

    -

    Required Methods§

    Source

    fn to_z32(&self) -> String

    Encodes a [EndpointId] in z-base-32 encoding.

    -
    Source

    fn from_z32(s: &str) -> Result<EndpointId, DecodingError>

    Parses a [EndpointId] from z-base-32 encoding.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl EndpointIdExt for EndpointId

    Source§

    fn to_z32(&self) -> String

    Source§

    fn from_z32(s: &str) -> Result<EndpointId, DecodingError>

    Implementors§

    \ No newline at end of file +

    Required Methods§

    Source

    fn to_z32(&self) -> String

    Encodes a EndpointId in z-base-32 encoding.

    +
    Source

    fn from_z32(s: &str) -> Result<EndpointId, DecodingError>

    Parses a EndpointId from z-base-32 encoding.

    +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl EndpointIdExt for EndpointId

    Implementors§

    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/enum.KeyCache.html b/pr/3958/docs/iroh_relay/enum.KeyCache.html index 854c0161ff..0f3da2bdd0 100644 --- a/pr/3958/docs/iroh_relay/enum.KeyCache.html +++ b/pr/3958/docs/iroh_relay/enum.KeyCache.html @@ -1,20 +1,20 @@ KeyCache in iroh_relay - Rust

    KeyCache

    Enum KeyCache 

    Source
    pub enum KeyCache {
         Disabled,
    -    Shared(Arc<Mutex<LruCache<PublicKey, ()>>>),
    +    Shared(Arc<Mutex<LruCache<PublicKey, ()>>>),
     }
    Expand description

    A cache for public keys.

    This is used solely to make parsing public keys from byte slices more efficient for the very common case where a large number of identical keys are being parsed, like in the relay server.

    The cache stores only successful parse results.

    Variants§

    §

    Disabled

    The key cache is disabled.

    -
    §

    Shared(Arc<Mutex<LruCache<PublicKey, ()>>>)

    The key cache is enabled with a fixed capacity. It is shared between +

    §

    Shared(Arc<Mutex<LruCache<PublicKey, ()>>>)

    The key cache is enabled with a fixed capacity. It is shared between multiple threads.

    Implementations§

    Source§

    impl KeyCache

    Source

    pub fn new(capacity: usize) -> Self

    Create a new key cache with the given capacity.

    If the capacity is zero, the cache is disabled and has zero overhead.

    Source

    pub fn key_from_slice( &self, slice: &[u8], -) -> Result<PublicKey, <PublicKey as TryFrom<&'static [u8]>>::Error>

    Get a key from a slice of bytes.

    +) -> Result<PublicKey, <PublicKey as TryFrom<&'static [u8]>>::Error>

    Get a key from a slice of bytes.

    Trait Implementations§

    Source§

    impl Clone for KeyCache

    Source§

    fn clone(&self) -> KeyCache

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for KeyCache

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/3958/docs/iroh_relay/index.html b/pr/3958/docs/iroh_relay/index.html index 8c7c4f0036..8d18e43b14 100644 --- a/pr/3958/docs/iroh_relay/index.html +++ b/pr/3958/docs/iroh_relay/index.html @@ -1,4 +1,4 @@ -iroh_relay - Rust

    Crate iroh_relay

    Crate iroh_relay 

    Source
    Expand description

    Iroh’s relay is a feature within iroh, a peer-to-peer +iroh_relay - Rust

    Crate iroh_relay

    Crate iroh_relay 

    Source
    Expand description

    Iroh’s relay is a feature within iroh, a peer-to-peer networking system designed to facilitate direct, encrypted connections between devices. Iroh aims to simplify decentralized communication by automatically handling connections through “relays” when direct connections aren’t immediately possible. The relay server helps establish @@ -25,8 +25,8 @@ Tailscale.

    QAD support and expose metrics.

    -

    Re-exports§

    pub use protos::relay::MAX_PACKET_SIZE;

    Modules§

    client
    Exposes Client, which allows to establish connections to a relay server.
    defaults
    Default values used in the relay.
    dnsNon-wasm_browser
    DNS resolver
    endpoint_info
    Support for handling DNS resource records for dialing by [EndpointId].
    http
    HTTP-specific constants for the relay server and client.
    protos
    Protocols used by the iroh-relay
    quic
    Create a QUIC server that accepts connections -for QUIC address discovery.
    serverserver
    A fully-fledged iroh-relay server over HTTP or HTTPS.

    Structs§

    PingTracker
    Tracks pings on a single relay connection.
    RelayConfig
    Information on a specific relay server.
    RelayMap
    List of relay server configurations to be used in an iroh endpoint.
    RelayQuicConfig
    Configuration for speaking to the QUIC endpoint on the relay +

    Re-exports§

    pub use protos::relay::MAX_PACKET_SIZE;

    Modules§

    client
    Exposes Client, which allows to establish connections to a relay server.
    defaults
    Default values used in the relay.
    dnsNon-wasm_browser
    DNS resolver
    endpoint_info
    Support for handling DNS resource records for dialing by EndpointId.
    http
    HTTP-specific constants for the relay server and client.
    protos
    Protocols used by the iroh-relay
    quic
    Create a QUIC server that accepts connections +for QUIC address discovery.
    serverserver
    A fully-fledged iroh-relay server over HTTP or HTTPS.
    tls
    TLS verification configuration for iroh and iroh-relay.

    Structs§

    PingTracker
    Tracks pings on a single relay connection.
    RelayConfig
    Information on a specific relay server.
    RelayMap
    List of relay server configurations to be used in an iroh endpoint.
    RelayQuicConfig
    Configuration for speaking to the QUIC endpoint on the relay server to do QUIC address discovery.

    Enums§

    KeyCache
    A cache for public keys.

    Traits§

    ExportKeyingMaterial
    This trait allows anything that ends up potentially wrapping a TLS stream use the underlying export_keying_material function.
    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/protos/handshake/struct.SuccessfulAuthentication.html b/pr/3958/docs/iroh_relay/protos/handshake/struct.SuccessfulAuthentication.html index 792f4ea6d7..6bf4bfd38d 100644 --- a/pr/3958/docs/iroh_relay/protos/handshake/struct.SuccessfulAuthentication.html +++ b/pr/3958/docs/iroh_relay/protos/handshake/struct.SuccessfulAuthentication.html @@ -1,5 +1,5 @@ SuccessfulAuthentication in iroh_relay::protos::handshake - Rust

    SuccessfulAuthentication

    Struct SuccessfulAuthentication 

    Source
    pub struct SuccessfulAuthentication {
    -    pub client_key: PublicKey,
    +    pub client_key: PublicKey,
         pub mechanism: Mechanism,
     }
    Available on crate feature server only.
    Expand description

    This represents successful authentication for the client with the client_key public key via the authentication Mechanism mechanism.

    @@ -8,13 +8,13 @@ Result of a successful authentication handshake.

    This struct represents a client that has successfully authenticated itself to the relay server. The authorization must still be confirmed by calling Self::authorize_if to complete the protocol and notify the client of success or failure.

    -

    Fields§

    §client_key: PublicKey

    The authenticated client’s public key.

    +

    Fields§

    §client_key: PublicKey

    The authenticated client’s public key.

    §mechanism: Mechanism

    The authentication mechanism that was used.

    Implementations§

    Source§

    impl SuccessfulAuthentication

    Source

    pub async fn authorize_if( self, is_authorized: bool, io: &mut (impl BytesStreamSink + ExportKeyingMaterial), -) -> Result<PublicKey, Error>

    Completes the authorization protocol by notifying the client of success or failure.

    +) -> Result<PublicKey, Error>

    Completes the authorization protocol by notifying the client of success or failure.

    After a client has been successfully authenticated via serverside, the server must decide whether to authorize the client (allow access) or deny it. This method sends the authorization decision to the client and completes the handshake protocol.

    diff --git a/pr/3958/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html b/pr/3958/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html index 5810cdfaa6..0c25cf9d54 100644 --- a/pr/3958/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html +++ b/pr/3958/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html @@ -2,7 +2,7 @@ Ping([u8; 8]), Pong([u8; 8]), Datagrams { - dst_endpoint_id: EndpointId, + dst_endpoint_id: EndpointId, datagrams: Datagrams, }, }
    Expand description

    Messages that clients send to relays.

    @@ -11,35 +11,35 @@ other side with a §

    Pong([u8; 8])

    Reply to a RelayToClientMsg::Ping from a server with the payload sent previously in the ping.

    §

    Datagrams

    Request from the client to relay datagrams to given remote endpoint.

    -

    Fields

    §dst_endpoint_id: EndpointId

    The remote endpoint to relay to.

    +

    Fields

    §dst_endpoint_id: EndpointId

    The remote endpoint to relay to.

    §datagrams: Datagrams

    The datagrams and related metadata to relay.

    Trait Implementations§

    Source§

    impl Clone for ClientToRelayMsg

    Source§

    fn clone(&self) -> ClientToRelayMsg

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ClientToRelayMsg

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for ClientToRelayMsg

    Source§

    fn eq(&self, other: &ClientToRelayMsg) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Sink<ClientToRelayMsg> for Client

    Source§

    type Error = SendError

    The type of value produced by the sink when an error occurs.
    Source§

    fn poll_ready( +and should not be overridden without very good reason.

    Source§

    impl Sink<ClientToRelayMsg> for Client

    Source§

    type Error = SendError

    The type of value produced by the sink when an error occurs.
    Source§

    fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

    Attempts to prepare the Sink to receive a value. Read more
    Source§

    fn start_send( +) -> Poll<Result<(), Self::Error>>

    Attempts to prepare the Sink to receive a value. Read more
    Source§

    fn start_send( self: Pin<&mut Self>, item: ClientToRelayMsg, ) -> Result<(), Self::Error>

    Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to -poll_ready which returned Poll::Ready(Ok(())). Read more
    Source§

    fn poll_flush( +poll_ready which returned Poll::Ready(Ok(())). Read more

    Source§

    fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

    Flush any remaining output from this sink. Read more
    Source§

    fn poll_close( +) -> Poll<Result<(), Self::Error>>

    Flush any remaining output from this sink. Read more
    Source§

    fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

    Flush any remaining output and close this sink, if necessary. Read more
    Source§

    impl Sink<ClientToRelayMsg> for ClientSink

    Source§

    type Error = SendError

    The type of value produced by the sink when an error occurs.
    Source§

    fn poll_ready( +) -> Poll<Result<(), Self::Error>>

    Flush any remaining output and close this sink, if necessary. Read more
    Source§

    impl Sink<ClientToRelayMsg> for ClientSink

    Source§

    type Error = SendError

    The type of value produced by the sink when an error occurs.
    Source§

    fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

    Attempts to prepare the Sink to receive a value. Read more
    Source§

    fn start_send( +) -> Poll<Result<(), Self::Error>>

    Attempts to prepare the Sink to receive a value. Read more
    Source§

    fn start_send( self: Pin<&mut Self>, item: ClientToRelayMsg, ) -> Result<(), Self::Error>

    Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to -poll_ready which returned Poll::Ready(Ok(())). Read more
    Source§

    fn poll_flush( +poll_ready which returned Poll::Ready(Ok(())). Read more

    Source§

    fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, -) -> Poll<Result<(), Self::Error>>

    Flush any remaining output from this sink. Read more
    Source§

    fn poll_close( +) -> Poll<Result<(), Self::Error>>

    Flush any remaining output from this sink. Read more
    Source§

    fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>

    Flush any remaining output and close this sink, if necessary. Read more
    Source§

    impl Eq for ClientToRelayMsg

    Source§

    impl StructuralPartialEq for ClientToRelayMsg

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/pr/3958/docs/iroh_relay/protos/relay/enum.Error.html b/pr/3958/docs/iroh_relay/protos/relay/enum.Error.html index 8e8006fed3..83d9df5b82 100644 --- a/pr/3958/docs/iroh_relay/protos/relay/enum.Error.html +++ b/pr/3958/docs/iroh_relay/protos/relay/enum.Error.html @@ -17,7 +17,7 @@ meta: Meta, }, InvalidPublicKey { - source: KeyParsingError, + source: KeyParsingError, meta: Meta, }, InvalidFrame { @@ -39,12 +39,12 @@

    §

    FrameTooLarge

    Fields

    §frame_len: usize
    §meta: Meta

    Captured call-site metadata

    §

    SerDe

    Fields

    §source: Error
    §meta: Meta

    Captured call-site metadata

    §

    FrameTypeError

    Fields

    §meta: Meta

    Captured call-site metadata

    -
    §

    InvalidPublicKey

    Fields

    §source: KeyParsingError
    §meta: Meta

    Captured call-site metadata

    +
    §

    InvalidPublicKey

    Fields

    §meta: Meta

    Captured call-site metadata

    §

    InvalidFrame

    Fields

    §meta: Meta

    Captured call-site metadata

    §

    InvalidFrameType

    Fields

    §frame_type: FrameType
    §meta: Meta

    Captured call-site metadata

    §

    InvalidProtocolMessageEncoding

    Fields

    §source: Utf8Error
    §meta: Meta

    Captured call-site metadata

    §

    TooSmall

    Fields

    §meta: Meta

    Captured call-site metadata

    -

    Trait Implementations§

    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<Error> for AnyError

    Source§

    fn from(value: Error) -> AnyError

    Converts to this type from the input type.
    Source§

    impl From<Error> for Error

    Source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for RecvError

    Source§

    fn from(source: ProtoError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for RecvError

    Available on crate feature server only.
    Source§

    fn from(source: ProtoError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<FrameTypeError> for Error

    Source§

    fn from(source: FrameTypeError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<KeyParsingError> for Error

    Source§

    fn from(source: KeyParsingError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Utf8Error> for Error

    Source§

    fn from(source: Utf8Error) -> Self

    Converts to this type from the input type.
    Source§

    impl StackError for Error

    Source§

    fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

    Returns this error as a std error reference.
    Source§

    fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

    Returns this error as a std error.
    Source§

    fn as_dyn(&self) -> &dyn StackError

    Returns this error as a dyn StackError.
    Source§

    fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

    Returns the next source in the chain, if any.
    Source§

    fn meta(&self) -> Option<&Meta>

    Returns metadata captured at creation time, if available.
    Source§

    fn source(&self) -> Option<ErrorRef<'_>>

    Returns the next source in the chain, if any.
    Source§

    fn is_transparent(&self) -> bool

    Returns whether this error is transparent and should be skipped in reports.
    §

    fn as_ref(&self) -> ErrorRef<'_>

    Returns this error as an [ErrorRef]. Read more
    §

    fn stack(&self) -> Chain<'_>

    Returns an iterator over this error followed by its sources.
    §

    fn sources(&self) -> Chain<'_>

    Returns an iterator over sources of this error (skipping self).
    §

    fn report(&self) -> Report<'_>

    Returns a [Report] to output the error with configurable formatting.

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<Error> for AnyError

    Source§

    fn from(value: Error) -> AnyError

    Converts to this type from the input type.
    Source§

    impl From<Error> for Error

    Source§

    fn from(source: Error) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for RecvError

    Source§

    fn from(source: ProtoError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for RecvError

    Available on crate feature server only.
    Source§

    fn from(source: ProtoError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<FrameTypeError> for Error

    Source§

    fn from(source: FrameTypeError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<KeyParsingError> for Error

    Source§

    fn from(source: KeyParsingError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Utf8Error> for Error

    Source§

    fn from(source: Utf8Error) -> Self

    Converts to this type from the input type.
    Source§

    impl StackError for Error

    Source§

    fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)

    Returns this error as a std error reference.
    Source§

    fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>

    Returns this error as a std error.
    Source§

    fn as_dyn(&self) -> &dyn StackError

    Returns this error as a dyn StackError.
    Source§

    fn fmt_message(&self, f: &mut Formatter<'_>) -> Result

    Returns the next source in the chain, if any.
    Source§

    fn meta(&self) -> Option<&Meta>

    Returns metadata captured at creation time, if available.
    Source§

    fn source(&self) -> Option<ErrorRef<'_>>

    Returns the next source in the chain, if any.
    Source§

    fn is_transparent(&self) -> bool

    Returns whether this error is transparent and should be skipped in reports.
    §

    fn as_ref(&self) -> ErrorRef<'_>

    Returns this error as an [ErrorRef]. Read more
    §

    fn stack(&self) -> Chain<'_>

    Returns an iterator over this error followed by its sources.
    §

    fn sources(&self) -> Chain<'_>

    Returns an iterator over sources of this error (skipping self).
    §

    fn report(&self) -> Report<'_>

    Returns a [Report] to output the error with configurable formatting.

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where T: 'a,

    §

    fn implicit( diff --git a/pr/3958/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3958/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html index b596a8eb85..75ed075f07 100644 --- a/pr/3958/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html +++ b/pr/3958/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html @@ -1,9 +1,9 @@ RelayToClientMsg in iroh_relay::protos::relay - Rust

    RelayToClientMsg

    Enum RelayToClientMsg 

    Source
    pub enum RelayToClientMsg {
         Datagrams {
    -        remote_endpoint_id: EndpointId,
    +        remote_endpoint_id: EndpointId,
             datagrams: Datagrams,
         },
    -    EndpointGone(EndpointId),
    +    EndpointGone(EndpointId),
         Health {
             problem: String,
         },
    @@ -15,9 +15,9 @@
         Pong([u8; 8]),
     }
    Expand description

    The messages that a relay sends to clients or the clients receive from the relay.

    Variants§

    §

    Datagrams

    Represents datagrams sent from relays (originally sent to them by another client).

    -

    Fields

    §remote_endpoint_id: EndpointId

    The [EndpointId] of the original sender.

    +

    Fields

    §remote_endpoint_id: EndpointId

    The EndpointId of the original sender.

    §datagrams: Datagrams

    The datagrams and related metadata.

    -
    §

    EndpointGone(EndpointId)

    Indicates that the client identified by the underlying public key had previously sent you a +

    §

    EndpointGone(EndpointId)

    Indicates that the client identified by the underlying public key had previously sent you a packet but has now disconnected from the relay.

    §

    Health

    A one-way message from relay to client, declaring the connection health state.

    Fields

    §problem: String

    If set, is a description of why the connection is unhealthy.

    diff --git a/pr/3958/docs/iroh_relay/server/client/struct.Config.html b/pr/3958/docs/iroh_relay/server/client/struct.Config.html index 3cf98c513e..9dc00f4d95 100644 --- a/pr/3958/docs/iroh_relay/server/client/struct.Config.html +++ b/pr/3958/docs/iroh_relay/server/client/struct.Config.html @@ -1,11 +1,11 @@ Config in iroh_relay::server::client - Rust

    Config

    Struct Config 

    Source
    pub struct Config<S> {
    -    pub endpoint_id: EndpointId,
    +    pub endpoint_id: EndpointId,
         pub stream: RelayedStream<S>,
         pub write_timeout: Duration,
         pub channel_capacity: usize,
     }
    Available on crate feature server only.
    Expand description

    Configuration for a Client.

    Generic over the stream type to support different WebSocket implementations.

    -

    Fields§

    §endpoint_id: EndpointId

    The endpoint ID of the client

    +

    Fields§

    §endpoint_id: EndpointId

    The endpoint ID of the client

    §stream: RelayedStream<S>

    The relayed stream connection

    §write_timeout: Duration

    Write timeout for the client connection

    §channel_capacity: usize

    Channel capacity for internal message queues

    diff --git a/pr/3958/docs/iroh_relay/server/enum.AccessConfig.html b/pr/3958/docs/iroh_relay/server/enum.AccessConfig.html index 7247015baa..faa1d5a168 100644 --- a/pr/3958/docs/iroh_relay/server/enum.AccessConfig.html +++ b/pr/3958/docs/iroh_relay/server/enum.AccessConfig.html @@ -1,10 +1,10 @@ AccessConfig in iroh_relay::server - Rust

    AccessConfig

    Enum AccessConfig 

    Source
    pub enum AccessConfig {
         Everyone,
    -    Restricted(Box<dyn Fn(EndpointId) -> Boxed<Access> + Send + Sync + 'static>),
    +    Restricted(Box<dyn Fn(EndpointId) -> Boxed<Access> + Send + Sync + 'static>),
     }
    Available on crate feature server only.
    Expand description

    Controls which endpoints are allowed to use the relay.

    Variants§

    §

    Everyone

    Everyone

    -
    §

    Restricted(Box<dyn Fn(EndpointId) -> Boxed<Access> + Send + Sync + 'static>)

    Only endpoints for which the function returns Access::Allow.

    -

    Implementations§

    Source§

    impl AccessConfig

    Source

    pub async fn is_allowed(&self, endpoint: EndpointId) -> bool

    Is this endpoint allowed?

    +
    §

    Restricted(Box<dyn Fn(EndpointId) -> Boxed<Access> + Send + Sync + 'static>)

    Only endpoints for which the function returns Access::Allow.

    +

    Implementations§

    Source§

    impl AccessConfig

    Source

    pub async fn is_allowed(&self, endpoint: EndpointId) -> bool

    Is this endpoint allowed?

    Trait Implementations§

    Source§

    impl Debug for AccessConfig

    Source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/3958/docs/iroh_relay/server/http_server/index.html b/pr/3958/docs/iroh_relay/server/http_server/index.html index b6523ee774..398309b2e1 100644 --- a/pr/3958/docs/iroh_relay/server/http_server/index.html +++ b/pr/3958/docs/iroh_relay/server/http_server/index.html @@ -1,4 +1,4 @@ -iroh_relay::server::http_server - Rust

    Module http_server

    Module http_server 

    Source
    Available on crate feature server only.
    Expand description

    Low-level HTTP server components for embedding the relay service.

    +iroh_relay::server::http_server - Rust

    Module http_server

    Module http_server 

    Source
    Available on crate feature server only.
    Expand description

    Low-level HTTP server components for embedding the relay service.

    This module provides RelayService which can be used to embed relay functionality into an existing HTTP server. It handles individual connections and provides the core relay protocol implementation.

    diff --git a/pr/3958/docs/iroh_relay/server/struct.Server.html b/pr/3958/docs/iroh_relay/server/struct.Server.html index ecde229cce..bac2e044e6 100644 --- a/pr/3958/docs/iroh_relay/server/struct.Server.html +++ b/pr/3958/docs/iroh_relay/server/struct.Server.html @@ -17,9 +17,9 @@ case there is an error in the server before it is shut down.

    Source

    pub fn http_addr(&self) -> Option<SocketAddr>

    The socket address the HTTP server is listening on.

    Source

    pub fn quic_addr(&self) -> Option<SocketAddr>

    The socket address the QUIC server is listening on.

    Source

    pub fn certificates(&self) -> Option<Vec<CertificateDer<'static>>>

    The certificates chain if configured with manual TLS certificates.

    -
    Source

    pub fn https_url(&self) -> Option<RelayUrl>

    Available on crate feature test-utils only.

    Get the server’s https [RelayUrl].

    +
    Source

    pub fn https_url(&self) -> Option<RelayUrl>

    Available on crate feature test-utils only.

    Get the server’s https RelayUrl.

    This uses Self::https_addr so it’s mostly useful for local development.

    -
    Source

    pub fn http_url(&self) -> Option<RelayUrl>

    Available on crate feature test-utils only.

    Get the server’s http [RelayUrl].

    +
    Source

    pub fn http_url(&self) -> Option<RelayUrl>

    Available on crate feature test-utils only.

    Get the server’s http RelayUrl.

    This uses Self::http_addr so it’s mostly useful for local development.

    Source

    pub fn metrics(&self) -> &RelayMetrics

    Returns the metrics collected in the relay server.

    Trait Implementations§

    Source§

    impl Debug for Server

    Source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Server

    §

    impl RefUnwindSafe for Server

    §

    impl Send for Server

    §

    impl Sync for Server

    §

    impl Unpin for Server

    §

    impl UnwindSafe for Server

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/pr/3958/docs/iroh_relay/sidebar-items.js b/pr/3958/docs/iroh_relay/sidebar-items.js index f041a5cd6b..9230222cd6 100644 --- a/pr/3958/docs/iroh_relay/sidebar-items.js +++ b/pr/3958/docs/iroh_relay/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["KeyCache"],"mod":["client","defaults","dns","endpoint_info","http","protos","quic","server"],"struct":["PingTracker","RelayConfig","RelayMap","RelayQuicConfig"],"trait":["ExportKeyingMaterial"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["KeyCache"],"mod":["client","defaults","dns","endpoint_info","http","protos","quic","server","tls"],"struct":["PingTracker","RelayConfig","RelayMap","RelayQuicConfig"],"trait":["ExportKeyingMaterial"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/struct.RelayConfig.html b/pr/3958/docs/iroh_relay/struct.RelayConfig.html index bfa8ba30f7..03589f1728 100644 --- a/pr/3958/docs/iroh_relay/struct.RelayConfig.html +++ b/pr/3958/docs/iroh_relay/struct.RelayConfig.html @@ -1,14 +1,14 @@ RelayConfig in iroh_relay - Rust

    RelayConfig

    Struct RelayConfig 

    Source
    pub struct RelayConfig {
    -    pub url: RelayUrl,
    +    pub url: RelayUrl,
         pub quic: Option<RelayQuicConfig>,
     }
    Expand description

    Information on a specific relay server.

    Includes the Url where it can be dialed.

    -

    Fields§

    §url: RelayUrl

    The [RelayUrl] where this relay server can be dialed.

    +

    Fields§

    §url: RelayUrl

    The RelayUrl where this relay server can be dialed.

    §quic: Option<RelayQuicConfig>

    Configuration to speak to the QUIC endpoint on the relay server.

    When None, we will not attempt to do QUIC address discovery with this relay server.

    Trait Implementations§

    Source§

    impl Clone for RelayConfig

    Source§

    fn clone(&self) -> RelayConfig

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RelayConfig

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<'de> Deserialize<'de> for RelayConfig

    Source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    Source§

    impl Display for RelayConfig

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<RelayConfig> for RelayMap

    Source§

    fn from(value: RelayConfig) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayConfig

    Source§

    fn from(value: RelayUrl) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<RelayConfig> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayConfig>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl Ord for RelayConfig

    Source§

    fn cmp(&self, other: &RelayConfig) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    Source§

    impl Display for RelayConfig

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<RelayConfig> for RelayMap

    Source§

    fn from(value: RelayConfig) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayConfig

    Source§

    fn from(value: RelayUrl) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<RelayConfig> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayConfig>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl Ord for RelayConfig

    Source§

    fn cmp(&self, other: &RelayConfig) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for RelayConfig

    Source§

    fn eq(&self, other: &RelayConfig) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, diff --git a/pr/3958/docs/iroh_relay/struct.RelayMap.html b/pr/3958/docs/iroh_relay/struct.RelayMap.html index 360af04caf..4d3d55ed46 100644 --- a/pr/3958/docs/iroh_relay/struct.RelayMap.html +++ b/pr/3958/docs/iroh_relay/struct.RelayMap.html @@ -9,34 +9,34 @@ or by creating an empty relay map with let map = RelayMap::from_iter(vec![relay1, relay2]);

    Implementations§

    Source§

    impl RelayMap

    Source

    pub fn empty() -> Self

    Creates an empty relay map.

    Source

    pub fn try_from_iter<'a, T: IntoIterator<Item = &'a str>>( urls: T, -) -> Result<Self, RelayUrlParseError>

    Creates a RelayMap from an iterator.

    +) -> Result<Self, RelayUrlParseError>

    Creates a RelayMap from an iterator.

    The conversion from a URL to a RelayConfig is done the same as when parsing it directly, which means it is assumed to run QUIC on default settings as defined in RelayQuicConfig::default.

    §Example
    let map =
         RelayMap::try_from_iter(["https://relay_0.cool.com", "https://relay_1.cool.com"]).unwrap();
    Source

    pub fn urls<T>(&self) -> T
    where - T: FromIterator<RelayUrl>,

    Returns the URLs of all servers in this relay map.

    + T: FromIterator<RelayUrl>,

    Returns the URLs of all servers in this relay map.

    This function is generic over the container to collect into. If you simply want a list of URLs, call this with map.urls::<Vec<_>>() to get a Vec<RelayUrl>.

    Source

    pub fn relays<T>(&self) -> T

    Returns a list with the RelayConfig for each relay in this relay map.

    This function is generic over the container to collect into. If you simply want a list of URLs, call this with map.relays::<Vec<_>>() to get a Vec<RelayConfig>.

    -
    Source

    pub fn contains(&self, url: &RelayUrl) -> bool

    Returns true if a relay with url is contained in this this relay map.

    -
    Source

    pub fn get(&self, url: &RelayUrl) -> Option<Arc<RelayConfig>>

    Returns the config for a relay.

    +
    Source

    pub fn contains(&self, url: &RelayUrl) -> bool

    Returns true if a relay with url is contained in this this relay map.

    +
    Source

    pub fn get(&self, url: &RelayUrl) -> Option<Arc<RelayConfig>>

    Returns the config for a relay.

    Source

    pub fn len(&self) -> usize

    Returns the number of relays in this relay map.

    Source

    pub fn is_empty(&self) -> bool

    Returns true if this relay map is empty.

    Source

    pub fn insert( &self, - url: RelayUrl, + url: RelayUrl, endpoint: Arc<RelayConfig>, ) -> Option<Arc<RelayConfig>>

    Inserts a new relay into the relay map.

    -
    Source

    pub fn remove(&self, url: &RelayUrl) -> Option<Arc<RelayConfig>>

    Removes an existing relay by its URL.

    +
    Source

    pub fn remove(&self, url: &RelayUrl) -> Option<Arc<RelayConfig>>

    Removes an existing relay by its URL.

    Source

    pub fn extend(&self, other: &RelayMap)

    Extends this RelayMap with another one.

    -

    Trait Implementations§

    Source§

    impl Clone for RelayMap

    Source§

    fn clone(&self) -> RelayMap

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for 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 From<RelayConfig> for RelayMap

    Source§

    fn from(value: RelayConfig) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayMap

    Source§

    fn from(value: RelayUrl) -> Self

    Creates a RelayMap from a [RelayUrl].

    +

    Trait Implementations§

    Source§

    impl Clone for RelayMap

    Source§

    fn clone(&self) -> RelayMap

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for 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 From<RelayConfig> for RelayMap

    Source§

    fn from(value: RelayConfig) -> Self

    Converts to this type from the input type.
    Source§

    impl From<RelayUrl> for RelayMap

    Source§

    fn from(value: RelayUrl) -> Self

    Creates a RelayMap from a RelayUrl.

    The RelayConfigs in the RelayMap will have the default QUIC address discovery ports.

    -
    Source§

    impl FromIterator<Arc<RelayConfig>> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = Arc<RelayConfig>>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromIterator<RelayConfig> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayConfig>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromIterator<RelayUrl> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayUrl>>(iter: T) -> Self

    Creates a RelayMap from an iterator of [RelayUrl].

    +
    Source§

    impl FromIterator<Arc<RelayConfig>> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = Arc<RelayConfig>>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromIterator<RelayConfig> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayConfig>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromIterator<RelayUrl> for RelayMap

    Source§

    fn from_iter<T: IntoIterator<Item = RelayUrl>>(iter: T) -> Self

    Creates a RelayMap from an iterator of RelayUrl.

    The RelayConfigs in the RelayMap will have the default QUIC address discovery ports.

    Source§

    impl PartialEq for RelayMap

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, diff --git a/pr/3958/docs/iroh_relay/tls/fn.default_provider.html b/pr/3958/docs/iroh_relay/tls/fn.default_provider.html new file mode 100644 index 0000000000..ccd436b026 --- /dev/null +++ b/pr/3958/docs/iroh_relay/tls/fn.default_provider.html @@ -0,0 +1,3 @@ +default_provider in iroh_relay::tls - Rust

    default_provider

    Function default_provider 

    Source
    pub fn default_provider() -> Arc<CryptoProvider>
    Expand description

    Returns iroh’s default crypto provider.

    +

    Currently, this is [rustls::crypto::ring].

    +
    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/tls/index.html b/pr/3958/docs/iroh_relay/tls/index.html new file mode 100644 index 0000000000..e5de30a177 --- /dev/null +++ b/pr/3958/docs/iroh_relay/tls/index.html @@ -0,0 +1,2 @@ +iroh_relay::tls - Rust

    Module tls

    Module tls 

    Source
    Expand description

    TLS verification configuration for iroh and iroh-relay.

    +

    Structs§

    CaRootsConfig
    Configures the trusted CA root certificates for non-iroh TLS connections.

    Functions§

    default_provider
    Returns iroh’s default crypto provider.
    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/tls/sidebar-items.js b/pr/3958/docs/iroh_relay/tls/sidebar-items.js new file mode 100644 index 0000000000..d13f8ba73f --- /dev/null +++ b/pr/3958/docs/iroh_relay/tls/sidebar-items.js @@ -0,0 +1 @@ +window.SIDEBAR_ITEMS = {"fn":["default_provider"],"struct":["CaRootsConfig"]}; \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/tls/struct.CaRootsConfig.html b/pr/3958/docs/iroh_relay/tls/struct.CaRootsConfig.html new file mode 100644 index 0000000000..6298892438 --- /dev/null +++ b/pr/3958/docs/iroh_relay/tls/struct.CaRootsConfig.html @@ -0,0 +1,70 @@ +CaRootsConfig in iroh_relay::tls - Rust

    CaRootsConfig

    Struct CaRootsConfig 

    Source
    pub struct CaRootsConfig { /* private fields */ }
    Expand description

    Configures the trusted CA root certificates for non-iroh TLS connections.

    +

    These roots are used whenever iroh establishes standard TLS connections to +external services, such as iroh relays, pkarr servers, or DNS-over-HTTPS +resolvers.

    +

    The configured Certificate Authority (CA) roots are only used for verifying +the validity of TLS certificates presented by those external services. These +CAs don’t need to be trusted for the integrity or authenticity of native +iroh connections, which rely on iroh’s own cryptographic authentication mechanisms.

    +

    Implementations§

    Source§

    impl CaRootsConfig

    Source

    pub fn system() -> Self

    Available on crate feature platform-verifier only.

    Use the operating system’s certificate facilities for verifying the validity of TLS certificates.

    +

    See [rustls_platform_verifier] for details how trust anchors are retrieved on different platforms.

    +

    Note: Additional certificates added via Self::with_extra_roots will be ignored on Android due to +missing support in [rustls].

    +
    Source

    pub fn embedded() -> Self

    Use a compiled-in copy of the root certificates trusted by Mozilla.

    +

    See [webpki_roots] for details.

    +
    Source

    pub fn insecure_skip_verify() -> Self

    Available on crate features test-utils only.

    INSECURE: Do not verify server certificates at all.

    +

    May only be used in tests or local development setups.

    +
    Source

    pub fn custom(roots: impl IntoIterator<Item = CertificateDer<'static>>) -> Self

    Only trust the explicitly set root certificates.

    +
    Source

    pub fn with_extra_roots( + self, + extra_roots: impl IntoIterator<Item = CertificateDer<'static>>, +) -> Self

    Add additional root certificates to the list of trusted certificates.

    +
    Source

    pub fn server_cert_verifier( + &self, + crypto_provider: Arc<CryptoProvider>, +) -> Result<Arc<dyn ServerCertVerifier>>

    Builds a [ServerCertVerifier] from this config.

    +
    Source

    pub fn client_config( + &self, + crypto_provider: Arc<CryptoProvider>, +) -> Result<ClientConfig>

    Build a [ClientConfig] from this config.

    +

    Trait Implementations§

    Source§

    impl Clone for CaRootsConfig

    Source§

    fn clone(&self) -> CaRootsConfig

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for CaRootsConfig

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for CaRootsConfig

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where + T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where + T: 'a,

    §

    fn implicit( + self, + class: Class, + constructed: bool, + tag: u32, +) -> TaggedParser<'a, Implicit, Self, E>

    Source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    Source§

    unsafe fn clone_to_uninit(&self, dest: *mut u8)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dest. Read more
    §

    impl<T> CompatExt for T

    §

    fn compat(self) -> Compat<T>

    Applies the [Compat] adapter by value. Read more
    §

    fn compat_ref(&self) -> Compat<&T>

    Applies the [Compat] adapter by shared reference. Read more
    §

    fn compat_mut(&mut self) -> Compat<&mut T>

    Applies the [Compat] adapter by mutable reference. Read more
    Source§

    impl<T> DynClone for T
    where + T: Clone,

    Source§

    fn __clone_box(&self, _: Private) -> *mut ()

    Source§

    impl<T> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an +Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    Source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    Source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    Source§

    impl<T> IntoEither for T

    Source§

    fn into_either(self, into_left: bool) -> Either<Self, Self>

    Converts self into a Left variant of Either<Self, Self> +if into_left is true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
    Source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> +if into_left(&self) returns true. +Converts self into a Right variant of Either<Self, Self> +otherwise. Read more
    §

    impl<T> Pointable for T

    §

    const ALIGN: usize

    The alignment of pointer.
    §

    type Init = T

    The type for initializers.
    §

    unsafe fn init(init: <T as Pointable>::Init) -> usize

    Initializes a with the given initializer. Read more
    §

    unsafe fn deref<'a>(ptr: usize) -> &'a T

    Dereferences the given pointer. Read more
    §

    unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

    Mutably dereferences the given pointer. Read more
    §

    unsafe fn drop(ptr: usize)

    Drops the object pointed to by the given pointer. Read more
    §

    impl<T> PolicyExt for T
    where + T: ?Sized,

    §

    fn and<P, B, E>(self, other: P) -> And<T, P>
    where + T: Policy<B, E>, + P: Policy<B, E>,

    Create a new Policy that returns [Action::Follow] only if self and other return +Action::Follow. Read more
    §

    fn or<P, B, E>(self, other: P) -> Or<T, P>
    where + T: Policy<B, E>, + P: Policy<B, E>,

    Create a new Policy that returns [Action::Follow] if either self or other returns +Action::Follow. Read more
    Source§

    impl<T> Same for T

    Source§

    type Output = T

    Should always be Self
    Source§

    impl<T> ToOwned for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    Source§

    type Error = Infallible

    The type returned in the event of a conversion error.
    Source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    Source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    Source§

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    Source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +[WithDispatch] wrapper. Read more
    \ No newline at end of file diff --git a/pr/3958/docs/iroh_relay/trait.ExportKeyingMaterial.html b/pr/3958/docs/iroh_relay/trait.ExportKeyingMaterial.html index 3b2335c399..081b548b23 100644 --- a/pr/3958/docs/iroh_relay/trait.ExportKeyingMaterial.html +++ b/pr/3958/docs/iroh_relay/trait.ExportKeyingMaterial.html @@ -1,4 +1,4 @@ -ExportKeyingMaterial in iroh_relay - Rust

    ExportKeyingMaterial

    Trait ExportKeyingMaterial 

    Source
    pub trait ExportKeyingMaterial {
    +ExportKeyingMaterial in iroh_relay - Rust

    ExportKeyingMaterial

    Trait ExportKeyingMaterial 

    Source
    pub trait ExportKeyingMaterial {
         // Required method
         fn export_keying_material<T: AsMut<[u8]>>(
             &self,
    @@ -12,7 +12,7 @@ function.

    Trait for extracting keying material from a TLS connection.

    This is used during the relay handshake to establish a shared secret between the client and server for authentication purposes.

    -

    Required Methods§

    Required Methods§

    Source

    fn export_keying_material<T: AsMut<[u8]>>( &self, output: T, label: &[u8], diff --git a/pr/3958/docs/search.index/0030e38d9e15.js b/pr/3958/docs/search.index/0030e38d9e15.js new file mode 100644 index 0000000000..1312b2ca5d --- /dev/null +++ b/pr/3958/docs/search.index/0030e38d9e15.js @@ -0,0 +1 @@ +rn_("AYECsIAjlgB3sFAivAC9YWIjgAKgAAAAFy5zdSOBAqCAAAAjhHJ0AYECoCAAAB+UsEAkeQAdbG2HAQAAhrBAJFUAMLBgH9QAp6BQAAAgBaDAAAAj9AsARfT/DAAAAQABAJ4X") \ No newline at end of file diff --git a/pr/3958/docs/search.index/00f19eb499b3.js b/pr/3958/docs/search.index/00f19eb499b3.js deleted file mode 100644 index 2bd2a728d9..0000000000 --- a/pr/3958/docs/search.index/00f19eb499b3.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECsIAiogBysFAh3ACrYWIjggKgAAAAFphzdQGBAqAgAAAeybBAI4EAHWxthwEAAIWwQCNeAC+wYB8FAKOgUAAAHzYLAAX0qAwAAAEAAQD9FgGAAqEAAAAjhbBAHwQAo29wE4ECsPAjKgBHc3QBAwGgMAAAIdtpAQMfAADzAgFsAcgSAAAjgAKADQKYiCRkbgGAArBwH30BL7CQIQoBPWhpAQECoCAAABjHoAAAABflZXMB3hAAACOAArBQHY0Bp2Jj1zAAAIygIAAAEN+hAAAAI6+g0AAAI5uw4CKhAJOgQAAAI6eg0AAAIwCwYB2OAacHtRs6MAAAAQAAAAAACAAQAAAAQATOGLMfQyCwIN8hTiNdI2Mj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/00f57be74a7a.js b/pr/3958/docs/search.index/00f57be74a7a.js new file mode 100644 index 0000000000..a8900725f3 --- /dev/null +++ b/pr/3958/docs/search.index/00f57be74a7a.js @@ -0,0 +1 @@ +rn_("AYACsKAkGwABsHAjBgABY3QBhgOwYCQLAAGwMCN1AAGwMCN3AAFkcnPzAAFwAdIiAAABCAGwQCOGAAFlAU4kAADjgISgIAAAHi0AKCE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/00f79be6fe8f.js b/pr/3958/docs/search.index/00f79be6fe8f.js new file mode 100644 index 0000000000..e33fb89f5d --- /dev/null +++ b/pr/3958/docs/search.index/00f79be6fe8f.js @@ -0,0 +1 @@ +rn_("AQADoEAAACSQsDAhkAABoEAAACKUY2RlAZoYAAATgAKgEAAAEVJsbSMAAqAQAAARNGVpOzAAAAEAAAUAAQAnHwUA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0108f3000c07.js b/pr/3958/docs/search.index/0108f3000c07.js new file mode 100644 index 0000000000..db1cc70853 --- /dev/null +++ b/pr/3958/docs/search.index/0108f3000c07.js @@ -0,0 +1 @@ +rn_("AYACsEAZVwABsDAXJQABcHUBhISgYAAAJBCgcAAAJC2gYAAAJBGgYAAAJBIQAQkTgQKgEAAAJFRjdAEHAaBAAAAkamIB9yMAABOCA7AgIqYAAbDgJCAAAWRtcwEDAaBgAAAjv2/yNiEAAAEAI4ICoCAAAB5dZm7XAgAAhrAAIzQAhLAwIesAAQyIA/UiDQAAAQDvAkoHyQY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/011ee68a033f.js b/pr/3958/docs/search.index/011ee68a033f.js new file mode 100644 index 0000000000..901a6e1168 --- /dev/null +++ b/pr/3958/docs/search.index/011ee68a033f.js @@ -0,0 +1 @@ +rn_("AQABsGAjmQDyYjswAAABAAAFAAIA3x8CAIogAgATgwKgYAAAI11ncgEHAPNcIwAAkAABAPMCAXYBWCMAAFOAA6BwAAAh6WVobw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/01b631221a50.js b/pr/3958/docs/search.index/01b631221a50.js new file mode 100644 index 0000000000..b8a2d69b01 --- /dev/null +++ b/pr/3958/docs/search.index/01b631221a50.js @@ -0,0 +1 @@ +rn_("AQ0A9M4jAAABAAEAAQATAAOgYAAAISewUCA+AAFibnI6MAAAAQAAAAAADQAQAAAAzhEfEyATIRMiE2oTaxPMH80fVyBYIIMjICQhJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/01df57408978.js b/pr/3958/docs/search.index/01df57408978.js deleted file mode 100644 index 221761a244..0000000000 --- a/pr/3958/docs/search.index/01df57408978.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoSAAACOtYwE0HQAAAQEA9NQgAAABAAEAAQABBgD0UCMAAAEAAQABANOAhKBwAAAhqRwABAGAAqBwAAAi+6AwAAAY4mR0Y4CEsAAfUAABoAAAABPBCDAB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/01fb5e391816.js b/pr/3958/docs/search.index/01fb5e391816.js deleted file mode 100644 index 301cb659b0..0000000000 --- a/pr/3958/docs/search.index/01fb5e391816.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYYDsGAjEgABsDAigwABsDAihQABZHJz8wABcAHyIQAAAQgBsEAilAABZQFVIwAAY4CEoCAAAB1qsLAjIwABACgh") \ No newline at end of file diff --git a/pr/3958/docs/search.index/02ce160496d6.js b/pr/3958/docs/search.index/02ce160496d6.js new file mode 100644 index 0000000000..8b1f927de3 --- /dev/null +++ b/pr/3958/docs/search.index/02ce160496d6.js @@ -0,0 +1 @@ +rn_("AQgA9NMjAAABAI0AAQATgAKgQAAAIRZldAECAaBAAAAirmUBIR4AAAGAA7BwH+QAAbCQISkAAbBQIH8AAWFldQEEAPRRFwAAAQDNBgEAQ4ADoMAAACSosKAjPgABZWxvdwEAAIawcCGrAAGgYAAAIpCECQY7MAAAAQAAHAAJAHUBAwAyBAUAIQoBAGUNAAAnFwQA7h0CAA4eAwAcHgEA1iIBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/030a396b0285.js b/pr/3958/docs/search.index/030a396b0285.js new file mode 100644 index 0000000000..5ec72e9102 --- /dev/null +++ b/pr/3958/docs/search.index/030a396b0285.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAAAUAAgDdIwIAhiQCAPMAAW06MAAAAQAAAAAABwAQAAAAIhkQIeEi4iLjIkQkRSRGJAEAAPRpEQAAgQxnALMB84ACcnMjAAOgMAAAHiKwMBdWAAFhZXLz8iEAAHgCBQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/03441035f5c5.js b/pr/3958/docs/search.index/03441035f5c5.js new file mode 100644 index 0000000000..4be70e4833 --- /dev/null +++ b/pr/3958/docs/search.index/03441035f5c5.js @@ -0,0 +1 @@ +rn_("AQQA9EkkAAABAAEAAQAjAAKwUCNBAJljZfOpHwAAugAiAAGBAqCAAAAkg6BgAAAklWRzI4WEoMAAACQ1oNAAACSfsJAkeAApAxAIAQIDsFAjHAABoGAAACO1oDAAACLlYWNw9c8RAAABAHUMAQABACOAAqAgAAAXAGV5AYADsCAj/gCGoLAAACO3oNAAACSSZmd0AQYBsJAkWgABYwG/IQAAAQkBoEAAACSgdAFSJAAAYwMDsDAfxQABYWJ69DMTAAABAEINfAIBAgD0TSMAAAEAAQABAAEEAPUuIAAAAQABAAEAnAPzAgJlevQnEwAAAQBvEQEAAQAA9QcQAAABAAEAAQABAGOAA6AwAAAXEGFlafOAA2RtbgEBAbAAIqgAZWT1siEAAAEA8AABADUAI4ECoBAAABMmbnMBAAKgcAAAI22gQAAAI2xhZQHhHQAAAQABsDAgVwABbPaQGAAAzACpBAEAAQCbBOcXAACJsJAhvAABoEAAABkjkUhZAXEEAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/037e45f1fbe4.js b/pr/3958/docs/search.index/037e45f1fbe4.js deleted file mode 100644 index 298a605b5f..0000000000 --- a/pr/3958/docs/search.index/037e45f1fbe4.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9c8QAAABANUNFgNbAQEDhKBAAAAjWaCAAAAjrqAAAAAiyaAwAAAgLZAABgGZGAAA8wABYfI2HwAA1gIBCgD0aCIAAIoAOABHAPOAAm9084ACY2Q=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/039c63e16c56.js b/pr/3958/docs/search.index/039c63e16c56.js deleted file mode 100644 index 6d9f20608d..0000000000 --- a/pr/3958/docs/search.index/039c63e16c56.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9QMhAACcAQEAywABABOBAqEAAAAjkmR0I4ACoIAAACOYbnIBBgDzpSIAANEAHQDzAAJidTowAAABAAAAAAA0ABAAAADmDOcMkA+RD5IPeBa7FrwWgxiEGKYYyxjNGF0dgB2RHZIdkx2aHcse2x7eHhAfER8SHzwffB+3H7gfuR9AIA8hECEZIRQiFSIWIlAiYSKcIqMipCLlIu0i9iL/IgUjGyMhIyIjjCOVI7EjI4ADoOAAACMGoGAAACJrZGdy") \ No newline at end of file diff --git a/pr/3958/docs/search.index/03f8894fff48.js b/pr/3958/docs/search.index/03f8894fff48.js deleted file mode 100644 index 62298e479d..0000000000 --- a/pr/3958/docs/search.index/03f8894fff48.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoBAAABatoGAAACJjbm8BAAKgYAAAIuCgMAAAIy1iczowAAABAAAAAAAMABAAAADUEsITch1zHSAfIR8iHyMfJB8lH34fLyJOIgEDAPNAHwAAAQDcAscAAACFsDAdlQABoEAAAB8NoKAAACJnkgADOzAAAAEAAA4AAgDkEAIAgRELAMOABKAAAAAXzKAAAAAXzTQ2ZWk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0401117196ec.js b/pr/3958/docs/search.index/0401117196ec.js deleted file mode 100644 index 35cd2ca285..0000000000 --- a/pr/3958/docs/search.index/0401117196ec.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoAAAACC2oAAAACC3NDYBiQKgIAAAI26gMAAAI31pcBMAAqAgAAAiRWVpOzAAAAEAAAkABABwFgQA1xYCALggAACJIgAAhwAAA4WwQCNyAAWgQAAAIjChAAAAI5SgMAAAIowSABM6MAAAAQAAAAAABwAQAAAAoxLrEggfDx+xH7Qf/iICIwEGAPRuHQAAsAEUA5QAlwEAAIawIBLpAAGw8COZABmgQAAAIbVqAQE6MAAAAQAAAAAAGwAQAAAALAR4BHkEegTWEOAS4RLiErsTfRh+GH8Y7h7vHvAeeh+LH7sfvB9uIG8gcCDQINEg0iDTILEh+SI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/042b7c132cbb.js b/pr/3958/docs/search.index/042b7c132cbb.js new file mode 100644 index 0000000000..11aa12e329 --- /dev/null +++ b/pr/3958/docs/search.index/042b7c132cbb.js @@ -0,0 +1 @@ +rn_("AQcA9M8hAAABAAEAAQAjgAKgUAAAIEpjcgEEAaBwAAAjuHbzAB4AAAEAAQABAwKgIAAAIH6AHf0AEAFiefOIGAAAAQABAAEBAaBQAAAiqmjzWhkAAAEAiAQTAAKgMAAAGYllcwEbCwAA8wABdwEtHgAAAQMAOzAAAAEAAAUAAgCFGAIAkyACAAEDAPRJGQAAAQABAHwJAQQA9fgdAAABAAEAAQABAAEAArBgIw8Bg6BgAAAjEGZtATkZAAABAgD0TiAAADQBZwABAMOAhKCQAAAjK7AAIFcAAQwgAQEDAPP1HQAAAQABACOAAqBAAAAjCWhsxzsDAI6gMAAAE0CgMAAAJDCwYB4rAAGwcCB/AAGwYCAHAAE3cVs7MAAAAQAAGAAHAGUEAACPBAEA9wkJAFYTAQDwFgcAHhkAAA0gAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0446f46e71c0.js b/pr/3958/docs/search.index/0446f46e71c0.js deleted file mode 100644 index aa5c72797c..0000000000 --- a/pr/3958/docs/search.index/0446f46e71c0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACMtoHAAACJjZWlDAQOwYCELAU2w4COfAAFobXb2yRIAAAEAAQD0AAEAsQkBBwGgQAAAI3diAQIjAAAThAKwICHgAAFkbfOAAmxv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/044ca9564ff3.js b/pr/3958/docs/search.index/044ca9564ff3.js new file mode 100644 index 0000000000..01bb2db777 --- /dev/null +++ b/pr/3958/docs/search.index/044ca9564ff3.js @@ -0,0 +1 @@ +rn_("AYCEoFAAACLsoFAAACLtoFAAACLusRAkcwABDEABAQcBsEAjwAABZQEuIwAAAYACoFAAACD5oFAAACO/cHUBggKgAAAAIbqgAAAAIbtlcyOAAqBgAAAjRGV0AQMA9fsgAAABAAEAAQABAAEAAaCQAAAkWGw6MAAAAQAAAAAACAAQAAAAtR/XITYjWSOVI+kjIiQsJGkkE4ACoCAAACD6ZG4BBAA7MAAAAQAABwACALQhBQDXIwEAAQQBoAAAACKoZPOyIQAAAQAmAbcFAAGHsLAkFwABoGAAACNDlAkDOzAAAAEAABYABwAuGQoACx0CAEEhAQDnIQEAMyMAAFokAQBdJAEAAQABsEAhsAABZfUpGQAAAQABAAEAAQATAAKwoCRfAAFndgEKIAAA84ACbm8BAwA7MAAAAQAABQACALAfBAC+IgAAI4ACgB+3BCABZHLnAgAChrBQITwAAbAAHx0AARRBEjswAAABAAALAAUALxEDAI8RAQBaHgEA1R8BADYhAQCjAISgQAAAIyegQAAAIygSCALylAQAAGUa") \ No newline at end of file diff --git a/pr/3958/docs/search.index/048a1e3d42da.js b/pr/3958/docs/search.index/048a1e3d42da.js new file mode 100644 index 0000000000..5295f054f4 --- /dev/null +++ b/pr/3958/docs/search.index/048a1e3d42da.js @@ -0,0 +1 @@ +rn_("AQcBsEAjwAABZQEuIwAAAQwBoGAAACRuYvKXIwAAAQATgAKgEAAAJJBhbAEAAPZTHgAAtgHvAOsALAGDAQGAAqAgAAAh+aAQAAAhLmFzJwAAg4WhIAAAJKWgQAAAItKg0AAAJHCgUAAAI2MI0AHDAISwECM0AISgkAAAIykQCETzrCIAAJgA/QAjgAOgUAAAIPmgUAAAI79wcnUBggKgAAAAIbqgAAAAIbtlcyOAAqBgAAAjRGV0AQMA9fsgAAABAAEAAQABAAEAAaCQAAAkWGw6MAAAAQAAAAAACAAQAAAAtR/XITYjWSOVI+kjIiQsJGkkE4ACoCAAACD6ZG4BBAA7MAAAAQAABwACALQhBQDXIwEAAQQBoAAAACKoZPOyIQAAAQAmAbcFAAGHsLAkFwABoGAAACNDlAkDOzAAAAEAABYABwAuGQoACx0CAEEhAQDnIQEAMyMAAFokAQBdJAEAAQABsEAhsAABZfUpGQAAAQABAAEAAQATAAKwoCRfAAFndgEKIAAAM4ADsBANMwX/bm92AQMAOzAAAAEAAAYAAwCwHwQAISEAAL4iAAABAwGwMCObAAF08vAhAAABAAEEAPXJIgAAAQABAAEAAQDzgAJvcgECAPVdIAAAAQABAAEAAQA3AAAAhaAwAAAghqBAAAAhPrDAJD4AATCADDowAAABAAAAAAAPABAAAABGE3ITdxlxH7cf+R/6H88h0CHRIdIh9SH2Ifch+CHbI/OAAmRyAQIDoIAAACSloAAAACO9oDAAACEBaHN0AToZAAATgAKgYAAAIytkbtcLAACIsFAhPAABsAAfHQABFUETOjAAAAEAAAAAABMAEAAAAF0NXg1fDS4QLxEwETERMhGPEZARCh5aHlse1R/WHwUgNiE3Ie0itSM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0500b7698fc8.js b/pr/3958/docs/search.index/0500b7698fc8.js deleted file mode 100644 index 89a7340576..0000000000 --- a/pr/3958/docs/search.index/0500b7698fc8.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9pAdAACqAesA6QAQAXwBAYACoCAAACEkoBAAACBZYXMnAACDhaEgAAAjrqBAAAAh8qDQAAAjeKBQAAAicQjQAQEGAPOhIwAAAQABAAEDAPOCIwAAAQABAPMDAnBzAaohAAABhISgYAAAIxagcAAAIzWgYAAAIxegYAAAIxgQAQkTgQKgEAAAI11jdAEHAaBAAAAjcmIB/iIAABOCArAgIcYAAWRtwwCEoFAAAB2asAAiRACADIgA9MsMAAABAPoJnAY3AwAAhqCQAAAiOaAQAAAWbxApRDowAAABAAAAAAAJABAAAAC/EtYX9h75Hg4fzCFTIpYilyJIIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/056597ea86b9.js b/pr/3958/docs/search.index/056597ea86b9.js new file mode 100644 index 0000000000..9fc82cb9c2 --- /dev/null +++ b/pr/3958/docs/search.index/056597ea86b9.js @@ -0,0 +1 @@ +rn_("AQIA9FEZAAABAI8IAQABBgD0xiEAAAEAAQABAAELAPTTIwAAAQCNAAEAAQgA9BojAAABAAgBAQA3AQCAhaAwAAAgQbDQJBkAAQFIIQGAA6CAAAAjF7CAIxgAAbBAJF8AAWVvdAEFAPTAIQAAAQABAAEAE4EDoKAAACPSsFAhxAABbG1zAYACsDAgSAABsUAklwABZW8TgAKwcCK1AAFydQEFADswAAABAAAHAAIARCADAIojAwABAgD0TRkAAAEAAQABAAEEAbAwIrMAAXTzyR8AAAEAAQABCgD0TSMAAAEAAQABAIf9AQOOoLAAACOOsLAjjwABoGAAACEToKAAACNRsLAjkQABvowf8jMkAAABABMAAqEQAAAkSGFm9HUTAAABAAwNAgE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/05fe80fb67e3.js b/pr/3958/docs/search.index/05fe80fb67e3.js new file mode 100644 index 0000000000..2efa8523a6 --- /dev/null +++ b/pr/3958/docs/search.index/05fe80fb67e3.js @@ -0,0 +1 @@ +rn_("AQABoCAAABcwZQFaDQAAAQ0BoGAAACRuYvKXIwAAAQAjgAKgEAAAGXdlcgGAArAgFzYAAbAgI8IAAWFvAQQBoCAAACHWcwHRHwAAwwCEoDAAAB/+oFAAACBNRYAAOzAAAAEAABYACABCEQMA1xELANgfAQBWIAAAHCEAAL4hAAC4IgAAECMAAAGAAqAgAAAh+aAQAAAhLmFzAQABoEAAACEeZTswAAABAAAGAAIAMRcEALUiAQAjgAKgEAAAIpB0eacAAICHoSAAACSlsEAXTwABoEAAACLSoNAAACRwoFAAACNjONABAYECoBAAABlWoLAAACRAZWkBAAGwYCQgAAFlAXEgAAABgAKgIAAAIBKwUCNFAAFhZGMAA7CQI5MAAWNuc/cQDQAALwQUAO8MmAEBAKQBAQIA824ZAAAoBk8CE4ECoIAAACK+Zm4jgAKgQAAAGW1sbwEEAPMKIwAAfAABAAEEAaAAAAAjDWTyoyIAAAEAYwIDoKAAACRHYWNlAU4kAAABgQKwgCPGAAGgAAAAIPdmchOAAqAAAAAf6mRz84ACZWkBhAKgMAAAJGOgUAAAJH9jcvMDAWMBhSMAAPMCAWQBjhgAAPOAAmR013MAAIugcAAAIYeggAAAIdiwMCQ2AAEXxUY7MAAAAQAABwACAAkKBQAmEAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/06bd9d2cb0a9.js b/pr/3958/docs/search.index/06bd9d2cb0a9.js new file mode 100644 index 0000000000..bd77cf6f7d --- /dev/null +++ b/pr/3958/docs/search.index/06bd9d2cb0a9.js @@ -0,0 +1 @@ +rn_("AQIA824ZAAAoBk8CE4ECoIAAACK+Zm4BggKgMAAAJGOgUAAAJH9jciOAAqAwAAAZbWlvAQEDoFAAAB+ooQAAACROoEAAAB4qY2Zs9DENAABPAOkVmwABAgD1+hYAAAUJAQABAAEAAQMA9CYeAAABAAEAAQAjgAKgAAAAExVkcgGDAqBAAAAjJ6BAAAAjKGJs5wAAAYewEBMUBEmwABFrAAGwIBb5Ao+gMAAAHu4WARo7MAAAAQAAEAAEACwNBAB4DQcAzh8BABwjAQDzgAJwc/OAA2Vsbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0717eb264b8d.js b/pr/3958/docs/search.index/0717eb264b8d.js new file mode 100644 index 0000000000..36d8896289 --- /dev/null +++ b/pr/3958/docs/search.index/0717eb264b8d.js @@ -0,0 +1 @@ +rn_("AQoBoEAAACRZZfTMIwAAXAABAAEAIwIDoMAAACRrsAAjgQABY2lzOjAAAAEAAAAAAAcAEAAAACwXRBdFF0YXkRoTHhQeFR4=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/078fd4ed9a1d.js b/pr/3958/docs/search.index/078fd4ed9a1d.js deleted file mode 100644 index 0c7c110df2..0000000000 --- a/pr/3958/docs/search.index/078fd4ed9a1d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEAOzAAAAEAADIAAQAqDTIAAQUA9PMiAAABAB4AAQABgAKwkCIDAPKgUAAAIuZmdFcBAICFsEAfNgLWoIAAACNvEAFJ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/07948ad09661.js b/pr/3958/docs/search.index/07948ad09661.js deleted file mode 100644 index 1539cfeb17..0000000000 --- a/pr/3958/docs/search.index/07948ad09661.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9BUgAAABAAEAAQDzBAFz8kcfAAABAAEDAaAwAAAh22kBAx8AAPMCAWwByBIAAGOAhIANApiIJKAQAAAhvgigAg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/084f6bf3eef3.js b/pr/3958/docs/search.index/084f6bf3eef3.js deleted file mode 100644 index effe5ffef0..0000000000 --- a/pr/3958/docs/search.index/084f6bf3eef3.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoDAAAB+1bgHVEAAAAYECoAAAACC2oAAAACC3NDYBAwGwgCO1AAFz8qUjAAABAAEDAqBQAAAgQKBwAAAjOGNmAboTAAAzAAOAEVwYoAFsbnPzzAgAADECJxYBAgGgAAAAIghz8tEhAAABAAENAPTZIgAAAQABAAEA8wEBYvP9HgAAAQCTAwEDAaBgAAAjY2b2ph0AAAEAAgIgAdkBcgDzgANhZXX3AACAhaAAAAAijACoBQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/08543d1378a0.js b/pr/3958/docs/search.index/08543d1378a0.js new file mode 100644 index 0000000000..db82b15c29 --- /dev/null +++ b/pr/3958/docs/search.index/08543d1378a0.js @@ -0,0 +1 @@ +rn_("AQQBoAAAACMsc/O3IwAA1wABACcAAAWFoQAAACSSoEAAACLYoIAAACSkoFAAACMtFAAWAQodAAATAAKgcAAAIIFlcjowAAABAAAAAAAHABAAAABmBGcEaARiEZ0YnhgZIRoh") \ No newline at end of file diff --git a/pr/3958/docs/search.index/08e60d24d8d0.js b/pr/3958/docs/search.index/08e60d24d8d0.js new file mode 100644 index 0000000000..b6e106fab2 --- /dev/null +++ b/pr/3958/docs/search.index/08e60d24d8d0.js @@ -0,0 +1 @@ +rn_("AQABsGAkIAABZQFxIAAAQwEDsJAjkwABoDAAACASY25z9FMRAADvDJgBAQATgAKwcCHrAAFjcwGAAqAgAAAkD6CgAAAj1mlyAQABoCAAAB4XafIIIwAA+wABAwD1FyMAALwAAQCNAAEAAYQCsEAiwgABoEAAACLEZHOnAwAAhgEe5ooDP7BwIpYAARwgEjowAAABAAAAAAAUABAAAABmDWcNaA00EDUQNhA3EDgQORA6EA8XfhhIGesdYB8EIYwinyKgIqEi8CIBggKgQAAAIrmgQAAAIro0NgEDAbCQJJQAE2UBeCAAAPOAAmFpAQkBsEAj1wABZfLnIQAAAQCzgISgQAAAIe8cAAEBAAKgUAAAJA6wEB49BRRpdfb2EwAAhw83ALgAHQAdABOAAqAwAAAf7Gx084ADYWVp") \ No newline at end of file diff --git a/pr/3958/docs/search.index/08e78aee7209.js b/pr/3958/docs/search.index/08e78aee7209.js deleted file mode 100644 index ef744ba82c..0000000000 --- a/pr/3958/docs/search.index/08e78aee7209.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUDoJAAACMuoIAAACNdoKAAACNEYnN29hMfAAAvA/QAAQAgAAEAQwCEoIAAACEVoKAAACIxoQAAACOxBIQEOzAAAAEAAIUABQD2EAAA1xOAANkYAACfHwEADSIAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/09a9579f3572.js b/pr/3958/docs/search.index/09a9579f3572.js deleted file mode 100644 index d8a0343aab..0000000000 --- a/pr/3958/docs/search.index/09a9579f3572.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcBsEAiywABZQE+IgAAAQwBoGAAACN2YvKjIgAAAQATgAKgEAAAI5hhbAEAAPaQHQAAqgHrAOkAEAF8AQGAAqAgAAAhJKAQAAAgWWFzJwAAg4WhIAAAI66gQAAAIfKg0AAAI3igUAAAInEI0AHDAISwECJEAICgkAAAIjkQCETzzCEAAIcA9QAjgAOgUAAAICagUAAAIspwcnUBggKgAAAAIOWgAAAAIOZlcyOAAqBgAAAiU2V0AQMA9SggAAABAAEAAQABAAEAAaCQAAAjX2w6MAAAAQAAAAAACAAQAAAA6B4CIUYiaCKhIvIiKiM0I3EjE4ACoCAAACAnZG4BBAA7MAAAAQAABwACAN8gBQDiIgEAAQQBoAAAACHIZPPdIAAAAQAbAbcFAAGHsLAjHQABoGAAACJSlAkDOzAAAAEAABYABwCNGAoAThwCAGsgAQASIQEAQyIAAGEjAQBkIwEAAQABsEAg2wABZfWIGAAAAQABAAEAAQATAAKwoCNmAAFndgE7HwAAM4ADsBAM3AXcbm92AQMAOzAAAAEAAAYAAwDjHgQATCAAAN4hAAABAwGwMCKnAAF08hshAAABAAEEAPXpIQAAAQABAAEAAQDzgAJvcgECAPWMHwAAAQABAAEAAQA3AAAAhaAwAAAfs6BAAAAgarDAI0UAATCADDowAAABAAAAAAAPABAAAADMEvYS1himHuoeKh8rH/og+yD8IP0gICEhISIhIyHmIvOAAmRyAQKEoEAAACNZoIAAACOuoAAAACLJoDAAACAtkAAGAZkYAAATgAKgYAAAIjtkbtcLAACIsFAgaAABsAAeUwABFUETOjAAAAEAAAAAABMAEAAAAAYNBw0IDcYPxBDFEMYQxxAjESQRSh2XHZgdBh8HHzYfYiBjIAwiwSI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/09d6027297a4.js b/pr/3958/docs/search.index/09d6027297a4.js deleted file mode 100644 index 204e32270b..0000000000 --- a/pr/3958/docs/search.index/09d6027297a4.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYkCoCAAACNuoDAAACN9aXATAAKgIAAAIkVlaTswAAABAAAJAAQAcBYEANcWAgC4IAAAiSIAAIcAAAKFsEAjcgAFoEAAACIwoQAAACOUoDAAACKMEgATOjAAAAEAAAAAAAcAEAAAAKMS6xIIHw8fsR+0H/4iAiM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0a5fa17bff90.js b/pr/3958/docs/search.index/0a5fa17bff90.js deleted file mode 100644 index 59530bf1e7..0000000000 --- a/pr/3958/docs/search.index/0a5fa17bff90.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA8+0XAAABAAEAAYACsIAjKwABsLAjaAABYWwThgKwICEMAAF0dQEGAbDAI2YAAWnyBh8AAAEAlwEAgIWgYAAAIK6gcAAAIK+kAQgBAQD02woAAAEA7gtIBlMAA7AwEL0AAWVpeTswAAABAAB+AAQAWAEAANYWAACpHXoAJx8BAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0a779a22f409.js b/pr/3958/docs/search.index/0a779a22f409.js deleted file mode 100644 index 56aac25b06..0000000000 --- a/pr/3958/docs/search.index/0a779a22f409.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYQCsAAgxwABsDAh7gABc3QBAQA7MAAAAQAAgQACAPYQAADXE4AAZwAAAIWwoCDnAAGwgCHwAAGgcAAAH5S0CAA7MAAAAQAAEAAFAPoQAADEEwsApx4AAKwfAQCsIgAAAQIAOzAAAAEAAPoAAgBtFgAA6Rj5AAEBAaBQAAAhymjzuRgAAAEAaQTnAAAAhaCwAAAiWaAwAAAY6BQwAjswAAABAAAFAQsAEAQAANgKAADdDAAAlA37ALsQAADUHgAAdCAAALMgAAA9IgAAjSIAABkjAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0a9751a3e2cd.js b/pr/3958/docs/search.index/0a9751a3e2cd.js new file mode 100644 index 0000000000..4bc3b2edeb --- /dev/null +++ b/pr/3958/docs/search.index/0a9751a3e2cd.js @@ -0,0 +1 @@ +rn_("AQABoIAAACPodAFBEwAAE4ACsEAkMwABZ3YBAAGgQAAAJD1l9nYNAAABAK0DAQC9EgEAAQIA81wjAACQAAEA84ACaXkBAAGwABl8BjpyOzAAAAEAAD8ABABLFwAAnxgeADMeAAD+Hh4AI4ECsJAjxAABYWUjAQKgQAAAJFllafUhIwAAqwBcAAEAAQDTgISgYAAAIH0pIAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0ab91372337d.js b/pr/3958/docs/search.index/0ab91372337d.js new file mode 100644 index 0000000000..8a9f63f735 --- /dev/null +++ b/pr/3958/docs/search.index/0ab91372337d.js @@ -0,0 +1 @@ +rn_("AQcA81wjAACQAAEAAQABoIAAACSoYQFyCwAAAYICoBAAAB/4oKAAACSJYW8BgwKgIAAAIPegAAAAH+pkcxOBAqBAAAAfqmNlE4ACoBAAABdhZnNHBwAAx7BQGSQAAaAQAAAkLbAwExsETwBFhAn2kQQAAIILAQABAMASgwA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0ae83276a0f7.js b/pr/3958/docs/search.index/0ae83276a0f7.js deleted file mode 100644 index 8713bece9e..0000000000 --- a/pr/3958/docs/search.index/0ae83276a0f7.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUBoEAAACJaZfRnHwAAAQABAAEAAYQCoDAAACNqoFAAACOHY3LzAgFjAZMiAAABAgGggAAAIvF0AccSAAABAQGgkAAAIqly8nUgAAA9APOAAmVpAYICsEAh4gABoEAAACHkZHPzAAJucvIKCwAAAQABAgGw8COZABlmOzAAAAEAAAsABADgEgIAfRgCALsfAQDQIAMA1wEAAIegMAAAH4ugIAAAFqSgMAAAGM8ZgQY6MAAAAQAAAAAACAAQAAAAZwEFDcYYBCEFIQYhByEIIcUh") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0b1546656578.js b/pr/3958/docs/search.index/0b1546656578.js deleted file mode 100644 index 6681a006bb..0000000000 --- a/pr/3958/docs/search.index/0b1546656578.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBsIAjfgABc/IFIgAAAQABAwGgIAAAIBpl8rsSAAAeDzMAA7CAIw4AAWFpczowAAABAAAAAAAJABAAAADDCLQQzBf9F6geqR6qHkogtiCJIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0b380a6c3ef6.js b/pr/3958/docs/search.index/0b380a6c3ef6.js deleted file mode 100644 index 1a3634554f..0000000000 --- a/pr/3958/docs/search.index/0b380a6c3ef6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcBsEAiywABZQE+IgAAAQABsBAiRACAZfPMIQAAhwD1ACOAA6BQAAAgJqBQAAAiynBydQGCAqAAAAAg5aAAAAAg5mVzI4ACoGAAACJTZXQBAwD1KCAAAAEAAQABAAEAAQABoJAAACNfbDowAAABAAAAAAAIABAAAADoHgIhRiJoIqEi8iIqIzQjcSMTgAKgIAAAICdkbgEEADswAAABAAAHAAIA3yAFAOIiAQABBAGgAAAAIchk890gAAABABsBtwUAAYewsCMdAAGgYAAAIlKUCQM7MAAAAQAAFgAHAI0YCgBOHAIAayABABIhAQBDIgAAYSMBAGQjAQABAAGwQCDbAAFl9YgYAAABAAEAAQABABMAArCgI2YAAWd2ATsfAADzgAJubwEDADswAAABAAAFAAIA4x4EAN4hAAABAwGwMCKnAAF08hshAAABAAEEAPXpIQAAAQABAAEAAQDzgAJvcgECAPWMHwAAAQABAAEAAQA3AAAAhaAwAAAfs6BAAAAgarDAI0UAATCADDowAAABAAAAAAAOABAAAADMEvYSph7qHiofKx/6IPsg/CD9ICAhISEiISMh5iLzgAJkcgEChKBAAAAjWaCAAAAjrqAAAAAiyaAwAAAgLZAABgGZGAAAE4ACoGAAACI7ZG7XBQAAh7BQIGgAAbAAHlMAARVBEjowAAABAAAAAAARABAAAAAGDQcNCA3GD8QQxRDGEMcQIxEkEZcdmB0GHwcfNh9iIGMgDCI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0b3f34763907.js b/pr/3958/docs/search.index/0b3f34763907.js new file mode 100644 index 0000000000..84d87e16ed --- /dev/null +++ b/pr/3958/docs/search.index/0b3f34763907.js @@ -0,0 +1 @@ +rn_("AQkA9FokAAABAAIAAQDzBQFj8r8hAAAfAAEBAPRNIwAAAQABAAEA84ACM2UBggKgAAAAJIGgAAAAJII0NvMLAWkBKyQAAAEAArDAJBsAAbBgI+gAWGVyOzAAAAEAAA0ABABLDQMAUxkBAEQgAwCKIwMAE4ACsFAeUgG0aHIBAQGgYAAAJIpzAZQhAADzAAF18pkhAAABAAGAhKBQAAAggaAwAAAkSLDQJDkAAaBQAAAjHwQYAiOAAqAgAAAffmFlAQUA9M4jAAABAAEAAQABBgGgQAAAJFll9MwjAABcAAEAAQATgAKwsCRkAAFhaQGBAqBQAAAi6aBQAAAix2lsAQQBoAAAACMsc/O3IwAA1wABACcAAASFoQAAACSSoEAAACLYoIAAACSkoFAAACMtFAAWAQodAAABAgA7MAAAAQAAFAAEACUgDACwIQEAyiEEAM0jAAAjgAKg4AAAJI1vcmMAA6AAAAAkcGRyczowAAABAAAAAAAHABAAAABOIIAhgSGCIekh6iEpIzgjAQkBoEAAACSgdAFSJAAAAQEBsAAfxQABcvKSIQAAAQATgAKgYAAAIuhkdPf8AQDNsDAeSgABoEAAACOjwGykizswAAABAADpACIAXwQFAGYEAgD2CQAAcg0AAEgRAABWEQAAYhEAAAISAQANEgEAJxMBADMTAQBBEwAAUxMAAPETAQA9FAAA+hYAAAUXAABCFwEAnRgBAMEYVwApGQQAdBkCAFweAAD/HwMAFCAAAHYgAACDIAAAliBRAPAgBAAZIQEArSIAAPIiAABtJAAAlyQEAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0b66de41936b.js b/pr/3958/docs/search.index/0b66de41936b.js deleted file mode 100644 index 847b3ca304..0000000000 --- a/pr/3958/docs/search.index/0b66de41936b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAAAUAAQC8FwUAAYACsBAguwABoBAAACKsbncBCAD02SIAAAEAAQABAAEBAaAgAAAjLnI6MAAAAQAAAAAAFgAQAAAAvxDAEMEQAhEDEQQRBREGEQcRCBEJEQoRCxFSH4Qflh+lIuAiASNAI1QjdiOTIwEEADswAAABAAAFAAEAXB4FAPcBAACGoGAAACDGFEEJOzAAAAEAAA0ABgAdCwgAwiAAAA4iAADxIgAARyMAAK0jAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0bd8933fc465.js b/pr/3958/docs/search.index/0bd8933fc465.js new file mode 100644 index 0000000000..f4314bd9af --- /dev/null +++ b/pr/3958/docs/search.index/0bd8933fc465.js @@ -0,0 +1 @@ +rn_("AQEBoEAAACP9ZfLIIgAAuAABAQGwwCRkAAFtAYMgAADzgAJudgEAAqAwAAAfw7AgI1oA/mFyOzAAAAEAAAgAAgBiGAYAkSABAAEFAPRxJAAAAQABAAEA84ACZHJnAAAAhaBQAAAh5LBgI0ABPbAADU8CyBQBA/YqHgAAhQPcAJ0AvgAZAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0bdcd2ce65d0.js b/pr/3958/docs/search.index/0bdcd2ce65d0.js deleted file mode 100644 index 85f5f94608..0000000000 --- a/pr/3958/docs/search.index/0bdcd2ce65d0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQGEsGAfgwE3gCMXBqAdoLAAACLwoEAAAB89GQAB8soPAAABAAECAPPRGAAA/wUBAAEAADswAAABAAAGAAIA0hIBAPYXBADzgAJkbgEJAaBAAAAjA2XziiIAALcAAQABAgGggAAAI1p28rkgAAAkAvMDAWUBzx4AAHcAAIGFoCAAAB1QsUAjswABETEAAQEBoFAAAB8BbPOxDwAAAQAjCAEAArAwIpYAAbBgIpYAAWlt8p0OAAABAAEBAPahEgAACQQBACkAdwYrBfOAxQACiAo=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0c06bb7f1afe.js b/pr/3958/docs/search.index/0c06bb7f1afe.js deleted file mode 100644 index 78d0a5cc40..0000000000 --- a/pr/3958/docs/search.index/0c06bb7f1afe.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoCAAABaaZQEDDQAAAQ0BoGAAACN2YvKjIgAAAQAjgAKgEAAAGNZlcgGAArAgFqAAAbAgIs0AAWFvAQQBoCAAACEBcwECHwAAwwCEoDAAAB8voFAAAB98RYAAOzAAAAEAABYACADXEAMAZBELAAkfAQCFHwAARyAAAOkgAADYIQAAHyIAAAGAAqAgAAAhJKAQAAAgWWFzAQABoEAAACBJZTswAAABAAAGAAIAmxYEANUhAQAjgAKgEAAAIbN0eacAAICHoSAAACOusEAWuQABoEAAACHyoNAAACN4oFAAACJxONABAYECoBAAABi1oLAAACNHZWkBAAGwYCMoAAFlAZ4fAAABgAKgIAAAH0OwUCJUAAFhZGMAA7CQIp8AAWNuc/e5DAAAGwQUAJcMjAEBAJ0BAQIA880YAAD+BUUCE4ECoIAAACHeZm4jgAKgQAAAGMxsbwEEAPMZIgAAewABAAEEAaAAAAAiHGTywyEAAAEAYwIDoKAAACNOYWNlAVUjAAABgQKwgCLRAAGgAAAAICRmchOAAqAAAAAfG2Rz84ACZWkBhAKgMAAAI2qgUAAAI4djcvMDAWMBkyIAAPMCAWQB8BcAAPOAAmR013MAAIugcAAAILGggAAAIQOwMCM+AAEXxUY7MAAAAQAABwACAM0JBQC+DwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0c3dab7271b8.js b/pr/3958/docs/search.index/0c3dab7271b8.js deleted file mode 100644 index 004b3f09f2..0000000000 --- a/pr/3958/docs/search.index/0c3dab7271b8.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA86EjAAABAAEA8wABdAF0EQAAAQMA84IjAAABAAEAAQACoEAAACKvoFAAACNPaXL36xAAAKQAAQDlESwAAQABAOMAhKAgAAAir2CAAvKqIQAADgATgAKgMAAAE8Fucw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0c9c261d7554.js b/pr/3958/docs/search.index/0c9c261d7554.js new file mode 100644 index 0000000000..edc002a582 --- /dev/null +++ b/pr/3958/docs/search.index/0c9c261d7554.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAAAUAAgAOHgMA1iIBAAEJAPNVIwAAAQABAPMCAnBzOzAAAAEAAA0ABABJEwIAkxgAAJ8hBQDAIQMAAQcBoEAAACRvYgH7IwAAE4YCsCAiwAABZG0TgAKggAAAJCdvcgECAbBwJCAAAXPy2h8AAAEAAQEBoDAAACQPdwHwIgAA84ICZWkTAAKgUAAAJG1ldPMvEAAAAQAYFAGDAqBQAAAh5bAwJDYAAWNwAYEDoFAAACK/oAAAACQ7oLAAACQlYmR0AYACoEAAACSFoGAAACSWYXLzAgFzAW8ZAADzgAJhcgECAPRAFwAAAQDKBl0FAQEA9kcTAAABAEkFAQCdCgEAU4CEsFAf2AABsBAipgABEUACAQUA9gsjAAAJAAEACAEBAAEAI4ECoHAAACM4bXMBBwGgQAAAJGpiAfcjAAABBAD0VB4AAAEAAQC1AQEEAaBgAAAkPGIBvSIAAPOAAmxvt/oAAMygcAAAIFOgYAAAIIWwMB4MAAEAJ3YHOjAAAAEAAAAAAB0AEAAAAEgLSQtKC0sLTAsIDQkNOBE2FDcUOBTiHfEdFh6UH5Uf+B8MIHcgFyGRIpIikyLaItsi3CJ0IwAkASQCJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0ca89e5e39a6.js b/pr/3958/docs/search.index/0ca89e5e39a6.js new file mode 100644 index 0000000000..87f297bed4 --- /dev/null +++ b/pr/3958/docs/search.index/0ca89e5e39a6.js @@ -0,0 +1 @@ +rn_("AQUA9DceAAABAAEAAQAjAAKgYAAAIGlicDswAAABAAALAAMA7wwDADAUBQD1IAEAI4ACsAAi6ACFc3kBBwGgQAAAI/1l8sgiAAC4AAECAPNMIwAAWAABAEMBA6BwAAAhJ6AwAAAfn2RzdAFqDQAAAQIAOzAAAAEAAPcAAQASHPcAAQIAOzAAAAEAAPcAAQAaG/cAwwCEoCAAABcEoAAAACGGkBABOzAAAAEAAPgAAgA8DQAA/Q73AAEBAPTZHQAAAQABAAEAAQAAOzAAAAEAABAAAQB+ERAAY4ADoDAAABkoYWV084ACcnTXAQAAhbDwJFAAAQEMBTswAAABAAApAAIAeAIUAH8fFAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0cb50848e006.js b/pr/3958/docs/search.index/0cb50848e006.js deleted file mode 100644 index 08b981441a..0000000000 --- a/pr/3958/docs/search.index/0cb50848e006.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYMCoEAAACNfoGAAACJPZXIBBgDzgR0AAIgEkgEBgAKgQAAAIG2wMCMdAAFxchMAArAAErQAAWVz95wYAAC5BfkBGQCkAAYARwEBAwA7MAAAAQAABwACAHMfAwCYIgMAAQQBsEAhzwABZfJ4HQAAAQABgAKwoCLrAAGggAAAIkNsb9cDAACGsGAfbQABLCAF8+4MAADnEUYD84ACZWk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0cfac9bb7cfb.js b/pr/3958/docs/search.index/0cfac9bb7cfb.js new file mode 100644 index 0000000000..6a7e793300 --- /dev/null +++ b/pr/3958/docs/search.index/0cfac9bb7cfb.js @@ -0,0 +1 @@ +rn_("AYACoBAAABdDoGAAACNUbm8BAAKgYAAAI9WgMAAAJCViczowAAABAAAAAAAMABAAAABOE0MUNR42Hu8f8B/xH/If8x/0H08g8SIfIwEDAPMPIAAAAQD+AscAAACFsDAeWAABoEAAAB/coKAAACNYkgADOzAAAAEAAA4AAgBPEQIA9BELAPOAAmVpAQEA82IRAAC3DwEAAQYA9EweAAABAAEAAQDzgAJjbgEEAaBwAAAjuHbzAB4AAAEAAQABAwKgIAAAIH6AHf0AEAFiefOIGAAAAQABAAEDADswAAABAAAFAAIAhRgCAJMgAgABBAD1+B0AAAEAAQABAAEAAQACsGAjDwGDoGAAACMQZm0BORkAACOAAqCQAAAjK2NyAQQA8/UdAAABAAEA9wkAAIiwcCB/AAGwYCAHAAE0IBs7MAAAAQAAEgADAGUEAAD3CQkA8BYHAAEBAaAwAAAiu2kB0h8AAAEBAaAgAAAXMGUBWg0AAPOAAmNzAYCEoHAAACOgoMAAACNtoDAAACNKoIAAACPbBIADAQABoCAAACOgb/WXIQAAWAH5AFgAZAABAgDzVRMAAOcMAQATgAKgMAAAI1RydHcbAADJsGAh4AFpsOAklwABQGYWCPeNBAAAtg4BAAEA+wABAPMJ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0d08fb29763c.js b/pr/3958/docs/search.index/0d08fb29763c.js new file mode 100644 index 0000000000..0aa03967c1 --- /dev/null +++ b/pr/3958/docs/search.index/0d08fb29763c.js @@ -0,0 +1 @@ +rn_("AQEBoEAAACSgdPRnIwAA6wAVACUAAQQBoSAAACSkYwH0HQAAAQEBoHAAACHybfNhIwAAAQDDAOOAhKAQAAAeFwhAgkMAhLCgJKoAAaBAAAAi06AwAAAkdRGBAPYuEwAAAQDZD5IAVwASAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0d5e31a69ef8.js b/pr/3958/docs/search.index/0d5e31a69ef8.js new file mode 100644 index 0000000000..3323f1685c --- /dev/null +++ b/pr/3958/docs/search.index/0d5e31a69ef8.js @@ -0,0 +1 @@ +rn_("AQUAOzAAAAEAAFEAAQCWIFEAI4ECoKAAACRTa3MBhQKgcAAAJBagMAAAI2dlcxMAhKBAAAAeMKBwAAAhAKAgAAAXBRKAAfU/DQAAugIBAAEAAQBDAISwUCMcAAGgYAAAI7WgMAAAIuUFwAA7MAAAAQAABgADAJERAQDPEQEARR4CAAEDAPOTIAAAAQABAPMCAW47MAAAAQAABwABAPAWBwDzgAJvdAEDADswAAABAAABAQIAZBEAAO8VAAEBCAGgQAAAI/1l8sgiAAC4ACMCArAwIJEAAWlwOzAAAAEAAA8BAgBjEQAA4BQOASOAA6AQAAASEaBAAAAXU29ydQGAArAwGXgAAbAwIQIAAXJ25yQAAIqwUCNSAJKgUAAAH9CgIAAAEy2gsAAAIe+gUAAAF1Q0yQc6MAAAAQAAAAAADQAQAAAADg0YEBkQchhTHgkg+CDGIcchyCHJIeMhDyOSJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0d87a3b8fe28.js b/pr/3958/docs/search.index/0d87a3b8fe28.js new file mode 100644 index 0000000000..94a0c9d677 --- /dev/null +++ b/pr/3958/docs/search.index/0d87a3b8fe28.js @@ -0,0 +1 @@ +rn_("AQUA9M8hAAABAAEAAQATgQKgIAAAHfFqbCMAA6BQAAAgSqBwAAAkQWNyczswAAABAAAKAAUAXwsEANIRAQAMHgEANyAAALsjAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0da3ef0ee538.js b/pr/3958/docs/search.index/0da3ef0ee538.js new file mode 100644 index 0000000000..5f7f5ccc73 --- /dev/null +++ b/pr/3958/docs/search.index/0da3ef0ee538.js @@ -0,0 +1 @@ +rn_("AQICoEAAACOjoFAAACRIaXL3VhEAAKwAAQBqEiwAAQABAAEEAaBAAAAhKGU7MAAAAQAACQAEAAckAwB2JAEAoiQBAKwkAQABAAKwcCSXAAGgcAAAIdVlcjswAAABAAA0AAMAJw0AAC0fMgBfIwAAdwAAAIWgIAAAEgx+qv+19rhQCQEBMQQAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0e0cd7d59ad7.js b/pr/3958/docs/search.index/0e0cd7d59ad7.js new file mode 100644 index 0000000000..987b37fe4d --- /dev/null +++ b/pr/3958/docs/search.index/0e0cd7d59ad7.js @@ -0,0 +1 @@ +rn_("AQQA84khAAD2AZQAAQsA9NchAABfAV8AlwBnAAAAhaCAAAAj86AwAAAUPbBAEz8FQgWBBDswAAABAAAqAAEA/QMqAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0e36c2da4ebf.js b/pr/3958/docs/search.index/0e36c2da4ebf.js new file mode 100644 index 0000000000..6fb16c521f --- /dev/null +++ b/pr/3958/docs/search.index/0e36c2da4ebf.js @@ -0,0 +1 @@ +rn_("AQABoDAAACO7bwFzIwAAAQIA84YkAAABAAEA8w0BbfNEJAAAAQABAAGAAqCgAAAj8qAwAAAit25yAQABoJAAACO9aTowAAABAAAAAAAIABAAAAATE/sf/B8HIAgg8yMOJBIkTyTzAIQ4AAI6MAAAAQAAAAAACQAQAAAAIREiEXkgZCNlI2Yj5SNCJEMknCQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0e7f84e20cc9.js b/pr/3958/docs/search.index/0e7f84e20cc9.js new file mode 100644 index 0000000000..d89b6793ec --- /dev/null +++ b/pr/3958/docs/search.index/0e7f84e20cc9.js @@ -0,0 +1 @@ +rn_("AYACoFAAACQloHAAACNUZWlDAQOwYCHgAWmw4CSXAAFobXb2QxMAAAEAAQD7AAEA8wkBBwGgQAAAJG9iAfsjAAAThAKwICLAAAFkbQEDAPV9GQAAaQayAYABAQATAISgYAAAIFaAEVQAHw+wICORAAEBEAo7MAAAAQAABQACADsQAQBYFwMAAQACsDAjXgCSsCAjIwCZYnU6MAAAAQAAAAAABwAQAAAAMR7UH+0feyDfISIjNyO6I/OBAmR0AQMBoGAAACNzdQFRIAAAAQcA9M8hAAABAAEAAQAjgQKgUAAAIEpjcgEDADswAAABAAAHAAMAHhcBAOQdAQBMHgMA0wGEoBAAABQ6AYkAAT8LAADXAQCAhaEQAAAkXAFNAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0f3a2327c7f5.js b/pr/3958/docs/search.index/0f3a2327c7f5.js new file mode 100644 index 0000000000..33aacae184 --- /dev/null +++ b/pr/3958/docs/search.index/0f3a2327c7f5.js @@ -0,0 +1 @@ +rn_("AQkA9FokAAABAAIAAQDzBQFj8r8hAAAfAAEBAPRNIwAAAQABAAEA84ACM2UBggKgAAAAJIGgAAAAJII0NvMLAWkBKyQAAAGAArBwI+gAWLBQHlIBtGhyAQEBoGAAACSKcwGUIQAA8wABdfKZIQAAAQABgAOgMAAAJEiw0CQ5AAGgUAAAIx9sbXMjgAKgIAAAH35hZQEFAPTOIwAAAQABAAEAAQYBoEAAACRZZfTMIwAAXAABAAEAE4ACsLAkZAABYWkBgQKgUAAAIumgUAAAIsdpbAEEADswAAABAAAUAAQAJSAMALAhAQDKIQQAzSMAAAEJAaBAAAAkoHQBUiQAAAEBAbAAH8UAAXLykiEAAAEAE4ACoGAAACLoZHT3/AEAzbAwHkoAAaBAAAAjo8BspIs7MAAAAQAA4AAdAF8EBQD2CQAAcg0AAEgRAABWEQAAAhIBAA0SAQAnEwEAMxMBAEETAABTEwAA8RMBAD0UAAD6FgAAQhcBAMEYVwApGQQAdBkCAFweAAD/HwMAFCAAAHYgAACDIAAAliBRAPAgBACtIgAA8iIAAG0kAACXJAQA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0f60bf6d25c6.js b/pr/3958/docs/search.index/0f60bf6d25c6.js deleted file mode 100644 index bfa184dd7b..0000000000 --- a/pr/3958/docs/search.index/0f60bf6d25c6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQBoFAAACKRZvIzHQAApAEBgQOgUAAAIjWgUAAAIjawYCJvAAFic3bzAgFl8iAiAAABAAEEAaAAAAAiHGTywyEAAAEAI4YDoKAAACNOoEAAACIZYWNlE4ACsAALGgABaXkBggKgAAAAI4mgAAAAI4o0NvMLAWkBMyMAAEMCA6BwAAAiB6BwAAAiCGFmdgHNIQAAAQABoEAAAB7YYgFDHQAAAQABoEAAAB8UZTowAAABAAAAAAAJABAAAADsEO0QkRHKGG0fbh/zIvQiEiMTI/OAAmRyAYICoEAAACNeoGAAACOBYXITgAKwQB17AAF0efcDAACHoEAAABKdEUkD81YBAABtEQEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0f8386dc8ff7.js b/pr/3958/docs/search.index/0f8386dc8ff7.js deleted file mode 100644 index 2ba8d07b80..0000000000 --- a/pr/3958/docs/search.index/0f8386dc8ff7.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA8/0hAAAiAQEAIwSEsGAjQAAUoHAAACKuoGAAACJ3EiACOzAAAAEAAB4ACwBKHwQAWiAEAMkhAADLIQAAJiIAAC4iAACzIgwA5yIAAD0jAACZIwAAsiMAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0f8bd33262fc.js b/pr/3958/docs/search.index/0f8bd33262fc.js deleted file mode 100644 index 45fbd496ca..0000000000 --- a/pr/3958/docs/search.index/0f8bd33262fc.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBoDAAACNOcPKNHQAApwEBgQKgAAAAF8ygAAAAF800NgEBAbAQIdwAq3UBOCMAAHcAAICFoBAAABfdsCAjcgAFBCgG") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0f97385148ad.js b/pr/3958/docs/search.index/0f97385148ad.js new file mode 100644 index 0000000000..4d5f1addd4 --- /dev/null +++ b/pr/3958/docs/search.index/0f97385148ad.js @@ -0,0 +1 @@ +rn_("AQABoEAAACKNYgEnIwAAAQEBoEAAACSgdPRnIwAA6wAVACUAAQQBoSAAACSkYwH0HQAAAQEBoHAAACHybfNhIwAAAQDDAAEGAPXKIQAAAQABAAEAAQABCQD0LiQAAAEAIQABAOcDAICGoBAAAB4XSGCCAQMBoAAAACQDcwEEIQAAAQQAOzAAAAEAAAsAAwBfGQcA7yAAAFUjAgBjAAOgMAAAItNjZXL0/BYAAAEALAoBAGcBAACFsKAkqgABoDAAACR1EYEEOjAAAAEAAAAAAB8AEAAAAFkLWgtbC1wLXQsuEy8TWBMrFCwULRQuFF4XXxdtGG4Y3x0jHiQe6CDpIOog6yA5ITohPyFAIQgjmiO9I/EjAyQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0fa455fba71f.js b/pr/3958/docs/search.index/0fa455fba71f.js new file mode 100644 index 0000000000..ce1d5a2ae1 --- /dev/null +++ b/pr/3958/docs/search.index/0fa455fba71f.js @@ -0,0 +1 @@ +rn_("AQIBoGAAACNzdQFRIAAAAQADsEAW/gABoLAAACOFgAte1gtWZXFzOzAAAAEAAAkAAwBGBAEAhAQFAFQNAQABCADzVSMAAAEAAQDTgISwkCO2AAMBcAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/0fcfc5694bd5.js b/pr/3958/docs/search.index/0fcfc5694bd5.js deleted file mode 100644 index 0dd1947c35..0000000000 --- a/pr/3958/docs/search.index/0fcfc5694bd5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoCAAACA+ZgGZHgAAI4ACoGAAACMGdHoBAgA7MAAAAQAAFAABALQeFABXAACAh6AQAAAWl7AgHpYAAaAgAAAYxqAgAAAemKBQAAAgdBRREROAAqAgAAAX1mx0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1005346a2711.js b/pr/3958/docs/search.index/1005346a2711.js deleted file mode 100644 index bc516fc50d..0000000000 --- a/pr/3958/docs/search.index/1005346a2711.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoAAAABC0oAAAABC1NDYBgAKwICLCAAOxMCOfAAFidEOAhLAwH3cAAaAgAAAiO7AAELAAARBBIAGAAqBgAAAhzKBgAAAhzWV0AQYA86EjAAABAAEAAQMA84IjAAABAAEA8wUCcHMBqiEAAAEDAPTuHgAAAQABAAkEAQUA9TEgAAABAAEAAQABAAEBAbCAI6sAAXPyDCMAAAEAAQkBsIAjtQABc/KlIwAAAQDzgQJkaQEDADswAAABAAAJAAQA6x4CAJcfAAARIgIAfCICAPdgAAOLsEAfYQABsDAe8QABoEAAAB9jf365kGjBoGAAACDp31ECOzAAAAEAAAoABQCvEgIA8xICALIeAAC5IQEAVCIBAAGAhLBgIvMAAbAwIkkAAbAwIksAAaBwAAAjXQgAB0MDBKCQAAAjLqBAAAAiWqCgAAAjRGJlc3Y6MAAAAQAAAAAACQAQAAAAEx9nH2gfaR9qH0IiNiM3I1cjWCMTgAKgEAAAH7NjdNcIAADIoKAAACMKoEAAABLfsBAQsgABsHAh1QABQACRD/RwAQAAAQDvD54Q") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1018ae176133.js b/pr/3958/docs/search.index/1018ae176133.js deleted file mode 100644 index 060b566a7c..0000000000 --- a/pr/3958/docs/search.index/1018ae176133.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoIAAACOkZvKiEgAACBABBwDzciIAAAEAAQAjgAKgUAAAICVhb/MCAmZz9sMQAABMAAEAAQDQB5EHE4ADsIAe9wCrsBAOnQABYWVv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1018c08e8930.js b/pr/3958/docs/search.index/1018c08e8930.js deleted file mode 100644 index eb9483ddc1..0000000000 --- a/pr/3958/docs/search.index/1018c08e8930.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoGAAACKBdQGAHwAAAQADsEAWaAABoLAAACKTgAsZ0Hr6ZXFzOzAAAAEAAAkAAwAoBAEAZgQFAP0MAQABCADzZCIAAAEAAQDTgISwkCLCAAMBcAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/102e0b9a65a5.js b/pr/3958/docs/search.index/102e0b9a65a5.js deleted file mode 100644 index 1f58b8f668..0000000000 --- a/pr/3958/docs/search.index/102e0b9a65a5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYQCoAAAACBKoAAAACBLNDbzAgFhAfEXAAABBwDzfyIAAAEA8wATAAKwACJPATZjZPXAEgAAIgVKBgEAAQDzgAJlbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/10a4470dc0bb.js b/pr/3958/docs/search.index/10a4470dc0bb.js deleted file mode 100644 index c7abc9bde8..0000000000 --- a/pr/3958/docs/search.index/10a4470dc0bb.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcAOzAAAAEAAIEAAgBTHwAAJyGAAAEDADswAAABAACAAAEA6hmAAAECADswAAABAAB7AAIA1hYAAKkdegDTAISwAB+fAAEKAQQ7MAAAAQAAggADAN8KAAArC4AArBIAABOAAoAQ9/TQAWVn") \ No newline at end of file diff --git a/pr/3958/docs/search.index/11059905c8c5.js b/pr/3958/docs/search.index/11059905c8c5.js deleted file mode 100644 index 8b1a06d3f8..0000000000 --- a/pr/3958/docs/search.index/11059905c8c5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQgA9N4iAAABAIkAAQATgAKgQAAAIEJldAECAaBAAAAhzmUBXh0AAAGAA7BwHxUAAbCQIFQAAbBQH6wAAWFldQEEAPO7FgAAAQChBiOAAqDAAAAjsWVvdwEAAIawcCDWAAGgYAAAIbOECQY7MAAAAQAAGAAJAGwBAwAZBAEA5QkBAA4NAACRFgQALh0CAEwdAwBaHQEA9iEBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/11964a171355.js b/pr/3958/docs/search.index/11964a171355.js new file mode 100644 index 0000000000..358f00ed6a --- /dev/null +++ b/pr/3958/docs/search.index/11964a171355.js @@ -0,0 +1 @@ +rn_("AQABsIAkCQABc/N2HwAAAQABAAEDAbCAJHYAAXPy5iIAAAEAEwACsIAkBwABaXPzcx8AAAEAAQDzgQI0NiOAArAAE/MAAWRw") \ No newline at end of file diff --git a/pr/3958/docs/search.index/119d2428fb31.js b/pr/3958/docs/search.index/119d2428fb31.js deleted file mode 100644 index c0462eeff7..0000000000 --- a/pr/3958/docs/search.index/119d2428fb31.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQECsDAi/AABsAAT0QABY3M6MAAAAQAAAAAADwAQAAAA7hDvEPAQ8RDyEPMQ9BD1EJwRgR0ZIKghCSJiIuEimyMBgAKg4AAAIvGgMAAAIwBkcGOAA6FAAAAjsGJydQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/122bf5cf41d0.js b/pr/3958/docs/search.index/122bf5cf41d0.js deleted file mode 100644 index 0922633b64..0000000000 --- a/pr/3958/docs/search.index/122bf5cf41d0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoHAAACIvcgGsFgAAE4ECoFAAACORZ3QBBQGwQCMfAAFlOzAAAAEAAA0AAgAmIgAAsyIMAPMCAWzyjRYAAAEAEwECoAAAAB0fZXMB2RcAAFcAAACFoBAAAAz5sDAe1gC+sGAgRAABGAEG9csIAAD+BrINAQAMBhMAA7AgDP0AAaAQAAATdmRsbgExHgAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/124e45470c1e.js b/pr/3958/docs/search.index/124e45470c1e.js new file mode 100644 index 0000000000..7f005f3ace --- /dev/null +++ b/pr/3958/docs/search.index/124e45470c1e.js @@ -0,0 +1 @@ +rn_("AYECgCR6ABABoLAAACNJZHQBBQGgUAAAI4NmAaQfAAABgAKgEAAAJEegcAAAIZ50dpcBAICFoNAAACPzoBAAAAtVQYEB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/125a14899eec.js b/pr/3958/docs/search.index/125a14899eec.js new file mode 100644 index 0000000000..432492b014 --- /dev/null +++ b/pr/3958/docs/search.index/125a14899eec.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAAPcAAQAaG/cAI4ACoLAAACSfbHQBgAKwEBMbBE+wcCOIAAFkbgEEAbAwI8IAAXDzViAAAGgB+gABBAA7MAAAAQAAMgABAC0fMgDzgAJzdAGJAqCAAAAklaCQAAAkoWJ1E4ADoHAAACLyoaAAACSrY2lyAYECoAAAABlroAAAAB4DZHJDgAOgYAAAJHCgYAAAIRxjbXDzgAJweHcCAICGsBAiwAABoBAAAB76EUAO") \ No newline at end of file diff --git a/pr/3958/docs/search.index/127bdc42fb05.js b/pr/3958/docs/search.index/127bdc42fb05.js deleted file mode 100644 index 0a25f2eb2c..0000000000 --- a/pr/3958/docs/search.index/127bdc42fb05.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA8yYdAAABAAEAAQABsIAjEAABc/OrHgAAAQABAAEDAbCAI34AAXPyBSIAAAEAEwACsIAjDgABaXPzqB4AAAEAAQDzggI0NgEDAPWFHQAAAQB3BCIBAQABAQGwgCOrAAFz8gwjAAABAAEJAbCAI7UAAXPypSMAAAEA84gCZGnzgAJucqcEAACHsGAjQAAUsFAe/QABoHAAACKuoGAAACJ3MiEGOzAAAAEAACMADwABHwAASh8EAFogBACrIQEAySEAAMshAADcIQAAJiIAAC4iAACHIgAAsyIMAOciAAA9IwAAmSMAALIjAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/12bc219cd697.js b/pr/3958/docs/search.index/12bc219cd697.js new file mode 100644 index 0000000000..6a490c33a3 --- /dev/null +++ b/pr/3958/docs/search.index/12bc219cd697.js @@ -0,0 +1 @@ +rn_("AYQCsAAhnAABsDAizgABc3QBAAA7MAAAAQAAiAACAGERAABYFIcAE4ACsDAZfgABZHLHAAAAhrCgIbwAAaAAAAAElbCAItAAAaBwAAAgZ7wIADswAAABAAAXAAcAEQ0EAGURAABFFAsANhcBAHIfAAB/IAEAoCMAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/12bf8f507759.js b/pr/3958/docs/search.index/12bf8f507759.js new file mode 100644 index 0000000000..014c0ca370 --- /dev/null +++ b/pr/3958/docs/search.index/12bf8f507759.js @@ -0,0 +1 @@ +rn_("AQMBsDAjmwABdPLwIQAAAQABBAD1ySIAAAEAAQABAAEA84ACb3IBAgD1XSAAAAEAAQABAAEAMwKEoEAAACE+sMAkPgABMAAMAXITAAAjgAKgQAAAHmtpdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/134726a2f53a.js b/pr/3958/docs/search.index/134726a2f53a.js new file mode 100644 index 0000000000..7635367d72 --- /dev/null +++ b/pr/3958/docs/search.index/134726a2f53a.js @@ -0,0 +1 @@ +rn_("AQUAOzAAAAEAAAwAAQD5IgwAE4ACsAAeIwABZnMjgQKgsAAAJBRpcgEBAqAgAAAZaKAAAAAYg2VzAUkRAABjgISwUB5QAbOwQCEjABgOIAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1351b6921dea.js b/pr/3958/docs/search.index/1351b6921dea.js new file mode 100644 index 0000000000..87fadc1a00 --- /dev/null +++ b/pr/3958/docs/search.index/1351b6921dea.js @@ -0,0 +1 @@ +rn_("AQgA9AkkAAABAGwAAQABAwGgIAAAIO5l8jYTAACEDwEAAaCAAAAjbHX0nAIAAFABUgCtD/MAAzRhczowAAABAAAAAAANABAAAAA8BP8IIBH4FmoYnBh2H3cfeB8gIY0h5iLnIoIk") \ No newline at end of file diff --git a/pr/3958/docs/search.index/13e08d0e9573.js b/pr/3958/docs/search.index/13e08d0e9573.js new file mode 100644 index 0000000000..06d465e0ef --- /dev/null +++ b/pr/3958/docs/search.index/13e08d0e9573.js @@ -0,0 +1 @@ +rn_("AQABoEAAAB3xcvXSEQAAAQA5DAEArgUBAQD1+yAAAAEAAQABAAEAQ4ADoFAAACBnoAAAABNUYWdzAQECoFAAACEUoHAAACQwY2byIBAAABsEQ4ADoFAAACRToCAAACMoZm1u84ADaW95") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1411abca42c4.js b/pr/3958/docs/search.index/1411abca42c4.js new file mode 100644 index 0000000000..10a30aeb2f --- /dev/null +++ b/pr/3958/docs/search.index/1411abca42c4.js @@ -0,0 +1 @@ +rn_("AQMBsIAkdgABc/LmIgAAAQABAwGgIAAAIO1l8jUTAACEDzcAAACFoIAAACBRsIAkBwABoIAAACNsAQkKOjAAAAEAAAAAAA0AEAAAAJwC7AM+BP4IHxHrE2kYmxhzH3QfdR8fIYwhgSQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/143c3dbfd96d.js b/pr/3958/docs/search.index/143c3dbfd96d.js deleted file mode 100644 index f403a5b833..0000000000 --- a/pr/3958/docs/search.index/143c3dbfd96d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsFAiYQCMsEAgLgABY2UBgAKwABiaAAGgIAAAHz1kbPOAAmV5AQQA9bsYAACKBAEAAQB7BIcBAACFsGAfgwE3gCMXBqAdoLAAACLwGSAB8soPAAABABOAAqCAAAAgQ2Vp") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1496bc06d6b6.js b/pr/3958/docs/search.index/1496bc06d6b6.js deleted file mode 100644 index e9780f68b9..0000000000 --- a/pr/3958/docs/search.index/1496bc06d6b6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoHAAACOtsJAjBQCHaG8BggKwACDlAROgAAAAIOZlcyMAAqBgAAAiU2V0ASYgAAABgAKgYAAAIR2gAAAAI29pcwEDAPUoIAAAAQABAAEAAQABAAGgkAAAI19sOjAAAAEAAAAAAAgAEAAAAOgeAiFGImgioSLyIiojNCNxIxOAAqAgAAAgJ2RuAYACsKAjHQABoCAAAB+VYWkBAwGgAAAAIjxz88MiAADTAAEAAQMAOzAAAAEAAAwABQDfIAUAGSIAAJQiAQDPIgEA4iIBAPOAAnJ2AQMBsAAhyABUZPXdIAAAAQDlAAEANQATgAKg8AAAI5psbwGAAqCQAAAjTqBQAAAjGmJs92cAAIygYAAAI4igYAAAIlKgUAAAIj2VWRc7MAAAAQAAIgARAAANAACrEgAA8hIAAI0YCgBNHAMAMx4AAGsgAQDGIAAA2CAAABIhAQBDIgAAYyIAAG8iAQAtIwAAVSMAAGEjAQBkIwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/156875c7dc69.js b/pr/3958/docs/search.index/156875c7dc69.js deleted file mode 100644 index 03eb51aa82..0000000000 --- a/pr/3958/docs/search.index/156875c7dc69.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUDoJAAACMuoIAAACNdoKAAACNEYnN29hMfAAAvA/QAAQAgAAEAQwGEoIAAACEVoKAAACIxoQAAACOxBIQEAdkYAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/15ac1d6f7721.js b/pr/3958/docs/search.index/15ac1d6f7721.js new file mode 100644 index 0000000000..6acdfc7c6a --- /dev/null +++ b/pr/3958/docs/search.index/15ac1d6f7721.js @@ -0,0 +1 @@ +rn_("AQIA80QhAAABAAEAE4ACsCAgQAEHYW8BCADzTCMAAFgAAQA3AAABhbBgIrEAAbBgI/UAAaBwAAAjFixABDswAAABAAALAAUAFBcDAGsYAQDkHwEA+iEBANAiAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/15f93d8b9dc2.js b/pr/3958/docs/search.index/15f93d8b9dc2.js new file mode 100644 index 0000000000..60c1823566 --- /dev/null +++ b/pr/3958/docs/search.index/15f93d8b9dc2.js @@ -0,0 +1 @@ +rn_("AQGEsGAgVAE7gCQRBoAdoLAAACPnoEAAACAMGQAB8jIQAAABAAECAPNyGQAAKwYBAAEAADswAAABAAAGAAIATBMBAJQYBADzgAJkbgEJAaBAAAAj/GXzfCMAAL0AAQABAwKgIAAAI9KggAAAJA5ldvOaHwAAAQABAHcAAIGFoCAAAB4SsUAkqgABETEAAQEBoFAAAB/QbPMYEAAAAQBZCAEAArAwI4gAAbBgI4gAAWlt8vsOAAABAAEBAPYbEwAAJQQBACkAoQZdBfOAxQACiAo=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1616a6598ae5.js b/pr/3958/docs/search.index/1616a6598ae5.js deleted file mode 100644 index b6856788fc..0000000000 --- a/pr/3958/docs/search.index/1616a6598ae5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA824gAAABAAEAE4ACsCAfbwECYW8BCADzWyIAAFUAAQA3AAABhbBgIdEAAbBgIvwAAaBwAAAiJSxABDswAAABAAALAAUAfhYDAM4XAQAVHwEAJSEBAPAhAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1620a3a61cdd.js b/pr/3958/docs/search.index/1620a3a61cdd.js new file mode 100644 index 0000000000..e69ba7e8c5 --- /dev/null +++ b/pr/3958/docs/search.index/1620a3a61cdd.js @@ -0,0 +1 @@ +rn_("AYECoAAAACSBoAAAACSCNDYBBAGgAAAAIyxz87cjAADXAAEAJwAAAYWhAAAAJJKgQAAAItiggAAAJKSgUAAAIy0UABYBCh0AAIcBAICGoEAAACKQoEAAAB/dsBASDQABoCAAACK7BPAE") \ No newline at end of file diff --git a/pr/3958/docs/search.index/163347d66a0e.js b/pr/3958/docs/search.index/163347d66a0e.js deleted file mode 100644 index 364ada2d58..0000000000 --- a/pr/3958/docs/search.index/163347d66a0e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoEAAACJ3oBAAABfUY3IBgQKgAAAAEp2gAAAAEt9lcxOAAqAwAAAWuGFyAYECsBAYpwXuoCAAAB1/ZWkBAQGwIB2ZAaxp8rYSAAABAGOAhKAAAAAQzqAAAAAhAQggBQGAArBAH58AAaBAAAAdgGxvxwYAAIewMB0dAAGgcAAAIa2wMCJWAAEXgAw6MAAAAQAAAAAABwAQAAAA+Qr6CvsKoAyoD6kPwSB4Ig==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/164c6098e696.js b/pr/3958/docs/search.index/164c6098e696.js deleted file mode 100644 index 59a643e3a3..0000000000 --- a/pr/3958/docs/search.index/164c6098e696.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9FwiAAABAAEAAQABBAA7MAAAAQAADQACAFQfDADYIgAA8wICZXr0rRIAAAEA8RABAAEMAPSYIgAAAQABAAEAQwADoEAAAB1voQAAACL/ZWZpOzAAAAEAABkADAB0BAEA6wwBAJsPCQChEgAAqhYBANQWAADgGAAACx0CAEsdAABuIgAAdiIAAGojAAABgAKwIBZ1AAWgYAAAIolidPMAA2FlaffJCQAAAQA6GD8BPwABAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/169e56650a5b.js b/pr/3958/docs/search.index/169e56650a5b.js new file mode 100644 index 0000000000..e294dd3bd4 --- /dev/null +++ b/pr/3958/docs/search.index/169e56650a5b.js @@ -0,0 +1 @@ +rn_("AQICsGAjDwGDoGAAACMQZm0BORkAACOCAqBAAAAjSmVsAYACoCAAABNioBAAABEzbngBgAKgEAAAI7WwIBNgAAFjaTcBAICFoHAAACSksJAj/gCGkUAB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/16e5e88e1602.js b/pr/3958/docs/search.index/16e5e88e1602.js new file mode 100644 index 0000000000..e813048db6 --- /dev/null +++ b/pr/3958/docs/search.index/16e5e88e1602.js @@ -0,0 +1 @@ +rn_("AQIBoEAAACSgdPRnIwAA6wAVACUAE4ACoDAAACR1aXBDggOgcAAAJBawcCD1AAFlbnMTAAKgIAAADTVmbfViAQAAFQHTDgIAMg8=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/170fdafb317f.js b/pr/3958/docs/search.index/170fdafb317f.js new file mode 100644 index 0000000000..a173ddeaaf --- /dev/null +++ b/pr/3958/docs/search.index/170fdafb317f.js @@ -0,0 +1 @@ +rn_("AQCFoJAAACRooEAAACOmoEAAACNqoGAAACQEoCAAACLgmAAK8u4fAACGACMBAqBgAAAhI2hz9k0RAAABAPIMAQDzAg8AAQIBsFAjQQCZY/KpHwAAugDHAAAAhbCQI4EAAaBAAAAkfqBgAAAkfgwgCvVWCwAAAQDSARQRFAU=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/172cb6001050.js b/pr/3958/docs/search.index/172cb6001050.js deleted file mode 100644 index baf0a349f8..0000000000 --- a/pr/3958/docs/search.index/172cb6001050.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQAOzAAAAEAAAUAAQA2IAUA8wIBZTswAAABAAALAAUAfBYBAA4dAwDTIQEA7iEBAKciAQABgAKhMAAAI4ygkAAAI0RhZQEGAaDwAAAjsmbyux8AAAEAI4ACsBAinQABcnMBgISgcAAAIg6ggAAAIbygYAAAH7qg0AAAIvaAQQEBgAKgYAAAI12wMB2UAatvcgEDAPRLIgAAAQA5AAEAAQEA9EkiAAABADkAAQATgQKgQAAAIxdjbQEBADswAAABAAAFAAIA/iABANMiAwBDgAOgkAAAIkKgYAAAIzVnbnoBBAOwUCIsAAGgYAAAIsGgMAAAIgRhY3Dzgh0AAAEAAQATgAKwABi8AAFjZBOAAqBQAAAjFm54AQYA9PMiAAABAB4AAQD3AwAAh6BgAAAjGBgBD/fpEAAAAQCMAAEAtw1lACACAQACsEAY1wABoMAAACNcZXQBtwwAAAEEAaAgAAAhAXMBAh8AAEMAhKAwAAAfL6BQAAAffLAwIs0AAUWAADswAAABAAAWAAgA1xADAGQRCwAJHwEAhR8AAEcgAADpIAAA2CEAAB8iAAAjgQKgMAAAGLVpcwEDAqBgAAAh2KBgAAAiYm108owWAACgBiOAA6CgAAAijaDwAAAjXGNwdOOAhKDgAAAjkhEBQAGAAqBgAAAgwKBQAAAfRGVpAQIA9CoiAAABAAABAQDzgAJvcgEFADswAAABAACBAAIAUx8AACchgACDgISgUAAAIiWwUB9rAAGgIAAAI6gARAwBiQKggAAAI52gkAAAI6lidROBA6BwAAAiEKGgAAAjtGNpchOAA6BQAAAfhbCAIpYAAWFlbwECADswAAABAAAGAAMAlhYAAK4WAgBRHQIAAYACoLAAACL1oHAAACG7ZHIBDQD0aCIAAIoAOABHAAEQAaBAAAAjqHQBWyMAAAECAPWBHQAAmALwAdgAugDzAQFv8rgTAACkD/OAhAAwAwGAA6BAAAAjbbAgGNIJiLAAIqYAUmVyc4OAhKAwAAAi5oAiWwVQAbCgIkEADAwgAQECAPXcGAAAOwasAWUBAQATAAKgMAAAGCBkbDswAAABAADdAAIAPAQAAM8I3ACX9k8A06CQAAAjLqBQAAAinKBwAAAgwqBwAAAgQqCQAAAgq6AAAAAS+MBlt387MAAAAQAAKgATAM8DAwAICwEAswwDAAQNAAC2DwAAug8BANMPAQCeEgAApBYAAMIWAwB0HQMAEx8AAGcfAwC0IAEAASEAAEIiAADZIgMANiMBAFcjAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/173f41654b7c.js b/pr/3958/docs/search.index/173f41654b7c.js new file mode 100644 index 0000000000..fb9dad2bd1 --- /dev/null +++ b/pr/3958/docs/search.index/173f41654b7c.js @@ -0,0 +1 @@ +rn_("AQcA9KUhAAABAAEAAQABgAKgoAAAI4SgwAAAI/R0eQEHADswAAABAAAFAAEAnyEFAAGBAqAwAAAfpqBwAAAiomVvAQIBsEAjwAABZfIuIwAAcQATgAKgQAAAIpVwcgEJAaAAAAAjCHPznyIAAAEAAQABAAD06CAAAAEAAQABAPMFAXPyFiAAAAEAAQUAOzAAAAEAAAwAAQD5IgwAE4ACsAAeIwABZnMjggKgsAAAJBRpcpe+AACMoPAAACSQsJAjBgABoPAAACQwoOAAACQVFfEP8u4eAAAhBQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/17486913745f.js b/pr/3958/docs/search.index/17486913745f.js new file mode 100644 index 0000000000..cf5db941cd --- /dev/null +++ b/pr/3958/docs/search.index/17486913745f.js @@ -0,0 +1 @@ +rn_("AQAA9lMeAAC2Ae8A6wAsAYMBAYACoCAAACH5oBAAACEuYXMnAACDhaEgAAAkpaBAAAAi0qDQAAAkcKBQAAAjYwjQAQEGAPOZJAAAAQABAAEDAPN6JAAAAQABAPMDAnBzAYciAAABhISgYAAAJBCgcAAAJC2gYAAAJBGgYAAAJBIQAQkTgQKgEAAAJFRjdAEHAaBAAAAkamIB9yMAABOCArAgIqYAAWRtwwCEoFAAAB5dsAAjNACEDIgA9CINAAABADkKyQY3AwAAhqCQAAAjKaAQAAAXBRApRDowAAABAAAAAAAJABAAAAA5E3MYwx/IH90frCJEI4gjiSNBJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/179572f57e59.js b/pr/3958/docs/search.index/179572f57e59.js new file mode 100644 index 0000000000..fba35d308a --- /dev/null +++ b/pr/3958/docs/search.index/179572f57e59.js @@ -0,0 +1 @@ +rn_("AQIA9FEZAAABAI8IAQABBgD0xiEAAAEAAQABAAELAPTTIwAAAQCNAAEAAQgA9BojAAABAAgBAQA3AQCAhaAwAAAgQbDQJBkAAQFIIQGAA6CAAAAjF7CAIxgAAbBAJF8AAWVvdAEFAPTAIQAAAQABAAEAE4EDoKAAACPSsFAhxAABbG1zAYACsDAgSAABsUAklwABZW8TgAKwcCK1AAFydQEFADswAAABAAAHAAIARCADAIojAwABAgD0TRkAAAEAAQABAAEEAbAwIrMAAXTzyR8AAAEAAQABCgD0TSMAAAEAAQABAAGBAqAQAAAkDrDQI/4AhmVpF/sDAI+gsAAAI46wsCOPAAGgYAAAIROgoAAAI1GwsCORAAG/jB/yMyQAAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/17981cf36545.js b/pr/3958/docs/search.index/17981cf36545.js new file mode 100644 index 0000000000..3efff18a29 --- /dev/null +++ b/pr/3958/docs/search.index/17981cf36545.js @@ -0,0 +1 @@ +rn_("AQCFoJAAACRooEAAACOmoEAAACNqoGAAACQEoCAAACLgmAAK8u4fAACGACMBAqBgAAAhI2hz9k0RAAABAPIMAQDzAg8AAQIBsFAjQQCZY/KpHwAAugDzgAJucw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/17e9432b91d2.js b/pr/3958/docs/search.index/17e9432b91d2.js deleted file mode 100644 index d3edee51c2..0000000000 --- a/pr/3958/docs/search.index/17e9432b91d2.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQCFoJAAACNvoEAAACKyoEAAACJ4oGAAACMLoCAAACH+mAAK8h8fAACCACMBAqBgAAAgTmhz9uIQAAABAJoMAQDiAg0AAQIBsFAiUACVY/LcHgAAtgDzgAJucw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1800de480c7d.js b/pr/3958/docs/search.index/1800de480c7d.js deleted file mode 100644 index 85a97eeba5..0000000000 --- a/pr/3958/docs/search.index/1800de480c7d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICsEAh4gABoEAAACHkZHPzAAFu8goLAAABAAECAbDwI5kAGWY7MAAAAQAACwAEAOASAgB9GAIAux8BANAgAwDzgAJhZQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/180722e83abe.js b/pr/3958/docs/search.index/180722e83abe.js new file mode 100644 index 0000000000..4386fdd70a --- /dev/null +++ b/pr/3958/docs/search.index/180722e83abe.js @@ -0,0 +1 @@ +rn_("AQAA9dghAAC7AQEA0AABABOBAqEAAAAkimR0I4ACoIAAACSQbnIBBgDzmSMAANUAHQDzAAJidTowAAABAAAAAAA+ABAAAAA9DT4N9Q/2D/cPDhdRF1IXJBklGUcZbBluGR8eIB5DHlQeVR5WHl0elh+oH6sf3x/gH+EfCyAfICAgTSBlIGYgiiCLIIwgFCHkIeUh7iH8IfYi9yL4Ij4jPyNBI1IjjiOPI5AjlyOYI9oj5CPvI/gj/iMVJBkkGiSEJI0kqCQjgAOg4AAAI/+gYAAAI11kZ3I=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/181382358f51.js b/pr/3958/docs/search.index/181382358f51.js deleted file mode 100644 index 63ecffa144..0000000000 --- a/pr/3958/docs/search.index/181382358f51.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA8+0XAAABAAEAAYACsIAjKwABsLAjaAABYWwThgKwICEMAAF0dQEGAbDAI2YAAWnyBh8AAAEAlwEAgYWgYAAAIK6gcAAAIK+kAQg=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/18586bb5270e.js b/pr/3958/docs/search.index/18586bb5270e.js deleted file mode 100644 index 8af375028b..0000000000 --- a/pr/3958/docs/search.index/18586bb5270e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEA9PEgAAABAAEAAQAjAAOhIAAAI62gAAAAEuhjcnMBNB0AAAEAAPTUIAAAAQABAAEAE4ACsKAilgABcnQBhQKgAAAAIamwICJBAAxkbvMAAXDypQ8AAAEAAQQA9FAjAAABAAEAAQDzAQFlAbIfAADnAQAAhbEwI7MAAR0ABAH/EAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1891eb7bad80.js b/pr/3958/docs/search.index/1891eb7bad80.js deleted file mode 100644 index a0a2112ed1..0000000000 --- a/pr/3958/docs/search.index/1891eb7bad80.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9GoBAACrAgEAeA1DAAOgAAAACeOgQAAAEuM4ZW46MAAAAQAAAAAADgAQAAAAiwLUAyAErRCuEK8QaRNrE2wTbRO4GFwiXSJeIl8i") \ No newline at end of file diff --git a/pr/3958/docs/search.index/18cd6ba41388.js b/pr/3958/docs/search.index/18cd6ba41388.js deleted file mode 100644 index 5c87cec55e..0000000000 --- a/pr/3958/docs/search.index/18cd6ba41388.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMAOzAAAAEAAIEAAgD2EAAA1xOAAAEFAaBQAAAg2G8B0xYAAAECAPP3EAAATQ8BAAEDAPPbEgAAkAwBAFMAA6AwAAAirGFkbwFvBAAAAQIA8yYdAAABAAEAAQABsIAjEAABc/OrHgAAAQABAAEDAbCAI34AAXPyBSIAAAEAEwACsIAjDgABaXPzqB4AAAEAAQDzggI0NgEDAPWFHQAAAQB3BCIBAQABAQGwgCOrAAFz8gwjAAABAAEJAbCAI7UAAXPypSMAAAEA84gCZGnzgAJucqcEAAGHsGAjQAAUsFAe/QABoHAAACKuoGAAACJ3MiEGOzAAAAEAACEADQABHwAASh8EAFogBACrIQEAySEAAMshAAAmIgAALiIAALMiDADnIgAAPSMAAJkjAACyIwAAAQAA854MAAABAMQS84ACc3U3BgCAh6AAAAAiiKAAAAAjALBAEtwAAQCMFw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/192a9e673900.js b/pr/3958/docs/search.index/192a9e673900.js new file mode 100644 index 0000000000..b387bca4b7 --- /dev/null +++ b/pr/3958/docs/search.index/192a9e673900.js @@ -0,0 +1 @@ +rn_("AQAA9ToRAAABADUOKwN1AQEDA6CAAAAkpaAAAAAjvaAwAAAhAWhzdAE6GQAA8wABYfIFIAAA6AIBCgD0WSMAAJAAOQBHAPOAAm9084ACY2Q=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/19747a3d068e.js b/pr/3958/docs/search.index/19747a3d068e.js new file mode 100644 index 0000000000..441be06dfe --- /dev/null +++ b/pr/3958/docs/search.index/19747a3d068e.js @@ -0,0 +1 @@ +rn_("AQMA9RckAAABAD4AAQAPAAGAAqAQAAAYkLBQIpYAAWNkAQIAOzAAAAEAAOkAAgAeEwAAcBfoAPMAAW07MAAAAQAA7wACACULAAAADO4AAQADsEAhPwABoEAAACEooJAAACOdYWVyOjAAAAEAAAAAAA0AEAAAADsZPBlLIYghByQIJAkkCiR2JHckoiSjJKwkrSQBAwDzLx4AALwBlAR3BQCAybAgIAwBC6BAAAAhQ6BQAAAh1aBgAAAkFkAKyiE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1984046ce6aa.js b/pr/3958/docs/search.index/1984046ce6aa.js new file mode 100644 index 0000000000..426a5a2d88 --- /dev/null +++ b/pr/3958/docs/search.index/1984046ce6aa.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAACEADwBfGQcAhRkAADIeAADcHwAA7yAAAAohBQAkIQIA7SEAAO8hAADzIQEAriICALciAABVIwIAWyMAAP0jAAAjAAKgcAAAIH1pcgElIwAAAQABoEAAACP8ZfN8IwAAvQABABOAAqAgAAAj52RuI4UCoDAAACPyZGkBBQGgQAAAI81l8pckAAABAPOAAmNkAQ0A9MgjAAABAAEAAQABAQGwQCQbAAFl8tkjAAA9APOAAmVzVwEAgMewAAn0AAGw0CO0APKgIAAAExixECQxAAEAAqkJ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/19c38f0d1c10.js b/pr/3958/docs/search.index/19c38f0d1c10.js deleted file mode 100644 index 4b51a414dd..0000000000 --- a/pr/3958/docs/search.index/19c38f0d1c10.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEA88whAACHAPUAAQEBoDAAAB+zcAGmHgAAY4ADoHAAACI7YWVvAYACoHAAACJDoFAAACKsbm9jgAOwoCLrAAFsb3Q=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/19d1ba4ce11c.js b/pr/3958/docs/search.index/19d1ba4ce11c.js deleted file mode 100644 index eb9387950a..0000000000 --- a/pr/3958/docs/search.index/19d1ba4ce11c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9nUTAAAWDzUAtAAdAB4AAQIBoDAAACJuYzowAAABAAAAAAASABAAAADSGGMdZB1lHWYd4x7kHuUe5h7nHmEfYh9MIFcgWCDeIVoiaSJfIwEPAPRQIwAAAQABAAEAI4IDoNAAACNWoEAAACA9YWNlAQIBoEAAACNgZfUxIgAApgBZAAEAAQABCAGwYCL8AAFv8iUhAAABAAECAPO/EgAANwwDAAECADswAAABAAAHAAMAvhIAACYeBQD4HgAA84ACYnSXLQAAyqBgAAAfhKBAAAAjbbBgIeUAAbAAIqYAUsBkjAk7MAAAAQAAFgALAMgIAgANDQAAvRABAMkQAAB1EQAAwRMAAHsWAADFFwYA2hcCAL4fAQDbIQAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1a8777b01dff.js b/pr/3958/docs/search.index/1a8777b01dff.js new file mode 100644 index 0000000000..05aa25229b --- /dev/null +++ b/pr/3958/docs/search.index/1a8777b01dff.js @@ -0,0 +1 @@ +rn_("AQIA8+wTAAABAAEAAQEBoIAAACNsdQHrEwAAI4ACoBAAABPqMzYBAgD18CAAAAEAAQABAAEA8wEBaTswAAABAAAIAAIAPREAAOITBwBDgAOgYAAAIHGgMAAAIX9lbHQBAgA7MAAAAQAAaAACADwRAAB6E2cAAQcBoEAAACP9ZfLIIgAAuAABAgD02R0AAAEAAQABABOAAqAQAAAhhnJ0U4ADsPAkUAABYWtyAQMBoDAAAB/DYTswAAABAAAIAAIAYhgGAJEgAQABAQKgIAAAH/WwIB/2AAFhYvN3EwAAAQABAAEAAPR1EwAAAQAMDQIBI4ACoJAAACNrZHbzgAJucgEDADswAAABAAAFAAEA0x0FACOAAqAwAAAd0m95AQIAOzAAAAEAAAUAAgDdIwIAhiQCAPMJAW07MAAAAQAABgADABAhAADhIgIARCQCAHdvAACLoDAAACEzsIAiiAABk4GPOzAAAAEAAIsCBABPBAAAgwV6AWMRAADgFA4B") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1ab22663b836.js b/pr/3958/docs/search.index/1ab22663b836.js new file mode 100644 index 0000000000..24a4710e2c --- /dev/null +++ b/pr/3958/docs/search.index/1ab22663b836.js @@ -0,0 +1 @@ +rn_("AQABoSAAACSkYwH0HQAAAQEA9KkhAAABAAEAAQABBgD0SSQAAAEAAQABANOAhKBwAAAihhwABAEAAqBwAAAj9KAwAAAZg2R08hYRAAABAGOAhLAAICEAAaAAAAAUQggwAQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1b3fbae766df.js b/pr/3958/docs/search.index/1b3fbae766df.js deleted file mode 100644 index 1d4b30d516..0000000000 --- a/pr/3958/docs/search.index/1b3fbae766df.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAABYACQAUCwQAqhMDAMgWAQDQFwEAHx0AAGAdAQAVIAMAZSABAMkiAAABBAGgQAAAIBxl8mYWAAABAAEFArBgI0AAFLBAIx8AAWJlOzAAAAEAAB4ACwBKHwQAWiAEAMkhAADLIQAAJiIAAC4iAACzIgwA5yIAAD0jAACZIwAAsiMAAAEBAPNZIwAAWgABAFcAAALGoNAAACNIsGAjnAAUoGAAACNWoIAAACNaAAyCDDowAAABAAAAAAAIABAAAACNFo4WJR6DHxogGyC5ILog3SIBhAKgMAAAI2qgUAAAI4djcvMDAWMBkyIAADcDAACJoIAAACOuoDAAACI0oDAAACAtoEAAACJtoHAAACKrmIEeOjAAAAEAAAAAADoAEAAAAGIEYwRkBGUE8wy7ErwSiBaJFs0WzhbPFtAW0RbSFtIX0xfZF/AXmRjcGB0dHh0kHSUdXx2JHYodix2MHc8e6x7sHu0eFx8vH0cfSB+IH4kfih+XH6UfcyCxIMMgrSHZIdohESISIhMiKCIpInwifSJ+ItEi0iIBgQKgcAAAIBqgcAAAIBs0NiOAA6AQAAAQ3aCgAAAjGm5wdAGAArAAI14AL6CgAAAiOmRuAQMCoEAAACIwoDAAACKMZXf0CB8AAAcAogADAPMBAWcBix8AAAGCAqAgAAAeJbAAFsgAAWVz84ACZHTXAgAAhqBAAAAWyqBQAAAgPxMhAfN1AQAASB8BAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1c1c3933238a.js b/pr/3958/docs/search.index/1c1c3933238a.js new file mode 100644 index 0000000000..5ffa62d292 --- /dev/null +++ b/pr/3958/docs/search.index/1c1c3933238a.js @@ -0,0 +1 @@ +rn_("AQcBoEAAACRqYgH3IwAAE4YCsCAipgABZG0BCQGggAAAJJxmAZ4jAAABAwGwcCQxAAFm86wfAAA0BAEAQ4ADoCAAAB4uoFAAACKtYW9yAYACoBAAABknoBAAACARbnoBgAKgUAAAIqygsAAAJH5sbvMAhBABDPctEQAASwABAAEA6AEuDZwCAQAA9MYhAAABAAEAAQABAgKwYCMPAYOgYAAAIxBmbQE5GQAAI4ECoEAAACNKZWyjgISgcAAAIa+gAAAAF2sBQGABgAKgsAAAI7mwIBidAAFsbwECADswAAABAAAyAAEA+BMyAAEGAPOZJAAAAQABAAEDAPN6JAAAAQABAPMEAnBzAYciAAABgAKgIAAAH8egIAAAH8hidPMCAWHzdxgAAAEAAQABgAKgUAAAIHagIAAAHeBjbvOAAm50AQUAOzAAAAEAAAsAAgBMGQAAZR8KAAELAPNuIwAAAQABAAEIADswAAABAAAMAAEApyMMABMCAqAAAAAd32VzAXYYAAATgAKgEAAAE/dkbucNAAAJsDAYdAABsIAj/gCGoIAAACFLMGFlZmlrcnN1OzAAAAEAAIsCBQBTBAAA/QcAAWQRAADvFQABkhqHAAGAhKBQAAAhvrAQIsAAAaAQAAAe+qDAAAAknxAADgECAbAAI4EAAXMBkRoAAAECADowAAABAAAAAAANABAAAADAH8Efwh9rIGwgbSBuIG8gcCAqIzEjPSNrI+cjAQADoEAAACSQsDAhkAABoEAAACKUY2RlAZoYAAABgAKgMAAAI/ywECA1AAFyePMAAWU7MAAAAQAADwAFAD4ZBAAgHwYAhiIAAHwjAAA5JAEAAQUBsEAjhgABZQFOJAAA5wIAgIegkAAAI/+gEAAAEVKgEAAAIH0NOAQBgISgUAAAITugMAAAHi2gMAAAIDSgYAAAJKQRQAEBAgD29hMAAIcPNwC4AB0AHQABDwD0SSQAAAEAAQABABOCAqBAAAAhEWNlUwADsCAgMgABbnJ28jQRAAC0AEOAhKCQAAAii6AgAAATYqAQAAARM0AgIQEDAaBAAAAkb2IB+yMAAPMDAWf0ux8AAAEAAQA1BAECAPerHwAAugABANgCAQC5AJUAE4ECoPAAACSkZmcBBAD1BSEAAAEAAQABAAEA84ACbG8BAQGwgCSiAAFz8gUkAAABAAEJAbCAJKwAAXPynSQAAAEA84ACZGkBgAKggAAAJIOgYAAAJJVkc5OAhKDAAAAj2bBQICMEGQBBSAEFAbBgJDMAAWkBQiMAAPMCAWgBJhkAAAECAbCAJEIAAWby5x8AAAEAAQIBoIAAACQ1ZTswAAABAAAJAAQAuB8CAGogAADzIgIAbiMCAEcFAICHoCAAABcvoBAAACO1sCATYAABoKAAACSADgEN9/0HAJCwMB++AAGwkCR4ACnf1Q87MAAAAQAAKQEeABQKAAAEDQEANg0DAHQNAQDxDgYAIxEAAD4RAADkEQEAKRMCAG8TAgB7GAAAQxkBAG0ZAACNGgEADh28APQdAAAnHwUAfR8AAAIhAQA8IQEATCEyAJYiAQC9IgAAKyMAADsjAQBFIwEAdyMBAIQjAAC3IwAAjiQBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1cec2ea74abe.js b/pr/3958/docs/search.index/1cec2ea74abe.js new file mode 100644 index 0000000000..087787f15d --- /dev/null +++ b/pr/3958/docs/search.index/1cec2ea74abe.js @@ -0,0 +1 @@ +rn_("AQEAOzAAAAEAAAgAAwA6CwEATxcBAPgdBAABAQGgAAAAIulz8rEiAAABAAEAAPVWCwAAAQDSARQRFAXTgISwUCAHAAEQgAM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1cf0e5ee64ba.js b/pr/3958/docs/search.index/1cf0e5ee64ba.js deleted file mode 100644 index 4419b16e28..0000000000 --- a/pr/3958/docs/search.index/1cf0e5ee64ba.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoBAAABDJZTswAAABAAAFAAEAXB4FAAEDADswAAABAACBAAIAUx8AACchgAABgAKgcAAAIuSgUAAAH5Nlb/MAAXPy2B4AANYDs4CEoGAAACB1CEEE") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1dde60b46686.js b/pr/3958/docs/search.index/1dde60b46686.js deleted file mode 100644 index 36ffafa23b..0000000000 --- a/pr/3958/docs/search.index/1dde60b46686.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAAUAAgBMHQMA9iEBAAEJAPNkIgAAAQABAPMCAnBzOzAAAAEAAA0ABADPEgIA9RcAAMogBQDrIAMAAQcBoEAAACN3YgECIwAAE4YCsCAh4AABZG0TgAKggAAAIy9vcgECAbBwIygAAXPyCx8AAAEAAQEBoDAAACMVdwEPIgAA84ICZWkTAAKgUAAAI3VldPPHDwAAAQCHEwGDAqBQAAAhELAwIz4AAWNwAYEDoFAAACHfoAAAACNDoLAAACMtYmR0AYACoEAAACONoGAAACOeYXLzAgFzAc4YAADzgAJhcgECAPSqFgAAAQCgBisFAQEA9s0SAAABACUFAQBLCgEAU4CEsFAfCQABsBAhxgABEUACAQUA9hoiAAAJAAEAAQEBAAEAI4ECoHAAACJIbXMBBwGgQAAAI3JiAf4iAAABBAD0kR0AAAEAAQCpAUOAA6CAAAAjqqBAAAAh3WVsb7d+AADLoHAAAB+CoGAAAB+yACdmBzowAAABAAAAAAAZABAAAAAFCwYLBwuxDLIMtRO2E7cTIh0xHVQdyR7KHikfPR+kH7QhtSG2Ifoh+yH8IYIiByMIIwkj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1e0e6b54f6f8.js b/pr/3958/docs/search.index/1e0e6b54f6f8.js deleted file mode 100644 index 0dc16ae4df..0000000000 --- a/pr/3958/docs/search.index/1e0e6b54f6f8.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA81YdAAABAAEAIwADoIAAACOxoDAAAB8+YWVmOjAAAAEAAAAAAAkAEAAAACkLgBEZHRodGx0cHa0iLyOcI7Aj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1e50108b0bb2.js b/pr/3958/docs/search.index/1e50108b0bb2.js new file mode 100644 index 0000000000..5606b7549a --- /dev/null +++ b/pr/3958/docs/search.index/1e50108b0bb2.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAAAUAAQAnHwUAI4ACoDAAACSobnUBAgGgAAAAH5dz8ggeAAABACOAAqBgAAAh6mF1Y4ADsKAjjwABYWhv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1e534129d910.js b/pr/3958/docs/search.index/1e534129d910.js new file mode 100644 index 0000000000..848478ba48 --- /dev/null +++ b/pr/3958/docs/search.index/1e534129d910.js @@ -0,0 +1 @@ +rn_("AQMBoDAAACK7aQHSHwAA8wABbDowAAABAAAAAAAUABAAAAAQEkITchmdH54fwB/BH8IfayBsIG0gbiBvIHAg+iAkIyojMSM9I2sj5yM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1e72df1871d1.js b/pr/3958/docs/search.index/1e72df1871d1.js deleted file mode 100644 index eca86f1f13..0000000000 --- a/pr/3958/docs/search.index/1e72df1871d1.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACMtoHAAACJjZWlDAgOwYCELAU2w4COfAAFobXb2yRIAAAEAAQD0AAEAsQkTAAKwAA+8AAFjc/P+CgAAAQADFw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1ef5c1cb55e3.js b/pr/3958/docs/search.index/1ef5c1cb55e3.js deleted file mode 100644 index bea53e69a2..0000000000 --- a/pr/3958/docs/search.index/1ef5c1cb55e3.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYQCoJAAACMvsDAh9gABdHUBgQKwQCBlAAGgkAAAIq1hdAEEAPMsHgAAAQABAOMAhKDAAAAi5wUBAQEqCwAAI4ACoLAAACHFbnI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1f79eaf9e7b1.js b/pr/3958/docs/search.index/1f79eaf9e7b1.js new file mode 100644 index 0000000000..9b3edb92ab --- /dev/null +++ b/pr/3958/docs/search.index/1f79eaf9e7b1.js @@ -0,0 +1 @@ +rn_("AQYCoCAAACGWoDAAACKeYmgBHh4AAAECAPWXIQAAWAH5AFgAZADzAAFvAVEUAAATgAOhAAAAJH2wQB/TAKdob3ABAgA7MAAAAQAABQABAJ8hBQDzAgF1AeIdAAABAgD12SEAAAEAAQABAAEAE4ACsAAXVgABb3ZzgISw8CQiAEcECAbzgAJlbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/1fb7550fada0.js b/pr/3958/docs/search.index/1fb7550fada0.js new file mode 100644 index 0000000000..71390fcef4 --- /dev/null +++ b/pr/3958/docs/search.index/1fb7550fada0.js @@ -0,0 +1 @@ +rn_("AYkCoCAAACRnoDAAACR1aXATAAKgIAAAIzVlaTswAAABAAAJAAQABhcEAG0XAgCOIQAAeyMAAIcAAACFsEAkagAFoEAAACMgoQAAACSMoDAAACN+EgATOjAAAAEAAAAAAAgAEAAAAB0TZRMaF9cf3h+EIIcg9yP7IwEBAbBQJD4AAXP1ZhEAAAEAAQBUEAEAM4ADoBAAAB9+ZG10") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2012878fb353.js b/pr/3958/docs/search.index/2012878fb353.js deleted file mode 100644 index fc261629a8..0000000000 --- a/pr/3958/docs/search.index/2012878fb353.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQgA9BAjAAABAG0AAQABAwGgIAAAIBtl8rwSAAAeD/MAAmFzOjAAAAEAAAAAAAsAEAAAAMQItRBiFv4Xqx6sHq0eSyC3IAUiBiKKIwEDAbCAI34AAXPyBSIAAAEAAQMBoCAAACAaZfK7EgAAHg8zAAOwgCMOAAFhaXM6MAAAAQAAAAAACAAQAAAAwwi0EP0XqB6pHqoeSiC2IIkj84ACNDY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/20738137230f.js b/pr/3958/docs/search.index/20738137230f.js new file mode 100644 index 0000000000..a3b48ea5ea --- /dev/null +++ b/pr/3958/docs/search.index/20738137230f.js @@ -0,0 +1 @@ +rn_("AQYBsEAkVgABZfO+IwAAegAVAPMEAWI7MAAAAQAAHAAKABkgBAAvIQMAqSIAAKsiAAAeIwAApyMMANwjAAA1JAAAkSQAAKkkAAAjgAKgMAAAHippbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/20ae07620659.js b/pr/3958/docs/search.index/20ae07620659.js deleted file mode 100644 index 0264225467..0000000000 --- a/pr/3958/docs/search.index/20ae07620659.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA808gAAABAAEA8wABZTswAAABAAAPAAUA7QwAALYWAQC9FgAAqxgAAJoeCgABhAKwICC9AAGgIAAAIL9hczOAA7AAIp0AAWFlbA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/20ef6ba82d3a.js b/pr/3958/docs/search.index/20ef6ba82d3a.js deleted file mode 100644 index 12581eca31..0000000000 --- a/pr/3958/docs/search.index/20ef6ba82d3a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBsGAjnAAUcgElHgAAEwIDsAAWyAABoHAAACKrZXN3OjAAAAEAAAAAAAkAEAAAAM0WzhbPFtAW0RbSFqUfcyCxIK0h") \ No newline at end of file diff --git a/pr/3958/docs/search.index/21b1c677e8a1.js b/pr/3958/docs/search.index/21b1c677e8a1.js new file mode 100644 index 0000000000..77c319d421 --- /dev/null +++ b/pr/3958/docs/search.index/21b1c677e8a1.js @@ -0,0 +1 @@ +rn_("AQQBoFAAACODZvLzHQAAsQEBgQOgUAAAIyWgUAAAIyawYCNhAAFic3bzAgFl8hEjAAABAAEAAPVfCwAAAQABAAEAAQABBAGgAAAAIw1k8qMiAAABACOGA6CgAAAkR6BAAAAjCmFjZfOAAml5AYICoAAAACSBoAAAACSCNDbzCwFpASskAABDAgOgcAAAIuigcAAAIulhZnYBrSIAAAEAAaBAAAAfpWIBAx4AAAEAAaBAAAAf42U6MAAAAQAAAAAACQAQAAAAVxFYEQQSaxk+ID8g6iPrIwskDCTzgAJkcgGCAqBAAAAkVaBgAAAkeWFyE4ACsEAePgABdHn3AwAAh6BAAAATFxFJA/NfAQAA3hEBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2261b81c1ae2.js b/pr/3958/docs/search.index/2261b81c1ae2.js deleted file mode 100644 index f56febdd8f..0000000000 --- a/pr/3958/docs/search.index/2261b81c1ae2.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECoHAAACKpoCAAACG0Y2wjAAKgQAAAIFNlcjowAAABAAAAAAAaABAAAAASDc8Q0BCaGJsYpR51ILIgAyG7IUQinyKgIsQiDiMPIxAjESMWI2sjbCN+I38jqyOsI7UjtiM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/22bd068a2453.js b/pr/3958/docs/search.index/22bd068a2453.js new file mode 100644 index 0000000000..f1eb2e12d3 --- /dev/null +++ b/pr/3958/docs/search.index/22bd068a2453.js @@ -0,0 +1 @@ +rn_("AQEAOzAAAAEAADIAAQCBDTIAAQUA9OojAAABACAAAQABgAKwkCLkAQqgUAAAI9tmdFcBAICFsEAgBQLooIAAACRoEAFJ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/22f0cd97dcbb.js b/pr/3958/docs/search.index/22f0cd97dcbb.js deleted file mode 100644 index 1c3765bf46..0000000000 --- a/pr/3958/docs/search.index/22f0cd97dcbb.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoGAAACMBYgFGIAAAE4QDoDAAACKIoFAAACLuZW51E4ACoJAAACLvYnQBAgGgQAAAIBxl9GYWAAABAO0JAQABhAOwYCMSAAGwMCKDAAGwMCKFAAFkcnMzgAOgEAAAI2NjcnRTgAOgIAAAIwBhb3U=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/22f2bfcd1fdc.js b/pr/3958/docs/search.index/22f2bfcd1fdc.js deleted file mode 100644 index 59b4325c83..0000000000 --- a/pr/3958/docs/search.index/22f2bfcd1fdc.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcA9CAhAAABAAEAAQABCQD0YSMAAAEAAgABADMBA6BQAAAfkWNyc/LqIAAAHwABAwD0Cx0AAAEAAQBhBVMAA6AgAAASsmNydDswAAABAAC5AEIA4woTAJwSAACpEgEAwhIAANUSAQDjEgAAaBYBAGsWAQB2FgEAhRYCAKIWAQClFgQAsRYDAL8WAAC+GAcAyBgBANIYAADXGAEA3RgCAOQYAABjHQMAbR0AAG8dAACFHQEAmx0JAOMeBAANHwAAFB8AAFQfDgAcIAAANiAFAD0gAABIIAEATCABAE8gBABXIAEA2yABAN8gBQD1IAQAFiECABohAAAeIQEAtyEAAM4hAgDXIQAA3iEAAP0hAAAZIgAAMCIAAFkiAQBkIgIAaSIBAJQiAQCyIgAAyyIBAM8iAQDYIgAA4iIBAAMjAQAdIwMAIyMBAC4jAABEIwAAUCMDAF8jAQBtIwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/22f372ed166c.js b/pr/3958/docs/search.index/22f372ed166c.js new file mode 100644 index 0000000000..22bb755a2e --- /dev/null +++ b/pr/3958/docs/search.index/22f372ed166c.js @@ -0,0 +1 @@ +rn_("AQUA9FokAAABAAIAAQAjgAOgQAAAIyegQAAAIyhiZWwBAgGgYAAAJG5iOjAAAAEAAAAAABYAEAAAACQZJRmrH2UgZiDkIe4h9iL3IvgiPiM/I44jjyOQI5cjmCPvI/gjFSQZJBokjSRTgISg8AAAJKSgMAAAI7VgIAQBAQDzvyMAADYAAQDzgAJtbg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/22f7b774a02c.js b/pr/3958/docs/search.index/22f7b774a02c.js new file mode 100644 index 0000000000..49f827d5e8 --- /dev/null +++ b/pr/3958/docs/search.index/22f7b774a02c.js @@ -0,0 +1 @@ +rn_("AYMCoEAAACRYoGAAACNAZXIBBgDzRB4AAKYEqQEBgAKgQAAAIUOwMCQXAAFxchMAArAAEy4AAWVz9z0ZAADiBQQCGAClAAYAYwEBAwA7MAAAAQAABwACAEQgAwCKIwMAAQQBsEAirwABZfI7HgAAAQABgAKwoCPgAAGggAAAIzNsb9cDAACGsGAgPgABLCAF80UNAABdEmoD84ACZWk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/22f7bb1855ce.js b/pr/3958/docs/search.index/22f7bb1855ce.js new file mode 100644 index 0000000000..944e249bc8 --- /dev/null +++ b/pr/3958/docs/search.index/22f7bb1855ce.js @@ -0,0 +1 @@ +rn_("AQIA84sYAAABAAEAAYACsIAkIwABsLAkYQABYWwThgKwICHhAAF0dQEGAbDAJF8AAWny1R8AAAEAlwEAgYWgYAAAIYSgcAAAIYWkAQg=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2361ac051852.js b/pr/3958/docs/search.index/2361ac051852.js deleted file mode 100644 index ba9a75dfde..0000000000 --- a/pr/3958/docs/search.index/2361ac051852.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEA824gAAABAAEAI4ACoSAAACOVbnQTgAKwIB9vAQJhbwEIAPNbIgAAVQABADcAAAGGsGAh0QABsGAi/AABoHAAAB+9oHAAACIlLEAGOzAAAAEAAAsABQB+FgMAzhcBABUfAQAlIQEA8CEBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/23748c2b97d3.js b/pr/3958/docs/search.index/23748c2b97d3.js new file mode 100644 index 0000000000..625e74337b --- /dev/null +++ b/pr/3958/docs/search.index/23748c2b97d3.js @@ -0,0 +1 @@ +rn_("AQMBsIAkdgABc/LmIgAAAQABAwGgIAAAIO1l8jUTAACEDzMAA7CAJAcAAWFpczowAAABAAAAAAAJABAAAAD+CB8RaRibGHMfdB91Hx8hjCGBJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/237c0391432a.js b/pr/3958/docs/search.index/237c0391432a.js new file mode 100644 index 0000000000..b40f8c8039 --- /dev/null +++ b/pr/3958/docs/search.index/237c0391432a.js @@ -0,0 +1 @@ +rn_("AQACsDAhFQHWsCAgTAJDYnUBeh8AACOEArAwIEsCQ2RzI4ACoCAAABM7aXQBBwA7MAAAAQAABQACANMhAQDIIwMAE4ECsDAXIAhZY3QBAgGwwCQbAAFl8lMZAAABAPMCAWcB1hEAAAGAArCQIuoBqaBgAAAi8mRuAQMBoHAAACM1Z/JBEQAA+wIBgQKggAAAJIOgYAAAJJVkcxOJA6DQAAAkn7CQJHgAKWJtdccXAACKoHAAACB3oJAAACKNsaAkqgABoJAAACKQD4kH8moBAAABAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/24e2687e25fe.js b/pr/3958/docs/search.index/24e2687e25fe.js deleted file mode 100644 index cf21b70d2e..0000000000 --- a/pr/3958/docs/search.index/24e2687e25fe.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA9HQdAAABAAEAAQAjAAKgYAAAH5ZicDswAAABAAALAAMAmAwDAK8TBQAiIAEAI4ACsAAiBwB0c3kBBwGgQAAAIwRl8ughAACmAAECAPNbIgAAVQABAEMBA6BwAAAgUqAwAAAe0mRzdAETDQAAAQIAOzAAAAEAAPAAAQBcG/AAAQIAOzAAAAEAAPAAAQBrGvAAwwCEoCAAABZuoAAAACCwkBABOzAAAAEAAPEAAgDlDAAAnw7wAAEBAPQZHQAAAQABAAEAAQAAOzAAAAEAABAAAQASERAAY4ADoDAAABiHYWV084ACcnTXAQAAhbDwI1cAAQEMBTswAAABAAApAAIAaAIUALQeFAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/25a5ddbe19ce.js b/pr/3958/docs/search.index/25a5ddbe19ce.js new file mode 100644 index 0000000000..dfb83a47ed --- /dev/null +++ b/pr/3958/docs/search.index/25a5ddbe19ce.js @@ -0,0 +1 @@ +rn_("AQIA8xgeAAABAAEA8wABZfTZHQAAAQABAAEAAYACgBl0ABABoEAAACOEZ3MBAgA7MAAAAQAAFAABAH8fFAATgQOgEAAAFy2gIAAAGWdjZW/zgAJhbscAAACFoDAAACSloBAAACGDoDAAAB4bEgEGAVILAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/25c1d7a62fc6.js b/pr/3958/docs/search.index/25c1d7a62fc6.js deleted file mode 100644 index 636dbefe36..0000000000 --- a/pr/3958/docs/search.index/25c1d7a62fc6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBsIAjfgABc/IFIgAAAQABAwGgIAAAIBpl8rsSAAAeDzcAAACFoIAAAB+AsIAjDgABoIAAACJ6AQkKOjAAAAEAAAAAAA0AEAAAAIwC1QMhBMMItBBqE8wX/ReoHqkeqh5KILYgiSM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/260ffeb5da24.js b/pr/3958/docs/search.index/260ffeb5da24.js new file mode 100644 index 0000000000..8056223b8b --- /dev/null +++ b/pr/3958/docs/search.index/260ffeb5da24.js @@ -0,0 +1 @@ +rn_("AYACoBAAAB76oMAAACSfdHUBgQKggAAAJIOgYAAAJJVkc2MAhKDAAAAkNbCQJHgAKQMQCDswAAABAAAyAAEATCEyAEOAA6AQAAAYkLBQIpYAAWNkdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/26361a47babb.js b/pr/3958/docs/search.index/26361a47babb.js deleted file mode 100644 index 83204c683e..0000000000 --- a/pr/3958/docs/search.index/26361a47babb.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoCAAAB+voDAAACCwZXABggKgYAAAIQ6gQAAAH4FmZ2OAA7BQHZABqmFpciMAA6BQAAAYy6AgAAAWhGNmcvXiAwAA6QUBAOMFKwM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/266323c6a3e8.js b/pr/3958/docs/search.index/266323c6a3e8.js new file mode 100644 index 0000000000..90702f6317 --- /dev/null +++ b/pr/3958/docs/search.index/266323c6a3e8.js @@ -0,0 +1 @@ +rn_("AQMBsDAjmwABdPLwIQAAAQABBAD1ySIAAAEAAQABAAEA84ACb3IBAgD1XSAAAAEAAQABAAEAM4UDsMAkPgABZWZ1") \ No newline at end of file diff --git a/pr/3958/docs/search.index/27576c820b72.js b/pr/3958/docs/search.index/27576c820b72.js deleted file mode 100644 index 386b028351..0000000000 --- a/pr/3958/docs/search.index/27576c820b72.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoBAAACNZsFAhyQF0ZWwXAAABhqCAAAAjrqAwAAAiNKAAAAAiyaAwAAAgLaBAAAAibZABDjowAAABAAAAAAAUABAAAACZGNwY6x7sHu0eFx+IH4kfih+XH8MgESISIhMiKCIpInwifSJ+ItEi0iITgAKwEBLpAAFkaQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/27a75512270d.js b/pr/3958/docs/search.index/27a75512270d.js new file mode 100644 index 0000000000..b265cf6549 --- /dev/null +++ b/pr/3958/docs/search.index/27a75512270d.js @@ -0,0 +1 @@ +rn_("AYACoBAAAB4SsCAg9QABYXABAgDzchkAACsGAQABAAA7MAAAAQAABgACAEwTAQCUGAQA84ACZG4BCQGgQAAAI/xl83wjAAC9AAEAAQMCoCAAACPSoIAAACQOZXbzmh8AAAEAAQD3AACAhbFAJKoAARExAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/27b265c6f41a.js b/pr/3958/docs/search.index/27b265c6f41a.js deleted file mode 100644 index b4b2e4513c..0000000000 --- a/pr/3958/docs/search.index/27b265c6f41a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA880YAAD+BUUCE4ECoIAAACHeZm4BggKgMAAAI2qgUAAAI4djciOAAqAwAAAYzGlvAQEDoFAAAB7boQAAACNVoEAAAB1nY2Zs9NoMAABPAE4VlAABAgD1ZBYAAMwIAQABAAEAAQMA9GMdAAABAAEAAQAjgAKgAAAAEptkcgGDAqBAAAAiN6BAAAAiOGJs5wAAAYewEBKaBC2wABEAAAGwIBZjAoSgMAAAHiQWARo7MAAAAQAAEAAEANUMBAAhDQcA/x4BACwiAQDzgAJwc/OAA2Vsbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/27cd0574714b.js b/pr/3958/docs/search.index/27cd0574714b.js deleted file mode 100644 index 50f9f3df7b..0000000000 --- a/pr/3958/docs/search.index/27cd0574714b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9LAYAAABAFsIAQABBgD08SAAAAEAAQABAAELAPTeIgAAAQCJAAEAAQgA9CoiAAABAAABAQA3AQCAhaAwAAAfcLDQIyEAAQFIIQGAA6CAAAAiJ7CAIigAAbBAI2YAAWVvdAEFAPTrIAAAAQABAAEAE4EDoKAAACLdsFAg7wABbG1zAYACsDAfdwABsUAjnwABZW8TgAKwcCHVAAFydQEFADswAAABAAAHAAIAcx8DAJgiAwABAgD0rBgAAAEAAQABAAEEAbAwIdMAAXTz+h4AAAEAAQABCgD0XCIAAAEAAQABAAGBAqAQAAAjWrDQIwUAh2Vpl/0BAI6gsAAAIpygYAAAID+goAAAImCwsCKdAAG7jB/yOyMAAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2802584be79b.js b/pr/3958/docs/search.index/2802584be79b.js new file mode 100644 index 0000000000..b2522b9db9 --- /dev/null +++ b/pr/3958/docs/search.index/2802584be79b.js @@ -0,0 +1 @@ +rn_("AQUBoFAAACODZgGkHwAAQ4ADoIAAACGeoNAAACPzYWdwRwAAAMWwQBb+AAGgYAAAI6KgsAAAI4WAC17WC1YABHABOzAAAAEAAAkAAwBGBAEAhAQFAFQNAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/280df9745a68.js b/pr/3958/docs/search.index/280df9745a68.js deleted file mode 100644 index 5d246cb750..0000000000 --- a/pr/3958/docs/search.index/280df9745a68.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEA9qUYAACCCbcAAQCJAAEAAQ8A9FAjAAABAAEAAQAjgAOg0AAAI1agQAAAID1hY2XzgAJsbROAArBgICIAAWFv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/284ad4b57992.js b/pr/3958/docs/search.index/284ad4b57992.js new file mode 100644 index 0000000000..92cddf3055 --- /dev/null +++ b/pr/3958/docs/search.index/284ad4b57992.js @@ -0,0 +1 @@ +rn_("AYQCoEAAACKTsHAjfQDvZGkTgAKgoAAAI21ibgECAPX6FgAABQkBAAEAAQABAwD0Jh4AAAEAAQABACOAAqAAAAATFWRyAYMCoEAAACMnoEAAACMoYmxnAQAAiLAQExQESaAAAAAkfrAAEWsAAbAgFvkCj6AwAAAe7pYBGjswAAABAAAQAAQALA0EAHgNBwDOHwEAHCMBAAEAAaAwAAAgDWbz8xEAAKESEwBDAoSgEAAAITigYAAAIrigYAAAI1MBEAbyIhcAAMoGAQEA8xghAACnAZUBAYSEoGAAACQQoHAAACQtoGAAACQRoGAAACQSEAEJU4ADsLAjtADyY2x084CEAUAM") \ No newline at end of file diff --git a/pr/3958/docs/search.index/28d00a981b37.js b/pr/3958/docs/search.index/28d00a981b37.js new file mode 100644 index 0000000000..dc0f31bd3c --- /dev/null +++ b/pr/3958/docs/search.index/28d00a981b37.js @@ -0,0 +1 @@ +rn_("AYCEoFAAACLsoFAAACLtoFAAACLusRAkcwABDEABAQcBsEAjwAABZQEuIwAAAYACoFAAACD5oFAAACO/cHUBggKgAAAAIbqgAAAAIbtlcyOAAqBgAAAjRGV0AQMA9fsgAAABAAEAAQABAAEAAaCQAAAkWGw6MAAAAQAAAAAACAAQAAAAtR/XITYjWSOVI+kjIiQsJGkkE4ACoCAAACD6ZG4BBAA7MAAAAQAABwACALQhBQDXIwEAAQQBoAAAACKoZPOyIQAAAQAmAbcFAAGHsLAkFwABoGAAACNDlAkDOzAAAAEAABYABwAuGQoACx0CAEEhAQDnIQEAMyMAAFokAQBdJAEAAQABsEAhsAABZfUpGQAAAQABAAEAAQATAAKwoCRfAAFndgEKIAAA84ACbm8BAwA7MAAAAQAABQACALAfBAC+IgAAI4ACgB+3BCABZHLnAgABhrBQITwAAbAAHx0AARRBEjswAAABAAALAAUALxEDAI8RAQBaHgEA1R8BADYhAQATgAOggAAAItSgAAAAHeBjbHIBAgGwgCSsAAFz8p0kAAABAFcCAACGoEAAACMnoEAAACMooMAAACMOE0gCOjAAAAEAAAAAAAkAEAAAAJQEQwtEC0ULRgtHCwYNBw2ZGPke") \ No newline at end of file diff --git a/pr/3958/docs/search.index/28d652cc9875.js b/pr/3958/docs/search.index/28d652cc9875.js new file mode 100644 index 0000000000..bd9399404b --- /dev/null +++ b/pr/3958/docs/search.index/28d652cc9875.js @@ -0,0 +1 @@ +rn_("AQEBoEAAACP9ZfLIIgAAuAABAQGwwCRkAAFtAYMgAADzgAJudgEFAPRxJAAAAQABAAEAE4ACsDAjWgD+ZHJnAAABhaBQAAAh5LBgI0ABPbAADU8CyBQBA/YqHgAAhQPcAJ0AvgAZAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/28d83943e457.js b/pr/3958/docs/search.index/28d83943e457.js deleted file mode 100644 index e29f64d9db..0000000000 --- a/pr/3958/docs/search.index/28d83943e457.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoCAAABaaZQEDDQAAAQIBoEAAACBJZTswAAABAAAGAAIAmxYEANUhAQABBAGgAAAAIhxk8sMhAAABACOCA6CgAAAjTqBAAAAiGWFjZSOBArCwItEAAWVplwEAAIWADLlBv9Wg0AAAI0cRBUDyvg8AAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/28f218fbb123.js b/pr/3958/docs/search.index/28f218fbb123.js new file mode 100644 index 0000000000..b672925d28 --- /dev/null +++ b/pr/3958/docs/search.index/28f218fbb123.js @@ -0,0 +1 @@ +rn_("AYACoCAAAB/HoCAAAB/IYnTzAgFh83cYAAABAAEAAYACoGAAACKsoGAAACKtZXQBBgDzmSQAAAEAAQABAwDzeiQAAAEAAQDzBQJwcwGHIgAAAQEBsCAgMgABcgHoEQAAAQMA9LsfAAABAAEANQQBBQD1BSEAAAEAAQABAAEAAQEBsIAkogABc/IFJAAAAQABCQGwgCSsAAFz8p0kAAABAPOBAmRpAQIAOzAAAAEAAAkABAC4HwIAaiAAAPMiAgBuIwIAI4ACoCAAABcvYmT3YQAAi7AwH74AAaBAAAAgNHRKA/PK4aBgAAAhvt9RAjswAAABAAAKAAUAKRMCAG8TAgB9HwAAliIBAEUjAQABBwGwkCRdAAFjAd4hAAABBADzGxcAAAEAAQCnAgCAhqBQAAAgdqAQAAASEKAgAAAd4HQgBPOAAm50") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2914ff3e8e13.js b/pr/3958/docs/search.index/2914ff3e8e13.js deleted file mode 100644 index 5a4bb7f3a0..0000000000 --- a/pr/3958/docs/search.index/2914ff3e8e13.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoAAAACOScgEiGAAAE4ECoEAAAB4zYnABgAKwUCJhAIywQCAuAAFjZSOCArAQGJoAAWV5AQEA8+oeAABAAAEAE4MCsAAeUwABZXMBAgGwMCNrAAF193gWAABDAAEAoQYjAFsBoQBTgAOwsCOWAAFmZ25jgAOgEAAAGOBkbnYBAgDz3xcAAAEAKwojgAKwIB+fAAFucwEDAaBQAAAjlWMB3hcAAPOAAmlvAYQCoDAAACNqoFAAACOHY3KXAwAAhqDAAAAjsaAwAAAiNpRIAQGTIgAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/296d2c00f557.js b/pr/3958/docs/search.index/296d2c00f557.js deleted file mode 100644 index 27d012d700..0000000000 --- a/pr/3958/docs/search.index/296d2c00f557.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEDsIAiogBysFAh3ACroDAAABjgYWJj96gQAAABAOgOtAMBACAAAQABAAA6MAAAAQAAAAAADwAQAAAADgvDDMQMxQzGDMcMyAzJDMoM3xKYFqQYax2lHUYf5iABgQKgAAAAIEqgAAAAIEs0NiOAAqCAAAAjiG9wAQABoEAAACJqZffADAAAAQABANsFyAOAChMBdwEAgIWgIAAAEt4QAQ4=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/29b1ffc5a3d9.js b/pr/3958/docs/search.index/29b1ffc5a3d9.js new file mode 100644 index 0000000000..dda2645649 --- /dev/null +++ b/pr/3958/docs/search.index/29b1ffc5a3d9.js @@ -0,0 +1 @@ +rn_("AQCFsCAhkgABsEAhsAABsMAkZAABoCAAACGUoIAAACRAERAGOzAAAAEAAA8ABgANEgEA+hYAACkZBAB0GQIA/x8DAIMgAAABAQA6MAAAAQAAAAAADQAQAAAAwB/BH8IfayBsIG0gbiBvIHAgKiMxIz0jayPnIwEPAaBAAAAkoHQBUiQAAHcAAADFoEAAACOEsKAkXwABABkACQEKIAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/29cf79e0f3e9.js b/pr/3958/docs/search.index/29cf79e0f3e9.js new file mode 100644 index 0000000000..0ee2c5a082 --- /dev/null +++ b/pr/3958/docs/search.index/29cf79e0f3e9.js @@ -0,0 +1 @@ +rn_("AQMA8xgeAAABAAEAAYECgBl0ABABoEAAACOEZ3NjgISgEAAAIYOgMAAAHhsQAQYBAAGwgCRCAAFm8ucfAAABAAEFAPQaIwAAAQAIAQEA84ACZXNjgAOgMAAAIpJlZ3Q=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/29d57ddffa5f.js b/pr/3958/docs/search.index/29d57ddffa5f.js deleted file mode 100644 index 97a38f896c..0000000000 --- a/pr/3958/docs/search.index/29d57ddffa5f.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBsIAjqwABc/IMIwAAAQABCQGwgCO1AAFz8qUjAAABADOAA7AgHSkEh2RpdAEFAaAgAAAjLnIBUh8AAAEAAqCAAAAji6BgAAAjnWRz8poSAAAtBCcDAICGoCAAACOuoMAAACLkoBAAACDBEMFI") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2a117d0e3e7a.js b/pr/3958/docs/search.index/2a117d0e3e7a.js deleted file mode 100644 index 4424aa2adc..0000000000 --- a/pr/3958/docs/search.index/2a117d0e3e7a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcBoEAAACNyYgH+IgAAE4YCsCAhxgABZG0BCQGggAAAI6RmAaoiAAABAwGwcCM5AAFm898eAAAMBAEAQ4ADoCAAAB1roFAAACHNYW9yAYACoBAAABiGoBAAAB9CbnoBgAKgUAAAIcygsAAAI4ZsbvMAhBABDPfCEAAASgABAAEA2gHVDH8CAQAA9PEgAAABAAEAAQABAgKwYCIeAXygYAAAIh9mbQGYGAAAI4ECoEAAACJZZWyjgISgcAAAINqgAAAAFtUBQGABgAKgsAAAIsWwIBf/AAFsbwECADswAAABAAAyAAEAdxMyAAEGAPOhIwAAAQABAAEDAPOCIwAAAQABAPMEAnBzAaohAAABgAKgIAAAHvigIAAAHvlidPMCAWHz2hcAAAEAAQABgAKgUAAAH6OgIAAAHSBjbvOAAm50AQUAOzAAAAEAAAsAAgCrGAAAmh4KAAELAPN8IgAAAQABAAEIAbBAIx8AAWU7MAAAAQAADQACACYiAACzIgwAEwICoAAAAB0fZXMB2RcAABOAAqAQAAATdmRu5w0AAAmwMBfXAAGwgCMFAIeggAAAIHUwYWVmaWtyc3U7MAAAAQAAdgIFADUEAADJB/kA+RAAAGAV+QDqGYAAAYCEoFAAACDpsBAh4AABoBAAAB4woMAAACOnEAAOAQIBsAAijwABcwHpGQAAAQIAOjAAAAEAAAAAAA0AEAAAAPMe9B71HpgfmR+aH5sfnB+dHzoiQSJNInki8CIBAAOgQAAAI5iwMCC7AAGgQAAAIbdjZGUB/BcAAAGAAqAwAAAjA7AQH2QAAXJ48wABZTswAAABAAAOAAUAnRgEAFYeBQCpIQAAiiIAAEEjAQABBQGwQCKUAAFlAVUjAADnAgCAh6CQAAAjBqAQAAAQ56AQAAAfqg04BAGAhKBQAAAgZ6AwAAAdaqAwAAAfY6BgAAAjrRFAAQECAPZ1EwAAFg81ALQAHQAeAAEPAPRQIwAAAQABAAEAE4ICoEAAACA9Y2VTAAOwIB9hAAFucnbyyRAAAKwAQ4CEoJAAACGuoCAAABLooBAAABDIQCAhAQMBoEAAACN3YgECIwAA8wMBZ/TuHgAAAQABAAkEAQIA894eAAAhBJYAE4ECoPAAACOtZmcBBAD1MSAAAAEAAQABAAEA84ACbG8BAQGwgCOrAAFz8gwjAAABAAEJAbCAI7UAAXPypSMAAAEA84ACZGkBgAKggAAAI4ugYAAAI51kc5OAhKDAAAAi5KBQAAAfUgBBSAEFAbBgIzsAAWkBUSIAAPMCAWgBhRgAAAECAbCAI0kAAWbyGB8AAAEAAQIBoIAAACM9ZTswAAABAAAJAAQA6x4CAJcfAAARIgIAfCICAEcFAICHoCAAABaZoBAAACLBsCAS5gABoKAAACOIDgEN9/0HAJCwMB7xAAGwkCOAACnf1Q87MAAAAQAAJgEeANgJAACtDAEA3wwDAB0NAQCTDgYAuBAAANMQAABxEQEArxICAPMSAgDeFwAAohgBAMwYAADlGQEAURy5ADQdAABcHgUAsh4AAC4gAQBoIAEAdiAyALkhAQDdIQAAOyIAAEsiAQBUIgEAhSIBAJIiAADDIgAAliMBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2a12782a676e.js b/pr/3958/docs/search.index/2a12782a676e.js deleted file mode 100644 index 0d68b208e1..0000000000 --- a/pr/3958/docs/search.index/2a12782a676e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA8xkiAAB7AAEAAQQBoAAAACIcZPLDIQAAAQBjAgOgoAAAI05hY2UBVSMAAAGBArCAItEAAaAAAAAgJGZyE4ACoAAAAB8bZHPzgAJlaQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2a6d8a14601f.js b/pr/3958/docs/search.index/2a6d8a14601f.js new file mode 100644 index 0000000000..80448678f8 --- /dev/null +++ b/pr/3958/docs/search.index/2a6d8a14601f.js @@ -0,0 +1 @@ +rn_("AYQCoAAAACEfoAAAACEgNDbzAgFhAY8YAAABBwDzcSMAAAEA+QATAAKwACNAAT1jZPU6EwAARQV3BgEAAQDzgAJlbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2a8d5147bafd.js b/pr/3958/docs/search.index/2a8d5147bafd.js deleted file mode 100644 index 48e016ed1f..0000000000 --- a/pr/3958/docs/search.index/2a8d5147bafd.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQBsCAinQABdfTCFgAAAQABAAEAAYICoEAAACHZoEAAACHaNDYBAwGwkCOcABRlAaUfAADzhAJhaQEEAaAAAAAjknIBIhgAAPOAA2Nlbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2b29ae330596.js b/pr/3958/docs/search.index/2b29ae330596.js new file mode 100644 index 0000000000..e98cfb6b01 --- /dev/null +++ b/pr/3958/docs/search.index/2b29ae330596.js @@ -0,0 +1 @@ +rn_("AQECoHAAACLHsAAhmQABZnM7MAAAAQAAsAAFAHINAABTEwAAwRhXAJYgUQDwIAQAAQQBoCAAACHWcwHRHwAAQwCEoDAAAB/+oFAAACBNsDAjwgABRYAAOzAAAAEAABYACABCEQMA1xELANgfAQBWIAAAHCEAAL4hAAC4IgAAECMAACOAA6AwAAAZVqAgAAAZd2lzdPOAAmNu") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2b83b67ccbc6.js b/pr/3958/docs/search.index/2b83b67ccbc6.js deleted file mode 100644 index d62369318c..0000000000 --- a/pr/3958/docs/search.index/2b83b67ccbc6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9EsiAAABADkAAQABAQD0SSIAAAEAOQABABOBAqBAAAAjF2NtAQEAOzAAAAEAAAUAAgD+IAEA0yIDACOAAqBgAAAjNW56AYACsBAYvAABoFAAACMWbngBBgD08yIAAAEAHgABAPcBAACHoHAAACNdoGAAACMYGAEP9ekQAAABAEQOZQAgAgEDAPXcGAAAOwasAWUBAQAXCAAAy6CQAAAjLqBQAAAinKBAAAAiWqAgAAAWlqBgAAAfhaBgAAAiJaCAAAAiDrAgIp0AAaCgAAAjRMAFFQ87MAAAAQAAGAAKALoPAADTDwEAwhYDAHQdAwATHwAAZx8DAEIiAADZIgMANiMBAFcjAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2b9d652bf4b4.js b/pr/3958/docs/search.index/2b9d652bf4b4.js new file mode 100644 index 0000000000..8f0e6a10f2 --- /dev/null +++ b/pr/3958/docs/search.index/2b9d652bf4b4.js @@ -0,0 +1 @@ +rn_("AQIA80QhAAABAAEAE4ACsCAgQAEHYW8BCADzTCMAAFgAAQA3AAADhbBgIrEAAbBgI/UAAaBwAAAjFixABDswAAABAAALAAUAFBcDAGsYAQDkHwEA+iEBANAiAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2bece0ebf0cd.js b/pr/3958/docs/search.index/2bece0ebf0cd.js new file mode 100644 index 0000000000..beb1c5bd66 --- /dev/null +++ b/pr/3958/docs/search.index/2bece0ebf0cd.js @@ -0,0 +1 @@ +rn_("AQQBoEAAACRZZfUhIwAAqwBcAAEAAQABAgA7MAAAAQAABQACAN0jAgCGJAIA8wEBbTowAAABAAAAAAAHABAAAAAiGRAh4SLiIuMiRCRFJEYk8wEBZQHyIQAAMwCEoBAAAB/doCAAABcRFEAE9ckiAAABAAEAAQABAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2c7ad803cefc.js b/pr/3958/docs/search.index/2c7ad803cefc.js deleted file mode 100644 index 80334922ee..0000000000 --- a/pr/3958/docs/search.index/2c7ad803cefc.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAEoDAAAB4vsMAilgABsLAiVAABoSAAACOTY25xcwGTDwAA8wABZQGuIwAAAQUBsHAjJQABaPIHIwAAAQABAQA6MAAAAQAAAAAABwAQAAAAwA/BD8IPww/ED2wdHB+HI/OAAm90AYQCoJAAACMvsDAh9gABdHUBgQKwQCBlAAGgkAAAIq1hdAEEAPMsHgAAAQABAGcBAACGoMAAACLnoBAAAB9moEAAACOuBQkFASoLAAABAQDz8AwAAAEAAQABAAGgUAAAIhhjAYAYAADzAAJsdAHWCQAAAQABoFAAAB9PY/M9HQAAAQABAAEEAaBAAAAgTWUBzR4AAAEDAaBAAAAgTGUBSh0AAAEAx7BgIzsAAaAgAAAWgqAgAAAWg6AwAAAYpbBAIFQAAbAgFqIAAbBAHXoE5gBArQjzqg8AACAShwDzgAJyeAECAaCAAAAjWnb0gx8AADYBAQAjAvMAAWUBzx4AACOAArBgHwgAqWFyAQQBoAAAAB7Mc/JIHQAAAQDnKAAAirAgEOEOyqBwAAAgX6AgAAAQvKCwAAAiT6CAAAAgsj4MTPdLBAAAiAUBAJYMgAEBAAEAAYQCoAAAACBKoAAAACBLNDbzAgFhAfEXAAAjgAKwECJPATZlbxOAArAAHvcAq2hrdw4AgIhsfaLF36qgsAAAIcUMOAc=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2c9674e56740.js b/pr/3958/docs/search.index/2c9674e56740.js deleted file mode 100644 index 8bee0814e7..0000000000 --- a/pr/3958/docs/search.index/2c9674e56740.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEA9qUYAACCCbcAAQCJAAEAAQ8A9FAjAAABAAEAAQAjgAOg0AAAI1agQAAAID1hY2XzgAJsbRcAAICFoCAAAB+1oAAAABZvsGAgIgABoAAAAAy4UUAC") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2cd1977ec11d.js b/pr/3958/docs/search.index/2cd1977ec11d.js deleted file mode 100644 index 050427a343..0000000000 --- a/pr/3958/docs/search.index/2cd1977ec11d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACGooBAAAB4yaXQBAAGgEAAAHjFvOzAAAAEAAAYAAwDsEgMAjxYBAPsiAAABgAKwECI/AAGgIAAAInZhbxOCArBwIz4AAW1xE4ACoOAAACN0bHATgAKwMCIDAPJlbwGCAqEAAAAjr6DQAAAjm2ttE4ACoGAAACIiYWsBgQKwgCMHAAGggAAAIwlldwGDArAwIiAAAbBAIlYAAXBzAYACoQAAACORoKAAACL/ZWwBgAKwICLRAAGgUAAAIfpkcLf4AACMsGAh+wABoJAAACOnoPAAACNzsKAizQABlbUHOzAAAAEAADwABAAJDQMAyhACACcRNABWIAAAAQABoDAAABLGYQE+HwAAw4CEoNAAACNVoAAAAARwAQwE") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2cda561bd73f.js b/pr/3958/docs/search.index/2cda561bd73f.js deleted file mode 100644 index 64e4f68a45..0000000000 --- a/pr/3958/docs/search.index/2cda561bd73f.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsBAiMwCVsLAjRQABbnABAwD0eSMAAAEAAQABACOAA6DwAAAjsaAwAAAgamxveQEEAPTgHgAAAQABAKAAAQwA9NMiAAABAAEAAQBjgAOgQAAAIjZjbXQBgAOgcAAAIqmgIAAAIbSwICC0AAFjbHMTgAKwQB9tAAFlbwEDA6CQAAAjLqCAAAAjXaCgAAAjRGJzdvYTHwAALwP0AAEAIAABABOBAqAQAAAfs2N0AYACsBAfbwECoBAAABLYbnUBAgGgcAAAIjFtAd0eAAABhwKgQAAAI1mgAAAAIsllcwGBAqBAAAAh2aBAAAAh2jQ2Y4ADsFAe9wCrYXByAQMBsDAipwABdPIbIQAAAQABBAD16SEAAAEAAQABAAEAM4ADoBAAACA+b3J1AQIA9BQfAAA/AdACAQDzAAFyASQgAAABAQD1jB8AAAEAAQABAAEAAQABsEAjIwABZfLkIgAAOACnAgCAhqAwAAAfZrCAItEAAaAgAAAjhimgAQEMAPTZIgAAAQABAAEAI4ADsCAibACLoEAAACI1aXV5AQEA824gAAABAAEAAQIBsJAjnAAUZQGlHwAAlwAAgIWhIAAAI5WwEBLDAAGwICHiAAEIoAy37QcA0KCAAAAhFaBQAAAhyqBgAAAgUrBgIm8AAcBtuQ87MAAAAQAADwFcANsKAQAMCwAA4wwBABINAACaDgIAzhACAOwQAQD2EAAAXREAAJERAACZEgAAmxIAAKUSAwDMEgAA8BIBAPYSAADXE4AAyhYAAN8XAQCaGAEAuRgBAMoYAADWGAAA2RgAABIdAAAjHQAAbh0AAKgdAACZHgAApR4BAOoeAAD9HgEABR8AAB4fAAAqHwMAOB8BAE8fAgBtHwEAeR8AAIYfAQCfHwEAqB8AAK4fAAAxIAQAdSAAAK0gAACyIAAA+iADAAMhAAAKIQAAICEDALshAAC9IQAAyCEAAOUhAQALIgAADSIAABwiAAAyIgAARCIAAEciAABPIgAAUiIAAFsiAAB6IgAAkSIAAJ8iAQCwIgEAxCIAAMYiAADkIgAA5iIAAPMiAQD6IgAADiMFABYjAgAcIwAAKCMBADUjAAA5IwEAViMAAFojAABeIwAAayMBAHgjAAB+IwEAgSMAAIUjAACNIwAAniMAAKsjAQC1IwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2cf71874b093.js b/pr/3958/docs/search.index/2cf71874b093.js new file mode 100644 index 0000000000..cde0dcaddd --- /dev/null +++ b/pr/3958/docs/search.index/2cf71874b093.js @@ -0,0 +1 @@ +rn_("AQAA9F4XAAABAOAJAQABAgGwYCSUABNyAe8eAAAzAgOgcAAAI59lc3c6MAAAAQAAAAAACQAQAAAAYxdkF2UXZhdnF2gXeCBJIYchiiI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2d1b1d296f7f.js b/pr/3958/docs/search.index/2d1b1d296f7f.js deleted file mode 100644 index a58eb5aee1..0000000000 --- a/pr/3958/docs/search.index/2d1b1d296f7f.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAAUAAgBMHQMA9iEBAAEJAPNkIgAAAQABAPMBAnBzOzAAAAEAAA0ABADPEgIA9RcAAMogBQDrIAMAI4ACoFAAACL6cHIBBwGgQAAAI3diAQIjAAAThgKwICHgAAFkbROAAqCAAAAjL29yAQIBsHAjKAABc/ILHwAAAQABAQGgMAAAIxV3AQ8iAADzggJlaRMAAqBQAAAjdWV088cPAAABAIcTAYMCoFAAACEQsDAjPgABY3ABgQOgUAAAId+gAAAAI0OgsAAAIy1iZHQBgAKgQAAAI42gYAAAI55hcvMCAXMBzhgAAPOAAmFyAQIA9KoWAAABAKAGKwUBAQD2zRIAAAEAJQUBAEsKAQBTgISwUB8JAAGwECHGAAERQAIBAgGwYCBEAAF08nsdAAABACOAAqBQAAAfsmFvAQUA9hoiAAAJAAEAAQEBAAEAI4ECoHAAACJIbXMBBwGgQAAAI3JiAf4iAAABBAD0kR0AAAEAAQCpAUOAA6CAAAAjqqBAAAAh3WVsbwEBAqBAAAAYtKCAAAAgQmZ08mgdAAABAHf/AADMoHAAAB+CgCdmBzowAAABAAAAAAAbABAAAAAFCwYLBwscC7EMsgzNELUTthO3EyIdMR1UHckeyh4pHz0fpB+0IbUhtiH6Ifsh/CGCIgcjCCMJIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2d1fcb763f1d.js b/pr/3958/docs/search.index/2d1fcb763f1d.js deleted file mode 100644 index 36ec872a10..0000000000 --- a/pr/3958/docs/search.index/2d1fcb763f1d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQgA9BAjAAABAG0AAQABAwGgIAAAIBtl8rwSAAAeD/MAAmFzOjAAAAEAAAAAAAwAEAAAAMQItRBiFs0X/herHqwerR5LILcgBSIGIooj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2d204cb03e60.js b/pr/3958/docs/search.index/2d204cb03e60.js new file mode 100644 index 0000000000..6be0651f77 --- /dev/null +++ b/pr/3958/docs/search.index/2d204cb03e60.js @@ -0,0 +1 @@ +rn_("AQoA9C4kAAABACEAAQABBAGgAAAAJANzAQQhAADzgAJlaQEFAaBgAAAj1WIBTyAAAAEFAaBgAAAkPGIBvSIAABMCA6AwAAAkO6BgAAAkbWNwc/KVHwAA3wPzgQJscwEBAaBgAAAj+mIBGyEAABOEA6AwAAAjeqBQAAAj5WVudROBAqCQAAAj5mJ05wAAAYawQBlpAAGgIAAAIxOgIAAAGIQQgA/yAg0AAAEAI4ACoHAAACLVbnI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2d4a009879cb.js b/pr/3958/docs/search.index/2d4a009879cb.js new file mode 100644 index 0000000000..cfb9ecb39e --- /dev/null +++ b/pr/3958/docs/search.index/2d4a009879cb.js @@ -0,0 +1 @@ +rn_("AQABsIAkQgABZvNIBAAAnxsBAAECADswAAABAAAFAAIA3SMCAIYkAgDzBgFtOjAAAAEAAAAAAAcAEAAAACIZECHhIuIi4yJEJEUkRiQBBAD0GiMAAAEACAEBAPMAAXTzVRMAAOcMAQDzgANlbXM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2d7e9e66cc58.js b/pr/3958/docs/search.index/2d7e9e66cc58.js new file mode 100644 index 0000000000..75a9ec0c35 --- /dev/null +++ b/pr/3958/docs/search.index/2d7e9e66cc58.js @@ -0,0 +1 @@ +rn_("AQABsGAjmQDyYjswAAABAAAFAAIA3x8CAIogAgATgwKgYAAAI11ncgEHAPNcIwAAkAABAPMCAXYBWCMAAJOAhKBwAAAh6aEgAAAkfpBIAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2d9110b73256.js b/pr/3958/docs/search.index/2d9110b73256.js new file mode 100644 index 0000000000..63e9c1c6f1 --- /dev/null +++ b/pr/3958/docs/search.index/2d9110b73256.js @@ -0,0 +1 @@ +rn_("AQMA9DsjAAABADsAAQABAQD0OSMAAAEAOwABABOBAqBAAAAkEWNtAQEAOzAAAAEAAAUAAgDTIQEAyCMDACOAAqBgAAAkLW56AYACsBAZXQABoFAAACQQbngBBgD06iMAAAEAIAABAPcBAACHoHAAACRUoGAAACQSGAEPAf0fAACHAAAAxqCQAAAkJqBAAAAjS6AgAAAXLKCAAAAi76CgAAAkPYAEAQs7MAAAAQAAEgAIACEQAAA3HgMA4h8AADggAwAyIwAAziMDAC4kAQBQJAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2da12dad9697.js b/pr/3958/docs/search.index/2da12dad9697.js deleted file mode 100644 index 8a01405d8d..0000000000 --- a/pr/3958/docs/search.index/2da12dad9697.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQkA9GEjAAABAAIAAQDzBQFj8uogAAAfAAEBAPRcIgAAAQABAAEA84ACM2UBggKgAAAAI4mgAAAAI4o0NvMLAWkBMyMAAAEAArDAIyMAAbBgIvEAVmVyOzAAAAEAAA0ABAD0DAMAshgBAHMfAwCYIgMAE4ACsFAdjwGoaHIBAQGgYAAAI5JzAb8gAADzAAF18sQgAAABAAGAhKBQAAAfrqAwAAAjT7DQI0EAAaBQAAAiLwQYAiOAAqAgAAAes2FlAQUA9NkiAAABAAEAAQABBgGgQAAAI2Bl9NciAABZAAEAAQATgAKwsCNrAAFhaQGBAqBQAAAiCKBQAAAh52lsAQQBoAAAACI8c/PDIgAA0wABACcAAASFoQAAACOaoEAAACH4oIAAACOtoFAAACI9FAAWAU0cAAABAgA7MAAAAQAAFAAEAFQfDADbIAEA9SAEANgiAAAjgAKg4AAAI5VvcmMAA6AAAAAjeGRyczowAAABAAAAAAAHABAAAAB9H6ogqyCsIBQhFSE5IkgiAQkBoEAAACOodAFbIwAAAYACsBAgvQABoGAAACIHZHT3/AEAzbAwHYcAAaBAAAAir8BspIs7MAAAAQAA6QAiAEEEBQBIBAIAugkAABsNAADdEAAA6xAAAPcQAACPEQEAmhEBAK0SAQC5EgEAxxIAANkSAABwEwEAvBMAAGQWAABvFgAArBYBAP8XAQAjGFcAiBgEANMYAgCZHQAAMB8DAEUfAACjHwAAsB8AAMMfUQAdIAQARCABAM0hAAAQIgAAdSMAAJ8jBAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2e28e82f9150.js b/pr/3958/docs/search.index/2e28e82f9150.js deleted file mode 100644 index c202e9c31e..0000000000 --- a/pr/3958/docs/search.index/2e28e82f9150.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACMtoHAAACJjZWlDAQOwYCELAU2w4COfAAFobXb2yRIAAAEAAQD0AAEAsQkBBwGgQAAAI3diAQIjAAAThAKwICHgAAFkbQEDAPXcGAAAOwasAWUBAQATAISgYAAAH4WAEOkAHqmwICKdAAEBEAo7MAAAAQAABQACANMPAQDCFgMAAQACsDAibACLsCAiMwCVYnU6MAAAAQAAAAAABwAQAAAAbh0FHx4fqB8KITIiRyLGIvOBAmR0AQMBoGAAACKBdQGAHwAAAQcA9PogAAABAAEAAQAjgQKgUAAAH3ljcgEDADswAAABAAAHAAMAiBYBACQdAQCJHQMA0wGEoBAAABO5AYkAAfwKAADXAQCAhaEQAAAjYwFNAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2e499be6272d.js b/pr/3958/docs/search.index/2e499be6272d.js new file mode 100644 index 0000000000..8ae8a2b5ab --- /dev/null +++ b/pr/3958/docs/search.index/2e499be6272d.js @@ -0,0 +1 @@ +rn_("AYACoHAAACSksJAj/gCGaG8BggKwACG6AR6gAAAAIbtlcyMAAqBgAAAjRGV0AfkgAAABAwD1+yAAAAEAAQABAAEAAQABoJAAACRYbDowAAABAAAAAAAIABAAAAC1H9chNiNZI5Uj6SMiJCwkaSQTgAKgIAAAIPpkbgGAArCgJBcAAaAgAAAgaGFpAQMBoAAAACMsc/O3IwAA1wABAAEDADswAAABAAAMAAUAtCEFAAojAACGIwEAxCMBANcjAQDzgAJydgEDAbAAIqgAZWT1siEAAAEA8AABADUAE4ACoPAAACSSbG8BgAKgkAAAJEegUAAAJBRibPdjAACMoBAAACRooGAAACSAoGAAACNDoFAAACMtlVkXOzAAAAEAAB8ADwBXDQAAJRMAAGwTAAAuGQoACh0DAP0eAABBIQEAmyEAAK0hAADnIQEAMyMAAFQjAABOJAAAWiQBAF0kAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2ec071dbfea0.js b/pr/3958/docs/search.index/2ec071dbfea0.js deleted file mode 100644 index df21884f4b..0000000000 --- a/pr/3958/docs/search.index/2ec071dbfea0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoEAAACOodPR1IgAA5gATACYAE4ACoDAAACN9aXABgQKgUAAAIbSgMAAAIFZkcwGAAqAgAAAX8qBgAAAjHG5404CEsHAgIgABECADE4ACsDATuA+kcnQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2ede387f0ca1.js b/pr/3958/docs/search.index/2ede387f0ca1.js deleted file mode 100644 index 3d59119546..0000000000 --- a/pr/3958/docs/search.index/2ede387f0ca1.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA8+AeAAABAAEA8wABczowAAABAAAAAAASABAAAADjDOQMmg6bDpwOzhDfF+AXTx95HzEgMiAzIDQgNSDIIQsiHCJSIg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2ef2be69cc42.js b/pr/3958/docs/search.index/2ef2be69cc42.js deleted file mode 100644 index 314dd45c18..0000000000 --- a/pr/3958/docs/search.index/2ef2be69cc42.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9FwiAAABAAEAAQABBQD02SIAAAEAAQABAAEEADswAAABAAANAAIAVB8MANgiAACzAISgcAAAIi8QgIE6MAAAAQAAAAAABwAQAAAA3RCtEq4SrBaZHUUfnyOgIxOAA6AwAAAh9aBQAAAjkWdzdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2f16e5d8f52c.js b/pr/3958/docs/search.index/2f16e5d8f52c.js deleted file mode 100644 index 6265e95d51..0000000000 --- a/pr/3958/docs/search.index/2f16e5d8f52c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAABQABABUHwwA2yABAPUgBADYIgAAAQABoEAAACBTZTswAAABAAAJAAQADiMDAH4jAQCrIwEAtSMBABOAAqBQAAAhAGRzU4ADoOAAACOVZW9y") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2f71b8f22acf.js b/pr/3958/docs/search.index/2f71b8f22acf.js new file mode 100644 index 0000000000..678fb25074 --- /dev/null +++ b/pr/3958/docs/search.index/2f71b8f22acf.js @@ -0,0 +1 @@ +rn_("AQEBoAAAACSKcgHAGAAAE4ECoEAAAB79YnABgAKwUCNSAJKwQCECAAFjZSOCArAQGTsAAWV5AQEA87cfAABCAAEAE4MCsAAfHQABZXMBAgGwMCRkAAF1OjAAAAEAAAAAAAoAEAAAAA4XURdSFx8eIB5DHqgfHyAgIE0g/CFTgAOwsCSOAAFmZ25jgAOgEAAAGYFkbnYBAgDzfBgAAAEAbwojgAKwICByAAFucwEFAPM+IwAAAQBOAfMDAWMBexgAAPOAAmlvAYQCoDAAACRjoFAAACR/Y3KXAwAAhqDAAAAkqKAwAAAjJpRIAQGFIwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/2fff22023c91.js b/pr/3958/docs/search.index/2fff22023c91.js new file mode 100644 index 0000000000..0e8a6ac77b --- /dev/null +++ b/pr/3958/docs/search.index/2fff22023c91.js @@ -0,0 +1 @@ +rn_("AQUA84khAAD2AZQAAQABsEAhigABcgGBIAAAJwQAAIegkAAAJIygQAAAI/2wcCO0APKhUAAAJKegUAAAITgawRD2Mw0AAP8F/QC9C9wCuAABAQGgUAAAIFBrAUsRAAABAwA7MAAAAQAAvgACAEMZAQAOHbwA84ACbHTzgAJhZQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3019008e8054.js b/pr/3958/docs/search.index/3019008e8054.js new file mode 100644 index 0000000000..ef8526d6c9 --- /dev/null +++ b/pr/3958/docs/search.index/3019008e8054.js @@ -0,0 +1 @@ +rn_("AYECsAAhnAABsDAizgABc3TzAQFtAaMjAAABAwGgMAAAIrtpAdIfAADzAAFsOjAAAAEAAAAAABQAEAAAABASQhNyGZ0fnh/AH8Efwh9rIGwgbSBuIG8gcCD6ICQjKiMxIz0jayPnIwEGAPNJGQAAAQABANOAhBgHIug6vgFBAQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/30c20193f127.js b/pr/3958/docs/search.index/30c20193f127.js deleted file mode 100644 index 601924f678..0000000000 --- a/pr/3958/docs/search.index/30c20193f127.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA87YfAAA5AQEAI4ADsBAgtAABZxS9/Pu0ZXBzAQIA9OsgAAABAAEAAQDzAgF18lQdAABgBAEAADswAAABAAAFAAEAvBcFAGcBAICFoHAAACKpoKAAACLdJBgC") \ No newline at end of file diff --git a/pr/3958/docs/search.index/30e483b1a918.js b/pr/3958/docs/search.index/30e483b1a918.js deleted file mode 100644 index 3db5eaaafc..0000000000 --- a/pr/3958/docs/search.index/30e483b1a918.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYCEoFAAACILoFAAACIMoFAAACINsRAjewABDEABAQcBsEAiywABZQE+IgAAAYACoFAAACAmoFAAACLKcHUBggKgAAAAIOWgAAAAIOZlcyOAAqBgAAAiU2V0AQMA9SggAAABAAEAAQABAAEAAaCQAAAjX2w6MAAAAQAAAAAACAAQAAAA6B4CIUYiaCKhIvIiKiM0I3EjE4ACoCAAACAnZG4BBAA7MAAAAQAABwACAN8gBQDiIgEAAQQBoAAAACHIZPPdIAAAAQAbAbcFAAGHsLAjHQABoGAAACJSlAkDOzAAAAEAABYABwCNGAoAThwCAGsgAQASIQEAQyIAAGEjAQBkIwEAAQABsEAg2wABZfWIGAAAAQABAAEAAQATAAKwoCNmAAFndgE7HwAA84ACbm8BAwA7MAAAAQAABQACAOMeBADeIQAAI4ACgB7qBAABZHLnAgABhrBQIGgAAbAAHlMAARRBEjswAAABAAALAAUAxBADACMRAQCXHQEABh8BAGIgAQATgAOggAAAIfSgAAAAHSBjbHIBAgGwgCO1AAFz8qUjAAABAFcEAACHoEAAACI3oEAAACI4oMAAACIdoEAAACICE8gCOjAAAAEAAAAAAAkAEAAAAHYEAAsBCwILAwsEC68MsAz7Fy8e") \ No newline at end of file diff --git a/pr/3958/docs/search.index/30e71b43d72b.js b/pr/3958/docs/search.index/30e71b43d72b.js deleted file mode 100644 index 1c27f2b033..0000000000 --- a/pr/3958/docs/search.index/30e71b43d72b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA9GEjAAABAAIAAQAjgAOgQAAAIjegQAAAIjhiZWwBAgGgYAAAI3ZiOjAAAAEAAAAAABAAEAAAAIMYhBjeHg8hGSEUIhUiFiKcIqMipCL2Iv8iGyMhIyIjlSNTgISg8AAAI62gMAAAIsFgIAQBAQDzyiIAADIAAQDzgAJtbg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/311a9efcd647.js b/pr/3958/docs/search.index/311a9efcd647.js deleted file mode 100644 index 9e6c819caf..0000000000 --- a/pr/3958/docs/search.index/311a9efcd647.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAAA4AAwDEEwsApx4AAKwfAQABAwGgQAAAI3diAQIjAADzAgFn9O4eAAABAAEACQTzAAJhbzswAAABAABlAAIAYQ0yAHcTMgA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/316a89d7254b.js b/pr/3958/docs/search.index/316a89d7254b.js deleted file mode 100644 index 72bfe056d4..0000000000 --- a/pr/3958/docs/search.index/316a89d7254b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA8+0XAAABAAEAAYACsIAjKwABsLAjaAABYWwThgKwICEMAAF0dQEGAbDAI2YAAWnyBh8AAAEAlwEAgIWgYAAAIK6gcAAAIK+kAQgBgAKwQCGrAAGgcAAAIbNvcwECAPTxIAAAAQABAAEAI4ACsAAPpQABZHQTgAKhEAAAI1ZucqcAAACHoEAAABLeoCAAABDbsDAfcQABoJAAAB+LsGAgxAABMSgDOjAAAAEAAAAAAA4AEAAAALYJyBBuFpoW5xfoF+kXJh0nHSgdZB9lH8AfwR/CHwEAArAwIEEBybAgH3sCN2J1Aa8eAAAjhAKwMB96AjdkcyOAAqAgAAASwWl0AQ4A9HkjAAABAAEAAQATgAKxkCOzAAFhZQEQAaBAAAAjYGX01yIAAFkAAQABAAEDAPPPEAAAAQBGEgEDAbAwIqcAAXTyGyEAAAEAAQQA9ekhAAABAAEAAQABAPOAAm9yAQIA9YwfAAABAAEAAQABADMEhKBAAAAgarDAI0UAATAADAH2EgAAAQcAOzAAAAEAAAUAAgD+IAEA0yIDABOAArAwFooIJGN084CEEUEAAQIBsMAjIwABZfKyGAAAAQAjAgKgQAAAIEhlZ/NjEQAA4Qt8AwGAA7CQIgkBkqBgAAAiELAgEL0AAWRudAEBAPTbCgAAAQDuC0gGAQMBoHAAACJFZ/LWEAAA5QIBgQKggAAAI4ugYAAAI51kcxOIA6DQAAAjp7CQI4AAKWJtdQENAPTTIgAAAQABAAEAAQEBsEAjIwABZfLkIgAAOADzggJlc/OAAmVvAQABoEAAACBMZQFKHQAAI4ECoFAAAB+ka3TX/QEAjaCQAAAhsLBgH1AAAZ+JRzswAAABAACLAAoAWAEAAGEBAQChDAAAsBADAPcSAQDVFgEAqR16ANkeAAAnHwEAdx8BAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/326a10ee0ab8.js b/pr/3958/docs/search.index/326a10ee0ab8.js new file mode 100644 index 0000000000..8dceeab761 --- /dev/null +++ b/pr/3958/docs/search.index/326a10ee0ab8.js @@ -0,0 +1 @@ +rn_("AQgBoIAAACScZgGeIwAAE4ADoBAAACLgoFAAACQSYmRwAQIBsHAkMQABZvVXHgAAVQFiANIDAQABAQGgUAAAIa1vAWkXAAAzgAOwMCGZAAFhZWkBgAKgQAAAIq2gUAAAJFRwcgGBAqAAAAAeLqAQAAAgYnN184ADYW9yAQIA9DsjAAABADsAAQATgAKgUAAAJARldQEBAPQ5IwAAAQA7AAEAE4ECoEAAACQRY20BAQA7MAAAAQAABgADABEgAADTIQEAyCMDAAGAAqAAAAAZJ6BQAAAkLWtzY4ADoJAAACMyZ256AYACsCAYXwABoDAAACNqb3QBAwDzpiMAABoAAQABAAGgkAAAJH5x9V0ZAAABALoEAQABAAEEA7BQIxwAAaBgAAAjtaAwAAAi5WFjcPNFHgAAAQABAPOAAmNkY4CEoFAAACKsoFAAACQQACghAQUA9OojAAABACAAAQATgAKggAAAJGhydQEFAPMfIAAAAQDcAef2AACMoIAAACSooDAAACANoBAAAB77vUEPOjAAAAEAAAAAAD8AEAAAAFMLcgsaDRsNHA0dDR4NHw0gDSENTw0XEC0RVBFVEWsRbBF4EXkRehHpEeoR8xEZE1kTYhNmE2cTaBNpE1IUUxQlFyYXLhdFGdkd2h3bHdwdLh5oHh0fHh/uH/0fFSBkIHQgkCC7IZAi6CIGIwcjLCMuI20jnyOhI/QjJySUJKck") \ No newline at end of file diff --git a/pr/3958/docs/search.index/32b3daae3be8.js b/pr/3958/docs/search.index/32b3daae3be8.js deleted file mode 100644 index c0af8062f6..0000000000 --- a/pr/3958/docs/search.index/32b3daae3be8.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYUCoEAAACKvoFAAACNPaXIBAAOgUAAAHtuhAAAAI1WgQAAAHWdjZmz02gwAAE8AThWUAGMAA7BgIygAAWVzdAGeHwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/32f4c02e7612.js b/pr/3958/docs/search.index/32f4c02e7612.js deleted file mode 100644 index a0498328b8..0000000000 --- a/pr/3958/docs/search.index/32f4c02e7612.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA824gAAABAAEAE4ACsCAfbwECYW8BCADzWyIAAFUAAQA3AAADhbBgIdEAAbBgIvwAAaBwAAAiJSxABDswAAABAAALAAUAfhYDAM4XAQAVHwEAJSEBAPAhAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/332282b38444.js b/pr/3958/docs/search.index/332282b38444.js new file mode 100644 index 0000000000..61998e8cca --- /dev/null +++ b/pr/3958/docs/search.index/332282b38444.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAAAUAAgAOHgMA1iIBAAEJAPNVIwAAAQABAPMBAnBzOzAAAAEAABAABQBJEwIAixgCAJMYAACfIQUAwCEDAAGEAqAAAAAj86BAAAAit2Rl84ACcHIBBQA7MAAAAQAAUQABAJYgUQABBwGgQAAAJG9iAfsjAAAThQKwICLAAAFkbVOAA6CgAAAkU2NrcwGAArAgGo0AAaCAAAAhrmV0AYACsCAaiwABsQAkcQABZXjDAYSgIAAAExqggAAAItMAkAM7MAAAAQAAEQAHACALAABvCwIAXhMBAFQUAwDTHQUA6R0AAI0iAAAzgAOggAAAJCdlb3IBAQKgcAAAI/SgMAAAGYNkdPIWEQAAAQAjgAOgQAAAJG2gMAAAF1RhZXIBAgGwcCQgAAFz8tofAAABAAEBAaAwAAAkD3cB8CIAAPOBAmVpI4ACoFAAACRBbHLzAAJldPZZBAAA1gsBAFETAQDGAAEFAPTPIQAAAQABAAEAE4EDoCAAAB3xoJAAACHvamxzAYMCoFAAACHlsDAkNgABY3ABhQKgcAAAJBagMAAAI2dlcxMAhKBAAAAeMKBwAAAhAKAgAAAXBRKAAfU/DQAAugIBAAEAAQBDAISwUCMcAAGgYAAAI7WgMAAAIuUFwAA7MAAAAQAABgADAJERAQDPEQEARR4CAAGBA6BQAAAiv6AAAAAkO6CwAAAkJWJkdAEDAPOTIAAAAQABAPMCAW47MAAAAQAABwABAPAWBwABAQA7MAAAAQAAAQECAHMNAAASEgABAQIAOzAAAAEAAAUAAQAKIQUA8wEBcgElIwAAMwADoAAAACE+ZWlzOjAAAAEAAAAAAA0AEAAAABIXExdwGc4dzx3QHdEdASGzIrQiziLPIpsjnCMBgAKgQAAAJIWgYAAAJJZhcvMBAXMBbxkAAAEJAPXKIQAAAQABAAEAAQABAwD0Nx4AAAEAAQABANOAhKAQAAARQAQBBfMAhRFABfI6BAAAAQABgQKgAAAAEy2wEB4MAAFlbAEAA6AwAAATJqAwAAAXAKBAAAAZI2xydwFxBAAAEwACoOAAACNJY3A7MAAAAQAAMgABAIENMgABAgD0QBcAAAEAygZdBQEAAPZHEwAAAQBJBQEAnQoBABOAAqBQAAAjIXB0U4CEsFAf2AABsBAipgABEUACAQEBsGAhGQABdPI+HgAAAQATgAOgAAAAEBagMAAAH9BhZ29DgAOgUAAAIIWwMCKLAXRhaW8BgAKwgCQjAAGwsCRhAAFhbBOEArAgIeEAAXR1AQEAOzAAAAEAAAEBAgBkEQAA7xUAAQEIAaBAAAAkWWX0zCMAAFwAAQABAPOAA2d0dgEAAbCAJKIAAXPyBSQAAAEA84ACZG4BBQD3hSEAAIYBCQABAAgBAQABACOBAqBwAAAjOG1zAQgBoEAAACP9ZfLIIgAAuABDAoSgIAAAIYSwMCCRAAGgQAAAIX8QgQI7MAAAAQAADwECAGMRAADgFA4BI4ADoBAAABIRoEAAABdTb3J1AQMAOjAAAAEAAAAAAAgAEAAAABYTeBl5GR4hPSRJJEokSyRMJCOABKBgAAAgU7AwIQIAAaAQAAAXMGRydngBCAGwgCSsAAFz8p0kAAABAAGCAqAAAAAkgaAAAAAkgjQ28wEBaQErJAAAI4ACoAAAACBQcnMBBgGgQAAAJGpiAfcjAADzgANhZW8BAwGwwCRfAAFp8tUfAAABAAECADowAAABAAAAAAAHABAAAABUHlUeVh4LIEEjUiPaI+Qj84ECZm4BAwGgYAAAJDxiAb0iAAATgAKwMCAeACxpbwEHAPNxIwAAAQD5APMDAWPyOhMAAEUF84ADYWxvAQACoEAAABlVoIAAACEWZnTyKx4AAAEAE4ACoFAAACBpZXXzANGAb/4HOjAAAAEAAAAAAHoAEAAAAF4BaAFpAe4D7wPwA/EDSQRLBEgLSQtKC0sLTAtfC2ALYQtiC2MLZAvvDPAM8QzyDAgNCQ0ODVoNdg13DRgQGRAkESURJxE4EdIR0xH3EzAUMRQyFDMUNBQ1FDYUNxQ4FD8UGBcsFzEXMhczFzQXNRdEF0UXRhdyGE0ZThlPGVAZkRriHfEd/R3+Hf8dDB4NHhMeFB4VHhYeUx6UH5UfqR+qH/Uf+B8JIAwgEyA3IGMgdyB9IIUgjSD1IPYg+CAXIcYhxyHIIckh4yGRIpIikyK1IrYi1CLaItsi3CIPIxYjcSNyI3QjuyPiI+MjACQBJAIkaySSJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/338460777e56.js b/pr/3958/docs/search.index/338460777e56.js deleted file mode 100644 index 374896a456..0000000000 --- a/pr/3958/docs/search.index/338460777e56.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYcDoFAAACI1oFAAACI2sGAibwABYnN2AYACsAAg5QEToAAAACDmZXMBAwDzoSMAAAEAAQCjgYSggAAAIwCwEBDTEb9CIAQBBQA7MAAAAQAACAADAHIdAQAgHwUATiIAAAEFAqBAAAAieKAgAAAh/mh1AR8fAADzgAJxcxOAArEAI3sAAWV4AYkCoEAAACONoGAAACOeYXIBiAKgQAAAI22wACKmAFJlcwGGAqBAAAAjXqBgAAAjgWFyAQQBoDAAACJuY/JXIAAAAQABBQGgYAAAI3ZiOjAAAAEAAAAAAAkAEAAAABkhFCIVIhYioyKkIvYiGyMhIyIjAQMCoDAAACI0oEAAACJtaXXziB8AAAEAAQD3AwACh7AAIq0AghWBAwF7GAAAAQQCoDAAACNDoGAAACN1cHMBgiIAABODAqBQAAAgMHJzAQQAOzAAAAEAADIAAQB2IDIA1wAAgIagYAAAHaigYAAAHXGxQCOWAAERRAkBhQOgQAAAIf2gcAAAIq6gYAAAIndlbnMBCwD0UCMAAAEAAQABAAEAAqAQAAAjNaBAAAAfKWVy9KwPAAABAAEARxIBAgDzqRIAAAEAqA0zgAOgUAAAHx1ydHYBBgDzoSMAAAEAAQABAwDzgiMAAAEAAQDziwJwcxOAArAAEXEAAWR0AYcCoJAAACNwoOAAACOqY3KXAQAAhaBgAAAhEaBQAAAiU4QoATowAAABAAAAAAAHABAAAAC2GLcYBB+nH7Yf7yDwIAAhAYACoEAAACILoEAAABZ4bG8BCwGwYCNAABRi8sshAABjABOAAqDQAAAjCmRuZ5kNANGgEAAAEY6gUAAAIgyggAAAIFawYBicBbmgMAAAID+gUAAAIg2wUBZ5CzagkAAAIGBCb7oXOzAAAAEAABgADABbAQEAgQIIAM0IAQAZCwAAuAwAALMPAgBcEQAAdBEAAOYSAQAgGAAAJiAAABojAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3388c74007f2.js b/pr/3958/docs/search.index/3388c74007f2.js deleted file mode 100644 index 344a45f2ca..0000000000 --- a/pr/3958/docs/search.index/3388c74007f2.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9QMhAACcAQEAywABABOBAqEAAAAjkmR0I4ACoIAAACOYbnIBBgDzpSIAANEAHQDzAAJidTowAAABAAAAAAA0ABAAAADmDOcMkA+RD5IPeBa7FrwWgxiEGKYYyxjNGF0dgB2RHZIdkx2aHcse2x7eHhAfER8SHzwffB+3H7gfuR9AIA8hECEZIRQiFSIWIlAiYSKcIqMipCLlIu0i9iL/IgUjGyMhIyIjjCOVI7Ej") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3535568ad951.js b/pr/3958/docs/search.index/3535568ad951.js new file mode 100644 index 0000000000..0561fd1938 --- /dev/null +++ b/pr/3958/docs/search.index/3535568ad951.js @@ -0,0 +1 @@ +rn_("AYACsDAfxACxoBAAABhzZW8BAAGgIAAAIRJmAWQfAAATAAKwABl8BjpkcjswAAABAAA/AAQASxcAAJ8YHgAzHgAA/h4eACOAArCQI8QAAWFlI4ACoGAAACP/dHoBAwDzDBcAAAEATA0jgAKgAAAAFy1xcgECADswAAABAAAUAAEAfx8UAHcAAACHsCAfYQABoCAAABlnoCAAAB9joFAAACFKFFER90wEAAABANQeqwBcAAEAAQBjgAOgYAAAIRhibHQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/357273648d47.js b/pr/3958/docs/search.index/357273648d47.js new file mode 100644 index 0000000000..d5120757a0 --- /dev/null +++ b/pr/3958/docs/search.index/357273648d47.js @@ -0,0 +1 @@ +rn_("AYICoAAAACSBoAAAACSCNDbzAwFpASskAAATgAKwIBNeAAFkdAEFArAwI14AkrAgIyMAmWJ19NQfAACnAGQBWAEBgAKwECEVAdagUAAAIopkbuOAhLBAIrwAvQEJQA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/35922f2fbfb4.js b/pr/3958/docs/search.index/35922f2fbfb4.js new file mode 100644 index 0000000000..95d3524ac0 --- /dev/null +++ b/pr/3958/docs/search.index/35922f2fbfb4.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAABgACgBZCwQAKxQDAF4XAQBtGAEA3x0AACMeAQDoIAMAOSEBAD8hAQC9IwAAAQQBoEAAACDvZfL8FgAAAQABBQA7MAAAAQAAEgADAB8ZAgCYIgIA+SIMAAEGAbBAJFYAAWXzviMAAHoAFQDzBQFiOzAAAAEAABwACgAZIAQALyEDAKkiAACrIgAAHiMAAKcjDADcIwAANSQAAJEkAACpJAAARwAAAoWwECSqAAGg0AAAJEGwYCSUABOgYAAAJE8wCAk6MAAAAQAAAAAABwAQAAAAIxckF+8eVCDtIO4gjyHSIwGEAqAwAAAkY6BQAAAkf2Ny8wMBYwGFIwAAdwYAAMuggAAAJKWgMAAAIySgMAAAIQGgQAAAI1+ggAAAJA6gcAAAI58AbiAfOjAAAAEAAAAAAD4AEAAAAIAEgQSCBIMESg01EzYTHhcfF2MXZBdlF2YXZxdoF28YcBh2GI4YOhl9Gd0d3h3kHeUdIh5MHk0eTh5PHpofmx+cH7gfuR+6H8Ufxh/mH/4fFiAXIFkgWiBbIGogeCBJIYchmCGKIrkiuiLzIvQi9SIYIxkjbiNvI3AjxiPHIwGBAqBwAAAg7aBwAAAg7jQ2I4ADoBAAABFIoKAAACQUbnB0AQAA9G0TAAABAOcQMAATgAKgoAAAIypkbgEDAqBAAAAjIKAwAAAjfmV39NcfAAAHAKYAAwDzAQFnAVwgAAABggKgIAAAHu+wABdeAAFlc/OAAmR01wIAAIagQAAAF2CgUAAAIRMTIQHzfgEAABQgAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/35b4ef57fd68.js b/pr/3958/docs/search.index/35b4ef57fd68.js deleted file mode 100644 index f71df456df..0000000000 --- a/pr/3958/docs/search.index/35b4ef57fd68.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABsIAjEAABc/OrHgAAAQABAAEDAbCAI34AAXPyBSIAAAEAEwACsIAjDgABaXPzqB4AAAEAAQDzgQI0NiOAArAAE3IAAWRw") \ No newline at end of file diff --git a/pr/3958/docs/search.index/360736b26f4e.js b/pr/3958/docs/search.index/360736b26f4e.js new file mode 100644 index 0000000000..7e2052040d --- /dev/null +++ b/pr/3958/docs/search.index/360736b26f4e.js @@ -0,0 +1 @@ +rn_("ARAA9HEkAAABAAEAAQABBQA7MAAAAQAACAADADUeAQDvHwUA8SIAAAEDAqBAAAAjaqAgAAAi4Gh1Ae4fAAATgQKwMB9wAytlaQEEAPMRJAAAaAAdAAECAPQ2FAAAAQABAFwLAQAA9R0LAACXAgEAAQABAAEBAPaLGgAAAQCtCAEAOwABAPcGAIDHsEAklAATAAlmAfOAAmV4") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3674288b5306.js b/pr/3958/docs/search.index/3674288b5306.js deleted file mode 100644 index 260f7105e7..0000000000 --- a/pr/3958/docs/search.index/3674288b5306.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABsGAipQDuYjswAAABAAAFAAIAEB8CALcfAgATgQKgYAAAImtnchOAArBgIGsAAWZuAQEA9AsdAAABAAEAYQXzgAJkbgGGAqBAAAAir6BQAAAjT2lyQwADoLAAACOFoBAAACJnbHJzOzAAAAEAANYABAAUDQEA1Q/SAOMYAAC8IQAAAQMA8yweAAABAAEANwEAAIWgcAAAIRShIAAAI4aRSAABVwEAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/36b19f9c2206.js b/pr/3958/docs/search.index/36b19f9c2206.js new file mode 100644 index 0000000000..b023d4459b --- /dev/null +++ b/pr/3958/docs/search.index/36b19f9c2206.js @@ -0,0 +1 @@ +rn_("AQGEsGAgVAE7gCQRBoAdoLAAACPnoEAAACAMGQAB8jIQAAABAAECAPNyGQAAKwYBAAEAADswAAABAAAGAAIATBMBAJQYBADzgAJkbgEJAaBAAAAj/GXzfCMAAL0AAQABAwKgIAAAI9KggAAAJA5ldvOaHwAAAQABAHcAAIGFoCAAAB4SsUAkqgABETEAAQEBoFAAAB/QbPMYEAAAAQBZCPOAA3J0dg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3738bffac8f4.js b/pr/3958/docs/search.index/3738bffac8f4.js new file mode 100644 index 0000000000..7556b6ec56 --- /dev/null +++ b/pr/3958/docs/search.index/3738bffac8f4.js @@ -0,0 +1 @@ +rn_("AQABoDAAACEXZQFiFwAAAQAAOzAAAAEAAAgABADOEQAAHxMDAGoTAQAgJAEAFwQAAIigYAAAJFygEAAAGL+gAAAAEeugUAAAI/mgMAAAIRihIAAAJIAo0QM6MAAAAQAAAAAAFgAQAAAAOBNAEwsXEBcvFygZSRlKGUsZaR5qHvAe8R7yHvMe9B71HscffCCeIcciliMNJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3786313678b0.js b/pr/3958/docs/search.index/3786313678b0.js new file mode 100644 index 0000000000..da18e04e4b --- /dev/null +++ b/pr/3958/docs/search.index/3786313678b0.js @@ -0,0 +1 @@ +rn_("AQMA9LMiAAABAOcAAQDzAgF09ckfAAABAAEAJQIBABOAAqBQAAAhM2FvAQUA82QjAAABAAEAAQIA9ckiAAABAAEAAQABAPOBAm11AYACoEAAACD4oFAAACCIY2lzAISgEAAAIRIBQAkBMyEAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3808ae09c082.js b/pr/3958/docs/search.index/3808ae09c082.js deleted file mode 100644 index eb8c8eb915..0000000000 --- a/pr/3958/docs/search.index/3808ae09c082.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQECoHAAACHnsAAgxAABZnM7MAAAAQAAsAAFABsNAADZEgAAIxhXAMMfUQAdIAQAAQQBoCAAACEBcwECHwAAQwCEoDAAAB8voFAAAB98sDAizQABRYAAOzAAAAEAABYACADXEAMAZBELAAkfAQCFHwAARyAAAOkgAADYIQAAHyIAACOAA6AwAAAYtaAgAAAY1mlzdPOAAmNu") \ No newline at end of file diff --git a/pr/3958/docs/search.index/38e0fe070e64.js b/pr/3958/docs/search.index/38e0fe070e64.js new file mode 100644 index 0000000000..a747cf1c07 --- /dev/null +++ b/pr/3958/docs/search.index/38e0fe070e64.js @@ -0,0 +1 @@ +rn_("AQgA9AkkAAABAGwAAQABAwGgIAAAIO5l8jYTAACED/MAAmFzOjAAAAEAAAAAAAwAEAAAAP8IIBH4FmoYnBh2H3cfeB8gIY0h5iLnIoIk") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3910a485af31.js b/pr/3958/docs/search.index/3910a485af31.js new file mode 100644 index 0000000000..1903b77065 --- /dev/null +++ b/pr/3958/docs/search.index/3910a485af31.js @@ -0,0 +1 @@ +rn_("AQIBoCAAACESZgFkHwAAI4ACoGAAACP/dHoBAgA7MAAAAQAAFAABAH8fFABXAACAh6AQAAAXLbAgH2EAAaAgAAAZZ6AgAAAfY6BQAAAhShRREROAAqAgAAAYc2x0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/391de737ec35.js b/pr/3958/docs/search.index/391de737ec35.js deleted file mode 100644 index 9734bbd361..0000000000 --- a/pr/3958/docs/search.index/391de737ec35.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYkCoEAAACONoGAAACOeYXIBiAKgQAAAI22wACKmAFJlcwGGAqBAAAAjXqBgAAAjgWFyAQQBoDAAACJuY/JXIAAAAQABBQGgYAAAI3ZiOjAAAAEAAAAAAAkAEAAAABkhFCIVIhYioyKkIvYiGyMhIyIjAQMCoDAAACI0oEAAACJtaXXziB8AAAEAAQD3AwABh7AAIq0AghWBA/V7GAAA2wkBAHYAAQABAgGgYAAAIRFoOjAAAAEAAAAAAAcAEAAAALYYtxgEH6cfth/vIPAgACHzgAJucg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/39569abd60b4.js b/pr/3958/docs/search.index/39569abd60b4.js new file mode 100644 index 0000000000..2e1c8f2bc7 --- /dev/null +++ b/pr/3958/docs/search.index/39569abd60b4.js @@ -0,0 +1 @@ +rn_("AQQAOzAAAAEAAAUAAQAKIQUA8wIBZTswAAABAAALAAUAEhcBAM4dAwCzIgEAziIBAJsjAQABgAKhMAAAJISgkAAAJD1hZQEGAaDwAAAkqWbyjiAAAAEAI4ACsBAjkQABcnMBgISgcAAAIu+ggAAAIpygYAAAII2g0AAAI++AQQEBgAKgYAAAJFSwMB5XAbdvcgEDAPQ7IwAAAQA7AAEAAQEA9DkjAAABADsAAQATgQKgQAAAJBFjbQEBADswAAABAAAFAAIA0yEBAMgjAwBDgAOgkAAAIzKgYAAAJC1nbnoBBAOwUCMcAAGgYAAAI7WgMAAAIuVhY3DzRR4AAAEAAQATgAKwABldAAFjZBOAAqBQAAAkEG54AQYA9OojAAABACAAAQD3AwAAh6BgAAAkEhgBD/dUEQAAAQCUAAEAEw5nACwCAQACsEAZeAABoMAAACRTZXQBDg0AAAEEAaAgAAAh1nMB0R8AAEMAhKAwAAAf/qBQAAAgTbAwI8IAAUWAADswAAABAAAWAAgAQhEDANcRCwDYHwEAViAAABwhAAC+IQAAuCIAABAjAAAjgQKgMAAAGVZpcwEDAqBgAAAiuKBgAAAjU2108iIXAADKBiOAA6CgAAAjf6DwAAAkU2NwdOOAhKDgAAAkihEBQAGAAqBgAAAhlaBQAAAgE2VpAQIA9BojAAABAAgBAQDzgAJvcgEFADswAAABAACIAAIAJCAAAP0hhwCDgISgUAAAIxawUCA8AAGgIAAAJKAARAwBiQKggAAAJJWgkAAAJKFidROBA6BwAAAi8qGgAAAkq2NpchOAA6BQAAAgVrCAI4gAAWFlbwECADswAAABAAAGAAMALBcAAEQXAgATHgIAAYACoLAAACPuoHAAACKbZHIBDQD0WSMAAJAAOQBHAAEQAaBAAAAkoHQBUiQAAAECAPVEHgAAqAL+AewAvQDzAQFv8jkUAAAaEPOAhAAwAwGAA6BAAAAkZrAgGXMJ2LAAI5oAV2Vyc4OAhKAwAAAj24AjTAWAAbCgIzEADAwgAQEFAPOYIgAAAQABAPMCAWb1fRkAAGkGsgGAAQEAEwACoDAAABi+ZGw7MAAAAQAA3gACAFoEAAAKCd0AF+2fANSgkAAAJCagUAAAI46goAAAIvGgcAAAIZegcAAAIRagkAAAIYGgAAAAE3TAZ7d/OzAAAAEAACsAEwDmAwMATQsBAAoNAwBbDQAAHRAAACEQAgA7EAEAGBMAADoXAABYFwMANx4DAOIfAAA4IAMAiiEBANYhAAAyIwAAziMDAC4kAQBQJAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/39ad474eac74.js b/pr/3958/docs/search.index/39ad474eac74.js new file mode 100644 index 0000000000..292c57155e --- /dev/null +++ b/pr/3958/docs/search.index/39ad474eac74.js @@ -0,0 +1 @@ +rn_("AQcBoEAAACRqYgH3IwAAE4YCsCAipgABZG0BCQGggAAAJJxmAZ4jAAABAwGwcCQxAAFm86wfAAA0BAEAI4ACoCAAAB4uYXIBgAKgEAAAGSegEAAAIBFueuMAhKDAAAAkfhABDPctEQAASwABAAEA6AEuDZwCAQAA9MYhAAABAAEAAQBDgAOgcAAAIa+gAAAAF2theHkBgAKgsAAAI7mwIBidAAFsbwGAA7AQIsAAAaAQAAAe+qDAAAAkn3N0dQECAbAAI4EAAXMBkRoAAAEFAbBAI4YAAWUBTiQAACOAA6CQAAAj/6AQAAAgfWFjdAGAAqBQAAAhO6AwAAAeLWFlAQcBoEAAACRvYgH7IwAAAQIA96sfAAC6AAEA2AIBALkAlQATggKg8AAAJKRmZwGAAqCAAAAkg6BgAAAklWRzE4ACsFAgIwQZaXUBBQGwYCQzAAFpAUIjAADzAgFoASYZAAABAgGwgCRCAAFm8ucfAAABAKOAhKCwAAAkNaCgAAAkgAgADff/AACNsJAkeAApj5UPOzAAAAEAABABEgAUCgAANg0DAPEOBgDkEQEAexgAAEMZAQBtGQAAjRoBAA4dvAD0HQAAAiEBADwhAQBMITIAvSIAADsjAQB3IwEAtyMAAI4kAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3a1ca0ac26eb.js b/pr/3958/docs/search.index/3a1ca0ac26eb.js new file mode 100644 index 0000000000..0bc6f2b650 --- /dev/null +++ b/pr/3958/docs/search.index/3a1ca0ac26eb.js @@ -0,0 +1 @@ +rn_("AQABoGAAACP6YgEbIQAAAQABoEAAACA3ZfOdIgAAlAEBAPOAAmRyJwAAAIWgQAAAIpOwcCN9AO+gMAAAI3qgUAAAI+UYIQg7MAAAAQAACAADAA4QAADsEQYA7R0AAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3a34ac3df9d2.js b/pr/3958/docs/search.index/3a34ac3df9d2.js new file mode 100644 index 0000000000..62faf5d639 --- /dev/null +++ b/pr/3958/docs/search.index/3a34ac3df9d2.js @@ -0,0 +1 @@ +rn_("AYICsEAiwgABoEAAACLEZHPzAAFu8k8LAAABAAECAbDwJJEAGGY7MAAAAQAACwAEAFoTAgAbGQIAjiABAKUhAwDzgAJhZQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3a3641bfbd97.js b/pr/3958/docs/search.index/3a3641bfbd97.js new file mode 100644 index 0000000000..02c24d8869 --- /dev/null +++ b/pr/3958/docs/search.index/3a3641bfbd97.js @@ -0,0 +1 @@ +rn_("AYACoHAAACSMoAAAAAskZmcBBQGwICORAAF19FgXAAABAAEAAQABAAA7MAAAAQAAggACAGwXAABsHoEAI4ACsBAeWAABdHjzgANvc3U=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3a44ee56e5d0.js b/pr/3958/docs/search.index/3a44ee56e5d0.js deleted file mode 100644 index b437075278..0000000000 --- a/pr/3958/docs/search.index/3a44ee56e5d0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA9HQdAAABAAEAAQAjAAKgYAAAH5ZicDswAAABAAALAAMAmAwDAK8TBQAiIAEAAQABgB0mABABdPKyEAAAAQABAAGwQCLLAAFl9wARAAABAJ4BaA83AD0AMAABhQKgcAAAIxygMAAAInVlcxMAA6BAAAAdbaAgAAAWb2JlcvXoDAAArAIBAAEAAQABAQGgAAAAICZz8wANAAAzEaUCAQEA9WQWAADMCAEAAQABADOAA6BwAAAgZG5vdgEDAPRjHQAAAQABAAEAI4ACoAAAABKbZHIBgAKgQAAAIjegQAAAIjhibBOCAqAwAAAiwW50xyYDAI6wUCIsAAGwEBKaBC2gAAAAI4agMAAAIgSggAAAIq2wIBZjAoSgMAAAHiSXwXs7MAAAAQAAGQAIAGUBAQDVDAQAIQ0HACURAQBeEQEAgh0CAP8eAQAsIgEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3ab77ada5adb.js b/pr/3958/docs/search.index/3ab77ada5adb.js deleted file mode 100644 index a7212d702c..0000000000 --- a/pr/3958/docs/search.index/3ab77ada5adb.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQgA9BAjAAABAG0AAQABAwGgIAAAIBtl8rwSAAAeDwEAAaCAAAAienX0jAIAAEkBTABJD/MAAzRhczowAAABAAAAAAANABAAAAAfBMQItRBiFs0X/herHqwerR5LILcgBSIGIooj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3b3d01d87687.js b/pr/3958/docs/search.index/3b3d01d87687.js new file mode 100644 index 0000000000..f697b68a3c --- /dev/null +++ b/pr/3958/docs/search.index/3b3d01d87687.js @@ -0,0 +1 @@ +rn_("AQYBsEAkVgABZfO+IwAAegAVAPMFAWI7MAAAAQAAHAAKABkgBAAvIQMAqSIAAKsiAAAeIwAApyMMANwjAAA1JAAAkSQAAKkkAABHAAAAhbAQJKoAAaDQAAAkQbBgJJQAE6BgAAAkTzAICTowAAABAAAAAAAHABAAAAAjFyQX7x5UIO0g7iCPIdIj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3b5244b9ff62.js b/pr/3958/docs/search.index/3b5244b9ff62.js new file mode 100644 index 0000000000..d174c13566 --- /dev/null +++ b/pr/3958/docs/search.index/3b5244b9ff62.js @@ -0,0 +1 @@ +rn_("AQIBsAAXJQABc/VgDQAAAQABAAEAyBMBgAKgAAAAI2OwMB4cAAFudAEAhaCQAAAkaKBAAAAjpqBAAAAjaqBgAAAkBKAgAAAi4JgACvLuHwAAhgABAwGgcAAAJB9oAQIkAAATgAKgQAAAGXdlaQGBAqAAAAAkgaAAAAAkgjQ2AQQBoAAAACMsc/O3IwAA1wABACcAAAGFoQAAACSSoEAAACLYoIAAACSkoFAAACMtFAAWAQodAADDgISgQAAAH92wEBINAAEA8AABgAOgAAAAFvugAAAAGUWwECQ+AAFlc3UBBADzdBkAAAEAAQABggKgQAAAI6OgUAAAJEhpciOAArBAJKwAAWdp84ADZ3J0VwcAAIegYAAAISOwIBdcBsmBQQv3TREAAAEA8gwBAPMCDwDoAgGAAqBAAAAhg6BwAAAhrmFyAYACoMAAACRBoPAAACROYXUBgAOwEBqNAAGgcAAAI1iwACSqAAFucnMBAgKwcCSXAAGgcAAAIdVlcjswAAABAAAyAAEALR8yANcEAACIoFAAAB+oIHOBNyMPsGAklAAToGAAACRPNQgNOjAAAAEAAAAAAAwAEAAAADENgA0jFyQX7x5UIIgg7SDuII8haSPSIwQkAYACsCAaiwABsQAkcQABZXgBAwGgYAAAIeZoOjAAAAEAAAAAAAcAEAAAAFcZWBnTH3ogiSDEIcUh1SEjgAKgcAAAItNlbwEDAaCwAAAkfWzyhBkAABgJAQABoGAAACPVYjowAAABAAAAAAAMABAAAABOE0MUNR42Hu8f8B/xH/If8x/0H08g8SIfIwEDAPMPIAAAAQD+AscAAACFsDAeWAABoEAAAB/coKAAACNYkgADOzAAAAEAAA4AAgBPEQIA9BELABOBAqAgAAAXQ2VpU4ADoCAAACO7bG51AQIAOzAAAAEAAAYAAwAaEwAA3SMCAIYkAgABAgD1lyEAAFgB+QBYAGQA8wABbwFRFAAAAQABsEAeVwG3dPLpEQAAAQAjAAKgQAAAGXNlczowAAABAAAAAAALABAAAABNC04LCg0LDQwNDQ1bDSIQIxAYE4ohiyEBAAKgwAAAJIugAAAAIwhjc/TrHQAAtAQBAAEAI4ECoEAAACHvZXIBAAGgAAAAH7ZyOzAAAAEAAB8AAgAzHgAA/h4eACOEArCQI8QAAWFl84ACaXYBhAKgsAAAJICgAAAAIJBhc9OAhLBQJCAAAUAgBQGCAqAAAAAkgaAAAAAkgjQ28wUBaQErJAAAJ+UPAJCgMAAAIsSgcAAAHv2gcAAAI9ugUAAAI4OgIAAAH5+wgCPiAAG/1Q86MAAAAQAAAAAAJgAQAAAAIAtvC3ALcQteE18TVBRVFFYUVxQiGdMd1B3VHdYd1x3YHekd8x2kH+ofcSAQIT4hnCGdIY0i4SLiIuMi6SJzI7YjuSNEJEUkRiSqJKsk") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3b7342c33b73.js b/pr/3958/docs/search.index/3b7342c33b73.js deleted file mode 100644 index 3c4a97a03c..0000000000 --- a/pr/3958/docs/search.index/3b7342c33b73.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9YUdAAABAHcEIgEBABOAArCQIRYAAXJ2AQEBsIAjqwABc/IMIwAAAQABCQGwgCO1AAFz8qUjAAABAPOIAmRp84ACbnI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3bc413e6a92a.js b/pr/3958/docs/search.index/3bc413e6a92a.js new file mode 100644 index 0000000000..ef0a071ea5 --- /dev/null +++ b/pr/3958/docs/search.index/3bc413e6a92a.js @@ -0,0 +1 @@ +rn_("AQEBoEAAACP9ZfLIIgAAuAABAQKwwCRkAAGggAAAJEBtdAGDIAAAAQMBoCAAACESZgFkHwAAE4CEsCAfYQABoCAAAB9joFAAACFKABERE4ACoCAAABhzbHSzgASggAAAJBRhbm92") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3c453a55db08.js b/pr/3958/docs/search.index/3c453a55db08.js deleted file mode 100644 index be635744d9..0000000000 --- a/pr/3958/docs/search.index/3c453a55db08.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA89AYAAD+BdsDAQQA9aUWAAABAAEAAQABAAGCAqAAAAAgtqAAAAAgtzQ2I4MDoEAAACC4oEAAACG1Z2lyswCEoLAAACKJWAACOjAAAAEAAAAAAAkAEAAAAEwETQTAFsEW4xnkGUkiSiKDIoQi") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3d1897d700ae.js b/pr/3958/docs/search.index/3d1897d700ae.js deleted file mode 100644 index e309eddccd..0000000000 --- a/pr/3958/docs/search.index/3d1897d700ae.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQBoGAAACLgYgF+HwAAE4ACoCAAACBWb3UBgAKgEAAAHjCgwAAAI6d0dQGBAqCAAAAji6BgAAAjnWRzY4GEoMAAACM9sJAjgAApAxAIAQKFoFAAACHdoDAAACNDoGAAACN1oJAAACMvsDAh9gABBIAO8soeAAC4A8cEAIDHoFAAACG0oAAAABKyoEAAACBgsDAYyAABAArKAQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3d58ad778ab5.js b/pr/3958/docs/search.index/3d58ad778ab5.js new file mode 100644 index 0000000000..dda18e5938 --- /dev/null +++ b/pr/3958/docs/search.index/3d58ad778ab5.js @@ -0,0 +1 @@ +rn_("AQICoGAAACK4oGAAACNTbXTyIhcAAMoGE4ACoNAAACRsb3UBhAKgQAAAJIWgYAAAJJZhcgGAArAQIy8AAaAgAAAjaGFvAQcA8x0kAAABAAEAcwEEsHAkNgABaG1wcfT4HwAACAQBAAEAE4ACoKAAACSJYW8BBQD09SEAAAEAAQABAAEAADswAAABAAD3AAEAEhz3AAGAAqCQAAAjf6BgAAAgXGVvAYICoFAAACNbsAAeaAGtZXMBhQKwMCNeAJKwICMjAJlidSOAArAgIRUB1mlsUwCEoCAAACGusCAgTAJDAgEMOjAAAAEAAAAAAAsAEAAAAAUSBhIHEggSCRIKEgsSeh94JIMklSShJAEHAPOdIgAAlAEBAAEEADswAAABAAAJAAEAXh4JAAEDAbBgIyIAmGLySyAAAEMCdwQAAImgEAAAE1GgkAAAI1qgwAAAJBOwkCLFAAGgoAAAI7s4CQ86MAAAAQAAAAAAGAAQAAAAbQ1uDW8NcA1xDRMRFBEVEU4XVBdxGXsZVx6ZH6AfrB+tH64frx8OIFMgFiGdI+Aj4SMjgAKwMCNAAT1jbbcHAICJoDAAABMYoIAAACMOoPAAACRTNYoG") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3d7954bde203.js b/pr/3958/docs/search.index/3d7954bde203.js new file mode 100644 index 0000000000..ebb9f367a1 --- /dev/null +++ b/pr/3958/docs/search.index/3d7954bde203.js @@ -0,0 +1 @@ +rn_("AQABsGAjmQDyYjswAAABAAAFAAIA3x8CAIogAgATgQKgYAAAI11nchOAArBgIUEAAWZuAQEA9MsdAAABAAEAkwXzgAJkbgGGAqBAAAAjo6BQAAAkSGlyAQcA81wjAACQAAEA8wEBdgFYIwAAYwADoLAAACR9bHJzOzAAAAEAANcABABrDQEAPRDTAIQZAACcIgAAAQMA8/YeAAABAAEANwEAAIWgcAAAIemhIAAAJH6RSAABYAEAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3dcc6eacec76.js b/pr/3958/docs/search.index/3dcc6eacec76.js new file mode 100644 index 0000000000..63a4b6dc72 --- /dev/null +++ b/pr/3958/docs/search.index/3dcc6eacec76.js @@ -0,0 +1 @@ +rn_("AYkCoEAAACSFoGAAACSWYXIBiAKgQAAAJGawACOaAFdlcwGGAqBAAAAkVaBgAAAkeWFyAQQBoDAAACNgY/IsIQAAAQABBQGgYAAAJG5iOjAAAAEAAAAAAAkAEAAAAO4h9iL3IvgilyOYI+8jFSQZJBokAQMCoDAAACMkoEAAACNfaXXzWSAAAAEAAQD3AwABh7AAI6EAhhWBA/UZGQAALgoBAHoAAQABAgGgYAAAIeZoOjAAAAEAAAAAAAcAEAAAAFcZWBnTH3ogiSDEIcUh1SHzgAJucg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3dea5c4174df.js b/pr/3958/docs/search.index/3dea5c4174df.js new file mode 100644 index 0000000000..484ad4dae1 --- /dev/null +++ b/pr/3958/docs/search.index/3dea5c4174df.js @@ -0,0 +1 @@ +rn_("AQIA8+YdAAABAAEAAQABsIAkCQABc/N2HwAAAQABAAEDAbCAJHYAAXPy5iIAAAEAEwACsIAkBwABaXPzcx8AAAEAAQDzggI0NgEDAPNIHgAAAQCWBAEBAbCAJKIAAXPyBSQAAAEAAQkBsIAkrAABc/KdJAAAAQDziAJkafOAAm5yAQYBsEAkVgABZfO+IwAAegAVALcEAAGHsFAfzAABoHAAACOioGAAACNpMiEGOzAAAAEAAB8ADADQHwAAGSAEAC8hAwCIIgEAqSIAAKsiAAAeIwAApyMMANwjAAA1JAAAkSQAAKkkAAABAADz9QwAAAEAPhMBgAKgYAAAJFOgEAAAE1Rpb0MBhLBQI/4AhrAgII0CiaCQAAAh7QQMAfQlDQAAGgZCBcAH84ADZXN1") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3deab89f2355.js b/pr/3958/docs/search.index/3deab89f2355.js deleted file mode 100644 index bf729b63c4..0000000000 --- a/pr/3958/docs/search.index/3deab89f2355.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUBoFAAACKRZgHXHgAAQ4ADoIAAACDJoNAAACL6YWdwRwAAAMWwQBZoAAGgYAAAIq6gsAAAIpOACxnQevoABHABOzAAAAEAAAkAAwAoBAEAZgQFAP0MAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3e85f8639112.js b/pr/3958/docs/search.index/3e85f8639112.js new file mode 100644 index 0000000000..79a36bd588 --- /dev/null +++ b/pr/3958/docs/search.index/3e85f8639112.js @@ -0,0 +1 @@ +rn_("AQUAOzAAAAEAAL4AAgBDGQEADh28AAEBADswAAABAAAHAAMAQwsEAAYNAQCZGAAAAQgA9M4jAAABAAEAAQABAQKwQCRWAAGgIAAAJCZlcjowAAABAAAAAAAZABAAAAAqESsRLBFtEW4RbxFwEXERchFzEXQRdRF2EXcRIyBVIGkgmSO+I9Uj+iM4JDwkTSRuJIsk8wECZWk7MAAAAQAACQABAGULCQABDgGgYAAAJG5i8pcjAAABAAECAPNuGQAAKAZPAhOBAqCAAAAivmZuI4ACoEAAABltbG8BhAKgMAAAJGOgUAAAJH9jcvMDAWMBhSMAAPMDAWQBjhgAAFcEAACHoHAAACGHsHAjRQABsDAkNgABsEAXNgABF4AGOzAAAAEAAAUAAQAJCgUAdwEAgMWwIB9wAysAAYoI") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3e9eb3a6ba6c.js b/pr/3958/docs/search.index/3e9eb3a6ba6c.js new file mode 100644 index 0000000000..096aa19a0c --- /dev/null +++ b/pr/3958/docs/search.index/3e9eb3a6ba6c.js @@ -0,0 +1 @@ +rn_("AYACsJAhqQABsJAhqwABY2wBAgDzRCEAAAEAAQATgAKwICBAAQdhbwEIAPNMIwAAWAABADcAAAOFsGAisQABsGAj9QABoHAAACMWLEAEOzAAAAEAAAsABQAUFwMAaxgBAOQfAQD6IQEA0CIBAEcAAACFoHAAACPZoIAAACScoFAAACBksEAZewYlsEAE8hwTAACCEAGAAqAgAAAeFqBQAAAgiWxzE4ACoHAAACMMZW8BgAKgYAAAIqygYAAAIq1ldAEGAPOZJAAAAQABAAEDAPN6JAAAAQABAPMFAnBzAYciAAABAwD0ux8AAAEAAQA1BAEFAPUFIQAAAQABAAEAAQABAQGwgCSiAAFz8gUkAAABAAEJAbCAJKwAAXPynSQAAAEA84ECZGkBAwA7MAAAAQAACQAEALgfAgBqIAAA8yICAG4jAgD3YAADi7BAIDIAAbAwH74AAaBAAAAgNHRKA/PK4aBgAAAhvt9RAjswAAABAAAKAAUAKRMCAG8TAgB9HwAAliIBAEUjAQABhQOwYCPqAAGwMCM5AAGwMCM7AAFkcnNTgISgoAAAJAOgMAAAIysBRAEBAAD3JhEAAHsOqQE/AKQBUgCUAAEAAaAwAAAkR3DyUB4AALMBo4CEoUAAACSUoCAAABMZAqAQAYACoEAAACFDsDAkFwABcXITAAKwABMuAAFlc/c9GQAA4gUEAhgApQAGAGMBAQQBsEAirwABZfI7HgAAAQABgAKwoCPgAAGggAAAIzNsb9MBhLBgID4AASwAAfNFDQAAXRJqAwGBAqAAAAAYm6AAAAAYnDQ2AYACsAAeXAG4oDAAACLVZ3PzgAJucAEHAPNkIwAAAQABAAGAAqBAAAAg+KBQAAAgiGNp84ACYW8BAwA7MAAAAQAABgADAAEXAQBHFwMAIiEAABOAAqAAAAAM+HJ4AQcCoEAAACMgoDAAACN+ZXfy3h8AAKkAAYYCoCAAACRnoDAAACR1aXABAgGgcAAAI593OzAAAAEAAAgABABjFwUASSEAAIchAACKIgAAI4ACsCAfewABY2S3vwMAz6BQAAAkqKCQAAAkfqBQAAAfocBP8hM7MAAAAQAAGAETAF0BAAB/AfcAbAQCAIoEAgCVBAAAEwoAAAwQAQAuEQAAexECADATAQBdGQEAghkAABgeAgCYHwAApR8AAF0gBABIIQAA0yIAAKIjAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3e9f8ad6399f.js b/pr/3958/docs/search.index/3e9f8ad6399f.js new file mode 100644 index 0000000000..8ab427f4e6 --- /dev/null +++ b/pr/3958/docs/search.index/3e9f8ad6399f.js @@ -0,0 +1 @@ +rn_("AYACoBAAABP1oAAAAA1YcnQBgQKwEBlIBhigIAAAHkJlaSOAArAQEzAAAW5yhwAAAIawMB3dAAGgcAAAIoqgUAAAHkOwMCNHAAGgIAAAGHEXgAj1PAsAAAEAAQC5AXMWAYACoAAAACLlsEAi3QABZHYBAAOgkAAAJGigQAAAI6agYAAAJARkZXMBdCAAAPMEAXPyQB4AAAEAI4ACoFAAACGVZnFTgAOgUAAAIBNlaW8BgAKwUB4+AAGwICMRAAFhbwEBAPQaIwAAAQAIAQEAI4ACsBAYnQABbnIBgQKhAAAAJKag0AAAJJNrbQGGAqBAAAAkZrAAI5oAV2Vzw4CEoEAAAB/9sCAYbwABDAAFF3wAAIugcAAAIUmgUAAAGUewIBPxAAGgYAAAIxOwsCO2AAMHzQs7MAAAAQAABgACAFEEAQARBwQA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3f288e460345.js b/pr/3958/docs/search.index/3f288e460345.js deleted file mode 100644 index c562f9fcc1..0000000000 --- a/pr/3958/docs/search.index/3f288e460345.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA8yYdAAABAAEAAQABsIAjEAABc/OrHgAAAQABAAEDAbCAI34AAXPyBSIAAAEAEwACsIAjDgABaXPzqB4AAAEAAQDzggI0NgEDAPWFHQAAAQB3BCIBAQABAQGwgCOrAAFz8gwjAAABAAEJAbCAI7UAAXPypSMAAAEA84gCZGnzgAJucqcEAACHsGAjQAAUsFAe/QABoHAAACKuoGAAACJ3MiEGOzAAAAEAACEADQABHwAASh8EAFogBACrIQEAySEAAMshAAAmIgAALiIAALMiDADnIgAAPSMAAJkjAACyIwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3f28d8e8f480.js b/pr/3958/docs/search.index/3f28d8e8f480.js deleted file mode 100644 index 386a5e8b00..0000000000 --- a/pr/3958/docs/search.index/3f28d8e8f480.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA81YdAAABAAEAAYECgBjTABABoEAAACKSZ3NjgISgEAAAIK2gMAAAHVkQAQYBAAGwgCNJAAFm8hgfAAABAAEFAPQqIgAAAQAAAQEA84ACZXNjgAOgMAAAIbVlZ3Q=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3f60f60bfa56.js b/pr/3958/docs/search.index/3f60f60bfa56.js new file mode 100644 index 0000000000..fe64ea7e7e --- /dev/null +++ b/pr/3958/docs/search.index/3f60f60bfa56.js @@ -0,0 +1 @@ +rn_("AQIA8+YdAAABAAEAAQABsIAkCQABc/N2HwAAAQABAAEDAbCAJHYAAXPy5iIAAAEAEwACsIAkBwABaXPzcx8AAAEAAQDzggI0NgEDAPNIHgAAAQCWBAEBAbCAJKIAAXPyBSQAAAEAAQkBsIAkrAABc/KdJAAAAQDziAJkafOAAm5yAQYBsEAkVgABZfO+IwAAegAVALcEAACHsFAfzAABoHAAACOioGAAACNpMiEGOzAAAAEAACEADgDQHwAAGSAEAC8hAwCIIgEAqSIAAKsiAAC8IgAAHiMAAHkjAACnIwwA3CMAADUkAACRJAAAqSQAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3f643f6f10b2.js b/pr/3958/docs/search.index/3f643f6f10b2.js new file mode 100644 index 0000000000..bfd560e7ec --- /dev/null +++ b/pr/3958/docs/search.index/3f643f6f10b2.js @@ -0,0 +1 @@ +rn_("AQUDoJAAACQmoIAAACRUoKAAACQ9YnN29uIfAABQA/wAAQAhAAEAQwCEoIAAACHqoKAAACMhoQAAACSoBIQEOzAAAAEAAIwABQBhEQAAWBSHAHoZAAByIAEA7iIAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3f6f02beb5fa.js b/pr/3958/docs/search.index/3f6f02beb5fa.js deleted file mode 100644 index 60b2188e2e..0000000000 --- a/pr/3958/docs/search.index/3f6f02beb5fa.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAACEADwC+GAcA5BgAAG8dAAANHwAAHCAAADYgBQBPIAIAGCEAABohAAAeIQEAziECANchAABkIgIAaiIAAAQjAAAjAAKgcAAAH6ppcgE1IgAAAQABoEAAACMDZfOKIgAAtwABABOAAqAgAAAi8GRuI4UCoDAAACL5ZGkBBQGgQAAAIthl8p8jAAABAPOAAmNkAQ0A9NMiAAABAAEAAQABAQGwQCMjAAFl8uQiAAA4APOAAmVzVwEAgMewAAm4AAGw0CLAAO+gIAAAEp6xECM5AAEAAqkJ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3fae2149c4d5.js b/pr/3958/docs/search.index/3fae2149c4d5.js deleted file mode 100644 index 37880b5c23..0000000000 --- a/pr/3958/docs/search.index/3fae2149c4d5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsEAYtgABsDAWjwABcHUBhISgYAAAIxagcAAAIzWgYAAAIxegYAAAIxgQAQkTgQKgEAAAI11jdAEHAaBAAAAjcmIB/iIAABOCA7AgIcYAAbDgIygAAWRtcwEDAaBgAAAiym/yYiAAAAEAI4ICoCAAAB2aZm7XAgAAhrAAIkQAgLAwIRYAAQyIA/XLDAAAAQDfAhsHnAY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3fb538b4d4f3.js b/pr/3958/docs/search.index/3fb538b4d4f3.js deleted file mode 100644 index 448dc3dd37..0000000000 --- a/pr/3958/docs/search.index/3fb538b4d4f3.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoAAAACIIc/LRIQAAAQABDQD02SIAAAEAAQABAPMAAWLz/R4AAAEAkwMTgISgYAAAIQ6gQAAAH4GgMAAAIbdoAAEBCAD02SIAAAEAAQABAAEBAaAgAAAjLnI6MAAAAQAAAAAAFgAQAAAAvxDAEMEQAhEDEQQRBREGEQcRCBEJEQoRCxFSH4Qflh+lIuAiASNAI1QjdiOTIzMAA7AgILsAAWVpbzswAAABAAAIAAEAHQsIAAEDAaBgAAAjY2b2ph0AAAEAAgIgAdkBcgDXAgAAh6BAAAAjmLAAHVoAAaCAAAAjSB0ASgH8FwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3fe10d60e545.js b/pr/3958/docs/search.index/3fe10d60e545.js deleted file mode 100644 index 812d921372..0000000000 --- a/pr/3958/docs/search.index/3fe10d60e545.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYCEoFAAACILoFAAACIMoFAAACINsRAjewABDEABAQcBsEAiywABZQE+IgAAAYACoFAAACAmoFAAACLKcHUBggKgAAAAIOWgAAAAIOZlcyOAAqBgAAAiU2V0AQMA9SggAAABAAEAAQABAAEAAaCQAAAjX2w6MAAAAQAAAAAACAAQAAAA6B4CIUYiaCKhIvIiKiM0I3EjE4ACoCAAACAnZG4BBAA7MAAAAQAABwACAN8gBQDiIgEAAQQBoAAAACHIZPPdIAAAAQAbAbcFAAGHsLAjHQABoGAAACJSlAkDOzAAAAEAABYABwCNGAoAThwCAGsgAQASIQEAQyIAAGEjAQBkIwEAAQABsEAg2wABZfWIGAAAAQABAAEAAQATAAKwoCNmAAFndgE7HwAA84ACbm8BAwA7MAAAAQAABQACAOMeBADeIQAAI4ACgB7qBAABZHLnAgAChrBQIGgAAbAAHlMAARRBEjswAAABAAALAAUAxBADACMRAQCXHQEABh8BAGIgAQCjAISgQAAAIjegQAAAIjgSCALydgQAALkZ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3fe7b58fa913.js b/pr/3958/docs/search.index/3fe7b58fa913.js new file mode 100644 index 0000000000..38858051c4 --- /dev/null +++ b/pr/3958/docs/search.index/3fe7b58fa913.js @@ -0,0 +1 @@ +rn_("AQIA80geAAABAJYEE4ACsJAh6wABcnYBAQGwgCSiAAFz8gUkAAABAAEJAbCAJKwAAXPynSQAAAEA84gCZGnzgAJucg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/3ff79451d645.js b/pr/3958/docs/search.index/3ff79451d645.js deleted file mode 100644 index b11d9c3669..0000000000 --- a/pr/3958/docs/search.index/3ff79451d645.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoEAAACGwYgE3IgAAAQEBoEAAACOodPR1IgAA5gATACYAAQQBoSAAACOtYwE0HQAAAQEBoHAAACEdbfNvIgAAAQC9AAEGAPX1IAAAAQABAAEAAQABCQD0NiMAAAEAIAABAOcDAICGoBAAAB1VSGCCAQMBoAAAACMKcwEwIAAAAQQAOzAAAAEAAAsAAwC+GAcAHCAAAGQiAgBjAAOgMAAAIfNjZXL0ZhYAAAEA7QkBAGcBAACFsKAjswABoDAAACN9EYEEOjAAAAEAAAAAAB0AEAAAABQLFQsWCxcLGAu0ErUS3hKqE6sTrBOtE8gWyRbQF9EXHx1gHWEdFSAWIBcgGCBlIGYgFyKmIski+CIKIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/401d84c93e31.js b/pr/3958/docs/search.index/401d84c93e31.js new file mode 100644 index 0000000000..c92d369de5 --- /dev/null +++ b/pr/3958/docs/search.index/401d84c93e31.js @@ -0,0 +1 @@ +rn_("AYACoHAAACSksJAj/gCGaG8BggKwACG6AR6gAAAAIbtlcyMAAqBgAAAjRGV0AfkgAAABgAKgYAAAIfKgAAAAJGhpcwEDAPX7IAAAAQABAAEAAQABAAGgkAAAJFhsOjAAAAEAAAAAAAgAEAAAALUf1yE2I1kjlSPpIyIkLCRpJBOAAqAgAAAg+mRuAYACsKAkFwABoCAAACBoYWkBAwGgAAAAIyxz87cjAADXAAEAAQMAOzAAAAEAAAwABQC0IQUACiMAAIYjAQDEIwEA1yMBAPOAAnJ2AQMBsAAiqABlZPWyIQAAAQDwAAEANQATgAKg8AAAJJJsbwGAAqCQAAAkR6BQAAAkFGJs92cAAIygYAAAJICgYAAAI0OgUAAAIy2VWRc7MAAAAQAAIgARAFcNAAAlEwAAbBMAAC4ZCgAKHQMA/R4AAEEhAQCbIQAArSEAAOchAQAzIwAAVCMAAGEjAQAlJAAATiQAAFokAQBdJAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4040813cbdb5.js b/pr/3958/docs/search.index/4040813cbdb5.js deleted file mode 100644 index e8845fda5a..0000000000 --- a/pr/3958/docs/search.index/4040813cbdb5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA81YdAAABAAEA8wABZfQZHQAAAQABAAEAAYACgBjTABABoEAAACKSZ3MBAgA7MAAAAQAAFAABALQeFAATgQOgEAAAFpegIAAAGMZjZW/zgAJhbscAAACFoDAAACOuoBAAACCtoDAAAB1ZEgEGAQ0LAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4084214efade.js b/pr/3958/docs/search.index/4084214efade.js deleted file mode 100644 index 9025ab3981..0000000000 --- a/pr/3958/docs/search.index/4084214efade.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoBAAAB1QsCAgIgABYXABAgDz0RgAAP8FAQABAAA7MAAAAQAABgACANISAQD2FwQA84ACZG4BCQGgQAAAIwNl84oiAAC3AAEAAQIBoIAAACNadvK5IAAAJALzAwFlAc8eAAD3AACAhbFAI7MAARExAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/40b48c0a897e.js b/pr/3958/docs/search.index/40b48c0a897e.js deleted file mode 100644 index 1642df444b..0000000000 --- a/pr/3958/docs/search.index/40b48c0a897e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACGooBAAAB4yaXQBAAGgEAAAHjFvOzAAAAEAAAYAAwDsEgMAjxYBAPsiAAABgAKwECI/AAGgIAAAInZhbxOCArBwIz4AAW1xE4ACoOAAACN0bHATgAKwMCIDAPJlbwGCAqEAAAAjr6DQAAAjm2ttE4ACoGAAACIiYWsBgQKwgCMHAAGggAAAIwlldwGCArAwIiAAAbBAIlYAAXBz8wABdPPwDAAAAQABAAGAAqEAAAAjkaCgAAAi/2VsAYACsCAi0QABoFAAACH6ZHC3+AAAjLBgIfsAAaCQAAAjp6DwAAAjc7CgIs0AAZW1BzswAAABAAA8AAQACQ0DAMoQAgAnETQAViAAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41716dd9a16e.js b/pr/3958/docs/search.index/41716dd9a16e.js new file mode 100644 index 0000000000..7ed7fe494d --- /dev/null +++ b/pr/3958/docs/search.index/41716dd9a16e.js @@ -0,0 +1 @@ +rn_("AYACoEAAACFDsDAkFwABcXITAAKwABMuAAFlc/c9GQAA4gUEAhgApQAGAGMBAQQBsEAirwABZfI7HgAAAQABgAKwoCPgAAGggAAAIzNsb9MAhLBgID4AASwAAfNFDQAAXRJqAw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41887e3f966a.js b/pr/3958/docs/search.index/41887e3f966a.js new file mode 100644 index 0000000000..82992cc006 --- /dev/null +++ b/pr/3958/docs/search.index/41887e3f966a.js @@ -0,0 +1 @@ +rn_("AQABoCAAABcwZQFaDQAAAQIBoEAAACEeZTswAAABAAAGAAIAMRcEALUiAQABAADzEA0AAC8EQBABBAGgAAAAIw1k8qMiAAABACOCA6CgAAAkR6BAAAAjCmFjZSOBArCwI8YAAWVptwEAAIWg0AAAJEARBUDyJhAAAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/419b13236245.js b/pr/3958/docs/search.index/419b13236245.js new file mode 100644 index 0000000000..9a35800bc1 --- /dev/null +++ b/pr/3958/docs/search.index/419b13236245.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAAAcAAwAhCgEADh4DANYiAQABCQDzVSMAAAEAAQDHAAAAhaAAAAAkkKCAAAAjKaAAAAAgNwSBQjswAAABAAAhAA0AfAEAAD8EBgBJEwIA9RMAAHEYAACEGAAAixgCAJMYAABRGQEAnyEFAMAhAwDhIQEAkSMBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41aac965e2a0.js b/pr/3958/docs/search.index/41aac965e2a0.js deleted file mode 100644 index a0ba7defd2..0000000000 --- a/pr/3958/docs/search.index/41aac965e2a0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("ARAA9HkjAAABAAEAAQABBQA7MAAAAQAACAADAHIdAQAgHwUATiIAAAEDAqBAAAAieKAgAAAh/mh1AR8fAAATgQKwMB6lAxZlaQEEAPMXIwAAagAdAAECAPS1EwAAAQABABILAQAA9doKAACDAgEAAQABAAEBAPbjGQAAAQBlCAEAOQABAPcGAIDHsEAjnAAUAAlmAfOAAmV4") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41b83f03dafd.js b/pr/3958/docs/search.index/41b83f03dafd.js deleted file mode 100644 index b5dd5eb2c8..0000000000 --- a/pr/3958/docs/search.index/41b83f03dafd.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQ0A9NkiAAABAAEAAQATAAOgYAAAIFKwUB9tAAFibnI6MAAAAQAAAAAADQAQAAAAXRGlEqYSpxKoEvAS8RL9Hv4ehh+HH5EiKCMpIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41bd18f1ab91.js b/pr/3958/docs/search.index/41bd18f1ab91.js deleted file mode 100644 index 0a4ac2e4e7..0000000000 --- a/pr/3958/docs/search.index/41bd18f1ab91.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA82sTAAABAAEAAQEBoIAAACJ6dQFqEwAAI4ACoBAAABNpMzYBgAKgAAAAHTKwcCGrAAF1eAECAPUdIAAAAQABAAEAAQDzAQFpOzAAAAEAAAgAAgDSEAAAYRMHAEOAA6BgAAAfnqAwAAAgqWVsdAECADswAAABAABjAAIA0RAAAP4SYgABBwGgQAAAIwRl8ughAACmAAEEAPNbIgAAVQABAAECADswAAABAADwAAEAXBvwAAECADswAAABAADwAAEAaxrwAMMAhKAgAAAWbqAAAAAgsJAQATswAAABAADxAAIA5QwAAJ8O8AABAQD0GR0AAAEAAQABAAEAADswAAABAAAQAAEAEhEQAGOAA6AwAAAYh2FldPOAAnJ004CEsPAjVwABAQwBAQABoIAAACOkZvKiEgAACBABBwDzciIAAAEAAQAjgAKgUAAAICVhb/MCAmZz9sMQAABMAAEAAQDQB5EHE4ACsBAOnQABYW8BAgGgMAAAHvZhOzAAAAEAAAgAAgDFFwYAvh8BAAEGAbCQI2EAAWMB6iAAAAEJAaBAAAAjqHQBWyMAAPMBAmJ69LkSAAABAOkMbQLzgAJudAEBAqAgAAAfJrAgHycAAWFi8/sSAAABAAEAAQAA9PkSAAABALUM/wAjgAKgkAAAInlkdmMAA6BQAAAiSGNucvPKIgAAMgABAAEDADswAAABAAAFAAEAEx0FACOAAqAwAAAdEm95AQIAOzAAAAEAAAUAAgDoIgIAjiMCAPMIAW07MAAAAQAABgADADwgAAD/IQIASyMCAAEDAbCAI7UAAXPypSMAAAEAE4ECoAAAABFcbnPzgAJpcnf/AACMoDAAACBfk5GPOzAAAAEAAIECBgAxBAAAXgVyAekMAQCYDwIA+BAAAFgUBwE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41e099a13d23.js b/pr/3958/docs/search.index/41e099a13d23.js new file mode 100644 index 0000000000..6a82f784f1 --- /dev/null +++ b/pr/3958/docs/search.index/41e099a13d23.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAABYACgBPEwEA/hYBABsXAgB+GQEAHSEAALQhBQAKIwAAhiMBAMQjAQDXIwEAIwACsCAT7wABYXL14B0AAMkDAQABAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/41e7aad25180.js b/pr/3958/docs/search.index/41e7aad25180.js new file mode 100644 index 0000000000..3d9083cab3 --- /dev/null +++ b/pr/3958/docs/search.index/41e7aad25180.js @@ -0,0 +1 @@ +rn_("AQEA80QhAAABAAEAI4ACoSAAACSNbnQTgAKwICBAAQdhbwEIAPNMIwAAWAABADcAAAGGsGAisQABsGAj9QABoHAAACCQoHAAACMWLEAGOzAAAAEAAAsABQAUFwMAaxgBAOQfAQD6IQEA0CIBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4227de3d011b.js b/pr/3958/docs/search.index/4227de3d011b.js deleted file mode 100644 index a88c7be0eb..0000000000 --- a/pr/3958/docs/search.index/4227de3d011b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEDoDAAAB+LoCAAABakoDAAABjPZHN0OzAAAAEAAAUAAgAFDQAABCEEAAEBAPRoIgAAigA4AEcAIwECsEAi4gABZWnzEiEAAAEAMAEjgAKgAAAAHztubxMCAqBgAAAiymlv8mIgAAABAPMAAWUBLx4AAAECAbAwIp8AAXXymh0AAKYCY4ADoAAAACHzZGZuAQYA81siAABVAAEAAQcAOzAAAAEAAAgAAQBUHwgAAQwA9JgiAAABAAEAAQAjAAKgQAAAHW9laTswAAABAAAHAAMA6wwBAJsPBABqIwAAY4ADoDAAABZ1YWVpdwEAgIWgUAAAIqwIcAE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4269cad0489c.js b/pr/3958/docs/search.index/4269cad0489c.js new file mode 100644 index 0000000000..342b62a1bb --- /dev/null +++ b/pr/3958/docs/search.index/4269cad0489c.js @@ -0,0 +1 @@ +rn_("AQABoDAAACCIbgFAEQAAAYECoAAAACGMoAAAACGNNDYBAwGwgCSsAAFz8p0kAAABAAEDAqBQAAAhFKBwAAAkMGNmATsUAAAzAAOAEc0ZMAFsbnPzBwkAADkCuRYBAgGgAAAAIulz8rEiAAABAAENAPTOIwAAAQABAAEA8wEBYvPMHwAAAQC2AwEDAaBgAAAkXGb2aR4AAAEAEgIiAfgBdwDzgANhZXX3AACAhaAAAAAjfgCoBQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/43245fb32e52.js b/pr/3958/docs/search.index/43245fb32e52.js new file mode 100644 index 0000000000..06c961f807 --- /dev/null +++ b/pr/3958/docs/search.index/43245fb32e52.js @@ -0,0 +1 @@ +rn_("AQYBsEAkVgABZfO+IwAAegAVABMEhKBAAAAi36BwAAAjoqBgAAAjaRIgAjswAAABAAAcAAoAGSAEAC8hAwCpIgAAqyIAAB4jAACnIwwA3CMAADUkAACRJAAAqSQAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4341614c7e93.js b/pr/3958/docs/search.index/4341614c7e93.js new file mode 100644 index 0000000000..03fa0162c8 --- /dev/null +++ b/pr/3958/docs/search.index/4341614c7e93.js @@ -0,0 +1 @@ +rn_("AQUDoJAAACQmoIAAACRUoKAAACQ9YnN29uIfAABQA/wAAQAhAAEAQwGEoIAAACHqoKAAACMhoQAAACSoBIQEAXoZAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4363dd5e3231.js b/pr/3958/docs/search.index/4363dd5e3231.js new file mode 100644 index 0000000000..30e80fd98c --- /dev/null +++ b/pr/3958/docs/search.index/4363dd5e3231.js @@ -0,0 +1 @@ +rn_("AQABsIAj4gABawHpIgAAAQIBsHAjFAABaPLbIgAAAQABBADzJCEAAAEAAQABAAD12CEAALsBAQDQAAEA9wAAAIWhAAAAJIoYCAY7MAAAAQAAEQAGAEQNAABMFwEAUxcAAEwZAABlHwoAsSIBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/439b341c8f3c.js b/pr/3958/docs/search.index/439b341c8f3c.js deleted file mode 100644 index f244514bac..0000000000 --- a/pr/3958/docs/search.index/439b341c8f3c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcA9CAhAAABAAEAAQABCQD0YSMAAAEAAgABAFMAhKBQAAAiYqBQAAAfkQQBA/LqIAAAHwABAAGgMAAAHz5m9YARAAAtEYIAbQAUAAGJAqBAAAAjjaBgAAAjnmFyAYgCoEAAACNtsAAipgBSZXMBgQKgAAAAGMqgAAAAHUNkckOBA6BgAAAjeKBgAAAgR2NtcBOAAqBQAAAh2GFlAQ0BoEAAACNgZfTXIgAAWQABAAEAAYUCoEAAACNeoGAAACOBYXIBgAKgIAAAISSgEAAAIFlhcycAAIGFoSAAACOuoEAAACHyoNAAACN4oFAAACJxCNAB84ACY3ABAwGgMAAAIm5j8lcgAAABAAGAA6BQAAAiNaBQAAAiNrBgIm8AAWJzdvOAAmRyAQUBoGAAACN2YjowAAABAAAAAAAJABAAAAAZIRQiFSIWIqMipCL2IhsjISMiIwECAqAwAAAiNKBAAAAibWl184gfAAABAAEAE4ACoAAAACBkZGz3ewAAjKCwAAAiG6BgAAAigRXVDzowAAABAAAAAAAVABAAAADFCcYJxwnICYwWwhfDF3sYLB2AHyAiISIqIisiViJXIs0iziIrIywjPiM/Iw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/43b7fb606a54.js b/pr/3958/docs/search.index/43b7fb606a54.js deleted file mode 100644 index 11e4edc43e..0000000000 --- a/pr/3958/docs/search.index/43b7fb606a54.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQCFoJAAACNvoEAAACKyoEAAACJ4oGAAACMLoCAAACH+mAAK8h8fAACCACMBAqBgAAAgTmhz9uIQAAABAJoMAQDiAg0AAQIBsFAiUACVY/LcHgAAtgDHAAAAhbCQIo8AAaBAAAAjhqBgAAAjhgwgCvURCwAAAQDAAagQ5gQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/43e082e21690.js b/pr/3958/docs/search.index/43e082e21690.js deleted file mode 100644 index 520a82cf17..0000000000 --- a/pr/3958/docs/search.index/43e082e21690.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoJAAACJYYwECIgAAI4ECgCOCABABZHQBBQGgUAAAIpFmAdceAAABgAKgEAAAI06gcAAAIMl0dpcBAICFoNAAACL6oBAAAAsQQYEB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/44329de3eb3b.js b/pr/3958/docs/search.index/44329de3eb3b.js new file mode 100644 index 0000000000..24f3ef74c7 --- /dev/null +++ b/pr/3958/docs/search.index/44329de3eb3b.js @@ -0,0 +1 @@ +rn_("AQABoCAAACESZgFkHwAAEwACsAAZfAY6ZHI7MAAAAQAAPwAEAEsXAACfGB4AMx4AAP4eHgAjgAKwkCPEAAFhZQEBAbBwI7QA8mkBLxQAAIcBAIDFF5Vy9X5ZoAAAABQ6oGAAACP/AAIgig==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/445226589837.js b/pr/3958/docs/search.index/445226589837.js new file mode 100644 index 0000000000..b84bbb6754 --- /dev/null +++ b/pr/3958/docs/search.index/445226589837.js @@ -0,0 +1 @@ +rn_("AQQBsCAjkQABdfRYFwAAAQABAAEAAYICoEAAACK5oEAAACK6NDYBAwGwkCSUABNlAXggAADzhAJhaQEEAaAAAAAkinIBwBgAAPOAA2Nlbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/446a6142ba37.js b/pr/3958/docs/search.index/446a6142ba37.js deleted file mode 100644 index cd43a09f43..0000000000 --- a/pr/3958/docs/search.index/446a6142ba37.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA82sTAAABAAEAAQEBoIAAACJ6dQFqEwAAI4ACoBAAABNpMzYBAgD1HSAAAAEAAQABAAEA8wEBaTswAAABAAAIAAIA0hAAAGETBwBDgAOgYAAAH56gMAAAIKllbHQBAgA7MAAAAQAAYwACANEQAAD+EmIAAQcBoEAAACMEZfLoIQAApgABAgD0GR0AAAEAAQABABOAAqAQAAAgsHJ0U4ADsPAjVwABYWtyAQMBoDAAAB72YTswAAABAAAIAAIAxRcGAL4fAQABAQKgIAAAHyawIB8nAAFhYvP7EgAAAQABAAEAAPT5EgAAAQC1DP8AI4ACoJAAACJ5ZHbzgAJucgEDADswAAABAAAFAAEAEx0FACOAAqAwAAAdEm95AQIAOzAAAAEAAAUAAgDoIgIAjiMCAPMJAW07MAAAAQAABgADADwgAAD/IQIASyMCAHdvAACLoDAAACBfsIAhqwABk4GPOzAAAAEAAHwCBAAxBAAAXgVyAfgQAABYFAcB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/44d256cc85af.js b/pr/3958/docs/search.index/44d256cc85af.js deleted file mode 100644 index 94118bc1d9..0000000000 --- a/pr/3958/docs/search.index/44d256cc85af.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsDAe9wCroBAAABfWZW8BAAGgIAAAID5mAZkeAAATAAKwABjbBg5kcjswAAABAAA/AAQAtRYAAAEYHgBwHQAANB4eACOAArCQIs8AAWFlI4ACoGAAACMGdHoBAwDzdhYAAAEA6QwjgAKgAAAAFpdxcgECADswAAABAAAUAAEAtB4UAHcAAACHsCAelgABoCAAABjGoCAAAB6YoFAAACB0FFER9y4EAAABAAIepgBZAAEAAQBjgAOgYAAAIENibHQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/44ed259685c1.js b/pr/3958/docs/search.index/44ed259685c1.js deleted file mode 100644 index 061d64f740..0000000000 --- a/pr/3958/docs/search.index/44ed259685c1.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA9G4dAACwARQDlAABAAA7MAAAAQAACAAEAF0RAAClEgMA8BIBACgjAQAXAAAAhqBgAAAjY6AQAAAYIaBQAAAjAKAwAAAgQ6EgAAAjiCjBAjowAAABAAAAAAASABAAAAC+EsYSdRZ6FpkWhximHacdJh4nHigeKR4qHise+B6pH8kgoiIUI/OAAmVv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/44ffd174f099.js b/pr/3958/docs/search.index/44ffd174f099.js deleted file mode 100644 index 56a2cbd79b..0000000000 --- a/pr/3958/docs/search.index/44ffd174f099.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoDAAACLHbwGBIgAAAQIA844jAAABAAEA8w0BbfNLIwAAAQABAAGAAqCgAAAi+aAwAAAh125yAQABoJAAACLJaTowAAABAAAAAAAIABAAAACZEiwfLR84Hzkf+iIYI1YjWiPzAIQ4AAI6MAAAAQAAAAAACQAQAAAAthC3EKYfciJzInQi7iJJI0ojpCM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/45909cb8e51a.js b/pr/3958/docs/search.index/45909cb8e51a.js new file mode 100644 index 0000000000..73bd3396fa --- /dev/null +++ b/pr/3958/docs/search.index/45909cb8e51a.js @@ -0,0 +1 @@ +rn_("AQEDoDAAACBcoCAAABc6oDAAABlwZHN0OzAAAAEAAAUAAgBcDQAA2SEEAAEBAPRZIwAAkAA5AEcAIwECsEAj1wABZWnz5yEAAAEASwEjgAKgAAAAIApubxMCAqBgAAAjv2lv8jYhAAABAPMAAWUB+R4AAAECAbAwI5MAAXXyXR4AALcCY4ADoAAAACLTZGZuAQYA80wjAABYAAEAAQcAOzAAAAEAAAgAAQAlIAgAAQwA9IojAAABAAEAAQAjAAKgQAAAHjJlaTswAAABAAAHAAMAQg0BAAIQBABjJAAAY4ADoDAAABcLYWVpdwEAgIWgUAAAI6AIcAE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/461ec172cc75.js b/pr/3958/docs/search.index/461ec172cc75.js deleted file mode 100644 index e8ba3c6f46..0000000000 --- a/pr/3958/docs/search.index/461ec172cc75.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA9FAjAAABAAEAAQAjAAKwUCJQAJVjZfPcHgAAtgAgAAGBAqCAAAAji6BgAAAjnWRzI4WEoMAAACM9oNAAACOnsJAjgAApAxAIAQIDsFAiLAABoGAAACLBoDAAACIEYWNw9V4RAAABACMMAQABACOAAqAgAAAWamV5AYADsCAjBQCHoLAAACLDoNAAACOaZmd0AQYBsJAjYQABYwHqIAAAAQkBoEAAACOodAFbIwAA8wMCYnr0uRIAAAEA6QxtAgECAPRcIgAAAQABAAEAAQQA9V0fAAABAAEAAQB4A/MCAmV69K0SAAABAPEQAQABAAD1oA8AAAEAAQABAAEAY4ADoDAAABZ6YWVp84ADZG1uAQEBsAAhyABUZPXdIAAAAQDlAAEANQAjgAKgEAAAEqxucxOAAqEQAAAjWW91AQACoHAAACJ7oEAAACJ6YWUBIR0AAAEAAbAwH4YAAWz28hcAAMkAigQBAAEAewTnFwAAibCQIOcAAaBAAAAYgpFIWQFTBAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/465608bdbb9f.js b/pr/3958/docs/search.index/465608bdbb9f.js new file mode 100644 index 0000000000..e44ce4f6e7 --- /dev/null +++ b/pr/3958/docs/search.index/465608bdbb9f.js @@ -0,0 +1 @@ +rn_("AQIA84sYAAABAAEAAYACsIAkIwABsLAkYQABYWwThgKwICHhAAF0dQEGAbDAJF8AAWny1R8AAAEAlwEAgIWgYAAAIYSgcAAAIYWkAQgBgAKwUCMGAAGggAAAIFxhZQGAArBAIogAAaBwAAAikG9zAQIA9MYhAAABAAEAAQAjgAKwABAMAAFkdBOAAqEQAAAkT25ypwIAAIegQAAAE1igIAAAEUawMCBCAAGwYCGZAAExKAM6MAAAAQAAAAAADgAQAAAA8gkzEQQXMBeFGIYYhxjmHecd6B01IDYgkyCUIJUgAQACsDAhFQHWsCAgTAJDYnUBeh8AACOEArAwIEsCQ2RzI4ACoCAAABM7aXQBDgD0cSQAAAEAAQABABOAArGQJKoAAWFlARABoEAAACRZZfTMIwAAXAABAAEAAQMA8zoRAAABANUSAQMBsDAjmwABdPLwIQAAAQABBAD1ySIAAAEAAQABAAEA84ACb3IBAgD1XSAAAAEAAQABAAEAMwSEoEAAACE+sMAkPgABMAAMAXITAAABBwA7MAAAAQAABQACANMhAQDIIwMAE4ACsDAXIAhZY3TzgIQRQQABAgGwwCQbAAFl8lMZAAABACMCAqBAAAAhHWVn89YRAAAuDJEDAYADsJAi6gGpoGAAACLysCARKAABZG50AQEA9B4LAAABAEEMcgYBAwGgcAAAIzVn8kERAAD7AgGBAqCAAAAkg6BgAAAklWRzE4gDoNAAACSfsJAkeAApYm11AQ0A9MgjAAABAAEAAQABAQGwQCQbAAFl8tkjAAA9APOCAmVz84ACZW8BAAGgQAAAISFlAQoeAAAjgQKgUAAAIHdrdNf9AQCNoJAAACKNsGAgIQABn4lHOzAAAAEAAJIACgBhAQAAagEBAPgMAAAbEQMAcxMBAGsXAQBsHoEAph8AAPYfAQBIIAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4680e9be0a9c.js b/pr/3958/docs/search.index/4680e9be0a9c.js deleted file mode 100644 index 69f873b026..0000000000 --- a/pr/3958/docs/search.index/4680e9be0a9c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9HkjAAABAAEAAQATgAKgMAAAIGpveQEDAbAwIqcAAXTyGyEAAAEAAQQA9ekhAAABAAEAAQABAPOAAm9yAQEA9YwfAAABAAEAAQABACOAA7CAItEAAaAAAAAgJGZucmcEAADJoFAAACI1oJAAACLJoDAAAB+zoFAAACI2sMAjRQABsGAibwABgEwgDzowAAABAAAAAAAiABAAAACZEpsSzBL2EtYYph7qHiofKx8sHy0fOB85H1AfUR+tIPog+yD8IP0gICEhISIhIyHlIeYhWyKwIrEi5iL6IhgjNSNWI1oj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/46a3446fd34d.js b/pr/3958/docs/search.index/46a3446fd34d.js new file mode 100644 index 0000000000..79146fe12a --- /dev/null +++ b/pr/3958/docs/search.index/46a3446fd34d.js @@ -0,0 +1 @@ +rn_("AQABsCAajwamafbuDgAAAQABAKcQgQDxAgGEArAAIZwAAbAwIs4AAXN0EwMCsIAi0AABZmgBZREAAMcAAACFoFAAACMpsBAgjQKJoDAAABqQFCAG93AEAACxBgYO4QQBAJ4BBwI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/470dd81d068e.js b/pr/3958/docs/search.index/470dd81d068e.js deleted file mode 100644 index b66203c38f..0000000000 --- a/pr/3958/docs/search.index/470dd81d068e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoIAAACOxYQEpCwAAAYICoBAAAB8poKAAACORYW8BgwKgIAAAICSgAAAAHxtkcxOBAqBAAAAe3WNlE4ACoBAAABbLZnNHAwAAx7BQGIMAAaAQAAAjNbAwEqEEM7BQI3AAOgBFhAn2cwQAADkLAQABAEcScgA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4740f61341aa.js b/pr/3958/docs/search.index/4740f61341aa.js new file mode 100644 index 0000000000..7d64c92fd6 --- /dev/null +++ b/pr/3958/docs/search.index/4740f61341aa.js @@ -0,0 +1 @@ +rn_("AQUA85kkAAABAAEA8wABdAHnEQAAAQMA83okAAABAAEAAQACoEAAACOjoFAAACRIaXL3VhEAAKwAAQBqEiwAAQABAOMAhKAgAAAjo2CAAvKHIgAADgATgAKgMAAAFEJucw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/476e3136d3a7.js b/pr/3958/docs/search.index/476e3136d3a7.js deleted file mode 100644 index 900f16cdd4..0000000000 --- a/pr/3958/docs/search.index/476e3136d3a7.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBoHAAACHnZjswAAABAACqAAMA2RIAACMYVwDDH1EAAYACoFAAAB8uoLAAACLCYWwBAwD3ryAAAGsBCQABAAEBAQABAAEAADswAAABAAAyAAEAdxMyAOcBAACFoEAAAB0pCqABOzAAAAEAAAkABACHHQEAQB8BACggBAAdIgAAAQQA82wdAACwAWsEE4ACsNAinwABZXYBBQDz4B4AAAEAAQDzAAFzOjAAAAEAAAAAABAAEAAAAOMM5AyaDpsOnA7fF+AXTx95HzEgMiAzIDQgNSDIIQsiHCJjAAOgMAAAI2pjZHI7MAAAAQAADAAGAOAKAACsCwMANR0CAN0gAQDDIQEA+SEAABcBAACFoDAAABDUsDAS3AABsIAfFwGsEFgE89YDAADmCwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/47ab8847c43f.js b/pr/3958/docs/search.index/47ab8847c43f.js new file mode 100644 index 0000000000..0b7e4a67b2 --- /dev/null +++ b/pr/3958/docs/search.index/47ab8847c43f.js @@ -0,0 +1 @@ +rn_("AQAA9HUTAAABAAwNAgEBCQGggAAAJJxmAZ4jAAAjAAKgIAAAIBFpdQGQIAAAAQIBsIAkQgABZvLnHwAAAQATgAKgoAAAJIBydPOAAmFzY4ADoJAAACNrZHR2") \ No newline at end of file diff --git a/pr/3958/docs/search.index/47ffe40f22fb.js b/pr/3958/docs/search.index/47ffe40f22fb.js new file mode 100644 index 0000000000..d132f27caa --- /dev/null +++ b/pr/3958/docs/search.index/47ffe40f22fb.js @@ -0,0 +1 @@ +rn_("AQIA8wAhAADdAQEAAQABsGAkIAABZQFxIAAAQwEDsJAjkwABoDAAACASY25z9FMRAADvDJgBAQBnAACAhqBwAAAhGKAQAAAXQ6BgAAAjVLBwIesAAQ1gAg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/481ca80c2321.js b/pr/3958/docs/search.index/481ca80c2321.js new file mode 100644 index 0000000000..71c15efd85 --- /dev/null +++ b/pr/3958/docs/search.index/481ca80c2321.js @@ -0,0 +1 @@ +rn_("AQIBoAAAACE+cwFwGQAAAQYA9MYhAAABAAEAAQABAgD0cSQAAAEAAQABAAECAaBAAAAhImUBmB8AABcBAICFoCAAACBBoCAAAB3ysEAhGQABEFQEAQkA9NMjAAABAI0AAQBDgQOg0AAAJKiwcCGrAAFjbHMBCAD0GiMAAAEACAEBANcGAICHsJAhqQABsNAkGQABBUhh") \ No newline at end of file diff --git a/pr/3958/docs/search.index/48572ef2ab6c.js b/pr/3958/docs/search.index/48572ef2ab6c.js deleted file mode 100644 index 9af909f5ec..0000000000 --- a/pr/3958/docs/search.index/48572ef2ab6c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoEAAACMEZfLoIQAApgABAQGwwCNrAAFtAbAfAADzgAJudgEFAPR5IwAAAQABAAEAE4ACsDAiaQD2ZHJnAAABhaBQAAAhD7BgIk8BNrAADPgCuBQBA/ZnHQAAcwPUAIoAtwAXAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4865697d4929.js b/pr/3958/docs/search.index/4865697d4929.js deleted file mode 100644 index db2d4c6cad..0000000000 --- a/pr/3958/docs/search.index/4865697d4929.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQAOzAAAAEAAA4AAwDEEwsApx4AAKwfAQABBgD00CAAAAEAAQABAAEAAbAgGecGemn2kA4AAAEAAQA6EH0AzwITAAKgMAAAGehzdPTeCgAAahIBAJEBE4ACoLAAACMAa3PTgISgQAAAIu4AoAY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/488ff48e4f6b.js b/pr/3958/docs/search.index/488ff48e4f6b.js new file mode 100644 index 0000000000..34e2ed0b41 --- /dev/null +++ b/pr/3958/docs/search.index/488ff48e4f6b.js @@ -0,0 +1 @@ +rn_("AQEA86wiAACYAP0AAQEBoDAAACCGcAFxHwAAY4ADoHAAACMrYWVvAYACoHAAACMzoFAAACOgbm9jgAOwoCPgAAFsb3Q=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/48d63e1c38ba.js b/pr/3958/docs/search.index/48d63e1c38ba.js deleted file mode 100644 index 50e76ed79b..0000000000 --- a/pr/3958/docs/search.index/48d63e1c38ba.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAAAUAAgDoIgIAjiMCAPMAAW06MAAAAQAAAAAABwAQAAAAgRg8IP8hACIBIksjTCNNIwEAAPT+EAAALAxkAKcB84ACcnMjAAOgMAAAHV+wMBbAAAFhZXLzHSEAAFUCBQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4947b83268c9.js b/pr/3958/docs/search.index/4947b83268c9.js new file mode 100644 index 0000000000..0a217b953d --- /dev/null +++ b/pr/3958/docs/search.index/4947b83268c9.js @@ -0,0 +1 @@ +rn_("AQEBoGAAACP6YgEbIQAAJwAAAYWgQAAAIpOwcCN9AO+gMAAAI3qgUAAAI+UYIQg7MAAAAQAABwACAOwRBgDtHQAAAQIBoEAAACEeZTswAAABAAAGAAIAMRcEALUiAQDzAAFr8iYQAAABAPOAAmNz") \ No newline at end of file diff --git a/pr/3958/docs/search.index/49638df42f97.js b/pr/3958/docs/search.index/49638df42f97.js deleted file mode 100644 index 15bb480e47..0000000000 --- a/pr/3958/docs/search.index/49638df42f97.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoFAAACJqsAAdpQGhZXMBgAKgEAAAINmgEAAAIkVuegGJAqAgAAAjbqAwAAAjfWlwAYUCsDAibACLsCAiMwCVYnUjgAKwICBBAclpbPcAAACFsCAfewI3EgEMOzAAAAEAABUACgCSEQYAcBYEANcWAgCvHgAAuCAAAIkiAACAIwAAiyMAAJ0jAACpIwAAAYYCoJAAACOUoFAAACMZYncBgAKgAAAAEtegkAAAI0hkbAEHAPO9IQAAfAEBAAEEADswAAABAAAFAAEANiAFAPMCAWU7MAAAAQAACwAFAHwWAQAOHQMA0yEBAO4hAQCnIgEAAYECoEAAACNtsAAipgBSZXOTgISwYB9rAAGgAAAAEvgQQGABgQKwUCO1AAGgEAAAGKRndAEEAaAAAAAiF3P0Kx0AAJQEAQABAPMAAmV08scgAAABAAECADswAAABAAAKAAIAmx0JADAiAAATgAKgAAAAEvdyeAEDAPQeIQAAAQCwAAEAI4ACoLAAACLYbnKnAwAAhrAwEsMAAaAgAAAXxBgIBzswAAABAAArABQAPQQCAKwJCQCcDAEApRgAALQYAADlGAEAeB0BAPoeAgBDHwAAcR8BAD8gAACvIAAAGyEBABoiAAAjIgEAJyIAAN4iAQAlIwIAaCMBAKUjAQABAwGwYCIyAJRi8nofAAA3AucZAACMsEAjcgAFoJAAACJpoGAAAB7SsJAh5QABoKAAACLHoDAAACKMOokfOjAAAAEAAAAAACEAEAAAABYNFw0YDRkNGg2qEKsQrBCjEusShBa4Fr4W0BjaGJQdzh7THt8e4B7hHuIeCB8PHz8fgh+xH7QfQiCpIusi7CL+IgIj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4970979c248f.js b/pr/3958/docs/search.index/4970979c248f.js new file mode 100644 index 0000000000..7250c704c1 --- /dev/null +++ b/pr/3958/docs/search.index/4970979c248f.js @@ -0,0 +1 @@ +rn_("AYACoAAAABEfoAAAABEgNDYBgAKwICO2AAOxMCSXAAFidEOAhLAwIEgAAaAgAAAjK7AAERsAARBBIAGAAqBgAAAirKBgAAAirWV0AQYA85kkAAABAAEAAQMA83okAAABAAEA8wUCcHMBhyIAAAEDAPS7HwAAAQABADUEAQUA9QUhAAABAAEAAQABAAEBAbCAJKIAAXPyBSQAAAEAAQkBsIAkrAABc/KdJAAAAQDzgQJkaQEDADswAAABAAAJAAQAuB8CAGogAADzIgIAbiMCAPdgAAOLsEAgMgABsDAfvgABoEAAACA0dEoD88rhoGAAACG+31ECOzAAAAEAAAoABQApEwIAbxMCAH0fAACWIgEARSMBAAGAhLBgI+oAAbAwIzkAAbAwIzsAAaBwAAAkVAgAB0MDBKCQAAAkJqBAAAAjS6CgAAAkPWJlc3Y6MAAAAQAAAAAACQAQAAAA4h84IDkgOiA7IDIjLiQvJFAkUSQTgAKgEAAAIIZjdNcIAADIoKAAACQDoEAAABNZsBARHQABsHAitQABQACRD/R5AQAAAQBXEA8R") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4982831b589e.js b/pr/3958/docs/search.index/4982831b589e.js deleted file mode 100644 index 9f091cbe70..0000000000 --- a/pr/3958/docs/search.index/4982831b589e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA82wdAACwAWsEAQUA8+AeAAABAAEA8wABczowAAABAAAAAAAQABAAAADjDOQMmg6bDpwO3xfgF08feR8xIDIgMyA0IDUgyCELIhwiYwADoDAAACNqY2RyOzAAAAEAAAwABgDgCgAArAsDADUdAgDdIAEAwyEBAPkhAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/49b3f0e2ca60.js b/pr/3958/docs/search.index/49b3f0e2ca60.js new file mode 100644 index 0000000000..540f9a7772 --- /dev/null +++ b/pr/3958/docs/search.index/49b3f0e2ca60.js @@ -0,0 +1 @@ +rn_("AQUA85giAAABAAEAJwAAAYewgCKpAYyggAAAJKWgMAAAIySgAAAAI72gMAAAIQGgQAAAI1+wAQ46MAAAAQAAAAAAFAAQAAAAOhl9GbgfuR+6H+YfWSBaIFsgaiCYIfMi9CL1IhgjGSNuI28jcCPGI8cjE4ACsBATYwABZGk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/49cbfe35b644.js b/pr/3958/docs/search.index/49cbfe35b644.js deleted file mode 100644 index 209c8afb0e..0000000000 --- a/pr/3958/docs/search.index/49cbfe35b644.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAAUAAgBMHQMA9iEBAAEJAPNkIgAAAQABAPMBAnBzOzAAAAEAABAABQDPEgIA7RcCAPUXAADKIAUA6yADAAGEAqAAAAAi+qBAAAAh12Rl84ACcHIBBQA7MAAAAQAAUQABAMMfUQABBwGgQAAAI3diAQIjAAAThQKwICHgAAFkbVOAA6CgAAAjXGNrcwGAArAgGeUAAaCAAAAg2WV0AYACsCAZ4wABsQAjeQABZXjDAYSgIAAAEqCggAAAIfMAkAM7MAAAAQAAEQAHAN0KAAAmCwIA5BIBANMTAwATHQUAKR0AALAhAAAzgAOggAAAIy9lb3IBgQKgcAAAIvugMAAAGOJkdCOAA6BAAAAjdaAwAAAWvmFlcgECAbBwIygAAXPyCx8AAAEAAQEBoDAAACMVdwEPIgAA84ECZWkjgAKgUAAAI0hscvMAAmV09jsEAACMCwEAxxIBAL8AAQUA9PogAAABAAEAAQATgQOgIAAAHTGgkAAAIRpqbHMBgwKgUAAAIRCwMCM+AAFjcAGFAqBwAAAjHKAwAAAidWVzEwADoEAAAB1toCAAABZvYmVy9egMAACsAgEAAQABAEMAhLBQIiwAAaBgAAAiwaAwAAAiBAXAADswAAABAAAGAAMAJREBAF4RAQCCHQIAAYEDoFAAACHfoAAAACNDoLAAACMtYmR0AQMA88AfAAABAAEA8wIBbjswAAABAAAHAAEAWhYHAAEBADswAAABAAD6AAIAHA0AAJ8R+QABAgA7MAAAAQAABQABADYgBQDzAQFyATUiAAAzAAOgAAAAIGplaXM6MAAAAQAAAAAADQAQAAAAfBZ9Fs8YDh0PHRAdER0tINMh1CHuIe8hpyKoIgGAAqBAAAAjjaBgAAAjnmFy8wEBcwHOGAAAAQkA9fUgAAABAAEAAQABAAEDAPR0HQAAAQABAAEA04CEoBAAABDVBAEF8wCFEUAF8h0EAAABAAEAA6AwAAASrKAwAAAWaqBAAAAYgmxydwFTBAAAEwACoOAAACJYY3A7MAAAAQAAMgABACoNMgABAgD0qhYAAAEAoAYrBQEAAPbNEgAAAQAlBQEASwoBABOAAqBQAAAiMXB0U4CEsFAfCQABsBAhxgABEUACAQEBsGAgRAABdPJ7HQAAAQATgAOgAAAAD6+gMAAAHwFhZ29DgAOgUAAAH7KwMCGuAVhhaW8BgAKwgCMrAAGwsCNoAAFhbBOEArAgIQwAAXR1AQEAOzAAAAEAAPoAAgD5EAAAYBX5AAEIAaBAAAAjYGX01yIAAFkAAQABAPOAA2d0dgEAAbCAI6sAAXPyDCMAAAEA84ACZG4BBQD3ryAAAGsBCQABAAEBAQABACOBAqBwAAAiSG1zAQgBoEAAACMEZfLoIQAApgBDAoSgIAAAIK6wMB++AAGgQAAAIKkQgQI7MAAAAQAACAECAPgQAABYFAcBI4ADoBAAABGeoEAAABa9b3J1AQMAOjAAAAEAAAAAAAgAEAAAAJwS1xjYGEkgRCNQI1EjUiNTIyOABKBgAAAfgrAwIC4AAaAQAAAWmmRydngBCAGwgCO1AAFz8qUjAAABAAGCAqAAAAAjiaAAAAAjijQ28wEBaQEzIwAAI4ACoAAAAB9/cnMBBgGgQAAAI3JiAf4iAADzgANhZW8BAwGwwCNmAAFp8gYfAAABAAECADowAAABAAAAAAAHABAAAACRHZIdkx08H1AiYSLlIu0i84ECZm4BgAKgMAAAId2wMB9PACppbwEHAPN/IgAAAQDzAPMDAWPywBIAACIF04CEoIAAACOqEUgAAQACoEAAABi0oIAAACBCZnTyaB0AAAEAE4ACoFAAAB+WZXX3vx8A0aAgAAASs4Bv/gc6MAAAAQAAAAAAcAAQAAAAVQFfAWAB1wPYA9kD2gMrBC0EBQsGCwcLGgsbCxwLmAyZDJoMmwyxDLIMtwwDDR8NIA2xD7IPuRC6ELwQzRB2E68TsBOxE7ITsxO0E7UTthO3E74TghaWFpsWnBadFp4WnxauFq8WsBbVF6wYrRiuGK8Y6RkiHTEdPR0+HT8dUR1SHVMdVB2QHckeyh7cHt0eJh8pHzofPR9EH2Yfkh+kH6ofsh+6HyIgIyAlIPEg8iDzIPQgDiG0IbUhtiHVIdYh9CH6Ifsh/CEeIiUifyKAIoIixyIHIwgjCSNwI3MjmiOqIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/49dc4c7e7c7d.js b/pr/3958/docs/search.index/49dc4c7e7c7d.js new file mode 100644 index 0000000000..7f807b6878 --- /dev/null +++ b/pr/3958/docs/search.index/49dc4c7e7c7d.js @@ -0,0 +1 @@ +rn_("AQcBoEAAACRqYgH3IwAAE4YCsCAipgABZG0BAwDzrB8AADQEAQAjgAKgIAAAHi5hckMAA6DAAAAkfqAgAAAZJ2VpdPQtEQAASwABAAEAAYACoHAAACGvoAAAABdrYXgBAgGwACOBAAFzAZEaAAABgAKgUAAAITugMAAAHi1hZQEHAaBAAAAkb2IB+yMAAAEFAPerHwAAugABANgCAQC5AJUAAQUBsGAkMwABaQFCIwAA8wMBaAEmGQAA1zsAAIqwYCAjBBmwICLAAAGPFAc7MAAAAQAADwAGADYNAwDxDgYAexgAAG0ZAAA8IQEAvSIAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4a4493544bbc.js b/pr/3958/docs/search.index/4a4493544bbc.js new file mode 100644 index 0000000000..9e17f74be0 --- /dev/null +++ b/pr/3958/docs/search.index/4a4493544bbc.js @@ -0,0 +1 @@ +rn_("AQIA8wAhAADdAQEAI4ACoHAAACEYYWQBgAKwUCNSAJKwQCECAAFjZQGAArAAGTsAAaAgAAAgDGRs84ACZXkBBAD1XBkAAKkEAQABAJsEhwEAAIWwYCBUATuAJBEGgB2gsAAAI+cZIAHyMhAAAAEA84ACZWk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4a450192600f.js b/pr/3958/docs/search.index/4a450192600f.js new file mode 100644 index 0000000000..4d53743396 --- /dev/null +++ b/pr/3958/docs/search.index/4a450192600f.js @@ -0,0 +1 @@ +rn_("AQABoCAAACESZvJRCwAAExQXAAAAhaBAAAAirqAQAAAf6bAAGXwGOqBAAAAkoBgBBTswAAABAABWABUAGQoCACgNAAA7EwAASxcAAJ8YHgCPGgAAIR4AADMeAAD+Hh4Anx8AAKMfAAARIAAAZyAAADUhAADTIQEANSMAAGcjAADIIwMAUiQAAGckAACMJAAAI4ACsJAjxAABYWU=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4a49fe2f2215.js b/pr/3958/docs/search.index/4a49fe2f2215.js deleted file mode 100644 index 2029f2d9cb..0000000000 --- a/pr/3958/docs/search.index/4a49fe2f2215.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9nYWAAABAMYJegGiAAcBAYACoEAAACBtsDAjHQABcXKXAAAAhbBgIh4BfKBgAAAiH7AAErQAATAQAzowAAABAAAAAAAIABAAAADMFpgYnBhVHk4gZyALIREhWCI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4aa749732afe.js b/pr/3958/docs/search.index/4aa749732afe.js deleted file mode 100644 index 23a709b6f1..0000000000 --- a/pr/3958/docs/search.index/4aa749732afe.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9GEEAACEE8sGAQABgAKgIAAAISSgEAAAIFlhcwGDAqBwAAAirKCAAAAi5mNzAQcBsFAiUACVY/LcHgAAtgAjgAKwMBa5AAFscgEAAaBAAAAgSWU7MAAAAQAABgACAJsWBADVIQEAAQMA9EsiAAABADkAAQABAQD0SSIAAAEAOQABABOBAqBAAAAjF2NtAQEAOzAAAAEAAAUAAgD+IAEA0yIDACOAAqBgAAAjNW56AYACsBAYvAABoFAAACMWbngBBgD08yIAAAEAHgABAPcBAACHoHAAACNdoGAAACMYGAEP9ekQAAABAEQOZQAgAgEDAPXcGAAAOwasAWUBAQAXBAAAyqCQAAAjLqBQAAAinKBAAAAiWqAgAAAWlqBgAAAfhaCAAAAiDrAgIp0AAaCgAAAjRMAFBQ87MAAAAQAAGAAKALoPAADTDwEAwhYDAHQdAwATHwAAZx8DAEIiAADZIgMANiMBAFcjAQABAAGgIAAAGN9y8o8dAACoAQEAArAwImwAi7AgIjMAlWJ1OjAAAAEAAAAAAAgAEAAAAG4dBR8eH6gfCiEyIkcieiLGIqcDAICGsBAM2wvsoQAAACNHDAhFAYACoDAAAB+koRAAACOuZWnnIwAAi6CAAAAh9aBAAAAh8qDQAAAjeKBQAAAicbAQIdwAq7nQC/dTAQAAZA4BACYBGQ6rAJYD") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4b48901b40aa.js b/pr/3958/docs/search.index/4b48901b40aa.js deleted file mode 100644 index 246bfc4378..0000000000 --- a/pr/3958/docs/search.index/4b48901b40aa.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBsDAipwABdPIbIQAAAQABBAD16SEAAAEAAQABAAEA84ACb3IBAgD1jB8AAAEAAQABAAEAM4UDsMAjRQABZWZ1") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4b52fb289c76.js b/pr/3958/docs/search.index/4b52fb289c76.js deleted file mode 100644 index 5e520d6c0c..0000000000 --- a/pr/3958/docs/search.index/4b52fb289c76.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBoDAAACHbaQEDHwAA8wABbDowAAABAAAAAAAUABAAAACdEcgS0RjQHtEe8x70HvUemB+ZH5ofmx+cH50fJyA0IjoiQSJNInki8CI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4b5f1861849b.js b/pr/3958/docs/search.index/4b5f1861849b.js new file mode 100644 index 0000000000..5e6f7580ba --- /dev/null +++ b/pr/3958/docs/search.index/4b5f1861849b.js @@ -0,0 +1 @@ +rn_("AYkCoEAAACSFoGAAACSWYXIBiAKgQAAAJGawACOaAFdlcwGGAqBAAAAkVaBgAAAkeWFyAQQBoDAAACNgY/IsIQAAAQABBQGgYAAAJG5iOjAAAAEAAAAAAAkAEAAAAO4h9iL3IvgilyOYI+8jFSQZJBokAQMCoDAAACMkoEAAACNfaXXzWSAAAAEAAQD3AwACh7AAI6EAhhWBAwEZGQAAAQQAOzAAAAEAADIAAQBMITIA84ACYW8jgAKggAAAIStmcBOAAqAAAAAf9XN5") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4b61bc8efa6a.js b/pr/3958/docs/search.index/4b61bc8efa6a.js deleted file mode 100644 index 116f3459ae..0000000000 --- a/pr/3958/docs/search.index/4b61bc8efa6a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQBoEAAACNgZfUxIgAApgBZAAEAAQABAgA7MAAAAQAABQACAOgiAgCOIwIA8wEBbTowAAABAAAAAAAHABAAAACBGDwg/yEAIgEiSyNMI00j8wEBZQEdIQAAMwCEoBAAAB8OoCAAABZ7FEAE9ekhAAABAAEAAQABAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4b7b71908860.js b/pr/3958/docs/search.index/4b7b71908860.js new file mode 100644 index 0000000000..19692edde3 --- /dev/null +++ b/pr/3958/docs/search.index/4b7b71908860.js @@ -0,0 +1 @@ +rn_("AQMBoCAAACESZgFkHwAAE4CEsCAfYQABoCAAAB9joFAAACFKABERE4ECoCAAABhzbHQTAAKwECOIAAFpbzswAAABAABwAQQAFgfmACAKAAAkIAAA/SGHAAEBAaBAAAAgN2XznSIAAJQBAQDzAAFlAQ4QAAATgAOwABchAV+wUCR4AClobXQBBQD12SEAAAEAAQABAAEA8wIBcgFEFAAAAQEAOzAAAAEAAIgAAgAkIAAA/SGHACOAAqAQAAAg+mZpAYACsEAiwgABoEAAACLEZHMBAAGgkAAAJFhsOjAAAAEAAAAAAAgAEAAAALUf1yE2I1kjlSPpIyIkLCRpJLcOAADIoIAAACGAsMAjgQABAAbMAzowAAABAAAAAAAIABAAAAB7AUcRPhT5FogZTCCPIiMjvCM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4b88226d5485.js b/pr/3958/docs/search.index/4b88226d5485.js new file mode 100644 index 0000000000..67c8fbe384 --- /dev/null +++ b/pr/3958/docs/search.index/4b88226d5485.js @@ -0,0 +1 @@ +rn_("AQUBoEAAACNLZfQ4IAAAAQABAAEAAYQCoDAAACRjoFAAACR/Y3LzAgFjAYUjAAABAgGggAAAI+h0AUETAAABAQGgkAAAI51y8kshAAA9APOAAmVpAYICsEAiwgABoEAAACLEZHPzAAJucvJPCwAAAQABAgGw8CSRABhmOzAAAAEAAAsABABaEwIAGxkCAI4gAQClIQMA1wEAAIegMAAAIFygIAAAFzqgMAAAGXAZgQY6MAAAAQAAAAAACAAQAAAAcAFcDWcZ2SHaIdsh3CHdIaUi") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4bda5fae3f30.js b/pr/3958/docs/search.index/4bda5fae3f30.js new file mode 100644 index 0000000000..2dd1c194b8 --- /dev/null +++ b/pr/3958/docs/search.index/4bda5fae3f30.js @@ -0,0 +1 @@ +rn_("AQMAOzAAAAEAAIgAAgBhEQAAWBSHAAEDAaBQAAAhrW8BaRcAAAEFAPMfIAAAAQDcAfMAAmN08gYjAAABACOAArBQI48AAWNzAQIA82IRAAC3DwEAAQMA81UTAADnDAEAUwADoDAAACOgYWRvAY0EAAABAgDz5h0AAAEAAQABAAGwgCQJAAFz83YfAAABAAEAAQMBsIAkdgABc/LmIgAAAQATAAKwgCQHAAFpc/NzHwAAAQABAPOCAjQ2AQMA80geAAABAJYEAQEBsIAkogABc/IFJAAAAQABCQGwgCSsAAFz8p0kAAABAPOIAmRp84ACbnIBBgGwQCRWAAFl874jAAB6ABUAtwQAAYewUB/MAAGgcAAAI6KgYAAAI2kyIQY7MAAAAQAAHwAMANAfAAAZIAQALyEDAIgiAQCpIgAAqyIAAB4jAACnIwwA3CMAADUkAACRJAAAqSQAAAEAAPP1DAAAAQA+E/OAAnN1NwYAgIegAAAAI3qgAAAAI/mwQBNWAAEAjBc=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4be13c899194.js b/pr/3958/docs/search.index/4be13c899194.js new file mode 100644 index 0000000000..c4b2bf3e23 --- /dev/null +++ b/pr/3958/docs/search.index/4be13c899194.js @@ -0,0 +1 @@ +rn_("AQAEoDAAAB75sMAjiAABsLAjRQABoSAAACSLY25xcwH4DwAA8wABZQGlJAAAAQUBsHAkHQABaPIAJAAAAQABAQA6MAAAAQAAAAAABwAQAAAAKBApECoQKxAsEC8e6x9/JPOAAm90AYQCoJAAACQnsDAi1gABdHUBgQKwQCE5AAGgkAAAI6FhdAEEAPP2HgAAAQABAGcBAACGoMAAACPcoBAAACA3oEAAACSlBQkFAXMLAAABAQDzRw0AAAEAAQABAAGgUAAAIwljAR4ZAADzAAJsdAESCgAAAQABoFAAACAeY/P9HQAAAQABAAEEAaBAAAAhImUBmB8AAAEDAaBAAAAhIWUBCh4AAAEAx7BgJDMAAaAgAAAXGKAgAAAXGaAwAAAZRrBAISkAAbAgFzgAAbBAHj0FFABArQjzERAAAJkSmADzgAJyeAECAPNUIAAAOwFDAhMAAqCAAAAkDmV285ofAAABAAEAI4ACsGAf1wCtYXIBBAGgAAAAH5dz8ggeAAABAOcoAACKsCARTA8yoHAAACEzoCAAABEnoLAAACNAoIAAACGIPgxM92kEAACmBQEA8AyIAQEAAQABhAKgAAAAIR+gAAAAISA0NvMCAWEBjxgAACOAArAQI0ABPWVvE4ACsAAfxACxaGt3DgCAiGkz9aHiXqCwAAAipQw4Bw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4c87ae866f47.js b/pr/3958/docs/search.index/4c87ae866f47.js new file mode 100644 index 0000000000..003efe931d --- /dev/null +++ b/pr/3958/docs/search.index/4c87ae866f47.js @@ -0,0 +1 @@ +rn_("AYECsIAjlgB3sFAivAC9YWIjggKgAAAAFy5zdQGBAqAgAAAflLBAJHkAHWxthwEAAIWwQCRVADCwYB/UAKegUAAAIAULAAX0/wwAAAEAAQCeFwGAAqEAAAAkfbBAH9MAp29wE4ECsPAkIgBHc3QBAwGgMAAAIrtpAdIfAADzAgFsAUITAAAjgAKADVmceFlkbgGAArBwIE4BNLCQId8BWGhpAQECoCAAABlooAAAABiDZXMBSREAACOAArBQHlABs2Jj1zAAAIygIAAAEUqhAAAAJKag0AAAJJOw4COVAJegQAAAJJ+g0AAAI/mwYB5RAbMHtRs6MAAAAQAAAAAACAAQAAAAXgRvGYYgGCGGIb8iRyRUJFwk") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4c986aee45a8.js b/pr/3958/docs/search.index/4c986aee45a8.js new file mode 100644 index 0000000000..788f14a195 --- /dev/null +++ b/pr/3958/docs/search.index/4c986aee45a8.js @@ -0,0 +1 @@ +rn_("AQIA9foWAAAFCQEAAQABAAEDAPQmHgAAAQABAAEAI4ACoAAAABMVZHIBgwKgQAAAIyegQAAAIyhibOcAAAGHsBATFARJsAARawABsCAW+QKPoDAAAB7uFgEaOzAAAAEAABAABAAsDQQAeA0HAM4fAQAcIwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4cb754fc140a.js b/pr/3958/docs/search.index/4cb754fc140a.js deleted file mode 100644 index ef8b29ccbe..0000000000 --- a/pr/3958/docs/search.index/4cb754fc140a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQADoEAAACOYsDAguwABoEAAACG3Y2RlAfwXAAATgAKgEAAAEOdsbSMAAqAQAAAQyWVpOzAAAAEAAAUAAQBcHgUA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4cd7fea49d77.js b/pr/3958/docs/search.index/4cd7fea49d77.js deleted file mode 100644 index beaba53e67..0000000000 --- a/pr/3958/docs/search.index/4cd7fea49d77.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA87MgAADaAYwAAQABsEAgtAABcgGuHwAAJwQAAIegkAAAI5SgQAAAIwSwcCLAAO+hUAAAI7CgUAAAIGQawRD23AwAANwF9gBvC8sCpgABAQGgUAAAH39rAeAQAAABAwA7MAAAAQAAuwACAKIYAQBRHLkA84ACbHTzgAJhZQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4ce160a35e82.js b/pr/3958/docs/search.index/4ce160a35e82.js deleted file mode 100644 index 0b37932417..0000000000 --- a/pr/3958/docs/search.index/4ce160a35e82.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoGAAACLgYjowAAABAAAAAAAMABAAAADUEsITch1zHSAfIR8iHyMfJB8lH34fLyJOIgEDAPNAHwAAAQDcAscAAACFsDAdlQABoEAAAB8NoKAAACJnkgADOzAAAAEAAA4AAgDkEAIAgRELABOAAqAgAAAWrWVp") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4d1eadde3111.js b/pr/3958/docs/search.index/4d1eadde3111.js deleted file mode 100644 index 27f8cf8935..0000000000 --- a/pr/3958/docs/search.index/4d1eadde3111.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9N4iAAABAIkAAQAjAwKgMAAAImdjbvN5FgAAaAHOCQEBAPblGQAAAQBlCAEAOQABAMcAAICFoFAAAB6moEAAABbMgCNZBaABADgD") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4d2003956f8c.js b/pr/3958/docs/search.index/4d2003956f8c.js new file mode 100644 index 0000000000..02f50c3701 --- /dev/null +++ b/pr/3958/docs/search.index/4d2003956f8c.js @@ -0,0 +1 @@ +rn_("AQIA9fAgAAABAAEAAQABAPMAAWk7MAAAAQAACAACAD0RAADiEwcAAYECoFAAACNbsAAeaAGtZXPzgAJhcgGAAqAQAAAhrqAQAAAjNW56AQAA9S4hAAB4AQEAGQABAAGIAqAgAAAkZ6AwAAAkdWlwE4ACoFAAACBxbnIBhQKwMCNeAJKwICMjAJlidSOAArAgIRUB1mls5wUAAIigMAAAI12gMAAAIX+wICBMAkNTCQw7MAAAAQAAFgALAAUSBgAGFwQAbRcCAHofAACOIQAAeyMAAGgkAAB4JAAAgyQAAJUkAAChJAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4d353318da11.js b/pr/3958/docs/search.index/4d353318da11.js new file mode 100644 index 0000000000..2290ceb33a --- /dev/null +++ b/pr/3958/docs/search.index/4d353318da11.js @@ -0,0 +1 @@ +rn_("AQQA8yQhAAABAAEA8wABZTswAAABAAAPAAUARA0AAEwXAQBTFwAATBkAAGUfCgABhAKwICGSAAGgIAAAIZRhczOAA7AAI5EAAWFlbA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4d4c3eaae8d6.js b/pr/3958/docs/search.index/4d4c3eaae8d6.js new file mode 100644 index 0000000000..a9c22ce856 --- /dev/null +++ b/pr/3958/docs/search.index/4d4c3eaae8d6.js @@ -0,0 +1 @@ +rn_("AQgA9AkkAAABAGwAAQABAwGgIAAAIO5l8jYTAACED/MAAmFzOjAAAAEAAAAAAAsAEAAAAP8IIBH4FpwYdh93H3gfICGNIeYi5yKCJAEDAbCAJHYAAXPy5iIAAAEAAQMBoCAAACDtZfI1EwAAhA8zAAOwgCQHAAFhaXM6MAAAAQAAAAAACAAQAAAA/ggfEZsYcx90H3UfHyGMIYEkM4ADsEAj4gABNDZl") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4d79f2f05cdc.js b/pr/3958/docs/search.index/4d79f2f05cdc.js deleted file mode 100644 index db050c5aa4..0000000000 --- a/pr/3958/docs/search.index/4d79f2f05cdc.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUBoAAAACOScgEiGAAAAQEBoGAAACMBYgFGIAAAJwAAAYWgQAAAIbawcCKLAOmgMAAAIoigUAAAIu4YIQg7MAAAAQAABwACAHkRBgAtHQAAAQIBoEAAACBJZTswAAABAAAGAAIAmxYEANUhAQDzAAFr8r4PAAABAPOBAmNzAQABoIAAACOkZgGqIgAA8wYBc/LhGAAAkQfzAANjbHMBvyAAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4e3ded8d8cfd.js b/pr/3958/docs/search.index/4e3ded8d8cfd.js new file mode 100644 index 0000000000..b69cdd158e --- /dev/null +++ b/pr/3958/docs/search.index/4e3ded8d8cfd.js @@ -0,0 +1 @@ +rn_("AQMA9KkhAAABAAEAAQATAAKgMAAAIrtlaQHSHwAAAQEBoGAAACP6YgEbIQAAJwAAAIWgQAAAIpOwcCN9AO+gMAAAI3qgUAAAI+UYIQg7MAAAAQAABwACAOwRBgDtHQAA84ACaHQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4e3e13e271c0.js b/pr/3958/docs/search.index/4e3e13e271c0.js new file mode 100644 index 0000000000..6f298320f0 --- /dev/null +++ b/pr/3958/docs/search.index/4e3e13e271c0.js @@ -0,0 +1 @@ +rn_("AYQCoJAAACQnsDAi1gABdHUBgQKwQCE5AAGgkAAAI6FhdAEEAPP2HgAAAQABAOMAhKDAAAAj3AUBAQFzCwAAI4ACoLAAACKlbnI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4ea503c6a6b4.js b/pr/3958/docs/search.index/4ea503c6a6b4.js new file mode 100644 index 0000000000..e992c66b7b --- /dev/null +++ b/pr/3958/docs/search.index/4ea503c6a6b4.js @@ -0,0 +1 @@ +rn_("AQUA84khAAD2AZQAAQABsEAhigABcgGBIAAAo4GEoJAAACSMoVAAACSnCkAQAQoA9IojAAABAAEAAQABAAA7MAAAAQAAhwABAJIahwAjgAKwQCO0APJlbwEBAPNyGQAAKwYBAPOAA2Z0dgEAADswAAABAAAJAQUAcw0AABISAAFMEwEAlBgEAL8YAABXAQCAxaAAAAAf6aAgAAAW+AAKKAg=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4ebe3978fbbc.js b/pr/3958/docs/search.index/4ebe3978fbbc.js new file mode 100644 index 0000000000..bc5c8e2f29 --- /dev/null +++ b/pr/3958/docs/search.index/4ebe3978fbbc.js @@ -0,0 +1 @@ +rn_("AQMA9HEkAAABAAEAAQATgAKgMAAAIT5veQEDAbAwI5sAAXTy8CEAAAEAAQQA9ckiAAABAAEAAQABAPOAAm9yAQEA9V0gAAABAAEAAQABACOAA7CAI8YAAaAAAAAg92ZucmcEAADJoFAAACMloJAAACO9oDAAACCGoFAAACMmsMAkPgABsGAjYQABgEwgDzowAAABAAAAAAAiABAAAAATExUTRhNyE3cZcR+3H/kf+h/7H/wfByAIICEgIiCDIc8h0CHRIdIh9SH2Ifch+CHFIsYiTCOkI6Uj2yPzIw4kEiQtJE8k") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4f299a7ee245.js b/pr/3958/docs/search.index/4f299a7ee245.js deleted file mode 100644 index beffb3b2d8..0000000000 --- a/pr/3958/docs/search.index/4f299a7ee245.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBsIAjqwABc/IMIwAAAQABCQGwgCO1AAFz8qUjAAABAPOHAmRpIwCEsBAM/wR0oBAAACINsCAQ3ALhGgAIAbcJAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4fae465bc01e.js b/pr/3958/docs/search.index/4fae465bc01e.js deleted file mode 100644 index fe0b6d48f3..0000000000 --- a/pr/3958/docs/search.index/4fae465bc01e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQYCoCAAACDBoDAAACG+YmgBXB0AAAECAPXCIAAATAHjAFYAZgDzAAFvAdATAAATgAOhAAAAI4WwQB8EAKNob3ABAgA7MAAAAQAABQABAMogBQDzAgF1ASIdAAABAgD1BCEAAAEAAQABAAEAE4ACsAAWwAABb3ZzgISw8CMqAEcECAbzgAJlbw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4fd147ee3519.js b/pr/3958/docs/search.index/4fd147ee3519.js deleted file mode 100644 index 575ee3ff54..0000000000 --- a/pr/3958/docs/search.index/4fd147ee3519.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECoAAAACBKoAAAACBLNDYBBAD1GSIAAHsAAQA6AAEAAQQBoAAAACIcZPLDIQAAAQBnAAABh6CgAAAjTqAwAAAflaAQAAAjb6BgAAAjiLCgIwUAh5VQBPWrEgAARwDUDZ0B8gABgQKwICC9AAGgIAAAIL9hc3OABKAQAAAfHW5vcHY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/4fff845ed6aa.js b/pr/3958/docs/search.index/4fff845ed6aa.js deleted file mode 100644 index ac73775726..0000000000 --- a/pr/3958/docs/search.index/4fff845ed6aa.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQICoGAAACHYoGAAACJibXTyjBYAAKAGE4ACoNAAACN0b3UBhAKgQAAAI42gYAAAI55hcgGAArAQIj8AAaAgAAAidmFvAQcA8yUjAAABAAEAcwEEsHAjPgABaG1wcfQpHwAA3gMBAAEAE4ACoKAAACORYW8BBQD0ICEAAAEAAQABAAEAADswAAABAADwAAEAXBvwAAGAAqCQAAAijaBgAAAfi2VvAYICoFAAACJqsAAdpQGhZXMBhQKwMCJsAIuwICIzAJVidSOAArAgIEEByWlsUwCEoCAAACDZsCAfewI3AgEMOjAAAAEAAAAAAAsAEAAAAJIRkxGUEZURlhGXEZgRrx6AI4sjnSOpIwEHAPO9IQAAfAEBAAEEADswAAABAAAJAAEAmx0JAAEDAbBgIjIAlGLyeh8AADcCdwQAAImgEAAAEtegkAAAImmgwAAAIxmwkCHlAAGgoAAAIsc4CQ86MAAAAQAAAAAAGAAQAAAAFg0XDRgNGQ0aDaoQqxCsELgWvhbQGNoYlB3OHtMe3x7gHuEe4h4/H4IfQiCpIusi7CIjgAKwMCJPATZjbbcHAICJoDAAABKeoIAAACIdoPAAACNcNYoG") \ No newline at end of file diff --git a/pr/3958/docs/search.index/504b2a66331c.js b/pr/3958/docs/search.index/504b2a66331c.js deleted file mode 100644 index 35960971f2..0000000000 --- a/pr/3958/docs/search.index/504b2a66331c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQkBoIAAACOkZgGqIgAAIwACoCAAAB9CaXUBvR8AAAECAbCAI0kAAWbyGB8AAAEAE4ACoKAAACOIcnTzggJhcwEEAaBAAAAjYGX01yIAAFkAAQABAAECADswAAABAAAFAAIA6CICAI4jAgDzAwFtOjAAAAEAAAAAAAcAEAAAAIEYPCD/IQAiASJLI0wjTSPzgQJjZTOAA7CwI2sAAWFlaQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5057aaa146d8.js b/pr/3958/docs/search.index/5057aaa146d8.js deleted file mode 100644 index 653da574c0..0000000000 --- a/pr/3958/docs/search.index/5057aaa146d8.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoDAAACLHbwGBIgAAAQIA844jAAABAAEA8w0BbfNLIwAAAQABAAGAAqCgAAAi+aAwAAAh125yAQABoJAAACLJaTowAAABAAAAAAAHABAAAACZEiwfLR84Hzkf+iIYI1Yj8wKEOAACOjAAAAEAAAAAAAkAEAAAALYQtxCmH3IicyJ0Iu4iSSNKI6QjE4ACoHAAACHFYXI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/50808f605b3e.js b/pr/3958/docs/search.index/50808f605b3e.js new file mode 100644 index 0000000000..f1bb307d43 --- /dev/null +++ b/pr/3958/docs/search.index/50808f605b3e.js @@ -0,0 +1 @@ +rn_("AYACoFAAACKFoBAAAB78aXQBAAGgEAAAHvtvOzAAAAEAAAYAAwBmEwMAJRcBAPQjAAABgAKwECMvAAGgIAAAI2hhbxOCArBwJDYAAW1xE4ACoOAAACRsbHATgAKwMCLkAQplbwGCAqEAAAAkpqDQAAAkk2ttE4ADoGAAACMTsGAi3QABYWtyAYECsIAkAAABoIAAACQCZXcBgwKwMCMRAAGwQCNHAAFwcwGAAqEAAAAkiaCgAAAj+GVsAYACsCAjxgABoFAAACLaZHC3+AAAjLBgItsAAaCQAAAkn6DwAAAka7CgI8IAAZW1BzswAAABAABBAAQAYA0DADURAgCTETkAKyEAAAEAAaAwAAATQGEBDSAAAMOAhKDQAAAkTqAAAAAEjgEMBA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/50a1ad55869e.js b/pr/3958/docs/search.index/50a1ad55869e.js deleted file mode 100644 index 309f8297fc..0000000000 --- a/pr/3958/docs/search.index/50a1ad55869e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABsGAjKAABZQGeHwAAQwEDsJAinwABoDAAAB9DY25z9OgQAACXDIwBAQATgAKwcCEWAAFjcwGAAqAgAAAjFaCgAAAi4WlyAQABoCAAAB1VafIXIgAA8wABAwD1JyIAALcAAQCJAAEAAYQCsEAh4gABoEAAACHkZHMBAAGwYCKlAO5iOzAAAAEAAAUAAgAQHwIAtx8CABODAqBgAAAia2dyQ4ADoCAAACJnoHAAACEUZWhvtwMAAIawcCG5AAEcIBI6MAAAAQAAAAAAFAAQAAAADw0QDRENzA/ND84Pzw/QD9EP0g95FuEXpxgrHZUeMCCvIb8hwCHBIQ8iAYICoEAAACHZoEAAACHaNDYBAwGwkCOcABRlAaUfAADzgAJhaQEJAbBAIuIAAWXyEiEAAAEAs4CEoEAAACEaHAABAQABsBAdegTmdfZ1EwAAFg81ALQAHQAeABOAAqAwAAAfHWx084ADYWVp") \ No newline at end of file diff --git a/pr/3958/docs/search.index/50bda8a2eb76.js b/pr/3958/docs/search.index/50bda8a2eb76.js deleted file mode 100644 index 97c466d32a..0000000000 --- a/pr/3958/docs/search.index/50bda8a2eb76.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYABPyiORgNFcAEAAPOeDAAAAQDEEgGAAqBgAAAjXKAQAAAS2mlvQwGEsFAjBQCHsCAfugJroJAAACEYBAwB9M4MAAD3BR8FjAfzgANlc3U=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/50e8d57b2535.js b/pr/3958/docs/search.index/50e8d57b2535.js deleted file mode 100644 index eef5989ab8..0000000000 --- a/pr/3958/docs/search.index/50e8d57b2535.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEA824gAAABAAEAI4ACoSAAACOVbnQTAISwMCJsAIuwIB9vAQKwICIzAJUDQAg6MAAAAQAAAAAACAAQAAAAbh0FHx4fqB8KITIiRyJ6IsYi") \ No newline at end of file diff --git a/pr/3958/docs/search.index/50efac10b5f8.js b/pr/3958/docs/search.index/50efac10b5f8.js new file mode 100644 index 0000000000..019bc32677 --- /dev/null +++ b/pr/3958/docs/search.index/50efac10b5f8.js @@ -0,0 +1 @@ +rn_("AQEBsIAkogABc/IFJAAAAQABCQGwgCSsAAFz8p0kAAABAPOHAmRpIwCEsBANVgSQoBAAACLusCARRwL3GgAIAfMJAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5133e7081643.js b/pr/3958/docs/search.index/5133e7081643.js new file mode 100644 index 0000000000..f1a462a938 --- /dev/null +++ b/pr/3958/docs/search.index/5133e7081643.js @@ -0,0 +1 @@ +rn_("AQABoEAAACQ9ZfZ2DQAAAQCtAwEAvRIBAAEAAaAgAAAfqmsBax4AABOAAoAjXAkAAWRyAYMCoCAAACD3oAAAAB/qZHPzgAJjZWMAA7BAFDkQGmVpeQHpHwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/517b2afc0ad6.js b/pr/3958/docs/search.index/517b2afc0ad6.js deleted file mode 100644 index 52e7e95cb1..0000000000 --- a/pr/3958/docs/search.index/517b2afc0ad6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAAPoAAgBtFgAA6Rj5APMAAW07MAAAAQAA/AACAN0MAACUDfsAAQMA9AsdAAABAAEAYQUTAAKgIAAAErJjcjswAAABAAC5AEIA4woTAJwSAACpEgEAwhIAANUSAQDjEgAAaBYBAGsWAQB2FgEAhRYCAKIWAQClFgQAsRYDAL8WAAC+GAcAyBgBANIYAADXGAEA3RgCAOQYAABjHQMAbR0AAG8dAACFHQEAmx0JAOMeBAANHwAAFB8AAFQfDgAcIAAANiAFAD0gAABIIAEATCABAE8gBABXIAEA2yABAN8gBQD1IAQAFiECABohAAAeIQEAtyEAAM4hAgDXIQAA3iEAAP0hAAAZIgAAMCIAAFkiAQBkIgIAaSIBAJQiAQCyIgAAyyIBAM8iAQDYIgAA4iIBAAMjAQAdIwMAIyMBAC4jAABEIwAAUCMDAF8jAQBtIwAA84ACcnc=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5190b18bcd37.js b/pr/3958/docs/search.index/5190b18bcd37.js deleted file mode 100644 index 771af0d788..0000000000 --- a/pr/3958/docs/search.index/5190b18bcd37.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACGooBAAAB4yaXQBAAGgEAAAHjFv9ewSAAABAAEAAQAMEAGAArAQIj8AAaAgAAAidmFvE4ICsHAjPgABbXETgAKg4AAAI3RscBOAArAwIgMA8mVvAYICoQAAACOvoNAAACOba20TgAKgYAAAIiJhawGBArCAIwcAAaCAAAAjCWV3AYMCsDAiIAABsEAiVgABcHMBgAKhAAAAI5GgoAAAIv9lbAGAArAgItEAAaBQAAAh+mRwt3wAAIuwYCH7AAGg8AAAI3OwoCLNAAGVtAc7MAAAAQAANwACAMoQAgAnETQA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/525127a28425.js b/pr/3958/docs/search.index/525127a28425.js deleted file mode 100644 index 66b07c694f..0000000000 --- a/pr/3958/docs/search.index/525127a28425.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9WQWAADMCAEAAQABAAEDAPRjHQAAAQABAAEAI4ACoAAAABKbZHIBgwKgQAAAIjegQAAAIjhibOcAAAGHsBASmgQtsAARAAABsCAWYwKEoDAAAB4kFgEaOzAAAAEAABAABADVDAQAIQ0HAP8eAQAsIgEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5378a728da2b.js b/pr/3958/docs/search.index/5378a728da2b.js deleted file mode 100644 index 1b34a988ef..0000000000 --- a/pr/3958/docs/search.index/5378a728da2b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQBoAAAACI8c/PDIgAA0wABACcAAAWFoQAAACOaoEAAACH4oIAAACOtoFAAACI9FAAWAU0cAAATAAKgcAAAH65lcjowAAABAAAAAAAHABAAAABIBEkESgT3EP8XABhEIEUg") \ No newline at end of file diff --git a/pr/3958/docs/search.index/53b138ccc672.js b/pr/3958/docs/search.index/53b138ccc672.js new file mode 100644 index 0000000000..74846dc3ee --- /dev/null +++ b/pr/3958/docs/search.index/53b138ccc672.js @@ -0,0 +1 @@ +rn_("AQMBoHAAACLHZjswAAABAACqAAMAUxMAAMEYVwCWIFEAAYACoFAAAB/9oLAAACO2YWwBAwD3hSEAAIYBCQABAAgBAQABAAEAADswAAABAAAyAAEA+BMyAOcBAACFoEAAAB3pCqABOzAAAAEAAAkABABKHgEADyABAPsgBAAOIwAAAQQA8y8eAAC8AZQEE4ACsNAjkwABZXYBBQDzrR8AAAEAAQDzAAFzOjAAAAEAAAAAABAAEAAAADoNOw34DvkO+g58GH0YHiBKIAUhBiEHIQghCSGoIuwiDSNjAAOgMAAAJGNjZHI7MAAAAQAADAAGACMLAAD8CwMA9R0CALIhAQCjIgEA2SIAABcBAACFoDAAABE/sDATVgABsIAf5gGyEFgE8+0DAAA3DAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/53d497f9b07e.js b/pr/3958/docs/search.index/53d497f9b07e.js deleted file mode 100644 index fd32c66077..0000000000 --- a/pr/3958/docs/search.index/53d497f9b07e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsCAWoAABsCAizQABYW8BBAGgIAAAIQFzAQIfAADDAISgMAAAHy+gUAAAH3xFgAA7MAAAAQAAFgAIANcQAwBkEQsACR8BAIUfAABHIAAA6SAAANghAAAfIgAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/53efa76c2fb0.js b/pr/3958/docs/search.index/53efa76c2fb0.js new file mode 100644 index 0000000000..9603607005 --- /dev/null +++ b/pr/3958/docs/search.index/53efa76c2fb0.js @@ -0,0 +1 @@ +rn_("AQsA9M4jAAABAAEAAQABgwKgIAAAJGegMAAAJHVpcPMAAWbyTBEAADIPY4ADoJAAACOOY2ZpQ4CEsCAjXgCSoDAAABdgoEAAACMlAEFI") \ No newline at end of file diff --git a/pr/3958/docs/search.index/540dd14d7210.js b/pr/3958/docs/search.index/540dd14d7210.js deleted file mode 100644 index 536a3e91e3..0000000000 --- a/pr/3958/docs/search.index/540dd14d7210.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoCAAAB74oCAAAB75YnTzAgFh89oXAAABAAEAAYACoGAAACHMoGAAACHNZXQBBgDzoSMAAAEAAQABAwDzgiMAAAEAAQDzBQJwcwGqIQAAAQEBsCAfYQABcgF1EQAAAQMA9O4eAAABAAEACQQBBQD1MSAAAAEAAQABAAEAAQEBsIAjqwABc/IMIwAAAQABCQGwgCO1AAFz8qUjAAABAPOBAmRpAQIAOzAAAAEAAAkABADrHgIAlx8AABEiAgB8IgIAI4ACoCAAABaZYmT3YQAAi7AwHvEAAaBAAAAfY39+uZBowaBgAAAg6d9RAjswAAABAAAKAAUArxICAPMSAgCyHgAAuSEBAFQiAQABBwGwkCNkAAFjAQkhAAABBADzhRYAAAEAAQCnAgCAhqBQAAAfo6AQAAARnaAgAAAdIHQgBPOAAm50") \ No newline at end of file diff --git a/pr/3958/docs/search.index/54570e1094cb.js b/pr/3958/docs/search.index/54570e1094cb.js new file mode 100644 index 0000000000..b2e9820df7 --- /dev/null +++ b/pr/3958/docs/search.index/54570e1094cb.js @@ -0,0 +1 @@ +rn_("AQABoDAAACO7bwFzIwAAAQIA84YkAAABAAEA8w0BbfNEJAAAAQABAAGAAqCgAAAj8qAwAAAit25yAQABoJAAACO9aTowAAABAAAAAAAHABAAAAATE/sf/B8HIAgg8yMSJE8k8wKEOAACOjAAAAEAAAAAAAkAEAAAACERIhF5IGQjZSNmI+UjQiRDJJwkE4ACoHAAACKlYXI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5533c77ee42b.js b/pr/3958/docs/search.index/5533c77ee42b.js deleted file mode 100644 index 14b1db48ae..0000000000 --- a/pr/3958/docs/search.index/5533c77ee42b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9EsiAAABADkAAQABAQD0SSIAAAEAOQABABOBAqBAAAAjF2NtAQEAOzAAAAEAAAUAAgD+IAEA0yIDACOAAqBgAAAjNW56AYACsBAYvAABoFAAACMWbngBBgD08yIAAAEAHgABAPcBAACHoHAAACNdoGAAACMYGAEPAS4fAACHAAAAxqCQAAAjLqBAAAAiWqAgAAAWlqCAAAAiDqCgAAAjRIAEAQs7MAAAAQAAEgAIALoPAAB0HQMAEx8AAGcfAwBCIgAA2SIDADYjAQBXIwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5570c846e316.js b/pr/3958/docs/search.index/5570c846e316.js new file mode 100644 index 0000000000..62ba71a6b7 --- /dev/null +++ b/pr/3958/docs/search.index/5570c846e316.js @@ -0,0 +1 @@ +rn_("AQQA8wojAAB8AAEAAQQBoAAAACMNZPKjIgAAAQBjAgOgoAAAJEdhY2UBTiQAAAGBArCAI8YAAaAAAAAg92ZyE4ACoAAAAB/qZHPzgAJlaQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/55e63afcf159.js b/pr/3958/docs/search.index/55e63afcf159.js deleted file mode 100644 index 0418858a2a..0000000000 --- a/pr/3958/docs/search.index/55e63afcf159.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBsMAjawABbQGwHwAAAQYA9HkjAAABAAEAAQBjAoSgUAAAIQ+gYAAAI4UUAQHy2iAAABUCI4ACoOAAACNHY20=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5636094c8ac2.js b/pr/3958/docs/search.index/5636094c8ac2.js deleted file mode 100644 index 0462879831..0000000000 --- a/pr/3958/docs/search.index/5636094c8ac2.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoEAAAB0xcgHHIgAAAQEA9SggAAABAAEAAQABAEOAA6BQAAAflKAAAAAS2mFncwEBAqBQAAAgQKBwAAAjOGNm8rkPAAABBEOAA6BQAAAjXKAgAAAiOGZtbvOAA2lveQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/563c9738698e.js b/pr/3958/docs/search.index/563c9738698e.js new file mode 100644 index 0000000000..198e263ef8 --- /dev/null +++ b/pr/3958/docs/search.index/563c9738698e.js @@ -0,0 +1 @@ +rn_("AYACoFAAACQloHAAACNUZWlDAgOwYCHgAWmw4CSXAAFobXb2QxMAAAEAAQD7AAEA8wkTAAKwABAkAAFjc/NBCwAAAQBADQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/565b568c7a33.js b/pr/3958/docs/search.index/565b568c7a33.js new file mode 100644 index 0000000000..510381ce8a --- /dev/null +++ b/pr/3958/docs/search.index/565b568c7a33.js @@ -0,0 +1 @@ +rn_("AQIA8xgeAAABAAEAIwADoIAAACSooDAAACANYWVmOjAAAAEAAAAAAAkAEAAAAHIL8xHZHdod2x3cHaEjJySUJKck") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5660ad022e5c.js b/pr/3958/docs/search.index/5660ad022e5c.js new file mode 100644 index 0000000000..a31f6a6630 --- /dev/null +++ b/pr/3958/docs/search.index/5660ad022e5c.js @@ -0,0 +1 @@ +rn_("AQ4A9EkkAAABAAEAAQABAQA7MAAAAQAAFAABAH8fFAABAwDz9R0AAAEAAQDHAQAAhqBgAAAi1KBAAAAjCaAwAAAkkIFYBAGQJAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/56aa6aad199a.js b/pr/3958/docs/search.index/56aa6aad199a.js deleted file mode 100644 index ec2384c41e..0000000000 --- a/pr/3958/docs/search.index/56aa6aad199a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABsIAjSQABZvMqBAAA7hoBAAECADswAAABAAAFAAIA6CICAI4jAgDzBgFtOjAAAAEAAAAAAAcAEAAAAIEYPCD/IQAiASJLI0wjTSMBBAD0KiIAAAEAAAEBAPMAAXTz2xIAAJAMAQDzgANlbXM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/56e6a1f6f634.js b/pr/3958/docs/search.index/56e6a1f6f634.js new file mode 100644 index 0000000000..eb37605fa1 --- /dev/null +++ b/pr/3958/docs/search.index/56e6a1f6f634.js @@ -0,0 +1 @@ +rn_("AYACsCAXNgABsCAjwgABYW8BBAGgIAAAIdZzAdEfAADDAISgMAAAH/6gUAAAIE1FgAA7MAAAAQAAFgAIAEIRAwDXEQsA2B8BAFYgAAAcIQAAviEAALgiAAAQIwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/56ed57eb38ab.js b/pr/3958/docs/search.index/56ed57eb38ab.js new file mode 100644 index 0000000000..4bd7f3f897 --- /dev/null +++ b/pr/3958/docs/search.index/56ed57eb38ab.js @@ -0,0 +1 @@ +rn_("AQUBoAAAACSKcgHAGAAAAQEBoGAAACP6YgEbIQAAJwAAAYWgQAAAIpOwcCN9AO+gMAAAI3qgUAAAI+UYIQg7MAAAAQAABwACAOwRBgDtHQAAAQIBoEAAACEeZTswAAABAAAGAAIAMRcEALUiAQDzAAFr8iYQAAABAPOBAmNzAQABoIAAACScZgGeIwAA8wYBc/KCGQAAxgfzAANjbHMBlCEAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/57b20532cc04.js b/pr/3958/docs/search.index/57b20532cc04.js deleted file mode 100644 index 2aba3e5893..0000000000 --- a/pr/3958/docs/search.index/57b20532cc04.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoEAAACBtsDAjHQABcXITAAKwABK0AAFlc/ecGAAAuQX5ARkApAAGAEcBAQQBsEAhzwABZfJ4HQAAAQABgAKwoCLrAAGggAAAIkNsb9MAhLBgH20AASwAAfPuDAAA5xFGAw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/57b98961a498.js b/pr/3958/docs/search.index/57b98961a498.js deleted file mode 100644 index 4e83dfa8e0..0000000000 --- a/pr/3958/docs/search.index/57b98961a498.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoAAAACBqcwHPGAAAAQYA9PEgAAABAAEAAQABAgD0eSMAAAEAAQABAAECAaBAAAAgTWUBzR4AABcBAICFoCAAAB9woCAAAB0ysEAgRAABEFQEAQkA9N4iAAABAIkAAQBDgQOg0AAAI7GwcCDWAAFjbHMBCAD0KiIAAAEAAAEBANcGAICHsJAg1AABsNAjIQABBUhh") \ No newline at end of file diff --git a/pr/3958/docs/search.index/58a13172bcf0.js b/pr/3958/docs/search.index/58a13172bcf0.js deleted file mode 100644 index a9cad72a22..0000000000 --- a/pr/3958/docs/search.index/58a13172bcf0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoEAAACOodPR1IgAA5gATACYAAQQBoSAAACOtYwE0HQAAAQEBoHAAACEdbfNvIgAAAQC9AOOAhKAQAAAdVQhAgkMAhLCgI7MAAaBAAAAh86AwAAAjfRGBAPa0EgAAAQBiD48AUgASAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/58ab003969dd.js b/pr/3958/docs/search.index/58ab003969dd.js new file mode 100644 index 0000000000..2fd740fea3 --- /dev/null +++ b/pr/3958/docs/search.index/58ab003969dd.js @@ -0,0 +1 @@ +rn_("AQADsIAjlgB3sFAivAC9oDAAABmBYWJj9xERAAABAFAP3AMBACAAAQABBADzJCEAAAEAAQDzAAFl8kwXAAABAAGEArAgIZIAAaAgAAAhlGFz84ACYWXzgAJycw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/58d4bdd1f8ed.js b/pr/3958/docs/search.index/58d4bdd1f8ed.js deleted file mode 100644 index 4fea8118bb..0000000000 --- a/pr/3958/docs/search.index/58d4bdd1f8ed.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQICsGAiHgF8oGAAACIfZm0BmBgAACOCAqBAAAAiWWVsAYACoCAAABLooBAAABDIbngBgAKgEAAAIsGwIBLmAAFjaTcBAICFoHAAACOtsJAjBQCHkUAB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/597a32966a4b.js b/pr/3958/docs/search.index/597a32966a4b.js deleted file mode 100644 index 0f0f52b409..0000000000 --- a/pr/3958/docs/search.index/597a32966a4b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcBoEAAACNyYgH+IgAAE4YCsCAhxgABZG0BCQGggAAAI6RmAaoiAAABAwGwcCM5AAFm898eAAAMBAEAI4ACoCAAAB1rYXIBgAKgEAAAGIagEAAAH0JueuMAhKDAAAAjhhABDPfCEAAASgABAAEA2gHVDH8CAQAA9PEgAAABAAEAAQBDgAOgcAAAINqgAAAAFtVheHkBgAKgsAAAIsWwIBf/AAFsbwGAA7AQIeAAAaAQAAAeMKDAAAAjp3N0dQECAbAAIo8AAXMB6RkAAAEFAbBAIpQAAWUBVSMAACOAA6CQAAAjBqAQAAAfqmFjdAGAAqBQAAAgZ6AwAAAdamFlAQcBoEAAACN3YgECIwAAAQIA894eAAAhBJYAE4ICoPAAACOtZmcBgAKggAAAI4ugYAAAI51kcxOAAqBQAAAfUml1AQUBsGAjOwABaQFRIgAA8wIBaAGFGAAAAQIBsIAjSQABZvIYHwAAAQCjgISgsAAAIz2goAAAI4gIAA33/wAAjbCQI4AAKY+VDzswAAABAAANARIA2AkAAN8MAwCTDgYAcREBAN4XAACiGAEAzBgAAOUZAQBRHLkANB0AAC4gAQBoIAEAdiAyAN0hAABLIgEAhSIBAMMiAACWIwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5a1189e3d9a6.js b/pr/3958/docs/search.index/5a1189e3d9a6.js deleted file mode 100644 index 758ceaa527..0000000000 --- a/pr/3958/docs/search.index/5a1189e3d9a6.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBoCAAACA+ZgGZHgAAE4CEsCAelgABoCAAAB6YoFAAACB0ABERE4ECoCAAABfWbHQTAAKwECKWAAFpbzswAAABAABiAQQA6QbfAOQJAABTHwAAJyGAAAEBAaBAAAAfZmXzvSEAAHwBAQDzAAFlAacPAAATgAOwABaLAViwUCOAAClobXQBBQD1BCEAAAEAAQABAAEA8wIBcgHDEwAAAQEAOzAAAAEAAIEAAgBTHwAAJyGAACOAAqAQAAAgJ2ZpAYACsEAh4gABoEAAACHkZHMBAAGgkAAAI19sOjAAAAEAAAAAAAgAEAAAAOgeAiFGImgioSLyIiojNCNxI7cOAADIoIAAACCqsMAijwABAAbMAzowAAABAAAAAAAIABAAAAByAdwQvRNjFucYex+yITMiyCI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5a2edffcb075.js b/pr/3958/docs/search.index/5a2edffcb075.js deleted file mode 100644 index a9e56f18d5..0000000000 --- a/pr/3958/docs/search.index/5a2edffcb075.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQADsIAiogBysFAh3ACroDAAABjgYWJj96gQAAABAOgOtAMBACAAAQABBADzTyAAAAEAAQDzAAFl8rYWAAABAAGEArAgIL0AAaAgAAAgv2Fz84ACYWXzgAJycw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5a32ec2cd608.js b/pr/3958/docs/search.index/5a32ec2cd608.js deleted file mode 100644 index 3a0c60ed79..0000000000 --- a/pr/3958/docs/search.index/5a32ec2cd608.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoHAAACOtsJAjBQCHaG8BggKwACDlAROgAAAAIOZlcyMAAqBgAAAiU2V0ASYgAAABAwD1KCAAAAEAAQABAAEAAQABoJAAACNfbDowAAABAAAAAAAIABAAAADoHgIhRiJoIqEi8iIqIzQjcSMTgAKgIAAAICdkbgGAArCgIx0AAaAgAAAflWFpAQMBoAAAACI8c/PDIgAA0wABAAEDADswAAABAAAMAAUA3yAFABkiAACUIgEAzyIBAOIiAQDzgAJydgEDAbAAIcgAVGT13SAAAAEA5QABADUAE4ACoPAAACOabG8BgAKgkAAAI06gUAAAIxpibPdjAACMoBAAACNvoGAAACOIoGAAACJSoFAAACI9lVkXOzAAAAEAAB8ADwAADQAAqxIAAPISAACNGAoATRwDADMeAABrIAEAxiAAANggAAASIQEAQyIAAGMiAABVIwAAYSMBAGQjAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5a37ed6ddbd4.js b/pr/3958/docs/search.index/5a37ed6ddbd4.js deleted file mode 100644 index ab07a9e1fe..0000000000 --- a/pr/3958/docs/search.index/5a37ed6ddbd4.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYQCsAAgxwABsDAh7gABc3QBAAA7MAAAAQAAgQACAPYQAADXE4AAE4ACsDAY3QABZHLHAAAAhrCgIOcAAaAAAAAEd7CAIfAAAaBwAAAflLwIADswAAABAAAXAAcAugwEAPoQAADEEwsAoBYBAKceAACsHwEArCIAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5a3fd8d476ab.js b/pr/3958/docs/search.index/5a3fd8d476ab.js deleted file mode 100644 index 920956f2f6..0000000000 --- a/pr/3958/docs/search.index/5a3fd8d476ab.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBsAAWjwABc/UJDQAAAQABAAEAShMBgAKgAAAAInGwMB1aAAFudAEAhaCQAAAjb6BAAAAisqBAAAAieKBgAAAjC6AgAAAh/pgACvIfHwAAggABAwGgcAAAIydoAQkjAAATgAKgQAAAGNZlaQGBAqAAAAAjiaAAAAAjijQ2AQQBoAAAACI8c/PDIgAA0wABACcAAAGFoQAAACOaoEAAACH4oIAAACOtoFAAACI9FAAWAU0cAADDgISgQAAAHw6wEBGaAAEA8AABgAOgAAAAFmWgAAAAGKSwECNFAAFlc3UBBADz0xgAAAEAAQABggKgQAAAIq+gUAAAI09pciOAArBAI7UAAWdp84ADZ3J0VwcAAIegYAAAIE6wIBbGBpyBQQv34hAAAAEAmgwBAOICDQDGAgGAAqBAAAAgraBwAAAg2WFyAYACoMAAACNIoPAAACNVYXUBgAOwEBnlAAGgcAAAImeAI1kFoAFucnMBAgKwcCOfAAGgcAAAIQBlcjswAAABAAAyAAEAYh4yANcEAADJoFAAAB7bdWtVARfAsGAjnAAUoGAAACNWoIAAACNaQA2CDjowAAABAAAAAAANABAAAADaDCkNjRaOFiUegx+1HxogGyC5ILogdyLdIgsjAYACsCAZ4wABsQAjeQABZXgBAwGgYAAAIRFoOjAAAAEAAAAAAAcAEAAAALYYtxgEH6cfth/vIPAgACEjgAKgcAAAIfNlbwEDAaCwAAAjhWzy4xgAANkIAQABoGAAACLgYjowAAABAAAAAAAMABAAAADUEsITch1zHSAfIR8iHyMfJB8lH34fLyJOIgEDAPNAHwAAAQDcAscAAACFsDAdlQABoEAAAB8NoKAAACJnkgADOzAAAAEAAA4AAgDkEAIAgRELABOBAqAgAAAWrWVpU4ADoCAAACLHbG51AQIAOzAAAAEAAAYAAwCgEgAA6CICAI4jAgABggKgkAAAI3Cg4AAAI6pjcgECAPXCIAAATAHjAFYAZgDzAAFvAdATAAABAAGwQB2UAat08nYRAAABACMAAqBAAAAY0mVzOjAAAAEAAAAAAAoAEAAAAAgLCQuzDLQMtQy2DAQNuw+eErQgtSABAAKgwAAAI5OgAAAAIhdjc/QrHQAAlAQBAAEAI4ECoEAAACEaZXIBAAGgAAAAHulyOzAAAAEAAB8AAgBwHQAANB4eACOEArCQIs8AAWFl84ACaXYBhAKgsAAAI4igAAAAH71hc9OAhLBQIygAAUAgBQGCAqAAAAAjiaAAAAAjijQ28wUBaQEzIwAAJ/UPAJCgMAAAIeSgcAAAHjOgcAAAIuagUAAAIpGgIAAAHtK/1Q86MAAAAQAAAAAAJwAQAAAA3QomCycLKAvkEuUS0xPUE9UT1hOBGBMdFB0VHRYdFx0YHSkdMx3XHhsfnh88IGogxyDIILAh/yEAIgEiCCKBIsIixSJLI0wjTSNZI7MjtCM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5aa96657cd2a.js b/pr/3958/docs/search.index/5aa96657cd2a.js deleted file mode 100644 index 5590c4da4c..0000000000 --- a/pr/3958/docs/search.index/5aa96657cd2a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYkCoCAAACNuoDAAACN9aXATAAKgIAAAIkVlaTswAAABAAAJAAQAcBYEANcWAgC4IAAAiSIAAAEEADswAAABAAAFAAEANiAFAPMCAWU7MAAAAQAACwAFAHwWAQAOHQMA0yEBAO4hAQCnIgEAAYECoEAAACNtsAAipgBSZXOTgISwYB9rAAGgAAAAEvgQQGABAAGgMAAAGKR08scgAAABAAGAAqAgAAAiMKAAAAAS93J4AQMA9B4hAAABALAAAQAjgAKgsAAAIthuctcBAACFoCAAABfEEAgHOjAAAAEAAAAAAAsAEAAAAJwMnQy0GOUY5hh4HXkd+h77HvweGyEcIacAAACFsEAjcgAFoQAAACOUoDAAACKMEgATOjAAAAEAAAAAAAgAEAAAAKMS6xKEFggfDx+xH7Qf/iICIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5af93ac2e342.js b/pr/3958/docs/search.index/5af93ac2e342.js deleted file mode 100644 index ccaaf82799..0000000000 --- a/pr/3958/docs/search.index/5af93ac2e342.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoEAAACOodPR1IgAA5gATACYAE4ACoDAAACN9aXBDgQOgcAAAIxywcCAiAAFlbnMTgAOgMAAAI4igIAAAD7ZlbHM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5b177a3004f8.js b/pr/3958/docs/search.index/5b177a3004f8.js new file mode 100644 index 0000000000..c97fb579b6 --- /dev/null +++ b/pr/3958/docs/search.index/5b177a3004f8.js @@ -0,0 +1 @@ +rn_("AQAA9H8EAAAEFPgGAQABgAKgIAAAIfmgEAAAIS5hcwGDAqBwAAAjoKCAAAAj22NzAQcBsFAjQQCZY/KpHwAAugAjgAKwMBdPAAFscgEAAaBAAAAhHmU7MAAAAQAABgACADEXBAC1IgEAAQMA9DsjAAABADsAAQABAQD0OSMAAAEAOwABABOBAqBAAAAkEWNtAQEAOzAAAAEAAAUAAgDTIQEAyCMDACOAAqBgAAAkLW56AYACsBAZXQABoFAAACQQbngBBgD06iMAAAEAIAABAPcBAACHoHAAACRUoGAAACQSGAEP9VQRAAABAKgOZwAsAgEDAPV9GQAAaQayAYABAQAXBAAAyqCQAAAkJqBQAAAjjqBAAAAjS6AgAAAXLKBgAAAgVqCAAAAi77AgI5EAAaCgAAAkPcAFBQ87MAAAAQAAGAAKACEQAAA7EAEAWBcDADceAwDiHwAAOCADADIjAADOIwMALiQBAFAkAQABAAGgIAAAGYBy8lIeAAC0AQEAArAwI14AkrAgIyMAmWJ1OjAAAAEAAAAAAAgAEAAAADEe1B/tH3sg3yEiIzcjbCO6I6cDAICGsBANMgw2oQAAACRADAhFAYACoDAAACB3oRAAACSlZWnnIwAAi6CAAAAi1aBAAAAi0qDQAAAkcKBQAAAjY7AQIrwAvbnQC/dcAQAAwg4BACoBew6xALsD") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5b386393cb4a.js b/pr/3958/docs/search.index/5b386393cb4a.js new file mode 100644 index 0000000000..98cd83e05b --- /dev/null +++ b/pr/3958/docs/search.index/5b386393cb4a.js @@ -0,0 +1 @@ +rn_("AQIA9gwXAAABAAQKgwG2AA8BAYADoCAAACEXoEAAACFDsDAkFwABbHFylwAAAIWwYCMPAYOgYAAAIxCwABMuAAEwEAM6MAAAAQAAAAAACAAQAAAAYhc5GT0ZHx8jITsh4CHmIUkj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5b78a40f202c.js b/pr/3958/docs/search.index/5b78a40f202c.js deleted file mode 100644 index 06edbe7f86..0000000000 --- a/pr/3958/docs/search.index/5b78a40f202c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQkCoDAAACNDoGAAACN1cHMBgiIAAAEGAPOhIwAAAQABAAEDAPOCIwAAAQABAPONAnBz8wICZXDzsw8AAAEAAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5c025891d7f0.js b/pr/3958/docs/search.index/5c025891d7f0.js new file mode 100644 index 0000000000..1838965b83 --- /dev/null +++ b/pr/3958/docs/search.index/5c025891d7f0.js @@ -0,0 +1 @@ +rn_("AYACoBAAABdDoGAAACNUbm8BAAKgYAAAI9WgMAAAJCViczowAAABAAAAAAAMABAAAABOE0MUNR42Hu8f8B/xH/If8x/0H08g8SIfIwEDAPMPIAAAAQD+AscAAACFsDAeWAABoEAAAB/coKAAACNYkgADOzAAAAEAAA4AAgBPEQIA9BELAMOABKAAAAAYaaAAAAAYajQ2ZWk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5c02e68e2dcb.js b/pr/3958/docs/search.index/5c02e68e2dcb.js new file mode 100644 index 0000000000..283ede5770 --- /dev/null +++ b/pr/3958/docs/search.index/5c02e68e2dcb.js @@ -0,0 +1 @@ +rn_("AQUA83EZAAAoBgQEAQQA9TsXAAABAAEAAQABAAGCAqAAAAAhjKAAAAAhjTQ2I4MDoEAAACGOoEAAACKSZ2lyswCEoLAAACN7WAACOjAAAAEAAAAAAAkAEAAAAGoEawRWF1cXixqMGjkjOiN1I3Yj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5c1bbb58d6de.js b/pr/3958/docs/search.index/5c1bbb58d6de.js deleted file mode 100644 index 65df3bdabb..0000000000 --- a/pr/3958/docs/search.index/5c1bbb58d6de.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQoBoIAAACOkZgGqIgAAAQMBsIAjSQABZvIYHwAAAQDzgwJhcwEDAqAgAAAgwaAwAAAhvmJoAVwdAADzAAJobQHhCgAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5c41c5d77a58.js b/pr/3958/docs/search.index/5c41c5d77a58.js new file mode 100644 index 0000000000..569512c7f7 --- /dev/null +++ b/pr/3958/docs/search.index/5c41c5d77a58.js @@ -0,0 +1 @@ +rn_("AYACoFAAACQloHAAACNUZWlDAgOwYCHgAWmw4CSXAAFobXb2QxMAAAEAAQD7AAEA8wkTAQKwABAkAAFjc/NBCwAAAQBADQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5c65a6f826c6.js b/pr/3958/docs/search.index/5c65a6f826c6.js new file mode 100644 index 0000000000..6b13137e8a --- /dev/null +++ b/pr/3958/docs/search.index/5c65a6f826c6.js @@ -0,0 +1 @@ +rn_("AQMBoFAAACBQawFLEQAAAQABoEAAACKLbPI/FAAA1AsBBAGwQCHzAAFl8oYZAAABAAEEAaAAAAAgGHMBpx8AAAECAaBQAAAjCWMBHhkAALcAAADGoEAAABmFsGAg7ALqsHAjNACEQA0ACvdYCwAA0gEBAPgL3QQBAAEAU4ADoCAAABFqZXR5AYACoCAAAB79oIAAACOhaXIjgAKwQCE5AAFhdAGAArAwFD8L1LEAJI4AAXJ1AQABoNAAACPZYvYEDQAAAQBvAAEArgMIEgEAA6BwAAAix7AAIZkAAaCAAAAj6GZzdDswAAABAACxAAYAcg0AAEETAABTEwAAwRhXAJYgUQDwIAQAY4AEoBAAACMksEAkMwABZmd0dgEFAaBAAAAj/WXyyCIAALgAAQUA85kkAAABAAEA8wABdAHnEQAAAQMA83okAAABAAEA8wICcHPyhyIAAA4AAQABoEAAACQ9ZfZ2DQAAAQCtAwEAvRIBAAECAPNcIwAAkAABAPOAAml5AYICoAAAACSBoAAAACSCNDbzBwFpASskAAABBAGgIAAAIdZzAdEfAABDAISgMAAAH/6gUAAAIE2wMCPCAAFFgAA7MAAAAQAAFgAIAEIRAwDXEQsA2B8BAFYgAAAcIQAAviEAALgiAAAQIwAAQ4CEoDAAABlWoIAAACHYoCAAABl3AEEGAQEBoAAAACSKcgHAGAAAAQABsAAZfAY6cjswAAABAAA/AAQASxcAAJ8YHgAzHgAA/h4eACOBArCQI8QAAWFlIwECoEAAACRZZWn1ISMAAKsAXAABAAEAd/8BgM6gYAAAIH2gMAAAH+nAHzyK") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5d23251c4cf5.js b/pr/3958/docs/search.index/5d23251c4cf5.js deleted file mode 100644 index 7e97cb50c4..0000000000 --- a/pr/3958/docs/search.index/5d23251c4cf5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAAUAAgBMHQMA9iEBAAEJAPNkIgAAAQABAPMCAnBzOzAAAAEAAA0ABADPEgIA9RcAAMogBQDrIAMAAQcBoEAAACN3YgECIwAAE4YCsCAh4AABZG0TgAKggAAAIy9vcgECAbBwIygAAXPyCx8AAAEAAQEBoDAAACMVdwEPIgAA84ICZWkTAAKgUAAAI3VldPPHDwAAAQCHEwGDAqBQAAAhELAwIz4AAWNwAYEDoFAAACHfoAAAACNDoLAAACMtYmR0AYACoEAAACONoGAAACOeYXLzAgFzAc4YAADzgAJhcgECAPSqFgAAAQCgBisFAQEA9s0SAAABACUFAQBLCgEAU4CEsFAfCQABsBAhxgABEUACAQUA9hoiAAAJAAEAAQEBAAEAI4ECoHAAACJIbXMBBwGgQAAAI3JiAf4iAAABBAD0kR0AAAEAAQCpAUOAA6CAAAAjqqBAAAAh3WVsb7d+AADLoHAAAB+CoGAAAB+yACdmBzowAAABAAAAAAAaABAAAAAFCwYLBwuxDLIMzRC1E7YTtxMiHTEdVB3JHsoeKR89H6QftCG1IbYh+iH7IfwhgiIHIwgjCSM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5d2a4ffb9824.js b/pr/3958/docs/search.index/5d2a4ffb9824.js new file mode 100644 index 0000000000..113dd773cd --- /dev/null +++ b/pr/3958/docs/search.index/5d2a4ffb9824.js @@ -0,0 +1 @@ +rn_("AQcAOzAAAAEAAIgAAgAkIAAA/SGHAAEDADswAAABAACHAAEAkhqHAAECADswAAABAACCAAIAbBcAAGwegQDTAISwACByAAEKAQQ7MAAAAQAAiQADACILAAB0C4cAJhMAABOAAoARYvtwAWVn") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5d5aaeb3ee63.js b/pr/3958/docs/search.index/5d5aaeb3ee63.js deleted file mode 100644 index 7c739119a3..0000000000 --- a/pr/3958/docs/search.index/5d5aaeb3ee63.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoJAAACNwoOAAACOqY3LzAAFrAQgiAAABAgGwcCIjAAFo8vshAAABAAEEAPNPIAAAAQABAAEAAPUDIQAAnAEBAMsAAQD3AAAAhaEAAAAjkhgIBjswAAABAAARAAYA7QwAALYWAQC9FgAAqxgAAJoeCgDRIQEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5d89c76e1345.js b/pr/3958/docs/search.index/5d89c76e1345.js new file mode 100644 index 0000000000..5dd17e167d --- /dev/null +++ b/pr/3958/docs/search.index/5d89c76e1345.js @@ -0,0 +1 @@ +rn_("AQMA9NMjAAABAI0AAQAjAwKgMAAAI1hjbvMPFwAAbwEOCgEBAPaNGgAAAQCtCAEAOwABAMcAAICFoFAAAB9xoEAAABdisAAkqgABADgD") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5de9ec43ac06.js b/pr/3958/docs/search.index/5de9ec43ac06.js deleted file mode 100644 index bd163aa7c0..0000000000 --- a/pr/3958/docs/search.index/5de9ec43ac06.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUAOzAAAAEAALsAAgCiGAEAURy5AAEBAaBAAAAiAnA7MAAAAQAABwADAAALBACvDAEA+xcAAAEIAPTZIgAAAQABAAEAAQEBoCAAACMucjowAAABAAAAAAAWABAAAAC/EMAQwRACEQMRBBEFEQYRBxEIEQkRChELEVIfhB+WH6Ui4CIBI0AjVCN2I5Mj8wECZWk7MAAAAQAACAABAB0LCAABDgGgYAAAI3Zi8qMiAAABAAECAPPNGAAA/gVFAhOBAqCAAAAh3mZuI4ACoEAAABjMbG8BhAKgMAAAI2qgUAAAI4djcvMDAWMBkyIAAPMDAWQB8BcAAFcEAACHoHAAACCxsHAiVAABsDAjPgABsEAWoAABF4AGOzAAAAEAAAUAAQDNCQUAdwEAgMWwIB6lAxYAAYoI") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5e2e9a26d15b.js b/pr/3958/docs/search.index/5e2e9a26d15b.js new file mode 100644 index 0000000000..08befec664 --- /dev/null +++ b/pr/3958/docs/search.index/5e2e9a26d15b.js @@ -0,0 +1 @@ +rn_("AQUA9DceAAABAAEAAQAjAAKgYAAAIGlicDswAAABAAALAAMA7wwDADAUBQD1IAEAAQABgB3mABABdPIdEQAAAQABAAGwQCPAAAFl92sRAAABAK0Bzw9GAD8AMgABhQKgcAAAJBagMAAAI2dlcxMAhKBAAAAeMKBwAAAhAKAgAAAXBRKAAfU/DQAAugIBAAEAAQABAQGgAAAAIPlz81cNAACmEbACAQEA9foWAAAFCQEAAQABADOAA6BwAAAhOG5vdgEDAPQmHgAAAQABAAEAI4ACoAAAABMVZHIBgAKgQAAAIyegQAAAIyhibBOCAqAwAAAjtW50xyYDAI6wUCMcAAGwEBMUBEmgAAAAJH6gMAAAIuWggAAAI6GwIBb5Ao+gMAAAHu6XwXs7MAAAAQAAGQAIAG4BAQAsDQQAeA0HAJERAQDPEQEARR4CAM4fAQAcIwEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5e4470345368.js b/pr/3958/docs/search.index/5e4470345368.js deleted file mode 100644 index 3230ac66ea..0000000000 --- a/pr/3958/docs/search.index/5e4470345368.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQkA9GEjAAABAAIAAQDzBQFj8uogAAAfAAEBAPRcIgAAAQABAAEA84ACM2UBggKgAAAAI4mgAAAAI4o0NvMLAWkBMyMAAAGAArBwIvEAVrBQHY8BqGhyAQEBoGAAACOScwG/IAAA8wABdfLEIAAAAQABgAOgMAAAI0+w0CNBAAGgUAAAIi9sbXMjgAKgIAAAHrNhZQEFAPTZIgAAAQABAAEAAQYBoEAAACNgZfTXIgAAWQABAAEAE4ACsLAjawABYWkBgQKgUAAAIgigUAAAIedpbAEEADswAAABAAAUAAQAVB8MANsgAQD1IAQA2CIAAAEJAaBAAAAjqHQBWyMAAAGAArAQIL0AAaBgAAAiB2R09/wBAM2wMB2HAAGgQAAAIq/AbKSLOzAAAAEAAOAAHQBBBAUAugkAABsNAADdEAAA6xAAAI8RAQCaEQEArRIBALkSAQDHEgAA2RIAAHATAQC8EwAAZBYAAKwWAQAjGFcAiBgEANMYAgCZHQAAMB8DAEUfAACjHwAAsB8AAMMfUQAdIAQAzSEAABAiAAB1IwAAnyMEAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5e9bd63327e9.js b/pr/3958/docs/search.index/5e9bd63327e9.js new file mode 100644 index 0000000000..d3f5ab82f5 --- /dev/null +++ b/pr/3958/docs/search.index/5e9bd63327e9.js @@ -0,0 +1 @@ +rn_("AQIA9vYTAACHDzcAuAAdAB0AAQIBoDAAACNgYzowAAABAAAAAAASABAAAABzGSYeJx4oHikesB+xH7Ifsx+0HzIgMyAhISwhLSG+IksjWiNYJAEPAPRJJAAAAQABAAEAI4IDoNAAACRPoEAAACERYWNlAQIBoEAAACRZZfUhIwAAqwBcAAEAAQABCAGwYCP1AAFv8vohAAABAAGAArBQIT8AAaAwAAAkZmRyAQIA8zkTAACKDAUAAQIAOzAAAAEAAAcAAwA4EwAA8B4FAMcfAADzgAJidNctAADKoGAAACBVsGAixQABsAAjmgBXwGSMCTswAAABAAApAA4AAwkCAGQNAAAoEQEANBEAAOgRAABCFAAAERcAAGIYBgB3GAIAHxkCAJEgAQCYIgIAuyIAAPkiDAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5f0dbd2b82a1.js b/pr/3958/docs/search.index/5f0dbd2b82a1.js new file mode 100644 index 0000000000..dd99b3faf9 --- /dev/null +++ b/pr/3958/docs/search.index/5f0dbd2b82a1.js @@ -0,0 +1 @@ +rn_("AQQBoGAAACPVYgFPIAAAE4ACoCAAACErb3UBgAKgEAAAHvqgwAAAJJ90dQGBAqCAAAAkg6BgAAAklWRzY4GEoMAAACQ1sJAkeAApAxAIAQUBoGAAACQ8YgG9IgAAFwAAAoWgMAAAJDugYAAAJG2gkAAAJCewMCLWAAEEgA7ylR8AAN8DxwQAgMegUAAAIpGgAAAAEyygQAAAITSwMBlpAAEACsoB") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5f24c22f30b5.js b/pr/3958/docs/search.index/5f24c22f30b5.js new file mode 100644 index 0000000000..e571a61ca1 --- /dev/null +++ b/pr/3958/docs/search.index/5f24c22f30b5.js @@ -0,0 +1 @@ +rn_("AQMA9DsjAAABADsAAQABAQD0OSMAAAEAOwABABOBAqBAAAAkEWNtAQEAOzAAAAEAAAUAAgDTIQEAyCMDACOAAqBgAAAkLW56AYACsBAZXQABoFAAACQQbngBBgD06iMAAAEAIAABAPcBAACHoHAAACRUoGAAACQSGAEP9VQRAAABAKgOZwAsAgEDAPV9GQAAaQayAYABAQAXCAAAy6CQAAAkJqBQAAAjjqBAAAAjS6AgAAAXLKBgAAAgVqBgAAAjFqCAAAAi77AgI5EAAaCgAAAkPcAFFQ87MAAAAQAAGAAKACEQAAA7EAEAWBcDADceAwDiHwAAOCADADIjAADOIwMALiQBAFAkAQA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5f855600b115.js b/pr/3958/docs/search.index/5f855600b115.js deleted file mode 100644 index 5a2a1e4e12..0000000000 --- a/pr/3958/docs/search.index/5f855600b115.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABsGAjKAABZQGeHwAAQwEDsJAinwABoDAAAB9DY25z9OgQAACXDIwBAQAnAACAhaBwAAAgQ6AQAAAWraBgAAAiY7BwIRYAAQVgAg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/5fb57fa9dfcb.js b/pr/3958/docs/search.index/5fb57fa9dfcb.js deleted file mode 100644 index 91f93f5807..0000000000 --- a/pr/3958/docs/search.index/5fb57fa9dfcb.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoBAAAB4woMAAACOndHUBgQKggAAAI4ugYAAAI51kc2MAhKDAAAAjPbCQI4AAKQMQCDswAAABAAAyAAEAdiAyAEOAA6AQAAAX8rBQIbkAAWNkdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/601ce3b1f27e.js b/pr/3958/docs/search.index/601ce3b1f27e.js new file mode 100644 index 0000000000..301bd9533c --- /dev/null +++ b/pr/3958/docs/search.index/601ce3b1f27e.js @@ -0,0 +1 @@ +rn_("AQAA9dghAAC7AQEA0AABABOBAqEAAAAkimR0I4ACoIAAACSQbnIBBgDzmSMAANUAHQDzAAJidTowAAABAAAAAAA+ABAAAAA9DT4N9Q/2D/cPDhdRF1IXJBklGUcZbBluGR8eIB5DHlQeVR5WHl0elh+oH6sf3x/gH+EfCyAfICAgTSBlIGYgiiCLIIwgFCHkIeUh7iH8IfYi9yL4Ij4jPyNBI1IjjiOPI5AjlyOYI9oj5CPvI/gj/iMVJBkkGiSEJI0kqCQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/603aa21f94c1.js b/pr/3958/docs/search.index/603aa21f94c1.js deleted file mode 100644 index a05fca750c..0000000000 --- a/pr/3958/docs/search.index/603aa21f94c1.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoAAAACOJoAAAACOKNDbzBQFpATMjAAAjgAKgMAAAIeRhYgEHAaBAAAAjcmIB/iIAABOGArAgIcYAAWRtAQMA898eAAAMBAEAI4ACoCAAAB1rYXJDAAOgwAAAI4agIAAAGIZlaXT0whAAAEoAAQABAAGAAqBwAAAg2qAAAAAW1WF4AQIBsAAijwABcwHpGQAAAYACoFAAACBnoDAAAB1qYWUBBwGgQAAAI3diAQIjAAABBQDz3h4AACEElgABBQGwYCM7AAFpAVEiAADzAwFoAYUYAADXOwABiqBgAAAfUrAgIeAAAY8UBzswAAABAAAPAAYA3wwDAJMOBgDeFwAAzBgAAGggAQDdIQAAAQIAOzAAAAEAAAUAAQC8FwUAAQQAOzAAAAEAAAUAAQBcHgUA84ECY3IBAAKwMCHiAAGgIAAAHt1hawGoHQAA84CECCgC") \ No newline at end of file diff --git a/pr/3958/docs/search.index/60e00501f5e0.js b/pr/3958/docs/search.index/60e00501f5e0.js deleted file mode 100644 index 86f4b69858..0000000000 --- a/pr/3958/docs/search.index/60e00501f5e0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYUCoEAAACNeoGAAACOBYXIBgAKAGNMAEAGgQAAAIpJncwGDAqAgAAAgJKAAAAAfG2RzE4ECoEAAAB7dY2UBgAKgIAAAISSgEAAAIFlhcycAAIGFoSAAACOuoEAAACHyoNAAACN4oFAAACJxCNABAQIAOzAAAAEAABQAAQC0HhQAE4EDoBAAABaXoCAAABjGY2Vv9wEAgIagEAAAFssloAI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/60f9312cf889.js b/pr/3958/docs/search.index/60f9312cf889.js deleted file mode 100644 index 4b15778bbe..0000000000 --- a/pr/3958/docs/search.index/60f9312cf889.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQACsDAgQQHJsCAfewI3YnUBrx4AACOEArAwH3oCN2RzI4ACoCAAABLBaXQBBwA7MAAAAQAABQACAP4gAQDTIgMAE4ECsDAWiggkY3QBAgGwwCMjAAFl8rIYAAABAPMCAWcBYxEAAAGAArCQIgkBkqBgAAAiEGRuAQMBoHAAACJFZ/LWEAAA5QIBgQKggAAAI4ugYAAAI51kcxOJA6DQAAAjp7CQI4AAKWJtdccXAACKoHAAAB+koJAAACGwsaAjswABoJAAACGzD4kH8mEBAAABAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6105cfb47093.js b/pr/3958/docs/search.index/6105cfb47093.js deleted file mode 100644 index 3701a29515..0000000000 --- a/pr/3958/docs/search.index/6105cfb47093.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQCFsCAgvQABsEAg2wABsMAjawABoCAAACC/oIAAACNHERAGOzAAAAEAAA8ABgCaEQEAZBYAAIgYBADTGAIAMB8DALAfAAABAQA6MAAAAQAAAAAADQAQAAAA8x70HvUemB+ZH5ofmx+cH50fOiJBIk0ieSLwIgEPAaBAAAAjqHQBWyMAAHcAAADFoEAAACKSsKAjZgABABkACQE7HwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/611eeef63186.js b/pr/3958/docs/search.index/611eeef63186.js deleted file mode 100644 index ce8c5fa9b5..0000000000 --- a/pr/3958/docs/search.index/611eeef63186.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoEAAACMEZfLoIQAApgABAQGwwCNrAAFtAbAfAADzgAJudgEAAqAwAAAe9rAgImkA9mFyOzAAAAEAAAgAAgDFFwYAvh8BAAEFAPR5IwAAAQABAAEA84ACZHJnAAAAhaBQAAAhD7BgIk8BNrAADPgCuBQBA/ZnHQAAcwPUAIoAtwAXAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/61a80021625b.js b/pr/3958/docs/search.index/61a80021625b.js deleted file mode 100644 index c8ee2791ee..0000000000 --- a/pr/3958/docs/search.index/61a80021625b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQACoRAAACOToDAAACLHZW/yGx8AAGYDAQMBoEAAACNgZfUxIgAApgBZAAEAAQABgAKgEAAAH7KwsCKWAAFjZQECAbDAI2sAAW0BsB8AAAEGAPR5IwAAAQABAAEAYwQDoFAAACEPY2Vp8togAAAVAgECAPOOIwAAAQABAPMNAW3zSyMAAAEAAQABgAKgoAAAIvmwMCHXAJNucgGAArCAItEAAaAAAAAgJGZyEwACoJAAACLJZWk6MAAAAQAAAAAACgAQAAAAmRIsHy0fOB85H+Uh5iH6IhgjViNaI8dtAADNsCAe9wCroDAAAB4voFAAAB9/sLAiVAABoJAAACL6oBAAABZuQA/LMTowAAABAAAAAAAVABAAAADADMEMwgyTD7YQtxDgEJ0SbhNvE2UWsx6mH+Ug+CFyInMidCLuIkkjSiOkIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/61c6e7feee02.js b/pr/3958/docs/search.index/61c6e7feee02.js deleted file mode 100644 index f2059733de..0000000000 --- a/pr/3958/docs/search.index/61c6e7feee02.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAAcAAwDlCQEATB0DAPYhAQABCQDzZCIAAAEAAQDHAAAAhaAAAAAjmKCAAAAiOaAAAAAfZgSBQjswAAABAAAgAA0AcwEAACIEBQDPEgIAdBMAANQXAADmFwAA7RcCAPUXAACwGAEAyiAFAOsgAwAMIQEAnSIBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/61ccb4600de9.js b/pr/3958/docs/search.index/61ccb4600de9.js new file mode 100644 index 0000000000..1dc49ec88b --- /dev/null +++ b/pr/3958/docs/search.index/61ccb4600de9.js @@ -0,0 +1 @@ +rn_("AQEA9MYhAAABAAEAAQAjAAOhIAAAJKSgAAAAE2JjcnMB9B0AAAEAAPSpIQAAAQABAAEAE4ACsKAjiAABcnQBhQKgAAAAIoawICMxAAxkbvMAAXDyDBAAAAEAAQQA9EkkAAABAAEAAQDzAQFlAYUgAADnAQAAhbEwJKoAAR0ABAFqEQAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/61deca224259.js b/pr/3958/docs/search.index/61deca224259.js deleted file mode 100644 index 0602a3b4f5..0000000000 --- a/pr/3958/docs/search.index/61deca224259.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQgBoIAAACOkZgGqIgAAE4ADoBAAACH+oFAAACMYYmRwAQIBsHAjOQABZvWUHQAASwFgAKwDAQABAQGgUAAAINhvAdMWAAAzgAOwMCDEAAFhZWkBgAKgQAAAIc2gUAAAI11wcgGBAqAAAAAda6AQAAAfkXN184ADYW9yAQIA9EsiAAABADkAAQATgAKgUAAAIwtldQEBAPRJIgAAAQA5AAEAE4ECoEAAACMXY20BAQA7MAAAAQAABgADAEIfAAD+IAEA0yIDAAGAAqAAAAAYhqBQAAAjNWtzY4ADoJAAACJCZ256AYACsCAXwgABoDAAACJ4b3QBAwDzsiIAABkAAQABAAGgkAAAI4Zx9bwYAAABAJkEAQABAAEEA7BQIiwAAaBgAAAiwaAwAAAiBGFjcPOCHQAAAQABAPOAAmNkY4CEoFAAACHMoFAAACMWACghAQUA9PMiAAABAB4AAQATgAKggAAAI29ydWd7AACLoIAAACOxoDAAAB8+oBAAAB4xuUEPOjAAAAEAAAAAAD0AEAAAAA4LKQvDDMQMxQzGDMcMyAzJDMoM+AywD8IQ6RDqEAARAREMEQ0RDhF2EXcRgBGfEt8S6BLsEu0S7hLvEtET0hOPFpAWmBakGBkdGh0bHRwdax2lHVMeVB4fHy4fRh+TH6EfvR/mILMhByI8Ij4ieyKrIq0i+yIvI5wjsCM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/61ee667f06ee.js b/pr/3958/docs/search.index/61ee667f06ee.js new file mode 100644 index 0000000000..e3efc817bc --- /dev/null +++ b/pr/3958/docs/search.index/61ee667f06ee.js @@ -0,0 +1 @@ +rn_("AYUCoEAAACRVoGAAACR5YXIBgAKAGXQAEAGgQAAAI4RncwGDAqAgAAAg96AAAAAf6mRzE4ECoEAAAB+qY2UBgAKgIAAAIfmgEAAAIS5hcycAAIGFoSAAACSloEAAACLSoNAAACRwoFAAACNjCNABAQIAOzAAAAEAABQAAQB/HxQAE4EDoBAAABctoCAAABlnY2Vv9wEAgIagEAAAF2EloAI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/62552be51fab.js b/pr/3958/docs/search.index/62552be51fab.js deleted file mode 100644 index 02d5852bdc..0000000000 --- a/pr/3958/docs/search.index/62552be51fab.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoGAAACMBYgFGIAAAJwAAAYWgQAAAIbawcCKLAOmgMAAAIoigUAAAIu4YIQg7MAAAAQAABwACAHkRBgAtHQAAAQIBoEAAACBJZTswAAABAAAGAAIAmxYEANUhAQDzAAFr8r4PAAABAPOAAmNz") \ No newline at end of file diff --git a/pr/3958/docs/search.index/628a685fcb72.js b/pr/3958/docs/search.index/628a685fcb72.js deleted file mode 100644 index ac83903599..0000000000 --- a/pr/3958/docs/search.index/628a685fcb72.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoFAAACMtoHAAACJjZWlDAgOwYCELAU2w4COfAAFobXb2yRIAAAEAAQD0AAEAsQkTAQKwAA+8AAFjc/P+CgAAAQADFw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/62e025a4de3e.js b/pr/3958/docs/search.index/62e025a4de3e.js new file mode 100644 index 0000000000..89035fb463 --- /dev/null +++ b/pr/3958/docs/search.index/62e025a4de3e.js @@ -0,0 +1 @@ +rn_("AYkCoEAAACSFoGAAACSWYXIBiAKgQAAAJGawACOaAFdlcwGGAqBAAAAkVaBgAAAkeWFyAQQBoDAAACNgY/IsIQAAAQABBQGgYAAAJG5iOjAAAAEAAAAAAAkAEAAAAO4h9iL3IvgilyOYI+8jFSQZJBokAQMCoDAAACMkoEAAACNfaXXzWSAAAAEAAQD3AwACh7AAI6EAhhWBAwEZGQAAAQQAOzAAAAEAADIAAQBMITIA84ACYW8=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/631e3cef53ff.js b/pr/3958/docs/search.index/631e3cef53ff.js deleted file mode 100644 index cba12dc3b4..0000000000 --- a/pr/3958/docs/search.index/631e3cef53ff.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECoAAAACOJoAAAACOKNDYBBAGgAAAAIjxz88MiAADTAAEAJwAAAYWhAAAAI5qgQAAAIfiggAAAI62gUAAAIj0UABYBTRwAAIcBAICGoEAAACGzoEAAAB8OsBARmgABoCAAACHbBPAE") \ No newline at end of file diff --git a/pr/3958/docs/search.index/636746e3fba5.js b/pr/3958/docs/search.index/636746e3fba5.js deleted file mode 100644 index edf629acf9..0000000000 --- a/pr/3958/docs/search.index/636746e3fba5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBoEAAACBMZQFKHQAAAQDHsGAjOwABoCAAABaCoCAAABaDoDAAABilsEAgVAABsCAWogABsEAdegTmAECtCPT5DAAAsQIgEocAUwADsFAjRQABcnN49fsQAAABAAEA6g8BAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/63b9d82776fa.js b/pr/3958/docs/search.index/63b9d82776fa.js new file mode 100644 index 0000000000..371243030c --- /dev/null +++ b/pr/3958/docs/search.index/63b9d82776fa.js @@ -0,0 +1 @@ +rn_("AQEDsIAjlgB3sFAivAC9oDAAABmBYWJj9xERAAABAFAP3AMBACAAAQABAAA6MAAAAQAAAAAADwAQAAAAUwsaDRsNHA0dDR4NHw0gDSENWRMuF0UZLh5oHhUguyEBgQKgAAAAIR+gAAAAISA0NiOAAqCAAAAkgG9wAQABoEAAACNbZfcXDQAAAQABAP4F5AO/Ch4BdwEAgIWgIAAAE1gQAQ4=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/63c24ca130b9.js b/pr/3958/docs/search.index/63c24ca130b9.js deleted file mode 100644 index 3b9026e56a..0000000000 --- a/pr/3958/docs/search.index/63c24ca130b9.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECsBAYpwXuoCAAAB1/ZWkjgAKwEBK2AAFucocAAACGsDAdHQABoHAAACGtoFAAAB2AsDAiVgABoCAAABfUF4AI9fkKAAABAAEApQHYFQEAA6CQAAAjb6BAAAAisqBgAAAjC2RlcwGhHwAA8wYBc/J9HQAAAQABgAKwUB17AAGwICIgAAFhb4cDAACHsDAX0gABoHAAACBzoFAAABimoCAAABN0B4ALOzAAAAEAAAYAAgAzBAEA5AYEAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/64336bc819d5.js b/pr/3958/docs/search.index/64336bc819d5.js deleted file mode 100644 index 5f4f1c165f..0000000000 --- a/pr/3958/docs/search.index/64336bc819d5.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUAOzAAAAEAAFEAAQDDH1EAI4ECoKAAACNca3MBhQKgcAAAIxygMAAAInVlcxMAA6BAAAAdbaAgAAAWb2JlcvXoDAAArAIBAAEAAQBDAISwUCIsAAGgYAAAIsGgMAAAIgQFwAA7MAAAAQAABgADACURAQBeEQEAgh0CAAEDAPPAHwAAAQABAPMCAW47MAAAAQAABwABAFoWBwDzgAJvdAEDADswAAABAAD6AAIA+RAAAGAV+QABCAGgQAAAIwRl8ughAACmACMCArAwH74AAWlwOzAAAAEAAAgBAgD4EAAAWBQHASOAA6AQAAARnqBAAAAWvW9ydQGAArAwGNcAAbAwIC4AAXJ25yQAAIqwUCJhAIygUAAAHwGgIAAAErOgsAAAIRqgUAAAFr40yQc6MAAAAQAAAAAADQAQAAAAtwyxD7IP1ReQHTofJSDxIPIg8yD0IA4hHiKaIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/643e47add64f.js b/pr/3958/docs/search.index/643e47add64f.js deleted file mode 100644 index 2fe5795cfd..0000000000 --- a/pr/3958/docs/search.index/643e47add64f.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcBoEAAACNyYgH+IgAAE4YCsCAhxgABZG0BAwDz3x4AAAwEAQAjgAKgIAAAHWthckMAA6DAAAAjhqAgAAAYhmVpdPTCEAAASgABAAEAAYACoHAAACDaoAAAABbVYXgBAgGwACKPAAFzAekZAAABgAKgUAAAIGegMAAAHWphZQEHAaBAAAAjd2IBAiMAAAEFAPPeHgAAIQSWAAEFAbBgIzsAAWkBUSIAAPMDAWgBhRgAANc7AACKoGAAAB9SsCAh4AABjxQHOzAAAAEAAA8ABgDfDAMAkw4GAN4XAADMGAAAaCABAN0hAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/64442b2c7106.js b/pr/3958/docs/search.index/64442b2c7106.js new file mode 100644 index 0000000000..7dde927951 --- /dev/null +++ b/pr/3958/docs/search.index/64442b2c7106.js @@ -0,0 +1 @@ +rn_("AYACoFAAACQloHAAACNUZWlDAQOwYCHgAWmw4CSXAAFobXb2QxMAAAEAAQD7AAEA8wkBBwGgQAAAJG9iAfsjAAAThAKwICLAAAFkbfOAAmxv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/648e37088d2a.js b/pr/3958/docs/search.index/648e37088d2a.js new file mode 100644 index 0000000000..8a7bd7a96a --- /dev/null +++ b/pr/3958/docs/search.index/648e37088d2a.js @@ -0,0 +1 @@ +rn_("AYACoFAAACKFoBAAAB78aXQBAAGgEAAAHvtv9WYTAAABAAEAAQCLEAGAArAQIy8AAaAgAAAjaGFvE4ICsHAkNgABbXETgAKg4AAAJGxscBOAArAwIuQBCmVvAYICoQAAACSmoNAAACSTa20TgAOgYAAAIxOwYCLdAAFha3IBgQKwgCQAAAGggAAAJAJldwGDArAwIxEAAbBAI0cAAXBzAYACoQAAACSJoKAAACP4ZWwBgAKwICPGAAGgUAAAItpkcLd8AACLsGAi2wABoPAAACRrsKAjwgABlbQHOzAAAAEAADwAAgA1EQIAkxE5AA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/649745373c83.js b/pr/3958/docs/search.index/649745373c83.js deleted file mode 100644 index a17aba7566..0000000000 --- a/pr/3958/docs/search.index/649745373c83.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoAAAACJSZAHFDwAAAQIA844jAAABAAEA8wsBbfNLIwAAAQABAAEEAPQeIQAAAQCwAAEA8wIBZfW0GAAAMQABAJIEAQDzgAJhbwEHAaBgAAAiym/yYiAAAAEAE4ECoDAAACNjZXABAgA7MAAAAQAA4gACAKQSAADaFuEAAQIBoEAAACBIZfJEHQAAfAPzAQFs89keAACeAAEAAYECoDAAABfyoHAAACG0ZXIBgAKgUAAAIaigEAAAHjJpdAEAAaAQAAAeMW/17BIAAAEAAQABAAwQAYACsBAiPwABoCAAACJ2YW8TggKwcCM+AAFtcROAAqDgAAAjdGxwE4ACsDAiAwDyZW8BggKhAAAAI6+g0AAAI5trbROAAqBgAAAiImFrAYECsIAjBwABoIAAACMJZXcBgwKwMCIgAAGwQCJWAAFwcwGAAqEAAAAjkaCgAAAi/2VsAYACsCAi0QABoFAAACH6ZHC3fAACi7BgIfsAAaDwAAAjc7CgIs0AAZW0BzswAAABAAA3AAIAyhACACcRNACDgISgQAAAIQ6wQCHRAAGgUAAAIzgECQjzAIcRUQk7MAAAAQAASQIJANoKAADiCgAAsAvnAF0NAwDREAAAshIAAP4SYgC8FwUAXBvwAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/64d365b7fc4c.js b/pr/3958/docs/search.index/64d365b7fc4c.js new file mode 100644 index 0000000000..dff618ec92 --- /dev/null +++ b/pr/3958/docs/search.index/64d365b7fc4c.js @@ -0,0 +1 @@ +rn_("AQUA8y8eAAC8AZQEAQUA860fAAABAAEA8wABczowAAABAAAAAAAQABAAAAA6DTsN+A75DvoOfBh9GB4gSiAFIQYhByEIIQkhqCLsIg0jYwADoDAAACRjY2RyOzAAAAEAAAwABgAjCwAA/AsDAPUdAgCyIQEAoyIBANkiAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/654cbd703fee.js b/pr/3958/docs/search.index/654cbd703fee.js new file mode 100644 index 0000000000..a963e5baf3 --- /dev/null +++ b/pr/3958/docs/search.index/654cbd703fee.js @@ -0,0 +1 @@ +rn_("AYACsBAjIwCZsLAkPgABbnABAwD0cSQAAAEAAQABACOAA6DwAAAkqKAwAAAhPmxveQEEAPStHwAAAQABAKQAAQwA9MgjAAABAAEAAQBjgAOgQAAAIyZjbXQBgAOgcAAAI52gIAAAIpGwICGKAAFjbHMTgAKwQCA+AAFlbwEDA6CQAAAkJqCAAAAkVKCgAAAkPWJzdvbiHwAAUAP8AAEAIQABABOBAqAQAAAghmN0AYACsBAgQAEHoBAAABNSbnUBAgGgcAAAIyFtAaofAAABgQKgQAAAIrmgQAAAIro0NiOAA7BQH8QAsaCAAAAjvWFwcgEDAbAwI5sAAXTy8CEAAAEAAQQA9ckiAAABAAEAAQABADOAA6AQAAAhEm9ydQECAPTjHwAARQHzAgEA8wABcgH3IAAAAQEA9V0gAAABAAEAAQABAAEAAbBAJBsAAWXy2SMAAD0ApwIAgIagMAAAIDewgCPGAAGgIAAAJH4poAEBDAD0ziMAAAEAAQABACOAA7AgI14AkqBAAAAjJWl1eQEBAPNEIQAAAQABAAECArCQJJQAE7AAIT8AAWVzAXggAACXAACAhaEgAAAkjbAQEz0AAbAgIsIAAQigDDfbDwDRoIAAACHqsCATbQABoFAAACKqoGAAACEnsGAjYQABwG+5DzswAAABAAAYAV4AHgsBAFELAAA6DQEAaQ0AAPgOAgA5EQIAVxEBAGERAADOEQAABBIAABMTAAAVEwAAHxMDAEYTAABqEwEAbRMBAHITAABYFIcAYBcAAHwYAQA7GQEAWhkBAGsZAAB3GQAAehkAANIdAADjHQAAMR4AAGseAABkHwAAcB8BALcfAADMHwEA1B8AAO0fAAD5HwMAByABAB4gAAAhIAEAPiABAEogAABXIAEAciABAHsgAACBIAAABSEEAEshAACDIQAAiCEAAM8hAwDYIQAA3yEAAPUhAwCbIgAAnSIAAKgiAADFIgEA7CIAAO4iAAANIwAAIiMAADQjAAA3IwAAQCMAAEMjAABMIwAAbCMAAIMjAACTIwEApCMBALgjAAC6IwAA2SMAANsjAADqIwEA8yMAAAckBQAOJAAAECQCABYkAAAgJAEALSQAADEkAQBPJAAAVSQAAGQkAQBwJAAAdiQBAHkkAAB9JAAAhSQAAJYkAACiJAEArCQBAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6599298989f4.js b/pr/3958/docs/search.index/6599298989f4.js deleted file mode 100644 index c1e26e9323..0000000000 --- a/pr/3958/docs/search.index/6599298989f4.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYkCoEAAACONoGAAACOeYXIBiAKgQAAAI22wACKmAFJlcwGGAqBAAAAjXqBgAAAjgWFyAQQBoDAAACJuY/JXIAAAAQABBQGgYAAAI3ZiOjAAAAEAAAAAAAkAEAAAABkhFCIVIhYioyKkIvYiGyMhIyIjAQMCoDAAACI0oEAAACJtaXXziB8AAAEAAQD3AwACh7AAIq0AghWBAwF7GAAAAQQAOzAAAAEAADIAAQB2IDIA84ACYW8=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/65aba293bd3c.js b/pr/3958/docs/search.index/65aba293bd3c.js new file mode 100644 index 0000000000..96206a68dc --- /dev/null +++ b/pr/3958/docs/search.index/65aba293bd3c.js @@ -0,0 +1 @@ +rn_("AQABoCAAACP8cvMAIQAA3QEBAAGBAqCQAAAj/6AQAAAgfWF0AQgA9E0jAAABAAEAAQDzgAJjdDMAA7AQIDUAAW5yePRvBAAApgUBAAEU") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6612416dc551.js b/pr/3958/docs/search.index/6612416dc551.js deleted file mode 100644 index 1b84e3d2bd..0000000000 --- a/pr/3958/docs/search.index/6612416dc551.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9cIgAABMAeMAVgBmAPMAAW8B0BMAABOAA6EAAAAjhbBAHwQAo2hvcAEFADswAAABAAAFAAEAyiAFADOAA7DwIyoAR2xzdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/667486039d38.js b/pr/3958/docs/search.index/667486039d38.js new file mode 100644 index 0000000000..7bae71aa67 --- /dev/null +++ b/pr/3958/docs/search.index/667486039d38.js @@ -0,0 +1 @@ +rn_("AQIBoAAAACLpc/KxIgAAAQABAgGwYCE/AAFlOzAAAAEAABIAAwAfGQIAmCICAPkiDAABDQD0ziMAAAEAAQABAPMAAWLzzB8AAAEAtgMTgISgYAAAIeOgQAAAIFKgMAAAIpRoAAEBCAD0ziMAAAEAAQABAAEBArBAJFYAAaAgAAAkJmVyOjAAAAEAAAAAABkAEAAAACoRKxEsEW0RbhFvEXARcRFyEXMRdBF1EXYRdxEjIFUgaSCZI74j1SP6IzgkPCRNJG4kiyQzAAOwICGQAAFlaW87MAAAAQAACQABAGULCQABAwGgYAAAJFxm9mkeAAABABICIgH4AXcA1wYAAIigQAAAJJCwAB4cAAGggAAAJEEdAE4BmhgAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6696b46bad1d.js b/pr/3958/docs/search.index/6696b46bad1d.js deleted file mode 100644 index aae2453cd4..0000000000 --- a/pr/3958/docs/search.index/6696b46bad1d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoGAAACMBYgFGIAAAAQABoEAAAB9mZfO9IQAAfAEBAPOAAmRyJwAAAIWgQAAAIbawcCKLAOmgMAAAIoigUAAAIu4YIQg7MAAAAQAACAADAKcPAAB5EQYALR0AAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/66c2e7f440eb.js b/pr/3958/docs/search.index/66c2e7f440eb.js new file mode 100644 index 0000000000..03576281cb --- /dev/null +++ b/pr/3958/docs/search.index/66c2e7f440eb.js @@ -0,0 +1 @@ +rn_("AYECoAAAACEfoAAAACEgNDYBBAD1CiMAAHwAAQA9AAEAAQQBoAAAACMNZPKjIgAAAQBnAAABh6CgAAAkR6AwAAAgaKAQAAAkaKBgAAAkgLCgI/4AhpVQBPUlEwAARwAvDrkB+gABgQKwICGSAAGgIAAAIZRhc3OABKAQAAAf7G5vcHY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/66f02014a51a.js b/pr/3958/docs/search.index/66f02014a51a.js deleted file mode 100644 index 8d1b2d0c41..0000000000 --- a/pr/3958/docs/search.index/66f02014a51a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9QQhAAABAAEAAQABABOBAqAgAAAdImNsAYACoCAAABfdoDAAAB0hYWUnAQAAxqAwAAASvaCAAAAhr6CQAAAiArBgH3EAAcACwAI7MAAAAQAABgADADYEAgDFCAIAwxMAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6714bdfcfbb4.js b/pr/3958/docs/search.index/6714bdfcfbb4.js deleted file mode 100644 index 1d5c3cfca7..0000000000 --- a/pr/3958/docs/search.index/6714bdfcfbb4.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUCsGAjQAAUsEAjHwABYmU7MAAAAQAAHgALAEofBABaIAQAySEAAMshAAAmIgAALiIAALMiDADnIgAAPSMAAJkjAACyIwAAAQEA81kjAABaAAEAVwAAAMag0AAAI0iwYCOcABSgYAAAI1aggAAAI1oADIIMOjAAAAEAAAAAAAgAEAAAAI0WjhYlHoMfGiAbILkguiDdIg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6721e0046732.js b/pr/3958/docs/search.index/6721e0046732.js deleted file mode 100644 index 672d05e999..0000000000 --- a/pr/3958/docs/search.index/6721e0046732.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoAAAACOJoAAAACOKNDbzAwFpATMjAAATgAKwIBLkAAFkdAEFArAwImwAi7AgIjMAlWJ19AUfAACjAGIBPQEBgAKwECBBAcmgUAAAIa1kbuOAhLBAIdwAqwEJQA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/673a0de12884.js b/pr/3958/docs/search.index/673a0de12884.js new file mode 100644 index 0000000000..dc05088208 --- /dev/null +++ b/pr/3958/docs/search.index/673a0de12884.js @@ -0,0 +1 @@ +rn_("AQkCoDAAACQ7oGAAACRtcHMBdCMAAAEGAPOZJAAAAQABAAEDAPN6JAAAAQABAPONAnBz8wECZXDzGhAAAAEAAQAjgAKgoAAAIRdpbg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6786999f20ff.js b/pr/3958/docs/search.index/6786999f20ff.js new file mode 100644 index 0000000000..c7602e6dfc --- /dev/null +++ b/pr/3958/docs/search.index/6786999f20ff.js @@ -0,0 +1 @@ +rn_("AYkCoCAAACRnoDAAACR1aXATAAKgIAAAIzVlaTswAAABAAAJAAQABhcEAG0XAgCOIQAAeyMAAAEEADswAAABAAAFAAEACiEFAPMCAWU7MAAAAQAACwAFABIXAQDOHQMAsyIBAM4iAQCbIwEAAYECoEAAACRmsAAjmgBXZXOTgISwYCA8AAGgAAAAE3QQQGABAAGgMAAAGUV08pwhAAABAAGAAqAgAAAjIKAAAAATc3J4AQMA9PMhAAABALsAAQAjgAKgsAAAI81uctcBAACFoCAAABhhEAgHOjAAAAEAAAAAAAsAEAAAAPMM9AxVGYYZhxk7HjweyR/KH8sf8CHxIacAAACFsEAkagAFoQAAACSMoDAAACN+EgATOjAAAAEAAAAAAAgAEAAAAB0TZRMaF9cf3h+EIIcg9yP7Iw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/681bec85be7a.js b/pr/3958/docs/search.index/681bec85be7a.js deleted file mode 100644 index 9ae41e3d2e..0000000000 --- a/pr/3958/docs/search.index/681bec85be7a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoCAAACA+ZvIMCwAAjRMXAAAAhaBAAAAhzqAQAAAfGrAAGNsGDqBAAAAjqBgBBTswAAABAABWABUA3QkCANEMAADBEgAAtRYAAAEYHgDnGQAAXh0AAHAdAAA0Hh4A0h4AANYeAABCHwAAlB8AAGEgAAD+IAEARSIAAHUiAADTIgMAWyMAAG4jAACUIwAAI4ACsJAizwABYWU=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/682e84f0a6ff.js b/pr/3958/docs/search.index/682e84f0a6ff.js new file mode 100644 index 0000000000..9ba0c92ee2 --- /dev/null +++ b/pr/3958/docs/search.index/682e84f0a6ff.js @@ -0,0 +1 @@ +rn_("AQAA81kEAAAoHwEAAQkA9cohAAABAAEAAQABACOBAqAQAAARQGlyAQoBoEAAACRZZfTMIwAAXAABAAEAAQcA83EjAAABAPkA8wQBY/I6EwAARQUXGQAAiqAgAAAgUKBAAAAhHqCAAAAhf6AgAAAQFqBwAAAjIaCgAAAitzyZCjswAAABAAAdAA4AaAEBAO4DAwAnEQAAGBcAACwXAAAxFwQARBcCAE0ZAwCRGgAAEx4CAKofAACNIAAAtSIBABYjAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/68413a4c18f0.js b/pr/3958/docs/search.index/68413a4c18f0.js deleted file mode 100644 index 97586fb395..0000000000 --- a/pr/3958/docs/search.index/68413a4c18f0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBsDAipwABdPIbIQAAAQABBAD16SEAAAEAAQABAAEA84ACb3IBAgD1jB8AAAEAAQABAAEAMwKEoEAAACBqsMAjRQABMAAMAfYSAAAjgAKgQAAAHahpdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6872c90f3832.js b/pr/3958/docs/search.index/6872c90f3832.js deleted file mode 100644 index b8caae8d29..0000000000 --- a/pr/3958/docs/search.index/6872c90f3832.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQoA9DYjAAABACAAAQABBAGgAAAAIwpzATAgAADzgAJlaQEFAaBgAAAi4GIBfh8AAAECA6BQAAAh3aAwAAAjQ6BgAAAjdWNwc/LKHgAAuAPzgQJscwEBAaBgAAAjAWIBRiAAABOEA6AwAAAiiKBQAAAi7mVudROBAqCQAAAi72J05wAAAYawQBjIAAGgIAAAIiKgIAAAF+YQgA/yqwwAAAEAI4ACoHAAACH1bnI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/68c0e7c9093c.js b/pr/3958/docs/search.index/68c0e7c9093c.js new file mode 100644 index 0000000000..3f0fed1fdc --- /dev/null +++ b/pr/3958/docs/search.index/68c0e7c9093c.js @@ -0,0 +1 @@ +rn_("AQoBoIAAACScZgGeIwAAAQMBsIAkQgABZvLnHwAAAQDzgwJhcwEDAqAgAAAhlqAwAAAinmJoAR4eAADzAAJobQEkCwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/68ca1d2849e2.js b/pr/3958/docs/search.index/68ca1d2849e2.js deleted file mode 100644 index 956e1192bc..0000000000 --- a/pr/3958/docs/search.index/68ca1d2849e2.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECsIAiogBysFAh3ACrYWIjgAKgAAAAFphzdSOBAqCAAAAiknJ0AYECoCAAAB7JsEAjgQAdbG2HAQAAhrBAI14AL7BgHwUAo6BQAAAfNqDAAAAi+wsARfSoDAAAAQABAP0W") \ No newline at end of file diff --git a/pr/3958/docs/search.index/68d3f2645e64.js b/pr/3958/docs/search.index/68d3f2645e64.js deleted file mode 100644 index 6c707ee9b9..0000000000 --- a/pr/3958/docs/search.index/68d3f2645e64.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoIAAACLxdAHHEgAAE4ACsEAjOwABZ3YBAQGgQAAAI0Rl9h8NAAABAJkDAQC2EjoAAQABsAAY2wYOcjswAAABAAA/AAQAtRYAAAEYHgBwHQAANB4eACOBArCQIs8AAWFlIwECoEAAACNgZWn1MSIAAKYAWQABAAEA04CEoGAAAB+qKSAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6919ea072a2d.js b/pr/3958/docs/search.index/6919ea072a2d.js new file mode 100644 index 0000000000..0f1bee50cd --- /dev/null +++ b/pr/3958/docs/search.index/6919ea072a2d.js @@ -0,0 +1 @@ +rn_("AYECsBAZSAYYoCAAAB5CZWkjgAKwEBMwAAFucocAAACGsDAd3QABoHAAACKKoFAAAB5DsDAjRwABoCAAABhxF4AI9TwLAAABAAEAuQFzFgEAA6CQAAAkaKBAAAAjpqBgAAAkBGRlcwF0IAAA8wYBc/JAHgAAAQABgAKwUB4+AAGwICMRAAFhb4cDAACHsDAYbwABoHAAACFJoFAAABlHoCAAABP1B4ALOzAAAAEAAAYAAgBRBAEAEQcEAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6933f5a1e25e.js b/pr/3958/docs/search.index/6933f5a1e25e.js new file mode 100644 index 0000000000..49b5204f97 --- /dev/null +++ b/pr/3958/docs/search.index/6933f5a1e25e.js @@ -0,0 +1 @@ +rn_("AYICoFAAACNbsAAeaAGtZXMBhQKwMCNeAJKwICMjAJlidSOAArAgIRUB1mlsUwCEoCAAACGusCAgTAJDAgEMOjAAAAEAAAAAAAsAEAAAAAUSBhIHEggSCRIKEgsSeh94JIMklSShJAEHAPOdIgAAlAEBAAEEADswAAABAAAJAAEAXh4JAAEDAbBgIyIAmGLySyAAAEMCdwQAAImgEAAAE1GgkAAAI1qgwAAAJBOwkCLFAAGgoAAAI7s4CQ86MAAAAQAAAAAAGAAQAAAAbQ1uDW8NcA1xDRMRFBEVEU4XVBdxGXsZVx6ZH6AfrB+tH64frx8OIFMgFiGdI+Aj4SM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/695c02d40886.js b/pr/3958/docs/search.index/695c02d40886.js new file mode 100644 index 0000000000..8999227d08 --- /dev/null +++ b/pr/3958/docs/search.index/695c02d40886.js @@ -0,0 +1 @@ +rn_("AQEA9kYZAADRCbwAAQCNAAEAAQ8A9EkkAAABAAEAAQAjgAOg0AAAJE+gQAAAIRFhY2XzgAJsbROAArBgIPUAAWFv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/69a2f3f24247.js b/pr/3958/docs/search.index/69a2f3f24247.js deleted file mode 100644 index b7d6581e6c..0000000000 --- a/pr/3958/docs/search.index/69a2f3f24247.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAAgABABdEQAApRIDAPASAQAoIwEAFwAAAIigYAAAI2OgEAAAGCGgAAAAEXigUAAAIwCgMAAAIEOgAAAAFsyhIAAAI4go0QM6MAAAAQAAAAAAFgAQAAAAvhLGEnUWehaZFocYqBipGKoYph2nHSYeJx4oHikeKh4rHvgeqR/JIOchoiIUIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/69e317a6d740.js b/pr/3958/docs/search.index/69e317a6d740.js new file mode 100644 index 0000000000..d0d4083348 --- /dev/null +++ b/pr/3958/docs/search.index/69e317a6d740.js @@ -0,0 +1 @@ +rn_("AYUCoEAAACOjoFAAACRIaXIBAAOgUAAAH6ihAAAAJE6gQAAAHipjZmz0MQ0AAE8A6RWbAGMAA7BgJCAAAWVzdAFxIAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6a0793182c7d.js b/pr/3958/docs/search.index/6a0793182c7d.js new file mode 100644 index 0000000000..b1a03d3603 --- /dev/null +++ b/pr/3958/docs/search.index/6a0793182c7d.js @@ -0,0 +1 @@ +rn_("AQcBsEAjwAABZQEuIwAAAYACoFAAACD5oFAAACO/cHUBggKgAAAAIbqgAAAAIbtlcyOAAqBgAAAjRGV0AQMA9fsgAAABAAEAAQABAAEAAaCQAAAkWGw6MAAAAQAAAAAACAAQAAAAtR/XITYjWSOVI+kjIiQsJGkkE4ACoCAAACD6ZG4BBAA7MAAAAQAABwACALQhBQDXIwEAAQQBoAAAACKoZPOyIQAAAQAmAbcFAAGHsLAkFwABoGAAACNDlAkDOzAAAAEAABYABwAuGQoACx0CAEEhAQDnIQEAMyMAAFokAQBdJAEAAQABsEAhsAABZfUpGQAAAQABAAEAAQATAAKwoCRfAAFndgEKIAAA84ACbm8BAwA7MAAAAQAABQACALAfBAC+IgAAI4ACgB+3BCABZHLnAgAAhrBQITwAAbAAHx0AARRBEjswAAABAAALAAUALxEDAI8RAQBaHgEA1R8BADYhAQAjgAKgQAAAIRRvdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6a1c7a70fdd8.js b/pr/3958/docs/search.index/6a1c7a70fdd8.js new file mode 100644 index 0000000000..33c8fe7e2d --- /dev/null +++ b/pr/3958/docs/search.index/6a1c7a70fdd8.js @@ -0,0 +1 @@ +rn_("AYcDoFAAACMloFAAACMmsGAjYQABYnN2AYACsAAhugEeoAAAACG7ZXMBAwDzmSQAAAEAAQCjgYSggAAAI/mwEBE+EkZCIAQBBQA7MAAAAQAACAADADUeAQDvHwUA8SIAAAEFAqBAAAAjaqAgAAAi4Gh1Ae4fAADzgAJxcxOAArEAJHMAAWV4AYkCoEAAACSFoGAAACSWYXIBiAKgQAAAJGawACOaAFdlcwGGAqBAAAAkVaBgAAAkeWFyAQQBoDAAACNgY/IsIQAAAQABBQGgYAAAJG5iOjAAAAEAAAAAAAkAEAAAAO4h9iL3IvgilyOYI+8jFSQZJBokAQMCoDAAACMkoEAAACNfaXXzWSAAAAEAAQD3AwACh7AAI6EAhhWBAwEZGQAAAQQCoDAAACQ7oGAAACRtcHMBdCMAABODAqBQAAAhBHJzAQQAOzAAAAEAADIAAQBMITIA1wAAgIagYAAAHmugYAAAHjSxQCSOAAERRAkBhQOgQAAAIt+gcAAAI6KgYAAAI2llbnMBCwD0SSQAAAEAAQABAAEAAqAQAAAkLaBAAAAf+GVy9BMQAAABAAEAwBIBAgDzIxMAAAEAAw4zgAOgUAAAH+xydHYBBgDzmSQAAAEAAQABAwDzeiQAAAEAAQDziwJwcxOAArAAEeQAAWR0hwEAAIWw0CPiAAGgYAAAIeagUAAAI0SEKAE6MAAAAQAAAAAABwAQAAAAVxlYGdMfeiCJIMQhxSHVIQGAAqBAAAAi7KBAAAAXDmxvAQsBsGAkOAAVYvKrIgAAcwATgAKg0AAAJANkbmeZDQDRoBAAABIBoFAAACLtoIAAACErsGAZPQXioDAAACEToFAAACLusFAXDwt9oJAAACE0Qm+6FzswAAABAAAYAAwAZAEBAJECCAAICQEAXgsAAA8NAAAaEAIAzREAAOcRAABgEwEAvhgAAPkgAAAUJAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6a3926086115.js b/pr/3958/docs/search.index/6a3926086115.js deleted file mode 100644 index f87ce7705a..0000000000 --- a/pr/3958/docs/search.index/6a3926086115.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQCFoJAAACNvoEAAACKyoEAAACJ4oGAAACMLoCAAACH+mAAK8h8fAACCACMBAqBgAAAgTmhz9uIQAAABAJoMAQDiAg0AAQIBsFAiUACVY/LcHgAAtgBjgISwkCKPAAGgYAAAI4YEIAo=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6a88c5ace812.js b/pr/3958/docs/search.index/6a88c5ace812.js new file mode 100644 index 0000000000..3a4c0fa015 --- /dev/null +++ b/pr/3958/docs/search.index/6a88c5ace812.js @@ -0,0 +1 @@ +rn_("AQABoGAAACPVYjowAAABAAAAAAAMABAAAABOE0MUNR42Hu8f8B/xH/If8x/0H08g8SIfIwEDAPMPIAAAAQD+AscAAACFsDAeWAABoEAAAB/coKAAACNYkgADOzAAAAEAAA4AAgBPEQIA9BELABOAAqAgAAAXQ2Vp") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6ac64dde589e.js b/pr/3958/docs/search.index/6ac64dde589e.js deleted file mode 100644 index c186af49d5..0000000000 --- a/pr/3958/docs/search.index/6ac64dde589e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEBoEAAACMEZfLoIQAApgABAQKwwCNrAAGggAAAI0dtdAGwHwAAAQMBoCAAACA+ZgGZHgAAE4CEsCAelgABoCAAAB6YoFAAACB0ABERE4ACoCAAABfWbHSzgASggAAAIxphbm92") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6acaaa36379b.js b/pr/3958/docs/search.index/6acaaa36379b.js deleted file mode 100644 index fd5cc6d80b..0000000000 --- a/pr/3958/docs/search.index/6acaaa36379b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsEAgZQABoJAAACKtYXQBAQGg0AAAIuRi8x0NAAABAJoDAYICoAAAACOJoAAAACOKNDbzBwFpATMjAADzgANlbnA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6aec5dd7970c.js b/pr/3958/docs/search.index/6aec5dd7970c.js deleted file mode 100644 index 1e7f56e3bb..0000000000 --- a/pr/3958/docs/search.index/6aec5dd7970c.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAAOzAAAAEAAPAAAQBrGvAAI4ACoLAAACOnbHQBgAKwEBKhBDOwcCKWAAFkbgEEAbAwIs0AAXDzhR8AAGQB7wABBAA7MAAAAQAAMgABAGIeMgDzgAJzdAGJAqCAAAAjnaCQAAAjqWJ1E4ADoHAAACIQoaAAACO0Y2lyAYECoAAAABjKoAAAAB1DZHJDgAOgYAAAI3igYAAAIEdjbXDzgAJweHcCAICGsBAh4AABoBAAAB4wEUAO") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6beff85dd839.js b/pr/3958/docs/search.index/6beff85dd839.js new file mode 100644 index 0000000000..ffb309d4a5 --- /dev/null +++ b/pr/3958/docs/search.index/6beff85dd839.js @@ -0,0 +1 @@ +rn_("AYECoHAAACOdoCAAACKRY2xDAAOwQCE/AAGgQAAAIShhZXI6MAAAAQAAAAAAGgAQAAAAaQ06ETsROxk8GXAfSyGIIdghmyI0I5MjlCO4IwckCCQJJAokECRkJGUkdiR3JKIkoySsJK0k") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6c044af7e1a9.js b/pr/3958/docs/search.index/6c044af7e1a9.js new file mode 100644 index 0000000000..0ab5b0642e --- /dev/null +++ b/pr/3958/docs/search.index/6c044af7e1a9.js @@ -0,0 +1 @@ +rn_("AQABoHAAACMfcgFCFwAAE4ECoFAAACSJZ3QBBQA7MAAAAQAADAABAKcjDADzAgFs8iMXAAABABMBAqAAAAAd32VzAXYYAABXAAAAhaAQAAANULAwH6MAxLBgIRkAARgBBvUGCQAAKwcNDgEAQQYTAAOwIA1UAAGgEAAAE/dkbG4B+x4AAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6c1072db4e37.js b/pr/3958/docs/search.index/6c1072db4e37.js new file mode 100644 index 0000000000..7323d29c36 --- /dev/null +++ b/pr/3958/docs/search.index/6c1072db4e37.js @@ -0,0 +1 @@ +rn_("AQIBsMAkZAABbQGDIAAAAQYA9HEkAAABAAEAAQBjAoSgUAAAIeSgYAAAJH0UAQHyryEAADcCI4ACoOAAACRAY20=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6c6b57370cb1.js b/pr/3958/docs/search.index/6c6b57370cb1.js new file mode 100644 index 0000000000..f8fd4f4969 --- /dev/null +++ b/pr/3958/docs/search.index/6c6b57370cb1.js @@ -0,0 +1 @@ +rn_("AQQAOzAAAAEAAA4AAwBFFAsAch8AAH8gAQABBgD0pSEAAAEAAQABAAEAAbAgGo8Gpmn27g4AAAEAAQCnEIEA8QITAAKgMAAAGpBzdPQhCwAA5xIBAJ4BE4ACoLAAACP5a3PTgISgQAAAI+UAoAY=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6c7124c70d04.js b/pr/3958/docs/search.index/6c7124c70d04.js deleted file mode 100644 index cf97706607..0000000000 --- a/pr/3958/docs/search.index/6c7124c70d04.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQA87MgAADaAYwAAQsA9AIhAABEAVsAkwBnAAAAhaCAAAAi+qAwAAATvLBAEsUFHwWBBDswAAABAAAoAAEA5gMoAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6c7da2c5dfaa.js b/pr/3958/docs/search.index/6c7da2c5dfaa.js deleted file mode 100644 index 87ec091dbd..0000000000 --- a/pr/3958/docs/search.index/6c7da2c5dfaa.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYICoFAAACJqsAAdpQGhZXMBhQKwMCJsAIuwICIzAJVidSOAArAgIEEByWlsUwCEoCAAACDZsCAfewI3AgEMOjAAAAEAAAAAAAsAEAAAAJIRkxGUEZURlhGXEZgRrx6AI4sjnSOpIwEHAPO9IQAAfAEBAAEEADswAAABAAAJAAEAmx0JAAEDAbBgIjIAlGLyeh8AADcCdwQAAImgEAAAEtegkAAAImmgwAAAIxmwkCHlAAGgoAAAIsc4CQ86MAAAAQAAAAAAGAAQAAAAFg0XDRgNGQ0aDaoQqxCsELgWvhbQGNoYlB3OHtMe3x7gHuEe4h4/H4IfQiCpIusi7CI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6ca8896e56ef.js b/pr/3958/docs/search.index/6ca8896e56ef.js new file mode 100644 index 0000000000..a740b029ef --- /dev/null +++ b/pr/3958/docs/search.index/6ca8896e56ef.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAAAUAAgAOHgMA1iIBAAEJAPNVIwAAAQABAPMCAnBzOzAAAAEAAA0ABABJEwIAkxgAAJ8hBQDAIQMAAQcBoEAAACRvYgH7IwAAE4YCsCAiwAABZG0TgAKggAAAJCdvcgECAbBwJCAAAXPy2h8AAAEAAQEBoDAAACQPdwHwIgAA84ICZWkTAAKgUAAAJG1ldPMvEAAAAQAYFAGDAqBQAAAh5bAwJDYAAWNwAYEDoFAAACK/oAAAACQ7oLAAACQlYmR0AYACoEAAACSFoGAAACSWYXLzAgFzAW8ZAADzgAJhcgECAPRAFwAAAQDKBl0FAQEA9kcTAAABAEkFAQCdCgEAU4CEsFAf2AABsBAipgABEUACAQUA9gsjAAAJAAEACAEBAAEAI4ECoHAAACM4bXMBBwGgQAAAJGpiAfcjAAABBAD0VB4AAAEAAQC1AQEEAaBgAAAkPGIBvSIAAPOAAmxvt/oAAMygcAAAIFOgYAAAIIWwMB4MAAEAJ3YHOjAAAAEAAAAAABwAEAAAAEgLSQtKC0sLTAsIDQkNNhQ3FDgU4h3xHRYelB+VH/gfDCB3IBchkSKSIpMi2iLbItwidCMAJAEkAiQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6cad3ecd17da.js b/pr/3958/docs/search.index/6cad3ecd17da.js deleted file mode 100644 index 02fbeb8ced..0000000000 --- a/pr/3958/docs/search.index/6cad3ecd17da.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoBAAABi4oMAAACOVM3MBBwD0ICEAAAEAAQABAAEJAPRhIwAAAQACAAEAMwIDoFAAAB+RY3Jz8uogAAAfAPMAAnJ1AWAEAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d21153dd669.js b/pr/3958/docs/search.index/6d21153dd669.js new file mode 100644 index 0000000000..3f3645db62 --- /dev/null +++ b/pr/3958/docs/search.index/6d21153dd669.js @@ -0,0 +1 @@ +rn_("AQIBoEAAACSgdPRnIwAA6wAVACUAE4ACoDAAACR1aXABgQKgUAAAIpGgMAAAIStkcwGAAqAgAAAYkKBgAAAkFm5404CEsHAg9QABECADE4ACsDAUORAacnQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d4cb1542ae2.js b/pr/3958/docs/search.index/6d4cb1542ae2.js new file mode 100644 index 0000000000..e56c4a4aef --- /dev/null +++ b/pr/3958/docs/search.index/6d4cb1542ae2.js @@ -0,0 +1 @@ +rn_("AQQA9DEeAAC8ATUDmAABAAA7MAAAAQAACAAEAM4RAAAfEwMAahMBACAkAQAXAAAAh6BgAAAkXKAQAAAYv6BQAAAj+aAwAAAhGKBAAAAhF6EgAAAkgCjBAzowAAABAAAAAAASABAAAAA4E0ATCxcQFy8XKBlpHmoe8B7xHvIe8x70HvUexx98IJ4hliMNJPOAAmVv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d52cf9d82b0.js b/pr/3958/docs/search.index/6d52cf9d82b0.js deleted file mode 100644 index 4736c0d712..0000000000 --- a/pr/3958/docs/search.index/6d52cf9d82b0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYkCoCAAACNuoDAAACN9aXATAAKgIAAAIkVlaTswAAABAAAJAAQAcBYEANcWAgC4IAAAiSIAAIcAAACFsEAjcgAFoEAAACIwoQAAACOUoDAAACKMEgATOjAAAAEAAAAAAAgAEAAAAKMS6xKEFggfDx+xH7Qf/iICIwEBAbBQI0UAAXP1+xAAAAEAAQDqDwEAM4ADoBAAAB6zZG10") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d589b622318.js b/pr/3958/docs/search.index/6d589b622318.js deleted file mode 100644 index 12e49f6c5d..0000000000 --- a/pr/3958/docs/search.index/6d589b622318.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcA9NAgAAABAAEAAQABgAKgoAAAIpKgwAAAIvt0eQEHADswAAABAAAFAAEAyiAFAAGBAqAwAAAe2aBwAAAhwmVvAQIBsEAiywABZfI+IgAAbQATgAKgQAAAIbhwcgEJAaAAAAAiF3PzvyEAAAEAAQABAAD0FSAAAAEAAQABAPMFAXPyRx8AAAEAAYICoLAAACMasBAdYAABaXKXvgAAjKDwAAAjmKCgAAAiTqDwAAAjOKDgAAAjGw3xD/IkHgAA8QQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d79b360a898.js b/pr/3958/docs/search.index/6d79b360a898.js new file mode 100644 index 0000000000..4878c65af3 --- /dev/null +++ b/pr/3958/docs/search.index/6d79b360a898.js @@ -0,0 +1 @@ +rn_("AYICoFAAACNbsAAeaAGtZXMBgAKgEAAAIa6gEAAAIzVuegGJAqAgAAAkZ6AwAAAkdWlwAYUCsDAjXgCSsCAjIwCZYnUjgAKwICEVAdZpbPcAAACFsCAgTAJDEgEMOzAAAAEAABUACgAFEgYABhcEAG0XAgB6HwAAjiEAAHsjAAB4JAAAgyQAAJUkAAChJAAAAYYCoJAAACSMoFAAACQTYncBgAKgAAAAE1GgkAAAJEFkbAEHAPOdIgAAlAEBAAEEADswAAABAAAFAAEACiEFAPMCAWU7MAAAAQAACwAFABIXAQDOHQMAsyIBAM4iAQCbIwEAAYECoEAAACRmsAAjmgBXZXOTgISwYCA8AAGgAAAAE3QQQGABgQKwUCSsAAGgEAAAGUVndAEEAaAAAAAjCHP06x0AALQEAQABAPMAAmV08pwhAAABAAECADswAAABAAAKAAIAXh4JACAjAAATgAKgAAAAE3NyeAEDAPTzIQAAAQC7AAEAI4ACoLAAACPNbnKnAwAAhrAwEz0AAaAgAAAYYRgIBzswAAABAAArABQAWwQCAOgJCQDzDAEARhkAAFUZAACGGQEAOx4BAMkfAgASIAAAQiABABMhAACFIQAA8CEBAAsjAAAUIwEAFyMAANMjAQAdJAIAYSQBAJ0kAQABAwGwYCMiAJhi8ksgAABDAucZAACMsEAkagAFoJAAACNaoGAAAB+fsJAixQABoKAAACO7oDAAACN+OokfOjAAAAEAAAAAACEAEAAAAG0Nbg1vDXANcQ0TERQRFREdE2UTGhdOF1QXcRl7GVcemR+gH6wfrR+uH68f1x/eHw4gUyCEIIcgFiGdI+Aj4SP3I/sj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d8cbdd8ba86.js b/pr/3958/docs/search.index/6d8cbdd8ba86.js deleted file mode 100644 index f1fbe462cd..0000000000 --- a/pr/3958/docs/search.index/6d8cbdd8ba86.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9R0gAAABAAEAAQABAPMAAWk7MAAAAQAACAACANIQAABhEwcAAYECoFAAACJqsAAdpQGhZXPzgAJhcgGAAqAQAAAg2aAQAAAiRW56AQAA9VkgAABtAQEAGQABAAGIAqAgAAAjbqAwAAAjfWlwE4ACoFAAAB+ebnIBhQKwMCJsAIuwICIzAJVidSOAArAgIEEByWls5wUAAIigMAAAImugMAAAIKmwIB97AjdTCQw7MAAAAQAAFgALAJIRBgBwFgQA1xYCAK8eAAC4IAAAiSIAAG8jAACAIwAAiyMAAJ0jAACpIwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6d98c804459c.js b/pr/3958/docs/search.index/6d98c804459c.js new file mode 100644 index 0000000000..ada9b716b9 --- /dev/null +++ b/pr/3958/docs/search.index/6d98c804459c.js @@ -0,0 +1 @@ +rn_("AQcBsEAjwAABZQEuIwAAAQABsBAjNACEZfOsIgAAmAD9ACOAA6BQAAAg+aBQAAAjv3BydQGCAqAAAAAhuqAAAAAhu2VzI4ACoGAAACNEZXQBAwD1+yAAAAEAAQABAAEAAQABoJAAACRYbDowAAABAAAAAAAIABAAAAC1H9chNiNZI5Uj6SMiJCwkaSQTgAKgIAAAIPpkbgEEADswAAABAAAHAAIAtCEFANcjAQABBAGgAAAAIqhk87IhAAABACYBtwUAAYewsCQXAAGgYAAAI0OUCQM7MAAAAQAAFgAHAC4ZCgALHQIAQSEBAOchAQAzIwAAWiQBAF0kAQABAAGwQCGwAAFl9SkZAAABAAEAAQABABMAArCgJF8AAWd2AQogAADzgAJubwEDADswAAABAAAFAAIAsB8EAL4iAAABAwGwMCObAAF08vAhAAABAAEEAPXJIgAAAQABAAEAAQDzgAJvcgECAPVdIAAAAQABAAEAAQA3AAAAhaAwAAAghqBAAAAhPrDAJD4AATCADDowAAABAAAAAAAOABAAAABGE3ITcR+3H/kf+h/PIdAh0SHSIfUh9iH3Ifgh2yPzgAJkcgECA6CAAAAkpaAAAAAjvaAwAAAhAWhzdAE6GQAAE4ACoGAAACMrZG7XBQAAh7BQITwAAbAAHx0AARVBEjowAAABAAAAAAARABAAAABdDV4NXw0uEC8RMBExETIRjxGQEVoeWx7VH9YfBSA2ITch7SI=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6da9aff25999.js b/pr/3958/docs/search.index/6da9aff25999.js deleted file mode 100644 index 02ceb7ddc2..0000000000 --- a/pr/3958/docs/search.index/6da9aff25999.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQsA9NkiAAABAAEAAQABgwKgIAAAI26gMAAAI31pcPMAAWby4RAAAMoOY4ADoJAAACKcY2ZpQ4CEsCAibACLoDAAABbKoEAAACI1AEFI") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6dc1a8523e68.js b/pr/3958/docs/search.index/6dc1a8523e68.js deleted file mode 100644 index bb9875d94b..0000000000 --- a/pr/3958/docs/search.index/6dc1a8523e68.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoBAAABN0oAAAAA0BcnQBgQKwEBinBe6gIAAAHX9laSOAArAQErYAAW5yhwAAAIawMB0dAAGgcAAAIa2gUAAAHYCwMCJWAAGgIAAAF9QXgAj1+QoAAAEAAQClAdgVAQADoJAAACNvoEAAACKyoGAAACMLZGVzAaEfAADzBAFz8n0dAAABACOAAqBQAAAgwGZxE4ADoFAAAB9EoBAAACIEZWlvAYACsFAdewABsCAiIAABYW8BAQD0KiIAAAEAAAEBACOAArAQF/8AAW5yAYECoQAAACOvoNAAACOba20BhgKgQAAAI22wACKmAFJlc8OAhKBAAAAfLrAgF9IAAQwABRd8AACLoHAAACBzoFAAABimsCATcAABoGAAACIisLAiwgADB80LOzAAAAEAAAYAAgAzBAEA5AYEAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6dedb740dd8c.js b/pr/3958/docs/search.index/6dedb740dd8c.js new file mode 100644 index 0000000000..8a1dce732f --- /dev/null +++ b/pr/3958/docs/search.index/6dedb740dd8c.js @@ -0,0 +1 @@ +rn_("AQCFoJAAACRooEAAACOmoEAAACNqoGAAACQEoCAAACLgmAAK8u4fAACGACMBAqBgAAAhI2hz9k0RAAABAPIMAQDzAg8AAQIBsFAjQQCZY/KpHwAAugBjgISwkCOBAAGgYAAAJH4EIAo=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6df625a98c51.js b/pr/3958/docs/search.index/6df625a98c51.js deleted file mode 100644 index 66c48e487b..0000000000 --- a/pr/3958/docs/search.index/6df625a98c51.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA8x0jAAABAE8AAYACoBAAABfysFAhuQABY2QBAgA7MAAAAQAA4gACAKQSAADaFuEA8wABbTswAAABAADoAAIA4goAALAL5wABAAKgQAAAIFOgkAAAIqllcjowAAABAAAAAAANABAAAACaGJsYdSCyIA4jDyMQIxEjfiN/I6sjrCO1I7YjAQMA82wdAACwAWsEdwUAgMmgIAAAHz2gQAAAIG2gUAAAIQCgYAAAIxxACsoh") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6e1927bbd513.js b/pr/3958/docs/search.index/6e1927bbd513.js deleted file mode 100644 index 052cb416d5..0000000000 --- a/pr/3958/docs/search.index/6e1927bbd513.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoEAAACNEZfYfDQAAAQCZAwEAthI6AAEBAaAgAAAe3WsBqB0AAAGDAqAgAAAgJKAAAAAfG2Rz84ACY2VjAAOwQBO4D6RlaXkBGh8AAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6e3543283f7d.js b/pr/3958/docs/search.index/6e3543283f7d.js new file mode 100644 index 0000000000..f51b1e1dfb --- /dev/null +++ b/pr/3958/docs/search.index/6e3543283f7d.js @@ -0,0 +1 @@ +rn_("AQIA8+wTAAABAAEAAQEBoIAAACNsdQHrEwAAI4ACoBAAABPqMzYBgAKgAAAAHfKwcCKIAAF1eAECAPXwIAAAAQABAAEAAQDzAQFpOzAAAAEAAAgAAgA9EQAA4hMHAEOAA6BgAAAgcaAwAAAhf2VsdAECADswAAABAABoAAIAPBEAAHoTZwABBwGgQAAAI/1l8sgiAAC4AAEEAPNMIwAAWAABAAECADswAAABAAD3AAEAEhz3AAECADswAAABAAD3AAEAGhv3AMMAhKAgAAAXBKAAAAAhhpAQATswAAABAAD4AAIAPA0AAP0O9wABAQD02R0AAAEAAQABAAEAADswAAABAAAQAAEAfhEQAGOAA6AwAAAZKGFldPOAAnJ004CEsPAkUAABAQwBAQABoIAAACScZvIcEwAAghABBwDzZCMAAAEAAQAjgAKgUAAAIPhhb/MCAmZz9i4RAABNAAEAAQAFCMYHE4ACsBAO+wABYW8BAgGgMAAAH8NhOzAAAAEAAAgAAgBiGAYAkSABAAEGAbCQJFoAAWMBvyEAAAEJAaBAAAAkoHQBUiQAAGMBA7AwH8UAAWFievQzEwAAAQBCDXwC84ACbnQBAQKgIAAAH/WwIB/2AAFhYvN3EwAAAQABAAEAAPR1EwAAAQAMDQIBI4ACoJAAACNrZHZjAAOgUAAAIzhjbnLzvyMAADYAAQABAwA7MAAAAQAABQABANMdBQAjgAKgMAAAHdJveQECADswAAABAAAFAAIA3SMCAIYkAgDzCAFtOzAAAAEAAAYAAwAQIQAA4SICAEQkAgABAwGwgCSsAAFz8p0kAAABABOBAqAAAAARzW5z84ACaXJ3/wAAjKAwAAAhM5ORjzswAAABAACSAgYATwQAAIMFegFADQEA/Q8EAGMRAADgFA4B") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6eb0e9e14259.js b/pr/3958/docs/search.index/6eb0e9e14259.js new file mode 100644 index 0000000000..5abc25f30c --- /dev/null +++ b/pr/3958/docs/search.index/6eb0e9e14259.js @@ -0,0 +1 @@ +rn_("AQAA9HMBAAC7AgEA0g1DAAOgAAAACh+gQAAAE104ZW46MAAAAQAAAAAADgAQAAAAmwLrAz0EGBEZERoR6hPsE+0T7hNZGU0jTiNPI1Aj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6edef78fdecb.js b/pr/3958/docs/search.index/6edef78fdecb.js deleted file mode 100644 index 97e532278c..0000000000 --- a/pr/3958/docs/search.index/6edef78fdecb.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9NQgAAABAAEAAQATAAKgMAAAIdtlaQEDHwAAAQEBoGAAACMBYgFGIAAAJwAAAIWgQAAAIbawcCKLAOmgMAAAIoigUAAAIu4YIQg7MAAAAQAABwACAHkRBgAtHQAA84ACaHQ=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6f07a3972043.js b/pr/3958/docs/search.index/6f07a3972043.js new file mode 100644 index 0000000000..2bf2258845 --- /dev/null +++ b/pr/3958/docs/search.index/6f07a3972043.js @@ -0,0 +1 @@ +rn_("AQIBsAAUUgABczowAAABAAAAAAAPABAAAABZEVoRWxFcEV0RXhFfEWARDxJEHuwghSLqIlMj1iOTJCMAhKAwAAATUrBQGYQJGKCAAAAhlwhABvZSEQAA5wJKBQ0BiwM4Bg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6f17bab48662.js b/pr/3958/docs/search.index/6f17bab48662.js deleted file mode 100644 index 86d9db5b3e..0000000000 --- a/pr/3958/docs/search.index/6f17bab48662.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQ4A9FAjAAABAAEAAQABAQA7MAAAAQAAFAABALQeFAABAwDzNR0AAAEAAQDHAQAAhqBgAAAh9KBAAAAiGKAwAAAjmIFYBAGYIwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6f23daa8d13f.js b/pr/3958/docs/search.index/6f23daa8d13f.js deleted file mode 100644 index a7a57d8022..0000000000 --- a/pr/3958/docs/search.index/6f23daa8d13f.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIA9LAYAAABAFsIAQABBgD08SAAAAEAAQABAAELAPTeIgAAAQCJAAEAAQgA9CoiAAABAAABAQA3AQCAhaAwAAAfcLDQIyEAAQFIIQGAA6CAAAAiJ7CAIigAAbBAI2YAAWVvdAEFAPTrIAAAAQABAAEAE4EDoKAAACLdsFAg7wABbG1zAYACsDAfdwABsUAjnwABZW8TgAKwcCHVAAFydQEFADswAAABAAAHAAIAcx8DAJgiAwABAgD0rBgAAAEAAQABAAEEAbAwIdMAAXTz+h4AAAEAAQABCgD0XCIAAAEAAQABAMf+AAONoLAAACKcoGAAACA/oKAAACJgsLAinQABuowf8jsjAAABABMAAqEQAAAjT2Fm9PkSAAABALUM/wA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6f478d664999.js b/pr/3958/docs/search.index/6f478d664999.js new file mode 100644 index 0000000000..da24357c71 --- /dev/null +++ b/pr/3958/docs/search.index/6f478d664999.js @@ -0,0 +1 @@ +rn_("AYACoFAAACKFoBAAAB78aXQBAAGgEAAAHvtvOzAAAAEAAAYAAwBmEwMAJRcBAPQjAAABgAKwECMvAAGgIAAAI2hhbxOCArBwJDYAAW1xE4ACoOAAACRsbHATgAKwMCLkAQplbwGCAqEAAAAkpqDQAAAkk2ttE4ADoGAAACMTsGAi3QABYWtyAYECsIAkAAABoIAAACQCZXcBggKwMCMRAAGwQCNHAAFwc/MAAXTzRw0AAAEAAQABAAGwYCE/AAFlOzAAAAEAABIAAwAfGQIAmCICAPkiDAATgAKwUCLbAAFydQGAAqEAAAAkiaCgAAAj+GVsAYACsCAjxgABoFAAACLaZHD3+AAAjKCQAAAkn6DwAAAka7CgI8IAAZW1BzswAAABAABBAAQAYA0DADURAgCTETkAKyEAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6f7b7b585d8b.js b/pr/3958/docs/search.index/6f7b7b585d8b.js new file mode 100644 index 0000000000..75fc3c7c53 --- /dev/null +++ b/pr/3958/docs/search.index/6f7b7b585d8b.js @@ -0,0 +1 @@ +rn_("AQMBoEAAACEhZQEKHgAAAQDHsGAkMwABoCAAABcYoCAAABcZoDAAABlGsEAhKQABsCAXOAABsEAePQUUAECtCPRQDQAAwQKZEpgAUwADsFAkPgABcnN49WYRAAABAAEAVBABAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6f8bd77fd3f9.js b/pr/3958/docs/search.index/6f8bd77fd3f9.js new file mode 100644 index 0000000000..e67ff0f9e7 --- /dev/null +++ b/pr/3958/docs/search.index/6f8bd77fd3f9.js @@ -0,0 +1 @@ +rn_("AQEBoGAAACP6YgEbIQAAE4QDoDAAACN6oFAAACPlZW51E4ACoJAAACPmYnQBAgGgQAAAIO9l9PwWAAABACwKAQABhAOwYCQLAAGwMCN1AAGwMCN3AAFkcnMzgAOgEAAAJFxjcnRTgAOgIAAAI/lhb3U=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/6ff9e127e4ff.js b/pr/3958/docs/search.index/6ff9e127e4ff.js deleted file mode 100644 index b98f1ce206..0000000000 --- a/pr/3958/docs/search.index/6ff9e127e4ff.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA8zsEAABUHgEAAQkA9fUgAAABAAEAAQABACOBAqAQAAAQ1WlyAQoBoEAAACNgZfTXIgAAWQABAAEAAQcA838iAAABAPMA8wQBY/LAEgAAIgUXGQAAiqAgAAAff6BAAAAgSaCAAAAgqaAgAAAPr6BwAAAiMaCgAAAh1zyZCjswAAABAAAdAA4AXwEBANcDAwC8EAAAghYAAJYWAACbFgQArhYCAKwYAwDpGQAAUR0CAN0eAAC6HwAA1SEBACUiAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/708f89faaf75.js b/pr/3958/docs/search.index/708f89faaf75.js deleted file mode 100644 index 00b5b5a844..0000000000 --- a/pr/3958/docs/search.index/708f89faaf75.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcBsEAiywABZQE+IgAAAYACoFAAACAmoFAAACLKcHUBggKgAAAAIOWgAAAAIOZlcyOAAqBgAAAiU2V0AQMA9SggAAABAAEAAQABAAEAAaCQAAAjX2w6MAAAAQAAAAAACAAQAAAA6B4CIUYiaCKhIvIiKiM0I3EjE4ACoCAAACAnZG4BBAA7MAAAAQAABwACAN8gBQDiIgEAAQQBoAAAACHIZPPdIAAAAQAbAbcFAAGHsLAjHQABoGAAACJSlAkDOzAAAAEAABYABwCNGAoAThwCAGsgAQASIQEAQyIAAGEjAQBkIwEAAQABsEAg2wABZfWIGAAAAQABAAEAAQATAAKwoCNmAAFndgE7HwAA84ACbm8BAwA7MAAAAQAABQACAOMeBADeIQAAI4ACgB7qBAABZHLnAgAAhrBQIGgAAbAAHlMAARRBEjswAAABAAALAAUAxBADACMRAQCXHQEABh8BAGIgAQAjgAKgQAAAIEBvdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/709945942485.js b/pr/3958/docs/search.index/709945942485.js new file mode 100644 index 0000000000..084d47b39e --- /dev/null +++ b/pr/3958/docs/search.index/709945942485.js @@ -0,0 +1 @@ +rn_("AQIA9E0jAAABAAEAAQABBQD0ziMAAAEAAQABAAEEADswAAABAAANAAIAJSAMAM0jAACzAISgcAAAIx8QgIE6MAAAAQAAAAAABwAQAAAASBEnEygTQhdcHhQglySYJBOAA6AwAAAi1aBQAAAkiWdzdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/70b0b4a000f4.js b/pr/3958/docs/search.index/70b0b4a000f4.js new file mode 100644 index 0000000000..2f07634359 --- /dev/null +++ b/pr/3958/docs/search.index/70b0b4a000f4.js @@ -0,0 +1 @@ +rn_("AQABoBAAABE0ZTswAAABAAAFAAEAJx8FAAEDADswAAABAACIAAIAJCAAAP0hhwABgAKgcAAAI9mgUAAAIGRlb/MAAXPypR8AAP0Ds4CEoGAAACFLCEEE") \ No newline at end of file diff --git a/pr/3958/docs/search.index/70cf2993294d.js b/pr/3958/docs/search.index/70cf2993294d.js new file mode 100644 index 0000000000..e8b18555ea --- /dev/null +++ b/pr/3958/docs/search.index/70cf2993294d.js @@ -0,0 +1 @@ +rn_("AQcA9PUhAAABAAEAAQABCQD0WiQAAAEAAgABAFMAhKBQAAAjU6BQAAAgYgQBA/K/IQAAHwABAAGgMAAAIA1m9fMRAACuEYYAbQATAAGJAqBAAAAkhaBgAAAklmFyAYgCoEAAACRmsAAjmgBXZXMBgQKgAAAAGWugAAAAHgNkckOBA6BgAAAkcKBgAAAhHGNtcBOAAqBQAAAiuGFlAQ0BoEAAACRZZfTMIwAAXAABAAEAAYUCoEAAACRVoGAAACR5YXIBgAKgIAAAIfmgEAAAIS5hcycAAIGFoSAAACSloEAAACLSoNAAACRwoFAAACNjCNAB84ACY3ABAwGgMAAAI2Bj8iwhAAABAAGAA6BQAAAjJaBQAAAjJrBgI2EAAWJzdvOAAmRyAQUBoGAAACRuYjowAAABAAAAAAAJABAAAADuIfYi9yL4IpcjmCPvIxUkGSQaJAECAqAwAAAjJKBAAAAjX2l181kgAAABAAEAE4ACoAAAACE4ZGz3ewAAjKCwAAAjDKBgAAAjcxXVDzowAAABAAAAAAAVABAAAAABCgIKAwoECiIXXxhgGBkZ7B1RIBEjEiMaIxsjRyNII8IjwyMjJCQkNiQ3JA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/713d5873befb.js b/pr/3958/docs/search.index/713d5873befb.js new file mode 100644 index 0000000000..741ecfcde0 --- /dev/null +++ b/pr/3958/docs/search.index/713d5873befb.js @@ -0,0 +1 @@ +rn_("AYICoAAAACGMoAAAACGNNDYBiQKgIAAAJGegMAAAJHVpcBMAAqAgAAAjNWVpOzAAAAEAAAkABAAGFwQAbRcCAI4hAAB7IwAAhwAAA4WwQCRqAAWgQAAAIyChAAAAJIygMAAAI34SABM6MAAAAQAAAAAABwAQAAAAHRNlE9cf3h+EIIcg9yP7IwEGAPQxHgAAvAE1A5gAlwEAAIawIBNjAAGw8CSRABigQAAAIpJqAQE6MAAAAQAAAAAAGwAQAAAASgSWBJcEmARBEVoTWxNcEzwUGxkcGR0Zux+8H70fSyBcII4gjyBEIUUhRiGlIaYhpyGoIY4i8iM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/719732240fb5.js b/pr/3958/docs/search.index/719732240fb5.js new file mode 100644 index 0000000000..373de85823 --- /dev/null +++ b/pr/3958/docs/search.index/719732240fb5.js @@ -0,0 +1 @@ +rn_("AQIA9ZchAABYAfkAWABkAPMAAW8BURQAABOAA6EAAAAkfbBAH9MAp2hvcAEFADswAAABAAAFAAEAnyEFADOAA7DwJCIAR2xzdA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/71e293e73c56.js b/pr/3958/docs/search.index/71e293e73c56.js deleted file mode 100644 index 68fc666192..0000000000 --- a/pr/3958/docs/search.index/71e293e73c56.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECsAAgxwABsDAh7gABc3TzAQFtAa8iAAABAwGgMAAAIdtpAQMfAADzAAFsOjAAAAEAAAAAABQAEAAAAJ0RyBLRGNAe0R7zHvQe9R6YH5kfmh+bH5wfnR8nIDQiOiJBIk0ieSLwIgEGAPOoGAAAAQABANOAhAOcY+FsVgFBAQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/71f68924fffc.js b/pr/3958/docs/search.index/71f68924fffc.js new file mode 100644 index 0000000000..72f6f792d8 --- /dev/null +++ b/pr/3958/docs/search.index/71f68924fffc.js @@ -0,0 +1 @@ +rn_("AQMBoDAAACRHcPJQHgAAswEBgQKgAAAAGGmgAAAAGGo0NgEBAbAQIrwAvXUBMCQAAHcAAICFoBAAABh6sCAkagAFBCgG") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7202873ebdab.js b/pr/3958/docs/search.index/7202873ebdab.js new file mode 100644 index 0000000000..c1aa02c5b9 --- /dev/null +++ b/pr/3958/docs/search.index/7202873ebdab.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAAAUAAQBZGAUAAYACsBAhkAABoBAAACOgbncBCAD0ziMAAAEAAQABAAEBArBAJFYAAaAgAAAkJmVyOjAAAAEAAAAAABkAEAAAACoRKxEsEW0RbhFvEXARcRFyEXMRdBF1EXYRdxEjIFUgaSCZI74j1SP6IzgkPCRNJG4kiyQBBAA7MAAAAQAABQABACcfBQD3AQAAhqBgAAAhmxRBCTswAAABAAAOAAYAZQsJAJchAADvIgAA6CMAAEAkAACkJAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/72784130bc8e.js b/pr/3958/docs/search.index/72784130bc8e.js deleted file mode 100644 index 46c1fa206a..0000000000 --- a/pr/3958/docs/search.index/72784130bc8e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMBoFAAAB9/awHgEAAAAQABoEAAACGubPK+EwAAhgsBBAGwQCEeAAFl8uUYAAABAAEEAaAAAAAfSXMB2h4AAAECAaBQAAAiGGMBgBgAALcAAADGoEAAABjksGAgGQLIsHAiRACAQA0ACvcTCwAAwAEBAK4LvgQBAAEAU4ADoCAAABD/ZXR5AYACoCAAAB4zoIAAACKtaXIjgAKwQCBlAAFhdAGAArAwE74LhrEAI5YAAXJ1AQABoNAAACLkYvatDAAAAQBvAAEAmgODEQEAA6BwAAAh57AAIMQAAaCAAAAi8WZzdDswAAABAACxAAYAGw0AAMcSAADZEgAAIxhXAMMfUQAdIAQAY4AEoBAAACI0sEAjOwABZmd0dgEFAaBAAAAjBGXy6CEAAKYAAQUA86EjAAABAAEA8wABdAF0EQAAAQMA84IjAAABAAEA8wICcHPyqiEAAA4AAQEBoEAAACNEZfYfDQAAAQCZAwEAthI6AAGCAqAAAAAjiaAAAAAjijQ28wcBaQEzIwAAAQQBoCAAACEBcwECHwAAQwCEoDAAAB8voFAAAB98sDAizQABRYAAOzAAAAEAABYACADXEAMAZBELAAkfAQCFHwAARyAAAOkgAADYIQAAHyIAAEOAhKAwAAAYtaCAAAAhA6AgAAAY1gBBBgEBAaAAAAAjknIBIhgAAAEAAbAAGNsGDnI7MAAAAQAAPwAEALUWAAABGB4AcB0AADQeHgAjgQKwkCLPAAFhZSMBAqBAAAAjYGVp9TEiAACmAFkAAQABAHf/AYDOoGAAAB+qoDAAAB8awB88ig==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/727da6f1fe2d.js b/pr/3958/docs/search.index/727da6f1fe2d.js deleted file mode 100644 index e1a8fc41b7..0000000000 --- a/pr/3958/docs/search.index/727da6f1fe2d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQoBoEAAACNgZfTXIgAAWQABAAEAIwIDoMAAACNzsAAijwABY2lzOjAAAAEAAAAAAAcAEAAAAJYWrhavFrAW6RlRHVIdUx0=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/732646400e65.js b/pr/3958/docs/search.index/732646400e65.js deleted file mode 100644 index b11293c0b9..0000000000 --- a/pr/3958/docs/search.index/732646400e65.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBoEAAACOodPR1IgAA5gATACYAE4ACoDAAACN9aXBDggOgcAAAIxywcCAiAAFlbnMTAAKgIAAADN5mbfVZAQAADgF4DgIAyg4=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/734725f3d817.js b/pr/3958/docs/search.index/734725f3d817.js new file mode 100644 index 0000000000..917505e357 --- /dev/null +++ b/pr/3958/docs/search.index/734725f3d817.js @@ -0,0 +1 @@ +rn_("AQECsDAj9QABsAAUUgABY3M6MAAAAQAAAAAADwAQAAAAWRFaEVsRXBFdEV4RXxFgEQ8SRB7sIIUi6iJTI9YjkyQBgAKg4AAAI+igMAAAI/lkcGOAA6FAAAAkp2JydQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/734f57f6cea8.js b/pr/3958/docs/search.index/734f57f6cea8.js new file mode 100644 index 0000000000..52c8d3cf42 --- /dev/null +++ b/pr/3958/docs/search.index/734f57f6cea8.js @@ -0,0 +1 @@ +rn_("AQkBoIAAACScZgGeIwAAIwACoCAAACARaXUBkCAAAAECAbCAJEIAAWby5x8AAAEAE4ACoKAAACSAcnTzggJhcwEEAaBAAAAkWWX0zCMAAFwAAQABAAECADswAAABAAAFAAIA3SMCAIYkAgDzAwFtOjAAAAEAAAAAAAcAEAAAACIZECHhIuIi4yJEJEUkRiTzgQJjZTOAA7CwJGQAAWFlaQ==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/744a03f3cae1.js b/pr/3958/docs/search.index/744a03f3cae1.js new file mode 100644 index 0000000000..c7579da2b3 --- /dev/null +++ b/pr/3958/docs/search.index/744a03f3cae1.js @@ -0,0 +1 @@ +rn_("AQIAOjAAAAEAAAAAAA0AEAAAAMAfwR/CH2sgbCBtIG4gbyBwICojMSM9I2sj5yMBgAKgMAAAI/ywECA1AAFyePMAAWU7MAAAAQAADwAFAD4ZBAAgHwYAhiIAAHwjAAA5JAEA84ACZG4=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7457f86305df.js b/pr/3958/docs/search.index/7457f86305df.js new file mode 100644 index 0000000000..c0e1d00ae5 --- /dev/null +++ b/pr/3958/docs/search.index/7457f86305df.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAABQABAAlIAwAsCEBAMohBADNIwAAAQABoEAAACEoZTswAAABAAAJAAQAByQDAHYkAQCiJAEArCQBABOAAqBQAAAh1WRzU4ADoOAAACSNZW9y") \ No newline at end of file diff --git a/pr/3958/docs/search.index/74b60e670650.js b/pr/3958/docs/search.index/74b60e670650.js deleted file mode 100644 index 30003d6e50..0000000000 --- a/pr/3958/docs/search.index/74b60e670650.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQEAOzAAAAEAAAgAAwD3CgEAuRYBADgdBAABAQGgAAAAIghz8tEhAAABAAEAAPURCwAAAQDAAagQ5gSnAQCAhaEAAAAjWbBQHzgAARiAAw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/74e613854b72.js b/pr/3958/docs/search.index/74e613854b72.js deleted file mode 100644 index f73949afe7..0000000000 --- a/pr/3958/docs/search.index/74e613854b72.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoBAAABatoGAAACJjbm8BAAKgYAAAIuCgMAAAIy1iczowAAABAAAAAAAMABAAAADUEsITch1zHSAfIR8iHyMfJB8lH34fLyJOIgEDAPNAHwAAAQDcAscAAACFsDAdlQABoEAAAB8NoKAAACJnkgADOzAAAAEAAA4AAgDkEAIAgRELAPOAAmVpAQEA8/cQAABNDwEAAQYA9IkdAAABAAEAAQDzgAJjbgEEAaBwAAAixHbzQB0AAAEAAQABAwKgIAAAH6uAHT0AEAFiefPqFwAAAQABAAEDADswAAABAAAFAAIA5xcCAMAfAgABBAD1OB0AAAEAAQABAAEAAQACsGAiHgF8oGAAACIfZm0BmBgAACOAAqCQAAAiO2NyAQQA8zUdAAABAAEA9wkAAIiwcB+sAAGwYB84AAE0IBs7MAAAAQAAEgADAEcEAAC7CQkAWhYHAAEBAaAwAAAh22kBAx8AAAEBAaAgAAAWmmUBAw0AAPOAAmNzAYCEoHAAACKsoMAAACJ7oDAAACJZoIAAACLmBIADAQABoCAAACKsb/XCIAAATAHjAFYAZgABAgDz2xIAAJAMAQATgAKgMAAAImNydHcbAADJsGAhCwFNsOAjnwABQGYWCPdvBAAAWg4BAAEA9AABALEJ") \ No newline at end of file diff --git a/pr/3958/docs/search.index/74f1b6308d9d.js b/pr/3958/docs/search.index/74f1b6308d9d.js new file mode 100644 index 0000000000..2c7994ecd5 --- /dev/null +++ b/pr/3958/docs/search.index/74f1b6308d9d.js @@ -0,0 +1 @@ +rn_("AQEA80QhAAABAAEAI4ACoSAAACSNbnQTAISwMCNeAJKwICBAAQewICMjAJkDQAg6MAAAAQAAAAAACAAQAAAAMR7UH+0feyDfISIjNyNsI7oj") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7562e08b3c75.js b/pr/3958/docs/search.index/7562e08b3c75.js new file mode 100644 index 0000000000..cbd8939d0c --- /dev/null +++ b/pr/3958/docs/search.index/7562e08b3c75.js @@ -0,0 +1 @@ +rn_("AYACoBAAABlZoMAAACSNM3MBBwD09SEAAAEAAQABAAEJAPRaJAAAAQACAAEAMwIDoFAAACBiY3Jz8r8hAAAfAPMAAnJ1AX4EAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/75661312249e.js b/pr/3958/docs/search.index/75661312249e.js new file mode 100644 index 0000000000..a2d5d0502e --- /dev/null +++ b/pr/3958/docs/search.index/75661312249e.js @@ -0,0 +1 @@ +rn_("AQACoRAAACSLoDAAACO7ZW/y6h8AAIkDAQMBoEAAACRZZfUhIwAAqwBcAAEAAQABgAKgEAAAIIWwsCOIAAFjZQECAbDAJGQAAW0BgyAAAAEGAPRxJAAAAQABAAEAYwQDoFAAACHkY2Vp8q8hAAA3AgECAPOGJAAAAQABAPMNAW3zRCQAAAEAAQABgAKgoAAAI/KwMCK3AKRucgGAArCAI8YAAaAAAAAg92ZyEwACoJAAACO9ZWk6MAAAAQAAAAAACgAQAAAAExP7H/wfByAIIMUixiLzIw4kEiRPJMdtAADNsCAfxACxoDAAAB75oFAAACBQsLAjRQABoJAAACPzoBAAABcEQA/LMTowAAABAAAAAAAVABAAAAAXDRgNGQ34DyERIhFLERcT7xPwE/sWfh95ILoh2CJkI2UjZiPlI0IkQyScJA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/756b550117c0.js b/pr/3958/docs/search.index/756b550117c0.js deleted file mode 100644 index 101e77d8d0..0000000000 --- a/pr/3958/docs/search.index/756b550117c0.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQQCsGAjQAAUsEAjHwABYmU7MAAAAQAAHgALAEofBABaIAQAySEAAMshAAAmIgAALiIAALMiDADnIgAAPSMAAJkjAACyIwAAI4ACoDAAAB1naW8=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/75943a6807df.js b/pr/3958/docs/search.index/75943a6807df.js new file mode 100644 index 0000000000..c94f5f2949 --- /dev/null +++ b/pr/3958/docs/search.index/75943a6807df.js @@ -0,0 +1 @@ +rn_("AQIBoEAAACSgdPRnIwAA6wAVACUAE4ACoDAAACR1aXBDgQOgcAAAJBawcCD1AAFlbnMTgAOgMAAAJICgIAAAEB1lbHM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/75b37d1c9c28.js b/pr/3958/docs/search.index/75b37d1c9c28.js deleted file mode 100644 index 1c66bca491..0000000000 --- a/pr/3958/docs/search.index/75b37d1c9c28.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYECoJAAACMGoBAAAB+qYXQBCAD0XCIAAAEAAQABAPOAAmN0EwADoDAAACMDsBAfZAABbnJ49FEEAACIBQEAexM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7606942d5a79.js b/pr/3958/docs/search.index/7606942d5a79.js deleted file mode 100644 index a627aa82bb..0000000000 --- a/pr/3958/docs/search.index/7606942d5a79.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABoCAAACA+ZgGZHgAAEwACsAAY2wYOZHI7MAAAAQAAPwAEALUWAAABGB4AcB0AADQeHgAjgAKwkCLPAAFhZQEBAbBwIsAA72kBrhMAAIcBAIDFJ80FdHFLoAAAABO5oGAAACMGAAIgig==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7675adde02c6.js b/pr/3958/docs/search.index/7675adde02c6.js new file mode 100644 index 0000000000..502e3d2f92 --- /dev/null +++ b/pr/3958/docs/search.index/7675adde02c6.js @@ -0,0 +1 @@ +rn_("AQUA860fAAABAAEA8wABczowAAABAAAAAAASABAAAAA6DTsN+A75DvoOORF8GH0YHiBKIAUhBiEHIQghCSGoIuwiDSNDIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7678285c6018.js b/pr/3958/docs/search.index/7678285c6018.js deleted file mode 100644 index f272ed6298..0000000000 --- a/pr/3958/docs/search.index/7678285c6018.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIBsAAT0QABczowAAABAAAAAAAPABAAAADuEO8Q8BDxEPIQ8xD0EPUQnBGBHRkgqCEJImIi4SKbIyMAhKAwAAAS2LBQGOMI2aCAAAAgwghABvbnEAAA0QIqBQYBcQMDBg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/76a82b5a26e0.js b/pr/3958/docs/search.index/76a82b5a26e0.js new file mode 100644 index 0000000000..2269d60908 --- /dev/null +++ b/pr/3958/docs/search.index/76a82b5a26e0.js @@ -0,0 +1 @@ +rn_("AYICoCAAACCCoDAAACGGZXABggKgYAAAIeOgQAAAIFJmZ2OAA7BQHlMBtmFpciMAA6BQAAAZbKAgAAAXGmNmcvX5AwAADgYBAA4GPgM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/76b52292e494.js b/pr/3958/docs/search.index/76b52292e494.js new file mode 100644 index 0000000000..516417072a --- /dev/null +++ b/pr/3958/docs/search.index/76b52292e494.js @@ -0,0 +1 @@ +rn_("AYQCsAAhnAABsDAizgABc3QBAQA7MAAAAQAAiAACAGERAABYFIcAZwAAAIWwoCG8AAGwgCLQAAGgcAAAIGe0CAA7MAAAAQAAEAAFAGURAABFFAsAch8AAH8gAQCgIwAAAQIAOzAAAAEAAAEBAgADFwAAihkAAQEBAaBQAAAiqmjzWhkAAAEAiATnAAAAhaCwAAAjSqAwAAAZiRQwAjswAAABAAAMAQsAKQQAABsLAAA0DQAA6w0CASYRAAChHwAASiEAAIkhAAAtIwAAfyMAABMkAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/76dc512102de.js b/pr/3958/docs/search.index/76dc512102de.js new file mode 100644 index 0000000000..234bdf9142 --- /dev/null +++ b/pr/3958/docs/search.index/76dc512102de.js @@ -0,0 +1 @@ +rn_("AQcA9PUhAAABAAEAAQABCQD0WiQAAAEAAgABADMBA6BQAAAgYmNyc/K/IQAAHwABAwD0yx0AAAEAAQCTBVMAA6AgAAATLGNydDswAAABAAC5AEIAJgsTABYTAAAjEwEAPBMAAE8TAQBdEwAA/hYBAAEXAQAMFwEAGxcCADgXAQA7FwQARxcDAFUXAABfGQcAaRkBAHMZAAB4GQEAfhkCAIUZAAAmHgMAMB4AADIeAABIHgEAXh4JALAfBADcHwAA4x8AACUgDgDvIAAACiEFABEhAAAdIQEAISEBACQhBAAsIQEAsCEBALQhBQDKIQQA6yECAO8hAADzIQEAlCIAAK4iAgC3IgAAviIAAN8iAAAKIwAAICMAAEojAQBVIwIAWiMBAIYjAQCmIwAAwCMBAMQjAQDNIwAA1yMBAPwjAQAXJAEAGyQBACYkAAA9JAAASSQDAFYkAwBmJAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/76ecc115fb3e.js b/pr/3958/docs/search.index/76ecc115fb3e.js deleted file mode 100644 index 0bf8c72a22..0000000000 --- a/pr/3958/docs/search.index/76ecc115fb3e.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYkCoEAAACONoGAAACOeYXIBiAKgQAAAI22wACKmAFJlcwGGAqBAAAAjXqBgAAAjgWFyAQQBoDAAACJuY/JXIAAAAQABBQGgYAAAI3ZiOjAAAAEAAAAAAAkAEAAAABkhFCIVIhYioyKkIvYiGyMhIyIjAQMCoDAAACI0oEAAACJtaXXziB8AAAEAAQD3AwACh7AAIq0AghWBAwF7GAAAAQQAOzAAAAEAADIAAQB2IDIA84ACYW8jgAKggAAAIFZmcBOAAqAAAAAfJnN5") \ No newline at end of file diff --git a/pr/3958/docs/search.index/76f639536f4b.js b/pr/3958/docs/search.index/76f639536f4b.js deleted file mode 100644 index 07c8922778..0000000000 --- a/pr/3958/docs/search.index/76f639536f4b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQMA9NMhAAABANMAAQDzAgF09foeAAABAAEAHwIBABOAAqBQAAAgX2FvAQUA83IiAAABAAEAAQIA9ekhAAABAAEAAQABAPOBAm11AYACoEAAACAloFAAAB+1Y2lzAISgEAAAID4BQAkBXyAAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/774538fc496d.js b/pr/3958/docs/search.index/774538fc496d.js deleted file mode 100644 index b0aca69b1b..0000000000 --- a/pr/3958/docs/search.index/774538fc496d.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOzAAAAEAABYACgDVEgEAaBYBAIUWAgDdGAEASCAAAN8gBQAZIgAAlCIBAM8iAQDiIgEAIwACsCATbgABYXL1IB0AALQDAQABAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/775bd81064c3.js b/pr/3958/docs/search.index/775bd81064c3.js deleted file mode 100644 index ca11135138..0000000000 --- a/pr/3958/docs/search.index/775bd81064c3.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYQCoEAAACG2sHAiiwDpZGkTgAKgoAAAIntibgECAPVkFgAAzAgBAAEAAQABAwD0Yx0AAAEAAQABACOAAqAAAAASm2RyAYMCoEAAACI3oEAAACI4YmxnAQAAiLAQEpoELaAAAAAjhrAAEQAAAbAgFmMChKAwAAAeJJYBGjswAAABAAAQAAQA1QwEACENBwD/HgEALCIBAAEAAaAwAAAfPmbzgBEAABwSFABDAoSgEAAAIGSgYAAAIdigYAAAImIBEAbyjBYAAKAGAQEA80MgAACcAX4BAYSEoGAAACMWoHAAACM1oGAAACMXoGAAACMYEAEJU4ADsLAiwADvY2x084CEAUAM") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7773a91af230.js b/pr/3958/docs/search.index/7773a91af230.js new file mode 100644 index 0000000000..6619b15630 --- /dev/null +++ b/pr/3958/docs/search.index/7773a91af230.js @@ -0,0 +1 @@ +rn_("AQIBoAAAACNDZAEtEAAAAQIA84YkAAABAAEA8wsBbfNEJAAAAQABAAEEAPTzIQAAAQC7AAEA8wIBZfVVGQAAMQABALQEAQDzgAJhbwEHAaBgAAAjv2/yNiEAAAEAE4ECoDAAACRcZXABAgA7MAAAAQAA6QACAB4TAABwF+gAAQIBoEAAACEdZfIEHgAAkQPzAQFs86YfAACiAAEAAYECoDAAABiQoHAAACKRZXIBgAKgUAAAIoWgEAAAHvxpdAEAAaAQAAAe+2/1ZhMAAAEAAQABAIsQAYACsBAjLwABoCAAACNoYW8TggKwcCQ2AAFtcROAAqDgAAAkbGxwE4ACsDAi5AEKZW8BggKhAAAAJKag0AAAJJNrbROAA6BgAAAjE7BgIt0AAWFrcgGBArCAJAAAAaCAAAAkAmV3AYMCsDAjEQABsEAjRwABcHMBgAKhAAAAJImgoAAAI/hlbAGAArAgI8YAAaBQAAAi2mRwt3wAAouwYCLbAAGg8AAAJGuwoCPCAAGVtAc7MAAAAQAAPAACADURAgCTETkAg4CEoEAAACHjsEAisQABoFAAACQwBAkI8wCHEVEJOzAAAAEAAFwCCQAdCwAAJQsAAAAM7gC0DQMAPBEAACwTAAB6E2cAWRgFABIc9wA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/77803c5f1351.js b/pr/3958/docs/search.index/77803c5f1351.js new file mode 100644 index 0000000000..6bad044d8a --- /dev/null +++ b/pr/3958/docs/search.index/77803c5f1351.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAAA4AAwBFFAsAch8AAH8gAQABAwGgQAAAJG9iAfsjAADzAgFn9LsfAAABAAEANQRTAAOgkAAAIvFhbm87MAAAAQAAZQACALgNMgD4EzIA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/77876c9c6803.js b/pr/3958/docs/search.index/77876c9c6803.js new file mode 100644 index 0000000000..9e1f55bc22 --- /dev/null +++ b/pr/3958/docs/search.index/77876c9c6803.js @@ -0,0 +1 @@ +rn_("AQMA9dkhAAABAAEAAQABABOBAqAgAAAd4mNsAYACoCAAABh6oDAAAB3hYWWnAAAAhaAwAAATN6CAAAAijLBgIEIAAQsABTswAAABAAAGAAMAVAQCAAAJAgBEFAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/77c750489423.js b/pr/3958/docs/search.index/77c750489423.js deleted file mode 100644 index ce8fc2d56a..0000000000 --- a/pr/3958/docs/search.index/77c750489423.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACoHAAACOUoAAAAArhZmcBBQGwICKdAAF19MIWAAABAAEAAQABAAA7MAAAAQAAewACANYWAACpHXoAI4ACsBAdlQABdHjzgANvc3U=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/78699368aa60.js b/pr/3958/docs/search.index/78699368aa60.js new file mode 100644 index 0000000000..6f90bb84c0 --- /dev/null +++ b/pr/3958/docs/search.index/78699368aa60.js @@ -0,0 +1 @@ +rn_("AQQA84kgAAA7AQEAI4ADsBAhigABOz0B2HaHZXBzAQIA9MAhAAABAAEAAQDzAgF18hYeAAB7BAEAADswAAABAAAFAAEAWRgFAGcBAICFoHAAACOdoKAAACPSJBgC") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7870014635bb.js b/pr/3958/docs/search.index/7870014635bb.js new file mode 100644 index 0000000000..17c6c8c7e0 --- /dev/null +++ b/pr/3958/docs/search.index/7870014635bb.js @@ -0,0 +1 @@ +rn_("AYACoEAAACNpoBAAABhxY3IBgQKgAAAAExegAAAAE1llcxOAAqAwAAAXTmFyAYECsBAZSAYYoCAAAB5CZWkBAQGwIB5cAbhp8jATAAABAGOAhKAAAAAROaAAAAAh1gggBQGAArBAIHIAAaBAAAAeQ2xvxwYAAIewMB3dAAGgcAAAIoqwMCNHAAEXgAw6MAAAAQAAAAAABwAQAAAAPAs9Cz4L9wwPEBAQliFqIw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/78748c76b9fe.js b/pr/3958/docs/search.index/78748c76b9fe.js new file mode 100644 index 0000000000..fc12e689b4 --- /dev/null +++ b/pr/3958/docs/search.index/78748c76b9fe.js @@ -0,0 +1 @@ +rn_("AQAA9OggAAABAAEAAQDzBAFz8hYgAAABAAEDAaAwAAAiu2kB0h8AAPMCAWwBQhMAAGOAhIANWZx4WaAQAAAingigAg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/78e85eccb866.js b/pr/3958/docs/search.index/78e85eccb866.js new file mode 100644 index 0000000000..2738a70e5f --- /dev/null +++ b/pr/3958/docs/search.index/78e85eccb866.js @@ -0,0 +1 @@ +rn_("AYICoAAAACSBoAAAACSCNDbzBQFpASskAAAjgAKgMAAAIsRhYgEHAaBAAAAkamIB9yMAABOGArAgIqYAAWRtAQMA86wfAAA0BAEAI4ACoCAAAB4uYXJDAAOgwAAAJH6gIAAAGSdlaXT0LREAAEsAAQABAAGAAqBwAAAhr6AAAAAXa2F4AQIBsAAjgQABcwGRGgAAAYACoFAAACE7oDAAAB4tYWUBBwGgQAAAJG9iAfsjAAABBQD3qx8AALoAAQDYAgEAuQCVAAEFAbBgJDMAAWkBQiMAAPMDAWgBJhkAANc7AAGKsGAgIwQZsCAiwAABjxQHOzAAAAEAAA8ABgA2DQMA8Q4GAHsYAABtGQAAPCEBAL0iAAABAgA7MAAAAQAABQABAFkYBQABBAA7MAAAAQAABQABACcfBQDzgQJjcgEAArAwIsIAAaAgAAAfqmFrAWseAAB3AQCAhYAjXAkAAQgoAw==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/79465da01082.js b/pr/3958/docs/search.index/79465da01082.js new file mode 100644 index 0000000000..b8f2a8578e --- /dev/null +++ b/pr/3958/docs/search.index/79465da01082.js @@ -0,0 +1 @@ +rn_("AQIA84sYAAABAAEAAYACsIAkIwABsLAkYQABYWwThgKwICHhAAF0dQEGAbDAJF8AAWny1R8AAAEAlwEAgIWgYAAAIYSgcAAAIYWkAQgBAQD0HgsAAAEAQQxyBlMAA7AwESgAAWVpeTswAAABAACFAAQAYQEAAGwXAABsHoEA9h8BAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/798397d39c3b.js b/pr/3958/docs/search.index/798397d39c3b.js deleted file mode 100644 index 5d5ab62a91..0000000000 --- a/pr/3958/docs/search.index/798397d39c3b.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQABsCAZ5wZ6afaQDgAAAQABADoQfQDPAgGEArAAIMcAAbAwIe4AAXN0EwMCsIAh8AABZmgB+hAAAMcAAACFoFAAACI5sBAfugJroDAAABnoFCAG91IEAACMBqgNwgQBAJEB/wE=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/798d8d4c6af4.js b/pr/3958/docs/search.index/798d8d4c6af4.js new file mode 100644 index 0000000000..372e229622 --- /dev/null +++ b/pr/3958/docs/search.index/798d8d4c6af4.js @@ -0,0 +1 @@ +rn_("AQAAOzAAAAEAAAUAAgAOHgMA1iIBAAEJAPNVIwAAAQABAPMBAnBzOzAAAAEAAA0ABABJEwIAkxgAAJ8hBQDAIQMAI4ACoFAAACPzcHIBBwGgQAAAJG9iAfsjAAAThgKwICLAAAFkbROAAqCAAAAkJ29yAQIBsHAkIAABc/LaHwAAAQABAQGgMAAAJA93AfAiAADzggJlaRMAAqBQAAAkbWV08y8QAAABABgUAYMCoFAAACHlsDAkNgABY3ABgQOgUAAAIr+gAAAAJDugsAAAJCViZHQBgAKgQAAAJIWgYAAAJJZhcvMCAXMBbxkAAPOAAmFyAQIA9EAXAAABAMoGXQUBAQD2RxMAAAEASQUBAJ0KAQBTgISwUB/YAAGwECKmAAERQAIBAgGwYCEZAAF08j4eAAABACOAAqBQAAAghWFvAQUA9gsjAAAJAAEACAEBAAEAI4ECoHAAACM4bXMBBwGgQAAAJGpiAfcjAAABBAD0VB4AAAEAAQC1AQEEAaBgAAAkPGIBvSIAAPOAAmxvAQECoEAAABlVoIAAACEWZnTyKx4AAAEAd/cBAM2gcAAAIFOwMB4MAAGAJ3YHOjAAAAEAAAAAAB4AEAAAAEgLSQtKC0sLTAtkCwgNCQ04ETYUNxQ4FOId8R0WHpQflR/4HwwgdyAXIZEikiKTItoi2yLcInQjACQBJAIk") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7993f385ea48.js b/pr/3958/docs/search.index/7993f385ea48.js new file mode 100644 index 0000000000..c0fd926cbf --- /dev/null +++ b/pr/3958/docs/search.index/7993f385ea48.js @@ -0,0 +1 @@ +rn_("AQABsGAkIAABZQFxIAAAQwEDsJAjkwABoDAAACASY25z9FMRAADvDJgBAQATgAKwcCHrAAFjcwGAAqAgAAAkD6CgAAAj1mlyAQABoCAAAB4XafIIIwAA+wABAwD1FyMAALwAAQCNAAEAAYQCsEAiwgABoEAAACLEZHOnAwAAhgEe5ooDP7BwIpYAARwgEjowAAABAAAAAAAUABAAAABmDWcNaA00EDUQNhA3EDgQORA6EA8XfhhIGesdYB8EIYwinyKgIqEi8CIBggKgQAAAIrmgQAAAIro0NgEDAbCQJJQAE2UBeCAAAPOAAmFpAQkBsEAj1wABZfLnIQAAAQCzgISgQAAAIe8cAAEBAAGwEB49BRR19vYTAACHDzcAuAAdAB0AE4ACoDAAAB/sbHTzgANhZWk=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/79c6b7aef96f.js b/pr/3958/docs/search.index/79c6b7aef96f.js new file mode 100644 index 0000000000..6783266db1 --- /dev/null +++ b/pr/3958/docs/search.index/79c6b7aef96f.js @@ -0,0 +1 @@ +rn_("AQEBsIAkogABc/IFJAAAAQABCQGwgCSsAAFz8p0kAAABADOAA7AgHekEpGRpdAEFAaAgAAAkJnLyIyAAABkEAQACoIAAACSDoGAAACSVZHPyFBMAAEkEJwMAgIagIAAAJKWgwAAAI9mgEAAAIZYQwUg=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7b6f587e8263.js b/pr/3958/docs/search.index/7b6f587e8263.js deleted file mode 100644 index 9d2d19f26f..0000000000 --- a/pr/3958/docs/search.index/7b6f587e8263.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQICoEAAACKvoFAAACNPaXL36xAAAKQAAQDlESwAAQABAAEEAaBAAAAgU2U7MAAAAQAACQAEAA4jAwB+IwEAqyMBALUjAQABAAKwcCOfAAGgcAAAIQBlcjswAAABAAA0AAMA0AwAAGIeMgBtIgAAdwAAAIWgIAAAEZkJ1gJyl6RQCQEBGAQAAA==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7b83a94477bc.js b/pr/3958/docs/search.index/7b83a94477bc.js deleted file mode 100644 index d8c31af1a8..0000000000 --- a/pr/3958/docs/search.index/7b83a94477bc.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQGEsGAfgwE3gCMXBqAdoLAAACLwoEAAAB89GQAB8soPAAABAAECAPPRGAAA/wUBAAEAADswAAABAAAGAAIA0hIBAPYXBADzgAJkbgEJAaBAAAAjA2XziiIAALcAAQABAgGggAAAI1p28rkgAAAkAvMDAWUBzx4AAHcAAIGFoCAAAB1QsUAjswABETEAAQEBoFAAAB8BbPOxDwAAAQAjCPOAA3J0dg==") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7ba6f56d5fa3.js b/pr/3958/docs/search.index/7ba6f56d5fa3.js new file mode 100644 index 0000000000..35352e846b --- /dev/null +++ b/pr/3958/docs/search.index/7ba6f56d5fa3.js @@ -0,0 +1 @@ +rn_("AQABoIAAACScZvIcEwAAghABBwDzZCMAAAEAAQAjgAKgUAAAIPhhb/MCAmZz9i4RAABNAAEAAQAFCMYHE4ADsIAfxACxsBAO+wABYWVv") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7bc5f3501f7a.js b/pr/3958/docs/search.index/7bc5f3501f7a.js deleted file mode 100644 index f4a21080b1..0000000000 --- a/pr/3958/docs/search.index/7bc5f3501f7a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQAA9PkSAAABALUM/wABCQGggAAAI6RmAaoiAAAjAAKgIAAAH0JpdQG9HwAAAQIBsIAjSQABZvIYHwAAAQATgAKgoAAAI4hydPOAAmFzY4ADoJAAACJ5ZHR2") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7bf6b9d20a96.js b/pr/3958/docs/search.index/7bf6b9d20a96.js deleted file mode 100644 index 8ccef67cbe..0000000000 --- a/pr/3958/docs/search.index/7bf6b9d20a96.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQUA87MgAADaAYwAAQABsEAgtAABcgGuHwAAo4GEoJAAACOUoVAAACOwCkAQAQoA9JgiAAABAAEAAQABAAA7MAAAAQAAgAABAOoZgAAjgAKwQCLAAO9lbwEBAPPRGAAA/wUBAPOAA2Z0dgEAADswAAABAAACAQUAHA0AAJ8R+QDSEgEA9hcEACEYAABXAQCAxaAAAAAfGqAgAAAWYgAKKAg=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7cbdca9db0b6.js b/pr/3958/docs/search.index/7cbdca9db0b6.js new file mode 100644 index 0000000000..42696557a5 --- /dev/null +++ b/pr/3958/docs/search.index/7cbdca9db0b6.js @@ -0,0 +1 @@ +rn_("AQIAOzAAAAEAAAEBAgADFwAAihkAAfMAAW07MAAAAQAAAwECADQNAADrDQIBAQMA9MsdAAABAAEAkwUTAAKgIAAAEyxjcjswAAABAAC5AEIAJgsTABYTAAAjEwEAPBMAAE8TAQBdEwAA/hYBAAEXAQAMFwEAGxcCADgXAQA7FwQARxcDAFUXAABfGQcAaRkBAHMZAAB4GQEAfhkCAIUZAAAmHgMAMB4AADIeAABIHgEAXh4JALAfBADcHwAA4x8AACUgDgDvIAAACiEFABEhAAAdIQEAISEBACQhBAAsIQEAsCEBALQhBQDKIQQA6yECAO8hAADzIQEAlCIAAK4iAgC3IgAAviIAAN8iAAAKIwAAICMAAEojAQBVIwIAWiMBAIYjAQCmIwAAwCMBAMQjAQDNIwAA1yMBAPwjAQAXJAEAGyQBACYkAAA9JAAASSQDAFYkAwBmJAAA84ACcnc=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7cc2500f4fdd.js b/pr/3958/docs/search.index/7cc2500f4fdd.js deleted file mode 100644 index 9a20e3218b..0000000000 --- a/pr/3958/docs/search.index/7cc2500f4fdd.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQcA9PogAAABAAEAAQAjgAKgUAAAH3ljcgEEAaBwAAAixHbzQB0AAAEAAQABAwKgIAAAH6uAHT0AEAFiefPqFwAAAQABAAEBAaBQAAAhymjzuRgAAAEAaQQTAAKgMAAAGOhlcwHYCgAA8wABdwFqHQAAAQMAOzAAAAEAAAUAAgDnFwIAwB8CAAEDAPSoGAAAAQABAD0JAQQA9TgdAAABAAEAAQABAAEAArBgIh4BfKBgAAAiH2ZtAZgYAAABAgD0fR8AAC8BaAABAMOAhKCQAAAiO7AAH4YAAQwgAQEDAPM1HQAAAQABACOAAqBAAAAiGGhsxzsDAI6gMAAAEsagMAAAIziwYB1oAAGwcB+sAAGwYB84AAE3cVs7MAAAAQAAGAAHAEcEAABxBAEAuwkJANwSAQBaFgcAgBgAAD4fAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7daed4ef8d62.js b/pr/3958/docs/search.index/7daed4ef8d62.js new file mode 100644 index 0000000000..9d9e37aeed --- /dev/null +++ b/pr/3958/docs/search.index/7daed4ef8d62.js @@ -0,0 +1 @@ +rn_("AQEA9kYZAADRCbwAAQCNAAEAAQ8A9EkkAAABAAEAAQAjgAOg0AAAJE+gQAAAIRFhY2XzgAJsbRcAAICFoCAAACCIoAAAABcFsGAg9QABoAAAAA0PUUAC") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7dd929949593.js b/pr/3958/docs/search.index/7dd929949593.js new file mode 100644 index 0000000000..3d65fcff02 --- /dev/null +++ b/pr/3958/docs/search.index/7dd929949593.js @@ -0,0 +1 @@ +rn_("AQIA9E0jAAABAAEAAQABBAA7MAAAAQAADQACACUgDADNIwAA8wICZXr0JxMAAAEAbxEBAAEMAPSKIwAAAQABAAEAQwADoEAAAB4yoQAAACP4ZWZpOzAAAAEAABkADACSBAEAQg0BAAIQCQAbEwAAQBcBAGoXAACBGQAAyx0CAAseAABgIwAAaCMAAGMkAAABgAKwIBcLAAWgYAAAI3tidPMAA2FlafcFCgAAAQDfGFYBPwABAAEA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7e36a2d47ed2.js b/pr/3958/docs/search.index/7e36a2d47ed2.js new file mode 100644 index 0000000000..15ae033b0f --- /dev/null +++ b/pr/3958/docs/search.index/7e36a2d47ed2.js @@ -0,0 +1 @@ +rn_("AYACsEAhOQABoJAAACOhYXQBAQGg0AAAI9li83QNAAABAK4DAYICoAAAACSBoAAAACSCNDbzBwFpASskAADzgANlbnA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7eaaffb5f6b8.js b/pr/3958/docs/search.index/7eaaffb5f6b8.js new file mode 100644 index 0000000000..1beefce258 --- /dev/null +++ b/pr/3958/docs/search.index/7eaaffb5f6b8.js @@ -0,0 +1 @@ +rn_("AYkCoCAAACRnoDAAACR1aXATAAKgIAAAIzVlaTswAAABAAAJAAQABhcEAG0XAgCOIQAAeyMAAIcAAAKFsEAkagAFoEAAACMgoQAAACSMoDAAACN+EgATOjAAAAEAAAAAAAcAEAAAAB0TZRPXH94fhCCHIPcj+yM=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7f5131fce61a.js b/pr/3958/docs/search.index/7f5131fce61a.js deleted file mode 100644 index 5e99c5d257..0000000000 --- a/pr/3958/docs/search.index/7f5131fce61a.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AYACsJAg1AABsJAg1gABY2wBAgDzbiAAAAEAAQATgAKwIB9vAQJhbwEIAPNbIgAAVQABADcAAAOFsGAh0QABsGAi/AABoHAAACIlLEAEOzAAAAEAAAsABQB+FgMAzhcBABUfAQAlIQEA8CEBAEcAAACFoHAAACLkoIAAACOkoFAAAB+TsEAY2gX5sEAE8qISAAAIEAGAAqAgAAAdVKBQAAAftmxzE4ACoHAAACIbZW8BgAKgYAAAIcygYAAAIc1ldAEGAPOhIwAAAQABAAEDAPOCIwAAAQABAPMFAnBzAaohAAABAwD07h4AAAEAAQAJBAEFAPUxIAAAAQABAAEAAQABAQGwgCOrAAFz8gwjAAABAAEJAbCAI7UAAXPypSMAAAEA84ECZGkBAwA7MAAAAQAACQAEAOseAgCXHwAAESICAHwiAgD3YAADi7BAH2EAAbAwHvEAAaBAAAAfY39+uZBowaBgAAAg6d9RAjswAAABAAAKAAUArxICAPMSAgCyHgAAuSEBAFQiAQABhQOwYCLzAAGwMCJJAAGwMCJLAAFkcnNTgISgoAAAIwqgMAAAIjsBRAEBAAD3uxAAABkOoAE/AIoBUACMAAEAAaAwAAAjTnDyjR0AAKcBo4CEoUAAACOcoCAAABKfAqAQAYACoEAAACBtsDAjHQABcXITAAKwABK0AAFlc/ecGAAAuQX5ARkApAAGAEcBAQQBsEAhzwABZfJ4HQAAAQABgAKwoCLrAAGggAAAIkNsb9MBhLBgH20AASwAAfPuDAAA5xFGAwGBAqAAAAAX/aAAAAAX/jQ2AYACsAAdmQGsoDAAACH1Z3PzgAJucAEHAPNyIgAAAQABAAGAAqBAAAAgJaBQAAAftWNp84ACYW8BAwA7MAAAAQAABgADAGsWAQCxFgMATSAAABOAAqAAAAAMoXJ4AQcCoEAAACIwoDAAACKMZXfyDx8AAKUAAYYCoCAAACNuoDAAACN9aXABAgGgcAAAIqt3OzAAAAEAAAgABADNFgUAcyAAALEgAACtIQAAI4ACsCAesAABY2S3vwMAz6BQAAAjsaCQAAAjhqBQAAAe1MBP8hM7MAAAAQAAEQETAFQBAAB2AfAATgQCAGwEAgB3BAAA1wkAAKUPAQDDEAAADxECALYSAQC8GAEA4RgAAFYdAgDNHgAA2B4AAIwfBAByIAAA8yEAAK4iAAA=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/7f7eb99068c1.js b/pr/3958/docs/search.index/7f7eb99068c1.js deleted file mode 100644 index 1309f9e618..0000000000 --- a/pr/3958/docs/search.index/7f7eb99068c1.js +++ /dev/null @@ -1 +0,0 @@ -rn_("AQIAOjAAAAEAAAAAAA0AEAAAAPMe9B71HpgfmR+aH5sfnB+dHzoiQSJNInki8CIBgAKgMAAAIwOwEB9kAAFyePMAAWU7MAAAAQAADgAFAJ0YBABWHgUAqSEAAIoiAABBIwEA84ACZG4=") \ No newline at end of file diff --git a/pr/3958/docs/search.index/desc/2e31d1820337.js b/pr/3958/docs/search.index/desc/2e31d1820337.js deleted file mode 100644 index 7b1d954654..0000000000 --- a/pr/3958/docs/search.index/desc/2e31d1820337.js +++ /dev/null @@ -1 +0,0 @@ -rd_("AmData flows in both directionsjI/O error.AbIP based addresses0BnConfigures the endpoint to use the n0 defaultsnprivate marker00AlThe endpoint\xe2\x80\x99s identifier.AoGet the identity of this stream00BmReturns the PathId of this path.BcReturns the remote\xe2\x80\x99s endpoint id.BiReturns the endpoint id of this endpoint.4CiReturns a watcher that updates every time this or the \xe2\x80\xa6BmApplication layer added the address directly.Djquinn types that are used in the public iroh API. Whether \xe2\x80\xa6B`Error type on failed conversion.BcError when decoding the public key.0AoThe largest representable valueAlThe maximum path ID allowed.BkPublic internet address discovered via QAD.lDNS over TCPC`A Tls wrapped tokio::net::TcpStreamlDNS over TLSBoAn endpoint communicated with us first via UDP.lDNS over UDPBmData flows only from the stream\xe2\x80\x99s initiatorBkAdds an AddressLookup service.CnPkarr based address lookup for iroh, supporting both relay \xe2\x80\xa6BlSets whether to publish to the Mainline DHT.AnWhich directions data flows inCiThis module exports a DNS resolver, which is also the \xe2\x80\xa6AoDNS endpoint discovery for irohCiImplementation of a DNS name server for iroh endpoint \xe2\x80\xa6AjConfig for the DNS server.lDNS resolverBeExplicit congestion notification bitsClUpdates the watcher to the latest value and returns that \xe2\x80\xa6AoReturns the config for a relay.B`The current best RTT estimation.1BeThe amount of I/O operations executedBoReturns the number of relays in this relay map.BjReturns the number of services configured.AlReturns the number of paths.2BbSet a custom TokenLogCiMaps this watcher with a function that transforms the \xe2\x80\xa6CaMinimum RTT registered so far for this estimator.DhCreates a new EndpointAddr with no network level addresses.C`Creates a new SignatureError error.CdCreates a new RelayUrlParseError error.DiCreates a new EndpointData with a relay URL and a set of \xe2\x80\xa6E`Creates a new EndpointInfo with an empty EndpointData.DaCreates a new Item from a EndpointInfo.BmCreates a new static Address Lookup instance.AeCreates a new client.CkCreates a new DNS resolver with sensible cross-platform \xe2\x80\xa6DiCreates a new QlogConfig that writes a qlog trace to the \xe2\x80\xa6CiCreates a new qlog factory that writes files into the \xe2\x80\xa6BlCreates a new RetryError error.CgCreates a new RemoteEndpointIdError error.DgCreates a new Builder using the given Preset.BcInitializes new connection options.BkConstruct an error with a code and a reasonAeCreate a new StreamIdCoCreates a new router builder using given Endpoint.BfCreate a new AccessLimit.ChCreates a new MaxLengthExceededError error.DjCreates a new QlogFileGroup that writes qlog files to the \xe2\x80\xa6DhCreates a new EndpointAddr with no network level addresses.C`Creates a new SignatureError error.CdCreates a new RelayUrlParseError error.AhCreate a new zone store.ClCreate a DNS server given some settings, a connection to \xe2\x80\xa6ClCreates a new ping tracker, setting the ping timeout for \xe2\x80\xa6BoCreate a new key cache with the given capacity.BgCreate a new ClientBuilderCdCreates a new ForwardPacketError error.ClCreates a new RelayedStream from an inner stream and key \xe2\x80\xa6CeCreates a new InvalidBucketConfig error.DmCreates a new TlsConfig from a rustls ServerConfig.AkCreates a new RelayService.CmCreate a new QuicClient to handle the client side of QUIC \xe2\x80\xa6C`Creates a new StaggeredError error.CkCreates a new DNS resolver with sensible cross-platform \xe2\x80\xa6DiCreates a new EndpointData with a relay URL and a set of \xe2\x80\xa6ChCreates a new MaxLengthExceededError error.E`Creates a new EndpointInfo with an empty EndpointData.CkGet SystemTime::now() or the mocked equivalentCcCurrent best estimate of this paths\xe2\x80\x99s latency \xe2\x80\xa6ChCurrent best estimate of this connection\xe2\x80\x99s latency \xe2\x80\xa60BgRun DNS and Pkarr servers on localhost.BgTLS configuration for the HTTPS server.CbSets the TTL (time-to-live) for published packets.C`Sets the time-to-live value for the DNS packets.BbThe origin of this direct address.C`Returns this frame\xe2\x80\x99s corresponding frame type.D`The RelayUrl where this relay server can be dialed.0CjState-specific data stored in the Connection.AaAccess is denied.ChAddress lookup results from AddressLookups.Djquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6BdName of this address lookup service.AoWe received a ping on the path.CkMessages with these frames will be ignored. 8 byte ping \xe2\x80\xa6ClRequest from the relay to reply to the other side with a \xe2\x80\xa6CiRequest from the client to the server to reply to the \xe2\x80\xa6Ce8 byte payload, the contents of ping being replied toDiReply to a ClientToRelayMsg::Ping from a client with the \xe2\x80\xa6DiReply to a RelayToClientMsg::Ping from a server with the \xe2\x80\xa6B`An error occurred during readingDjquinn types that are used in the public iroh API. Whether \xe2\x80\xa6nThe 0 path id.BgReturns the TransportAddr.DjReturns the current EndpointAddr. As long as the endpoint \xe2\x80\xa6lThe address.CjExtracts the ALPN protocol from the peer\xe2\x80\x99s handshake \xe2\x80\xa60000AcBinds the endpoint.DdConstructs a default Endpoint and binds it immediately.AhMode for getting a cert.mType of errorBkCurrent congestion window of the connectionBmThe information published about the endpoint.00AoReturns the argument unchanged.000000000CmCreates a RelayMap from a RelayUrl.1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111BcHTTP server part of iroh-dns-serverAjConfig for the HTTP serverChHTTP-specific constants for the relay server and client.BnPerform the initial load and construct the \xe2\x80\xa6BaCalls U::from(self).000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000AnPeer-to-peer QUIC connections.BhReturns an iterator over the path infos.C`Returns an iterator over all encountered errors.ClReturns an iterator over the character strings contained \xe2\x80\xa6AlLoad the config from a file.ClAn address lookup service that uses an mdns-like service \xe2\x80\xa6AkCaptured call-site metadata0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CkThe name of the Address Lookup that discovered the address.CcThe name of the application that added the endpointCeMethod for opening a sealed message dataClReturns a reference to the value currently stored in the \xe2\x80\xa6BkThe port to serve a local UDP DNS server atoPort to bind to0CdThe port on which the connection should be bound to.AiProduction configuration.ClConfiguration to speak to the QUIC endpoint on the relay \xe2\x80\xa6CjCreate a QUIC server that accepts connections for QUIC \xe2\x80\xa61DaConfiguration for the QUIC server, disabled if None.BgRead data contiguously from the stream.CcDecode TransportParameters from bufferBlA record to set for all originsBlMethod for sealing message dataCmNumber of address validation tokens sent to a client when \xe2\x80\xa6CfReturns the side of the connection (client or server).0CeSign the given message and return a digital signature0BiThe size of the packet that was too largeAcStop accepting data0CbReturns the URLs of all servers in this relay map.0AbAccess is allowed.Djquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6BaAddressLookup errorsAkQuic client related errors.AeProtocol send errors.nDNS over HTTPSAoA locally bound socket address.CbA plain non-Tls tokio::net::TcpStreamBiError decoding the relay protocol messagefRelaysCaAn endpoint communicated with us first via relay.1CcThe peer abandoned transmitting data on this streamCnThe peer is unable to continue processing this connection, \xe2\x80\xa6CgEnable rate limit based on headers commonly used by \xe2\x80\xa6BbThe type of value that can change.AjThe endpoint\xe2\x80\x99s addressesBlReturns the full list of all known addressesCiReturns an iterator over known all addresses for this \xe2\x80\xa621CmSets the ALPN protocols that this endpoint will accept on \xe2\x80\xa6D`Applies the configuration to the passed in Builder.E`Builds a DnsAddressLookup with the passed DnsResolver.DiBuilds the PkarrPublisher with the passed secret key for \xe2\x80\xa6CgCreates a PkarrResolver from this builder.BdBuilds the address lookup mechanism.DiBuilds an MdnsAddressLookup instance with the configured \xe2\x80\xa6BiConstruct a fresh ControllerCjBuild a QuicTransportConfig from the builder.DjBuild a ServerConfig from a ServerConfigBuilder.AhBuilds the DNS resolver.AiThe contents of the chunkCiThe total amount of bytes which have been transferred \xe2\x80\xa6BjThe amount of bytes which had been writtenAjThe TLS certificate chain.B`Removes all configured services.BbCloses the connection immediately.BhCloses the QUIC endpoint and the socket.AkCreates an empty relay map.CfCreates an empty ConcurrentAddressLookup.CjCreates an empty builder with no address lookup services.2BcFrame type that triggered the errorB`Install hooks onto the endpoint.AkConfig for the HTTPS serverCcDistinguishes streams of the same initiator and \xe2\x80\xa6BhWhether this is an IP transport address.BeWhether this is an IP transport path.1DhReturns a Watcher for the network paths of this connection.CkReturns a watcher for the network paths of this connection.CjAn address lookup service which publishes and resolves \xe2\x80\xa6DbConfiguration for the Relay server, disabled if None.CgThis module implements the send/recv relaying protocol.AmRecreates the inner resolver.BbClose the send stream immediately.BcCompletely resets the DNS resolver.2AmResponds with a retry packet.BmNS record to set for all originsCdSpawns an accept loop and returns a handle to it \xe2\x80\xa6AaSpawn the server.A`Spawn the server1AbStarts the server.BkSplits the client into a sink and a stream.BnShared state and store for the iroh-dns-serverBgState for Let\xe2\x80\x99s Encrypt certificates.BdReturns stats for this network path.AnReturns connection statistics.0CeShow connection stats the at the end of the benchmarkAcThe pkarr DNS storeBcTitle to record in the qlog captureBmReturns information how this address is used.CmWrite a buffer into this stream, returning how many bytes \xe2\x80\xa6CcEncode TransportParameters into bufferAkAccept the connect attempt.AfAccept the connection.CaFuture produced by Endpoint::accept.BcAccess restriction for an endpoint.AmThe address is in active use.AmThe initiator of a connectionoA relay client.EdThe Server side representation of a Client\xe2\x80\x99s connection.AdServer configurationBhConfiguration for a Client.AgUse a custom relay map.AmUse custom bootstrap servers.AdError when decoding.0ClA handle to the channel over which the response to a DNS \xe2\x80\xa6CjSent from server to client to tell the client if their \xe2\x80\xa6CiA one-way message from relay to client, declaring the \xe2\x80\xa6CjThe length of an ed25519 PublicKey, in bytes.CjThe length of an ed25519 Signature, in bytes.10lRate limits.ChCerts are loaded from a the cert_cache pathBkUse a static TLS key and certificate chain.Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6Dkquinn_proto types that are used in the public iroh API. Id \xe2\x80\xa6A`Defines a presetAkReject the connect attempt.B`Reject and close the connection.AaThe built router.AgA general rustls error.AlThe acceptor of a connectionAdThe iroh-dns server.AmA running Relay + QAD server.CiThe key cache is enabled with a fixed capacity. It is \xe2\x80\xa6CiEnable rate limit based on the connection\xe2\x80\x99s peer IP \xe2\x80\xa6DeThe origin or source through which an address associated \xe2\x80\xa6Dequinn types that are used in the public iroh API. An \xe2\x80\xa6CmAttempts to accept this incoming connection (an error may \xe2\x80\xa6BbReturns Self::Accept.BoAccepts an incoming connection on the endpoint.AnHandle an incoming connection.BiSee ProtocolHandler::accept.DiConfigures the router to accept the ProtocolHandler when \xe2\x80\xa6AeAccess configuration.C`The amount of full chunks which had been writtenBhExplicitly sets the pkarr client to use.AgCreate and run a client0DkExposes Client, which allows to establish connections to a \xe2\x80\xa6CgThe server-side representation of an ongoing client \xe2\x80\xa6CdWait for the connection to be closed for any reason.CjWaits for the connection to be closed, and returns the \xe2\x80\xa6ChReturns a future that resolves once the endpoint closes.EhCommon types between the super::handshake and super::relay \xe2\x80\xa6AlConfiguration for the serverDhCreates a QuicTransportConfig that emits qlog files, if \xe2\x80\xa6BjCreate QUIC error code from TLS alert codeBkAn underlying crypto (e.g. TLS) layer errorDhCreates a new DnsResolver from a struct that implements \xe2\x80\xa6DaCreate a custom relay mode from a list of RelayUrls.1CdExtends this RelayMap with another one.0CmNotify the peer that no more data will ever be written to \xe2\x80\xa6AfHeader protection keysCmIgnores this incoming connection attempt, not sending any \xe2\x80\xa6BgInserts a new relay into the relay map.CdInsert a signed packet into the cache and the store.1CfEnables saving the TLS pre-master key for connections.lRate limits.CfAn in-memory address lookup system to manually add \xe2\x80\xa6DdCreates a new DNS discovery using the iroh.link domain.CkCreates a pkarr publisher which uses the number 0 pkarr \xe2\x80\xa6ClCreates a pkarr resolver builder which uses the number 0 \xe2\x80\xa6AhThe offset in the streamB`Packet deliveries were confirmed0CjA convenience method that waits for the endpoint to be \xe2\x80\xa6AfPacket protection keysBfApplies the given Preset.B`Protocols used by the iroh-relayBnThe public key of this SecretKey.0BcHuman-readable reason for the close0BhHuman-readable explanation of the reasonCeClose reason to send with the connection close frame.BiRejects this incoming connection attempt.BbReturns Self::Reject.DkReturns a list with the RelayConfig for each relay in this \xe2\x80\xa60AgReload the certificate.BeRemoves an existing relay by its URL.0BmTake the provided endpoint and run the server0CkThe main server which combines the DNS and HTTP(S) servers.CeA fully-fledged iroh-relay server over HTTP or HTTPS.BeMetrics tracked for the relay server.BmMetrics collected by the endpoint\xe2\x80\x99s socket.C`Private source type, cannot be created publicly.0AkThe protocol decoding errorAkThe underlying stream error0ClReturns a stream which will yield the most recent values \xe2\x80\xa6AmThe relayed stream connectionDeEncodes a EndpointId in z-base-32 encoding.0CjStatistics about datagrams and bytes received on this pathCgStatistics about UDP datagrams received on a connectionCfStatistics about datagrams and bytes sent on this pathCjStatistics about UDP datagrams transmitted on a connectionB`A QAD IPv4 round trip completed.B`A QAD IPv6 round trip completed.CgUpdates the watcher to the latest value and returns \xe2\x80\xa6ClVerify a signature on a message with this secret key\xe2\x80\x99s \xe2\x80\xa60CcNumber of ack-eliciting bytes that may be in flightDjquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6AeBoxed iterator alias.BbBuilder for Endpoint.BjBuilder for DhtAddressLookup.BeBuilder for DnsResolver.CkManages the connections to all currently connected clients.ClUse the default relay map, with production relay servers \xe2\x80\xa6BbUse the default bootstrap servers.CmA peer was expired due to being inactive, unreachable, or \xe2\x80\xa6AkMetrics for iroh-dns-serverBdMetrics tracked for the relay serverDiquinn types that are used in the public iroh API. Future \xe2\x80\xa6BfUse the staging relay servers from n0.CcThe peer is no longer accepting data on this streamCaThe stream is larger than the user-supplied limitAdNot yet determined..AlThe HTTP/1.1 Upgrade failed.CkA handle to a value that\xe2\x80\x99s represented by one or more \xe2\x80\xa6Dbquinn types that are used in the public iroh API. \xe2\x80\xa6CfNumber of times this server has accepted a connection.0DbCreates a DnsAddressLookupBuilder that implements \xe2\x80\xa6DhReturns a PkarrPublisherBuilder that publishes endpoint \xe2\x80\xa6ChCreates a new resolver builder using the pkarr relay \xe2\x80\xa6ChCreates a new builder for DhtAddressLookup.EbReturns a MdnsAddressLookupBuilder that implements Into.CmCreates a builder to construct a DNS resolver with custom \xe2\x80\xa6DiReturns a default QuicTransportConfigBuilder that allows \xe2\x80\xa6DgReturns the builder for an Endpoint, with a production \xe2\x80\xa6DdCreates a new Router using given Endpoint.3CcThe total number of clients which should be createdCaThe \xe2\x80\x9cServer\xe2\x80\x9d side of the client. Uses the \xe2\x80\xa6BkConnects to a remote Endpoint.CaEstablishes a new connection to the relay server.CgDecrypt the packet payload with the given packet numberBcDecrypt the given packet\xe2\x80\x99s headerClThe list of domains for which SSL certificates should be \xe2\x80\xa6BjSet to true to enable the mainline lookup.CgEncrypt the packet payload with the given packet numberBcEncrypt the given packet\xe2\x80\x99s headerBnDo we have any indication that UDP is working?CbCheck if this stream has been opened during 0-RTT.0BkCo-locating all of the iroh metrics structsCmRetrieve implementation-specific metrics used to populate \xe2\x80\xa60BlReturns metrics collected for this endpoint.CgShow iroh library counter metrics at the end of the \xe2\x80\xa6AnMetrics support for the serverAbMetrics collector.AnConfig for the metrics server.CbReturns the metrics collected in the relay server.CnThe maximum UDP payload size guaranteed to be supported by \xe2\x80\xa6BbOne or more packets were just sent0BnInitiates a new outgoing bidirectional stream.EdDomain used for serving the _iroh.<endpointid>.<origin> \xe2\x80\xa6ChPresets allow configuring an endpoint quickly with a \xe2\x80\xa6CeIf set, is a description of why the connection is \xe2\x80\xa6DgPublishes the given EndpointData to the Address Lookup \xe2\x80\xa6BfPublishes a SignedPacket.ClNumber of reports executed by net_report, including full \xe2\x80\xa6DeResolves the Item for the given EndpointId.DkResolves a SignedPacket for the given EndpointId.AdResolve a DNS query.BoAAAA record to set for all originsAfStaging configuration.CiCompletes when the peer stops the stream or reads the \xe2\x80\xa6CcThe total number of streams which should be createdCjStreams used in the server-side implementation of iroh \xe2\x80\xa6ClImplements logic for abstracting over a websocket stream \xe2\x80\xa6CeThe length of the AEAD tag appended to packets on \xe2\x80\xa6ClExposes functions to quickly configure a server suitable \xe2\x80\xa6BgCancel-safe waiting for a ping timeout.BaReturns a connection info struct.CgAn advisory duration for how long the client should \xe2\x80\xa6DfReturns a future completing with Ok(value) once a new \xe2\x80\xa6Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6CkIf the 0-RTT data was accepted, you can continue to use \xe2\x80\xa6AeThe shared app state.BnOptions when configuring binding an IP socket.C`The mode how SSL certificates should be created.BdDatagram support is disabled locallyCmDisable relay servers completely. This means that neither \xe2\x80\xa6AcDisable rate limit.AjThe key cache is disabled.B`Potential errors related to dns.ClControls an iroh endpoint, establishing connections with \xe2\x80\xa6hEveryoneCkA collection of HTTP request handlers for custom endpoints.BbThe address is not currently used.CkAn incoming connection for which the server has not yet \xe2\x80\xa6AhA cache for public keys.B`The largest encoded value lengthCmthe connection is being closed abruptly in the absence of \xe2\x80\xa6CmApplication layer with a specific name added the endpoint \xe2\x80\xa6DcInformation about a network path used by a Connection.AmWebSocket protocol violation.CiIf the 0-RTT data was rejected, any streams that were \xe2\x80\xa6CmList of relay server configurations to be used in an iroh \xe2\x80\xa60BaA URL identifying a relay server.0BeTrait for DNS resolvers used in iroh.iRun errorDbquinn types that are used in the public iroh API. \xe2\x80\xa6CnCommunication with the peer has lapsed for longer than the \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6ClThe datagram is larger than the connection can currently \xe2\x80\xa61CkUnder the hood this is a UTF-8 String is no longer than \xe2\x80\xa600BdGet this public key as a byte array.0EhReturns true if a relay with url is contained in this this \xe2\x80\xa60AoThe contents of the datagram(s)AgGet the data directory.CeLocation where all data of iroh-dns-server is stored.BhDefault values used in irohBaDefault values used in the relay.AkDisable the metrics server.BjSet to true to disable the metrics server.ChReturns the Endpoint stored in this router.CbReturns the Endpoint of the endpoint.DkThe Endpoint allows establishing connections to other iroh \xe2\x80\xa6C`Statistics about frames received on a connectionCcStatistics about frames transmitted on a connectionDkCreates a new qlog factory that writes files into QLOGDIR, \xe2\x80\xa6DdCreates a new QlogFileGroup that is only enabled if \xe2\x80\xa6CfCreates a new user error from an arbitrary error type.00BjConstruct a VarInt infalliblyBeSucceeds iff x < 2^62DfParses a EndpointId from z-base-32 encoding.0DbGenerate a new SecretKey with a randomness generator.0C`Number of FrameType::Pings received0BnGet the server\xe2\x80\x99s http RelayUrl.CmSpecifies the time to wait after completing MTU discovery \xe2\x80\xa6CcReturns Self for use in down-casting to extract \xe2\x80\xa6BlReturns a list of IP addresses of this peer.BmReturns the direct addresses of the endpoint.10CkReturns true, if only a EndpointId is present.CeReturns true if this relay map is empty.BbAre there any services configured?BoReturns true if the list is empty.32CgWhether this is a transport address via a relay server.BgWhether this is a relay transport path.1CmDuration after an address validation token was issued for \xe2\x80\xa6CmReturns the local IP address which was used when the peer \xe2\x80\xa6AoConfig for the mainline lookup.AbStarts a new ping.BoInitiates a new outgoing unidirectional stream.BcGet the priority of the send streamCjTools for spawning an accept loop that routes incoming \xe2\x80\xa6CmBuilds the client handler and starts the read & write \xe2\x80\xa6BbCalled when the router shuts down.BkSee ProtocolHandler::shutdown.BcShuts down the accept loop cleanly.CfShutdown the server an wait for all tasks to complete.CgShutdown the server and wait for all tasks to complete.CkCancel the server tasks and wait for all tasks to complete.AfShutdown the resolver.AkRequests graceful shutdown.BaShuts down all connected clients.ChShuts down the relay service, disconnecting all clients.AlSlow start threshold (bytes)CgContains all timeouts that we use in iroh.CkConvert this to the bytes representing the secret part. \xe2\x80\xa6AlReturn the inner byte array.10BeSucceeds iff x < 2^6200Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6BeIn-progress connection attempt futureCmRepresents datagrams sent from relays (originally sent to \xe2\x80\xa6CnRequest from the client to relay datagrams to given remote \xe2\x80\xa6CjOne or multiple datagrams being transferred via the relay.CeErrors that can occur while dialing the relay server.AcDNS server settingsBnA DNS server that serves pkarr signed packets.Ddquinn_proto types that are used in the public iroh API.BgPossible frame types during handshakingDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6BoThe mechanism that was used for authentication.AdA net_report report.2Dbquinn types that are used in the public iroh API. \xe2\x80\xa6mA public key.0AeA read error occurredDiquinn types that are used in the public iroh API. Errors \xe2\x80\xa6CeErrors when receiving messages from the relay server.AdRelay receive errorsD`Configuration of the relay servers for an Endpoint.CiUse a TLS key and certificate chain that can be reloaded.mA secret key.0BoError for sending messages to the relay server.AaRelay send errorsAbEd25519 signature.0BcTLS configuration for Relay server.BkConfiguration to use for the TLS connectionBaA store for pkarr signed packets.BnAccept the next incoming bidirectional stream.BcAdd addresses to the endpoint data.0DfAdds an already Boxed AddressLookup service.CiSets whether this endpoint should advertise its presence.CbBinds an IP socket at the provided socket address.BkOptionally set a custom address to bind to.CmThe IPv4 or IPv6 address to bind the UDP DNS server. Uses \xe2\x80\xa6CmOptionally set a custom bind address (will use 0.0.0.0 if \xe2\x80\xa60ChThe socket address on which the QUIC server should bind.AkSet custom bootstrap nodes.BdThe mode of SSL certificate creationCjRate limits for incoming traffic from a client connection.BbDuplicate the controller\xe2\x80\x99s stateBdThe amount of UDP datagrams observedBlThe datagrams and related metadata to relay.BcThe datagrams and related metadata.CnConvert to a hex string limited to the first 5 bytes for a \xe2\x80\xa60DjCreates a RelayMap from an iterator of RelayUrl.0Afip:port of global IPv4Be[ip]:port of global IPv6ClImplements the handshake protocol that authenticates and \xe2\x80\xa6AmDoes this have any addresses?0BiGet the bound address of the HTTP socket.CcThe socket address the HTTP server is listening on.BoGet the server\xe2\x80\x99s https RelayUrl.AjCreate an in-memory store.BoWhich side of a connection initiated the streamDhConverts this Connecting into a 0-RTT connection at the \xe2\x80\xa6DkConverts this Accepting into a 0-RTT or 0.5-RTT connection \xe2\x80\xa6BiConverts into TransportAddr.BaBase types and utilities for IrohBoShorthand for self == Side::ClientCaReturns true if this path is closed.CiCheck if this endpoint is still alive, or already closed.BoShorthand for self == Side::ServerBkThe authentication mechanism that was used.BaThe HTTP URL of the Pkarr server.CiAttempts to read from the stream into the provided bufferCkSets an explicit proxy url to proxy all HTTP(S) traffic \xe2\x80\xa6CjSet an explicit proxy url to proxy all HTTP(S) traffic \xe2\x80\xa6CcThe socket address the QUIC server is listening on.BdReturns the relay map for this mode.DaReturns the EndpointId of the endpoint that this \xe2\x80\xa6DfReturns the EndpointId from the peer\xe2\x80\x99s TLS certificate.00DfRuns a future to completion, or until the Endpoint is \xe2\x80\xa6BlNumber of FrameType::Pongs sent0BiSets the list of accepted ALPN protocols.BhA stable identifier for this connection.BaSubscribe to discovered endpointsCgReturns the optional user-defined data of the endpoint.AnReturns any user-defined data.1BoWrite a buffer into this stream in its entiretyAnTLS certificate configuration.CbThe client frame type for the authentication frameB`The send half of a relay client.BcAn outgoing connection in progress.BlWe established a connection on this address.AbA QUIC connection.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6D`A direct address on which an iroh-endpoint might be \xe2\x80\xa6ChA peer was discovered or it\xe2\x80\x99s information was updated.AeState for serving DNSCeThe identifier for an endpoint in the (iroh) network.04AjConfig for the HTTP serverBjThe HTTP(S) server part of iroh-dns-serverCbThe max byte length allowed for user-defined data.0CaThe provenance string for this Address Lookup \xe2\x80\xa6CeAn address assigned by the router using port mapping.BeConfiguration for qlog trace logging.CbHandles the client side of QUIC address discovery.BbConfiguration for the QUIC server.ChThe HTTP path under which the relay accepts relaying \xe2\x80\xa6Dkquinn types that are used in the public iroh API. A stream \xe2\x80\xa6BdInformation about a remote endpoint.Diquinn types that are used in the public iroh API. Errors \xe2\x80\xa6CmSent from server to client for the server to declare that \xe2\x80\xa6ClA one-way message from relay to client, advertising that \xe2\x80\xa6DkOnly endpoints for which the function returns Access::Allow\xe2\x80\xa6DhError for attempting to retry an Incoming which already \xe2\x80\xa6CiCreate self-signed certificates and store them in the \xe2\x80\xa67AcServer spawn errorsDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa67CaAccepts the next incoming uni-directional stream.CkWhether the implementation is permitted to set the spin \xe2\x80\xa6ChBytes received from a FrameType::SendPacket0CdBytes sent from a FrameType::SendPacket0BhThe authenticated client\xe2\x80\x99s public key.BnClass of error as encoded in the specificationB`Application-specific reason codeCcError code to send with the connection close frame.BcType of frame that caused the closeCgCreates a new user error from an arbitrary boxed error.CiConstruct a PublicKey from a slice of bytes.CaCreate a secret key from its byte representation.BmParse an Ed25519 signature from a byte slice.210CgCreates a new EndpointAddr from its parts.CgCreates a new EndpointInfo from its parts.10BjGet the bound address of the HTTPS socket.CdThe socket address the HTTPS server is listening on.CjConverts into an iterator over known all addresses for \xe2\x80\xa6AiExtract the integer valueCkIroh\xe2\x80\x99s relay is a feature within iroh, a peer-to-peer \xe2\x80\xa6AiIs this endpoint allowed?BlGet the local address of the UDP/TCP socket.BhReturns the local address of the client.AfLooks up a TXT record.AeLooks up TXT records.1BeThe amount of bytes lost on this pathBeThe socket address of the DNS server.BaMetrics collected by net reports.C`Disables publishing even if a secret key is set.ChWhether to run a local relay and have the server and \xe2\x80\xa6CjPad UDP datagrams carrying application data to current \xe2\x80\xa6AnNumber of PCP probes executed.AiCreate a persistent storeC`Attempt to write bytes from buf into the stream.BlMetrics collected by the portmapper service.DkReturns the prefix_len, see Self::set_prefix_len.CcReturns the provenance of this Address Lookup item.AmRead the next segment of dataAoReads the next segment of data.CkRead an exact number of bytes contiguously from the stream.CdSets the relay servers to assist in establishing \xe2\x80\xa6BjReturns a list of relay urls of this peer.BfReturns the relay URL of the endpoint.10CgSets the secret key to use for signing the DNS packets.CcSets a secret key to authenticate with other peers.BhReturns the secret_key of this endpoint.CaRuns the server side of the handshaking protocol.BoEpoch qlog event times are recorded relative toBfInternal utilities to support testing.CfCreates a TlsConfig suitable for testing.EeReturns a Watcher for the current EndpointAddr for this \xe2\x80\xa6AiAdds a list of addresses.0AjConfig for the zone store.AeServer accept errors.CmWraps an existing protocol, limiting its access, based on \xe2\x80\xa6CgThe address was advertised by a call-me-maybe DISCO \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CaProtocols over which DNS records can be resolved.CcThe DNS resolver used throughout iroh.0BaAttempted to send an empty packetAkConfig for the HTTPS serverDjquinn types that are used in the public iroh API. Maximum \xe2\x80\xa6AmACME with LetsEncrypt serversAdUse Let\xe2\x80\x99s Encrypt.CmWatcher for the open paths and selected network path in a \xe2\x80\xa6BjTracks pings on a single relay connection.D`Constructs a QlogConfig for individual connections.BgInformation on a specific relay server.0CbConfiguration for the Relay HTTP and HTTPS server.AiThe config for the store.BjError from the underlying WebSocket stream0BkError type for WebSocket stream operations.CcAccepts this incoming connection using a custom \xe2\x80\xa6BcRemoves all entries from the cache.AjClears the internal cache.1BbCreate a connection usable for qadCdLargest UDP payload size the path currently supportsCaSOA record data for any authoritative DNS recordsCmDefault time to live for returned DNS records (TXT & SOA)BiDescription to record in the qlog captureCiNumber of connections we have removed because of an error0AhHandler for DNS requestsCcReturns the endpoint id of the discovered endpoint.CjThe EndpointId of the endpoint this is about.BdThe id of the endpoint that expired.1AmThe endpoint ID of the client2ClLow-level HTTP server components for embedding the relay \xe2\x80\xa6CkThe initial value to be used as the maximum UDP payload \xe2\x80\xa6BkStarting guess for maximum UDP payload sizeBkThe RTT used before an RTT sample is taken.DjReturns a future completing once the value is set to Some \xe2\x80\xa6ClReturns the value set by Self::set_is_required.D`Returns true if this path is currently the main \xe2\x80\xa6BiChecks if the router is already shutdown.BgPerforms an IPv4 lookup with a timeout.AiLooks up an IPv4 address.1BgPerforms an IPv6 lookup with a timeout.AiLooks up an IPv6 address.1CeThe amount of concurrent streams which should be usedDdPackets are acked in batches, all with the same now \xe2\x80\xa60ClWait until a Pkarr announce for an endpoint is published \xe2\x80\xa6AdPacing rate (bits/s)CfThe number of network paths to peers that are relayed.B`Sets the pkarr relay URL to use.CgCreates a QuicConfig suitable for testing.AnRead the next segments of dataCkConvenience method to read all remaining data into a bufferCgThe remote transport address used by this network path.ChReturns addressing information about a recently used \xe2\x80\xa6BoThe sample size used for this key\xe2\x80\x99s algorithmCiMaximum number of bytes to transmit to a peer without \xe2\x80\xa6B`Returns the handle for the task.CaNumber of bytes to transmit from client to serverAoNumber of UPnP probes executed.CnSpecifies the upper bound to the max UDP payload size that \xe2\x80\xa6CeSets a prefix to the filename of the generated files.DbWrite a single Bytes into this stream in its entiretyCfControls which endpoints are allowed to use the relay.BcThe receive half of a relay client.CgThe stream has already been stopped, finished, or resetBmThe stream has already been finished or resetDhquinn types that are used in the public iroh API. Error \xe2\x80\xa6AbConnection errors.CjNetwork-level addressing information for an iroh endpoint.0CgData about an endpoint that may be published to and \xe2\x80\xa600ChSent from server to client to signal that a previous \xe2\x80\xa6CjIndicates that the client identified by the underlying \xe2\x80\xa6CnInformation about an endpoint that may be published to and \xe2\x80\xa600CfAn in-memory address lookup system to manually add \xe2\x80\xa6EaList of PathInfo for the network paths of a Connection.Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6BdMetrics tracked for the relay serverBhAll metrics tracked in the relay server.CiThe hyper Service that serves the actual relay endpoints.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa64BiParameters governing incoming connectionsBaConfiguration for the full Relay.Diquinn types that are used in the public iroh API. Errors \xe2\x80\xa6DiA simpler version of ToSocketAddrs, that does not do any \xe2\x80\xa6CiCompletes the authorization protocol by notifying the \xe2\x80\xa6ChThe certificates chain if configured with manual TLS \xe2\x80\xa6BlIf the connection is closed, the reason why.AlConservative estimate of RTTAdDNS requests (total)AmSets the DNS resolver to use.CnSets the DNS resolver to use for resolving the pkarr relay \xe2\x80\xa60CiOptionally sets a custom DNS resolver to use for this \xe2\x80\xa6ClReturns the DNS resolver used in this Endpoint.DhCreate a DnsResolver configured to use the test DNS server.CnCreates a new user error from an arbitrary error type that \xe2\x80\xa6CjCreates a new user error from an arbitrary boxed error \xe2\x80\xa60CmAdds the provided configuration to the RelayMap.CiWhether this watcher is still connected to all of its \xe2\x80\xa6CnReturns the optional timestamp when this endpoint info was \xe2\x80\xa6CjOptional timestamp when this endpoint address info was \xe2\x80\xa6BgThe amount of packets lost on this pathAkSocket to serve metrics on.DgOptional interception point to handle the Accepting state.BoSee ProtocolHandler::on_accepting.CeThe number of network paths to peers that are direct.DiPolls for the next value, or returns Disconnected if one \xe2\x80\xa6D`Configures qlog capturing by setting a QlogFactory.CkAn advisory duration that the client should wait before \xe2\x80\xa6ChCreates a RelayConfig suitable for testing.DdRemoves the configuration from the RelayMap for the \xe2\x80\xa6BmNumber of full reports executed by net_reportC`Resolves a hostname from a URL to an IP address.0CkThe segment size if this transmission contains multiple \xe2\x80\xa6AkSets a custom service name.BcSet the priority of the send streamAiAdds an IP based address.0DgWrite a slice of Bytes into this stream, returning how \xe2\x80\xa6CfThe address was discovered by an Address Lookup systemCfAddressLookup system for super::Endpoint.CcAttempted to read from or write to a closed stream.CmThe connection could not be created because not enough of \xe2\x80\xa60oBuild a Client.ChEndpointHooks intercept the connection establishment \xe2\x80\xa6DiExtension methods for EndpointId to encode to and decode \xe2\x80\xa60BnThe stream finished before all bytes were readCcreceived an invalid Retry Token in a client InitialBeThe DNS name for the iroh TXT record.0BkThe local application closed the connectionBbThe config for the metrics server.CjResolver of address lookup information from a pkarr relay.CcHard NAT: QAD\xe2\x80\x99ed IPv4 address + local fixed port.CcBuilder to create one or more related qlog configs.BeThe relay\xe2\x80\x99s connection to a client.DcBuilder for creating a Router for accepting protocols.AnEnum of metrics for the moduleAhAvailable address types.0AmRecord data for a TXT record.AaReturned from \xe2\x80\xa6CnReturns the local socket addresses on which the underlying \xe2\x80\xa6CaNumber of bytes to transmit from server to clientDcReturns the builder for an Endpoint, with an empty \xe2\x80\xa6ClSupport for handling DNS resource records for dialing by \xe2\x80\xa6DbReturns the EndpointInfo for the discovered endpoint.CbThe endpoint info for the endpoint, as discovered.2CcCreates a new ConcurrentAddressLookup.AgNumber of HTTP requestsAmGet the IncomingCnThe max_ack_delay we will request the peer to useCkThe known MTU for the current network path has been updatedBmNumber of PCP probes that found it available.BcCryptographic identity of the peer.CnAttempts to read from the stream into the provided buffer, \xe2\x80\xa6BnUpdates the ping tracker with a received pong.DjConfigures qlog capturing through the QLOGDIR environment \xe2\x80\xa6BaReceives an application datagram.Abkeyed by relay UrlBdReturns the currently selected path.DgTransmits data as an unreliable, unordered application \xe2\x80\xa6CmWhether to implement fair queuing for send streams having \xe2\x80\xa6CaThe TLS server configuration for the QUIC server.AiThe server configuration.CiCreates a ServerConfig suitable for testing.CePrivate key used to authenticate data included in \xe2\x80\xa6C`Sets the user-defined data of the endpoint data.0DiSplits the current datagram into at maximum num_segments \xe2\x80\xa6CaCreates a RelayMap from an iterator.0CkToString::to_string, but without panic on OOM.000000000000000000000000000000000000000000000000000000000000000000000000000000000CnSets the direct addresses and returns the updated endpoint \xe2\x80\xa6CgSets the IP based addresses and returns the updated \xe2\x80\xa610BgWrite timeout for the client connectionDbOptions for the Endpoint::connect_with_opts function.AoInformation about a connection.AgThe connection was lost0000AkThe type of direct address.DaAn event emitted from the MdnsAddressLookup service.CeHandle and drop guard for test DNS and Pkarr servers.CcFuture returned from Endpoint::closed.Cithe endpoint encountered an internal error and cannot \xe2\x80\xa6BlAttempted to connect to an invalid DNS name.BbThe config for the metrics server.CiThe main underlying IO stream type used for the relay \xe2\x80\xa6Amno viable network path existsBbPayload length limit was exceeded.CiPublisher of address lookup information to a pkarr relay.AnEnum of metrics for the moduleDiquinn types that are used in the public iroh API. Errors \xe2\x80\xa60BcVerification of a signature failed.0BkError returned when a staggered call fails.CmThe peer violated the QUIC specification as understood by \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6BeLookup the address of an Endpoint ID.CdAdds an additional Address Lookup for this endpoint.CbReturns the Address Lookup service, if configured.CfCreate a ConcurrentAddressLookup with \xe2\x80\xa6AfDerive AEAD using hkdfAdHandle a DNS requestCgIntercept outgoing connections before they are started.0CjCaptivePortal is set when we think there\xe2\x80\x99s a captive \xe2\x80\xa6CdRemoves all direct addresses from the endpoint data.0CgTake the provided endpoint and run the client benchmarkBnCreate a client endpoint and client connection0DiReturns a QlogConfig for a connection, if logging should \xe2\x80\xa6BjParameters negotiated during the handshake0BkParameters negotiated during the handshake.ClThe socket address on which the Relay HTTP server should \xe2\x80\xa6AiInitial congestion windowBnConverts this stream into an unordered stream.B`Get a key from a slice of bytes.CnSpecifies the minimum MTU change to stop the MTU discovery \xe2\x80\xa6CaNotifies the system of potential network changes.B`Number of probing tasks started.CgSets the proxy url from the environment, in this order:BkConfigures qlog capturing into a directory.ClThe socket address on which to server the QUIC server is \xe2\x80\xa6BeWhether to use the unordered read APIClMaximum number of bytes the peer may transmit across all \xe2\x80\xa6CkCompletes when the stream has been reset by the peer or \xe2\x80\xa60BbNumber of QUIC datagrams received.BaReturns the peer\xe2\x80\x99s UDP address.AoWait for all tasks to complete.0CeSaturating integer addition. Computes self + rhs, \xe2\x80\xa60ChSaturating integer subtraction. Computes self - rhs, \xe2\x80\xa6CeSets the network prefix length of the subnet this \xe2\x80\xa6CkMaximum reordering in time space before time based loss \xe2\x80\xa6ChTries to convert this type to a SocketAddr.CkConverts into a list of {key}={value} strings.0CbNumber of FrameType::Unknown received0BnNumber of UPnP probes that found it available.BeAdds a RelayUrl address.CiSets the relay URL and returns the updated endpoint data.CiSets the relay URL and returns the updated endpoint info.210CfSets the user-defined data and returns the updated \xe2\x80\xa6000CdConfigure the bootstrap servers for mainline DHT \xe2\x80\xa6BoShorthand for a type that implements both a \xe2\x80\xa6BdPer-client rate limit configuration.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6Djquinn types that are used in the public iroh API. Reasons \xe2\x80\xa6DfTrait to track the state of a Connection at compile time.Dbquinn types that are used in the public iroh API. \xe2\x80\xa6CoMetrics collected by an crate::endpoint::Endpoint.CnMarker type for a connection that is in the incoming 0-RTT \xe2\x80\xa6DnError when deserialising a PublicKey or a SecretKey.0ClThe maximum size of a packet sent over relay. (This only \xe2\x80\xa6CeAttempted to connect a client to a remote without \xe2\x80\xa6CnMarker type for a connection that is in the outgoing 0-RTT \xe2\x80\xa6BaHandler for incoming connections.BkEnables writing qlog traces to a directory.BbConfig for http server rate limit.CjConfiguration for speaking to the QUIC endpoint on the \xe2\x80\xa6C`The server frame type for the challenge responseCnAuthentication was performed by verifying a signature of a \xe2\x80\xa6AbServer task errorsDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CbThe peer doesn\xe2\x80\x99t implement any supported versionBgError when writing a frame to a client.CbThis was a 0-RTT stream and the server rejected it000CmIntercept both incoming and outgoing connections once the \xe2\x80\xa60BjReturns the current timeout set for pings.B`The remote endpoint to relay to.AkThe endpoint origin domain.CgParses a EndpointInfo from DNS TXT lookup.0CfThe socket address on which to serve the HTTPS server.CdMaximum number of incoming packets that may fail \xe2\x80\xa6AlA DNS server and pkarr relayBnMax number of bytes to read in a single burst.BoSet the maximum number of TLS tickets to cache.CnProbe indicating the presence of port mapping protocols on \xe2\x80\xa6BeSets the republish delay for the DHT.AoWait for all tasks to complete.CmRun DNS and Pkarr servers on localhost with the specified \xe2\x80\xa6CiCreates a server endpoint which runs on the given runtime0CcSets whether bind errors are fatal for this socket.BnObject to get current SystemTime.CkCreates a new DNS resolver configured with a single UDP \xe2\x80\xa6AiAdds a single nameserver.1CjCreates a new Memory Lookup instance with the provided \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6BmA drop guard to clean up test infrastructure.BeMessages that clients send to relays.CbThe peer\xe2\x80\x99s QUIC stack aborted the connection \xe2\x80\xa6CcPkarr Mainline DHT and relay server address lookup.BeAttempted to add a disallowed header.AfDNS endpoint discoveryCaThe endpoint can no longer create new connectionsCnreceived a STREAM frame or a RESET_STREAM frame containing \xe2\x80\xa6CdError when handling an incoming frame from a client.A`key update errorAnEnum of metrics for the moduleClIterator returned from PathInfoList::into_iter.DjA pkarr client to publish pkarr::SignedPackets to a pkarr \xe2\x80\xa6=ClThe HTTP path under which the relay allows doing latency \xe2\x80\xa6CmThe messages that a relay sends to clients or the clients \xe2\x80\xa6BoThe server frame type for authentication denialCjMax number of bytes per second to read from the client \xe2\x80\xa6BlChannel capacity for internal message queuesCiRecord that the token was used and, ideally, return a \xe2\x80\xa6CdRemoves all direct addresses from the endpoint data.0CjCurrent state of the congestion control algorithm, for \xe2\x80\xa6CiGet the default RelayConfig for Asia-PacificC`Get the default RelayConfig for EU.0BaDNS lookup responses which failedAdDNS requests via UDPBhReturns whether this is a default route.CjWhether to use the letsenrypt production servers (only \xe2\x80\xa6CbResolves IPv4 and IPv6 in parallel with a timeout.0B`Number of mapping tasks started.AoNumber of failed mapping tasks.CnMaximum duration of inactivity to accept before timing out \xe2\x80\xa6CmNumber of connections closed (only handshaked connections \xe2\x80\xa6CcThe number of connections that have been direct \xe2\x80\xa6CmNumber of connections opened (only handshaked connections \xe2\x80\xa6CiMaximum reordering in packet number space before FACK \xe2\x80\xa6CiRuns a relay server with QUIC enabled suitable for tests.DdMaximum number of Incoming to allow to exist at a time.DgConverts into a EndpointAddr by cloning the needed fields.00DaSets a custom QuicTransportConfig for this endpoint.AkAdds a list of nameservers.DdWrite a slice of Bytes into this stream in its entiretyCfthe application or application protocol caused the \xe2\x80\xa6BkHostname of the default Asia-Pacific relay.AnThe peer closed the connectionAbDNS lookup failed.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa60BoThe default HTTP port used by the Relay server.0CgDefault TTL for the records in the pkarr signed packet.BaHostname of the default EU relay.0Djquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6DjTrait for structs that can be converted into AddressLookup\xe2\x80\xa6BcThe given server name was malformedDfAddress Lookup using swarm-discovery, a variation on mdnsCmA Certificate resolver that reloads the certificate every \xe2\x80\xa6Diquinn types that are used in the public iroh API. Errors \xe2\x80\xa6ClAuthentication was performed by verifying a signature of \xe2\x80\xa6BfAddress of a remote with some metadataCcThe peer does not support receiving datagram framesEfAn unsupported, i.e. not ws or wss, or no URI scheme was \xe2\x80\xa6CnBurst limit for accepting new connection. Unlimited if not \xe2\x80\xa6CmRate limit for accepting new connection. Unlimited if not \xe2\x80\xa6CjAugments endpoint addressing information for the given \xe2\x80\xa6BcCongestion events on the connectionAiCongestion window (bytes)D`Starts a connection attempt with a remote Endpoint.BfGet the default RelayMap.0CiReturns endpoint addressing information for the given \xe2\x80\xa6BjGet the latest signed packet for a pubkey.AoHandle the incoming connection.CmComputes the maximum size of datagrams that may be passed \xe2\x80\xa6BkFrameType::SendPacket received0BgFrameType::SendPacket sent0CfSets endpoint addressing information for the given \xe2\x80\xa6CiCreates a new client while passing a DNS resolver to use.Cmthe endpoint has reached the confidentiality or integrity \xe2\x80\xa6Dbquinn types that are used in the public iroh API. \xe2\x80\xa6CdThe HTTP header name for relay client authenticationBmthe server refused to accept a new connectionC`The default HTTPS port used by the Relay server.0DiA dyn-compatible version of ProtocolHandler that returns \xe2\x80\xa6Ckreceived more data than permitted in advertised data limitsCjError returned when forwarding a packet to a client fails.CgMarker type for a connection that has completed the \xe2\x80\xa67CjThe maximum amount of time, in seconds, the net_report \xe2\x80\xa6Ckdetected an error with protocol compliance that was not \xe2\x80\xa6CmCan occur when parsing a string into a RelayUrl.0Cjreceived a frame for a stream identifier that exceeded \xe2\x80\xa6Cnreceived a frame for a stream that was not in a state that \xe2\x80\xa6CeThe server frame type for authentication confirmationBlInformation how a transport address is used.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6ChThe local endpoint does not support the QUIC version \xe2\x80\xa61CiMaximum quantity of out-of-order crypto layer data to \xe2\x80\xa6AoReturns the default relay mode.BmDNS lookup responses with at least one answerAlDNS requests via HTTPS (DoH)CiCreates a Memory Lookup instance from endpoint addresses.C`Create a VarInt without ensuring it\xe2\x80\x99s in rangeCfThe number of times holepunching is initiated on a \xe2\x80\xa6CjConverts into a EndpointAddr without cloning.00BnSet the capacity of the cache for public keys.AcKey cache capacity.BdNumber of updates to the local port.BjUses the default number 0 pkarr relay URL.CaPackets of other FrameTypes received0BmPackets of other FrameTypes sent0ChNumber of pkarr relay puts that did not update the stateBfNumber of datagrams received using GROCcThe EndpointId of the original sender.CnSets the interval after which packets are republished even \xe2\x80\xa6DgTransmits data as an unreliable, unordered application \xe2\x80\xa6CnSee quinn_proto::TransportConfig::receive_window.BdNumber of unique client keys per day0AmNumber of failed Upnp probes.CiOverride the instant relative to which all events are \xe2\x80\xa6B`ALPN for our quic addr discoveryBmThe encoded information had the wrong length.0C`Parameters governing the core QUIC state machineBjA builder for a ServerConfig.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6Dkquinn types that are used in the public iroh API. A stream \xe2\x80\xa6CbBinds an IP socket at the provided socket address.CjSpecifies the amount of time that MTU discovery should \xe2\x80\xa6B`Removes all IP based transports.BdDNS lookup responses with no answersDaReturns true if the use of staging relays is forced.CgWaits until the full handshake occurs and returns a \xe2\x80\xa6ClWaits until the full handshake occurs and then returns a \xe2\x80\xa6CbNumber of HTTP requests with a non-2xx status codeChTurns this AddressLookup builder into a ready-to-use \xe2\x80\xa6ChPeriod of inactivity before sending a keep-alive packet.ChLetsencrypt contact email address (required if using \xe2\x80\xa6CiThe amount of PLPMTUD probe packets lost on this path \xe2\x80\xa6BlPackets were deemed lost or marked congestedCiThe amount of PLPMTUD probe packets sent on this path \xe2\x80\xa6ClReturns a stream which will yield the most recent values \xe2\x80\xa6CeOutcome of EndpointHooks::before_connectCbThe default metrics port used by the Relay server.0BlPacket size exceeds the maximum allowed sizeCgThis trait allows anything that ends up potentially \xe2\x80\xa6Bireceived a frame that was badly formattedCiThe remote SocketAddr supplied was malformedBgBuilder for PkarrResolver.ClMaximum time the server will attempt to get a successful \xe2\x80\xa6BeErrors when attempting to upgrade andDhquinn types that are used in the public iroh API. Error \xe2\x80\xa6DkSpecifies the ACK frequency config (see AckFrequencyConfig \xe2\x80\xa6CiThe number of times a black hole was detected in the pathCeRemoves all Address Lookup services from the builder.DkSpecifies the MTU discovery config (see MtuDiscoveryConfig \xe2\x80\xa6CaNumber of pkarr relay puts that updated the stateAkConfig for pkarr rate limitCmRemoves all endpoint addressing information for the given \xe2\x80\xa6ChThe reordering threshold we will request the peer to useBjFrameType::SendPacket dropped0BeSets whether this is a default route.BoSets a custom QuicTransportConfig.ClPublishes the addressing information about this endpoint \xe2\x80\xa6CnNumber of UPnP probes that resulted in a gateway different \xe2\x80\xa6CeMakes the builder respect the host system\xe2\x80\x99s DNS \xe2\x80\xa6CfOutcome of EndpointHooks::after_handshakeCg32B dest pub key + ECN bytes + one datagram\xe2\x80\x99s contentBjNo default client configuration was set upBiPath abandoned due to unstable interfacesBhBuilder for PkarrPublisher.Cf32B src pub key + ECN bytes + one datagram\xe2\x80\x99s contentDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CmMaximum number of packets that may be sent using a single \xe2\x80\xa6CeGet the default RelayConfig for NA east.0CeGet the default RelayConfig for NA west.BnNumber of HTTP requests with a 2xx status codeDgLooks up endpoint info by EndpointId and origin domain \xe2\x80\xa60CiPerforms an IPv4 lookup with a timeout in a staggered \xe2\x80\xa60CiPerforms an IPv6 lookup with a timeout in a staggered \xe2\x80\xa60C`Packets of other FrameTypes dropped0AdRuns a relay server.AiNumber of expired packetsBeSigned packets removed from the storeBeNumber of updates to existing packetsCiMaximum number of bytes the peer may transmit without \xe2\x80\xa6CnSets ALPN identifiers that should be signaled as supported \xe2\x80\xa6CkSets the QUIC transport config options for this connection.Chreceived more data in CRYPTO frames than can be bufferedCmServer connection errors, includes errors that can happen \xe2\x80\xa6BeIntoAddressLookup errorsDkError returned when an input value is too long for UserData\xe2\x80\xa60BaHostname of the default NA relay.BfHostname of the default NA east relay.BfHostname of the default NA west relay.ChThe websocket sub-protocol version that we currently \xe2\x80\xa6BcRemoves all relay based transports.ChDerives keying material from this connection\xe2\x80\x99s TLS \xe2\x80\xa6CkIf this type ends up wrapping a TLS stream, then this triesClWhether the reported public address differs when probing \xe2\x80\xa6BfSigned packets inserted into the storeBkCreates a pkarr::SignedPacket.0CkConfigure a pkarr client for resolution of packets from \xe2\x80\xa6BhFailed to deserialize client auth headerClAn Address Lookup service that combines multiple Address \xe2\x80\xa6ClThe default QUIC port used by the Relay server to accept \xe2\x80\xa60BjBuilder for DnsAddressLookup.BkThe production pkarr relay run by number 0.CkThe ack-eliciting threshold we will request the peer to useCdReturns if we should prefer ipv6 it replaces the \xe2\x80\xa6BmPath abandoned at the application\xe2\x80\x99s requestChEnvironment variable to force the use of staging relays.BkBuilder for MdnsAddressLookup.ClThis represents successful authentication for the client \xe2\x80\xa6CjNumber of times the external address obtained via port \xe2\x80\xa6DkParses a EndpointInfo from a pkarr::SignedPacket.0CkSets whether to include the direct addresses in the DNS \xe2\x80\xa6CfWhether the socket address that is initiating this \xe2\x80\xa6CgMaximum number of received bytes to buffer for each \xe2\x80\xa6ClDuration after a retry token was issued for which it\xe2\x80\x99s \xe2\x80\xa6BhGet the path to the store database file.BdNumber of IP transport paths opened.Cmthe number of connection IDs provided by the peer exceeds \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CjA QUIC connection on the server-side that can possibly \xe2\x80\xa6CmPath abandoned due to no available connection IDs for the \xe2\x80\xa6BfThe client side of a 0-RTT connection.AiEndpoint close error codeClreceived transport parameters that were badly formatted, \xe2\x80\xa6ClMaximum number of outgoing application datagram bytes to \xe2\x80\xa6BcTotal duration of all HTTP requestsCeSkip the verification of the relay server\xe2\x80\x99s SSL \xe2\x80\xa6Cn32B dest pub key + ECN byte + segment size u16 + datagrams \xe2\x80\xa6CkThe default capacity of the key cache for the relay server.ClInterval in which to republish the endpoint info even if \xe2\x80\xa6BhThe testing pkarr relay run by number 0.BoBuilder for a QuicTransportConfig.Cm32B src pub key + ECN byte + segment size u16 + datagrams \xe2\x80\xa6CnNumber of bytes received from client connection which have \xe2\x80\xa60CjNumber of client connections which have had any frames \xe2\x80\xa60C`Bytes available in the outgoing datagram buffer.CeRaces an IPv4 and IPv6 lookup with a timeout in a \xe2\x80\xa60DaVariant of max_concurrent_bidi_streams affecting \xe2\x80\xa6BdNumber of IP transport paths closed.CcThe n0 testing DNS endpoint origin, for production.00CkPath abandoned due to resource limitations in the transportCeThe number of packets buffered for sending per clientAeEndpoint close reasonChWhether to use \xe2\x80\x9cGeneric Segmentation Offload\xe2\x80\x9d to \xe2\x80\xa6ClWhether the reported public address differs when probing \xe2\x80\xa60CmMaximum number of incoming bidirectional streams that may \xe2\x80\xa6CaSets a custom ValidationTokenConfig.BgNumber of relay transport paths opened.BhThe default certificate reload interval.DdCreate a ServerConfigBuilder for this endpoint that \xe2\x80\xa6ClMaximum number of incoming application datagram bytes to \xe2\x80\xa6CkCreates a client config that trusts any servers without \xe2\x80\xa6BdPackets were incorrectly deemed lost0DdSpawn the server and run until the Ctrl-C signal is \xe2\x80\xa6CiSets the initial user-defined data to be published in \xe2\x80\xa6CjHow to construct new congestion::Controllers.BmSets a default per-path maximum idle timeout.CbWhether to send observed address reports to peers.ClModifies the number of bidirectional streams that may be \xe2\x80\xa6BgNumber of relay transport paths closed.C`The n0 testing DNS endpoint origin, for testing.00BcLooks up endpoint info by DNS name.0BiEnables the Multipath Extension for QUIC.DhMaximum number of received bytes to buffer for all IncomingCmModifies the number of unidirectional streams that may be \xe2\x80\xa6ChSkip verification of SSL certificates from relay serversDgLooks up endpoint info by EndpointId and origin domain \xe2\x80\xa60CeNumber of consecutive PTOs after which network is \xe2\x80\xa6BlSets a default per-path keep alive interval.CjWhether to receive observed address reports from other \xe2\x80\xa6DiCreates a rustls::ServerConfig and certificates suitable \xe2\x80\xa6CiSets the initial user-defined data to be published in \xe2\x80\xa6AcNat traversal draftCkSets the maximum number of nat traversal addresses this \xe2\x80\xa6CjLooks up endpoint info by DNS name in a staggered fashion.0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/desc/9ecfe721d745.js b/pr/3958/docs/search.index/desc/9ecfe721d745.js new file mode 100644 index 0000000000..d191bbc389 --- /dev/null +++ b/pr/3958/docs/search.index/desc/9ecfe721d745.js @@ -0,0 +1 @@ +rd_("AmData flows in both directionsjI/O error.AbIP based addressesBgA direct connection from an IP address.1BnConfigures the endpoint to use the n0 defaultsnprivate marker00AlThe endpoint\xe2\x80\x99s identifier.AoGet the identity of this stream00BmReturns the PathId of this path.BcReturns the remote\xe2\x80\x99s endpoint id.BiReturns the endpoint id of this endpoint.4CiReturns a watcher that updates every time this or the \xe2\x80\xa6BmApplication layer added the address directly.Djquinn types that are used in the public iroh API. Whether \xe2\x80\xa6B`Error type on failed conversion.BcError when decoding the public key.0AoThe largest representable valueAlThe maximum path ID allowed.BkPublic internet address discovered via QAD.lDNS over TCPC`A Tls wrapped tokio::net::TcpStreamlDNS over TLSBoAn endpoint communicated with us first via UDP.lDNS over UDPBmData flows only from the stream\xe2\x80\x99s initiatorBkAdds an AddressLookup service.CnPkarr based address lookup for iroh, supporting both relay \xe2\x80\xa6BlSets whether to publish to the Mainline DHT.AnWhich directions data flows inCiThis module exports a DNS resolver, which is also the \xe2\x80\xa6AoDNS endpoint discovery for irohCiImplementation of a DNS name server for iroh endpoint \xe2\x80\xa6AjConfig for the DNS server.lDNS resolverBeExplicit congestion notification bitsClUpdates the watcher to the latest value and returns that \xe2\x80\xa6AoReturns the config for a relay.B`The current best RTT estimation.1BeThe amount of I/O operations executedBoReturns the number of relays in this relay map.BjReturns the number of services configured.AlReturns the number of paths.2BbSet a custom TokenLogCiMaps this watcher with a function that transforms the \xe2\x80\xa6CaMinimum RTT registered so far for this estimator.DhCreates a new EndpointAddr with no network level addresses.C`Creates a new SignatureError error.CdCreates a new RelayUrlParseError error.DiCreates a new EndpointData with a relay URL and a set of \xe2\x80\xa6BdCreate a new AddrFilterE`Creates a new EndpointInfo with an empty EndpointData.DaCreates a new Item from a EndpointInfo.BmCreates a new static Address Lookup instance.DaCreate a new PkarrRelayClient with default settings.CkCreates a new DNS resolver with sensible cross-platform \xe2\x80\xa6DiCreates a new QlogConfig that writes a qlog trace to the \xe2\x80\xa6CiCreates a new qlog factory that writes files into the \xe2\x80\xa6BlCreates a new RetryError error.CgCreates a new RemoteEndpointIdError error.DgCreates a new Builder using the given Preset.BcInitializes new connection options.BkConstruct an error with a code and a reasonAeCreate a new StreamIdCoCreates a new router builder using given Endpoint.BfCreate a new AccessLimit.ChCreates a new MaxLengthExceededError error.DjCreates a new QlogFileGroup that writes qlog files to the \xe2\x80\xa6DhCreates a new EndpointAddr with no network level addresses.C`Creates a new SignatureError error.CdCreates a new RelayUrlParseError error.AhCreate a new zone store.ClCreate a DNS server given some settings, a connection to \xe2\x80\xa6ClCreates a new ping tracker, setting the ping timeout for \xe2\x80\xa6BoCreate a new key cache with the given capacity.BgCreate a new ClientBuilderCdCreates a new ForwardPacketError error.ClCreates a new RelayedStream from an inner stream and key \xe2\x80\xa6CeCreates a new InvalidBucketConfig error.DmCreates a new TlsConfig from a rustls ServerConfig.AkCreates a new RelayService.CmCreate a new QuicClient to handle the client side of QUIC \xe2\x80\xa6C`Creates a new StaggeredError error.CkCreates a new DNS resolver with sensible cross-platform \xe2\x80\xa6DiCreates a new EndpointData with a relay URL and a set of \xe2\x80\xa6BdCreate a new AddrFilterChCreates a new MaxLengthExceededError error.E`Creates a new EndpointInfo with an empty EndpointData.CkGet SystemTime::now() or the mocked equivalentCcCurrent best estimate of this paths\xe2\x80\x99s latency \xe2\x80\xa6ChCurrent best estimate of this connection\xe2\x80\x99s latency \xe2\x80\xa60BgRun DNS and Pkarr servers on localhost.AkTLS configuration for iroh.CgTLS verification configuration for iroh and iroh-relay.BgTLS configuration for the HTTPS server.CbSets the TTL (time-to-live) for published packets.C`Sets the time-to-live value for the DNS packets.BbThe origin of this direct address.C`Returns this frame\xe2\x80\x99s corresponding frame type.D`The RelayUrl where this relay server can be dialed.AeThe URL of the relay.1CjState-specific data stored in the Connection.AaAccess is denied.ChAddress lookup results from AddressLookups.Djquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6BdName of this address lookup service.AoWe received a ping on the path.CkMessages with these frames will be ignored. 8 byte ping \xe2\x80\xa6ClRequest from the relay to reply to the other side with a \xe2\x80\xa6CiRequest from the client to the server to reply to the \xe2\x80\xa6Ce8 byte payload, the contents of ping being replied toDiReply to a ClientToRelayMsg::Ping from a client with the \xe2\x80\xa6DiReply to a RelayToClientMsg::Ping from a server with the \xe2\x80\xa6B`An error occurred during readingDjquinn types that are used in the public iroh API. Whether \xe2\x80\xa6nThe 0 path id.BgReturns the TransportAddr.DjReturns the current EndpointAddr. As long as the endpoint \xe2\x80\xa6lThe address.CjExtracts the ALPN protocol from the peer\xe2\x80\x99s handshake \xe2\x80\xa60000AcBinds the endpoint.DdConstructs a default Endpoint and binds it immediately.AhMode for getting a cert.mType of errorBkCurrent congestion window of the connectionBmThe information published about the endpoint.00AoReturns the argument unchanged.00000000CmCreates a RelayMap from a RelayUrl.111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111111111111111111BcHTTP server part of iroh-dns-serverAjConfig for the HTTP serverChHTTP-specific constants for the relay server and client.BnPerform the initial load and construct the \xe2\x80\xa6BaCalls U::from(self).0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000AnPeer-to-peer QUIC connections.BhReturns an iterator over the path infos.C`Returns an iterator over all encountered errors.ClReturns an iterator over the character strings contained \xe2\x80\xa6AlLoad the config from a file.ClAn address lookup service that uses an mdns-like service \xe2\x80\xa6AkCaptured call-site metadata00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CkThe name of the Address Lookup that discovered the address.CcThe name of the application that added the endpointCeMethod for opening a sealed message dataClReturns a reference to the value currently stored in the \xe2\x80\xa6BkThe port to serve a local UDP DNS server atoPort to bind to0CdThe port on which the connection should be bound to.AiProduction configuration.ClConfiguration to speak to the QUIC endpoint on the relay \xe2\x80\xa6CjCreate a QUIC server that accepts connections for QUIC \xe2\x80\xa61DaConfiguration for the QUIC server, disabled if None.BgRead data contiguously from the stream.CcDecode TransportParameters from bufferBlA record to set for all originsBlMethod for sealing message dataCmNumber of address validation tokens sent to a client when \xe2\x80\xa6CfReturns the side of the connection (client or server).0CeSign the given message and return a digital signature0BiThe size of the packet that was too largeAcStop accepting data0CbReturns the URLs of all servers in this relay map.0AbAccess is allowed.Djquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6BaAddressLookup errorsAkQuic client related errors.AeProtocol send errors.nDNS over HTTPSAoA locally bound socket address.CbA plain non-Tls tokio::net::TcpStreamBiError decoding the relay protocol messagefRelaysCaAn endpoint communicated with us first via relay.AiA connection via a relay.2CcThe peer abandoned transmitting data on this streamCnThe peer is unable to continue processing this connection, \xe2\x80\xa6CgEnable rate limit based on headers commonly used by \xe2\x80\xa6BbThe type of value that can change.AjThe endpoint\xe2\x80\x99s addressesBlReturns the full list of all known addressesCiReturns an iterator over known all addresses for this \xe2\x80\xa621CmSets the ALPN protocols that this endpoint will accept on \xe2\x80\xa6ChApply the address filter function to a set of addresses.D`Applies the configuration to the passed in Builder.1E`Builds a DnsAddressLookup with the passed DnsResolver.DiBuilds the PkarrPublisher with the passed secret key for \xe2\x80\xa6CgCreates a PkarrResolver from this builder.BfBuild a PkarrRelayClient.BdBuilds the address lookup mechanism.DiBuilds an MdnsAddressLookup instance with the configured \xe2\x80\xa6BiConstruct a fresh ControllerCjBuild a QuicTransportConfig from the builder.DjBuild a ServerConfig from a ServerConfigBuilder.AhBuilds the DNS resolver.AiThe contents of the chunkCiThe total amount of bytes which have been transferred \xe2\x80\xa6BjThe amount of bytes which had been writtenAjThe TLS certificate chain.B`Removes all configured services.BbCloses the connection immediately.BhCloses the QUIC endpoint and the socket.AkCreates an empty relay map.CfCreates an empty ConcurrentAddressLookup.CjCreates an empty builder with no address lookup services.2BcFrame type that triggered the errorB`Install hooks onto the endpoint.AkConfig for the HTTPS serverCcDistinguishes streams of the same initiator and \xe2\x80\xa6BhWhether this is an IP transport address.BeWhether this is an IP transport path.1DhReturns a Watcher for the network paths of this connection.CkReturns a watcher for the network paths of this connection.CjAn address lookup service which publishes and resolves \xe2\x80\xa6DbConfiguration for the Relay server, disabled if None.CgThis module implements the send/recv relaying protocol.AmRecreates the inner resolver.BbClose the send stream immediately.BcCompletely resets the DNS resolver.2AmResponds with a retry packet.BmNS record to set for all originsCdSpawns an accept loop and returns a handle to it \xe2\x80\xa6AaSpawn the server.A`Spawn the server1AbStarts the server.BkSplits the client into a sink and a stream.BnShared state and store for the iroh-dns-serverBgState for Let\xe2\x80\x99s Encrypt certificates.BdReturns stats for this network path.AnReturns connection statistics.0CeShow connection stats the at the end of the benchmarkAcThe pkarr DNS storeBcTitle to record in the qlog captureBmReturns information how this address is used.CmWrite a buffer into this stream, returning how many bytes \xe2\x80\xa6CcEncode TransportParameters into bufferAkAccept the connect attempt.AfAccept the connection.CaFuture produced by Endpoint::accept.BcAccess restriction for an endpoint.AmThe address is in active use.AmThe initiator of a connectionoA relay client.EdThe Server side representation of a Client\xe2\x80\x99s connection.AdServer configurationBhConfiguration for a Client.AgUse a custom relay map.AmUse custom bootstrap servers.AdError when decoding.0ClA handle to the channel over which the response to a DNS \xe2\x80\xa6CjSent from server to client to tell the client if their \xe2\x80\xa6CiA one-way message from relay to client, declaring the \xe2\x80\xa6CjThe length of an ed25519 PublicKey, in bytes.CjThe length of an ed25519 Signature, in bytes.10lRate limits.ChCerts are loaded from a the cert_cache pathBkUse a static TLS key and certificate chain.Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6Dkquinn_proto types that are used in the public iroh API. Id \xe2\x80\xa6A`Defines a presetAkReject the connect attempt.B`Reject and close the connection.AaThe built router.AgA general rustls error.AlThe acceptor of a connectionAdThe iroh-dns server.AmA running Relay + QAD server.CiThe key cache is enabled with a fixed capacity. It is \xe2\x80\xa6CiEnable rate limit based on the connection\xe2\x80\x99s peer IP \xe2\x80\xa6DeThe origin or source through which an address associated \xe2\x80\xa6Dequinn types that are used in the public iroh API. An \xe2\x80\xa6CmAttempts to accept this incoming connection (an error may \xe2\x80\xa6BbReturns Self::Accept.BoAccepts an incoming connection on the endpoint.AnHandle an incoming connection.BiSee ProtocolHandler::accept.DiConfigures the router to accept the ProtocolHandler when \xe2\x80\xa6AeAccess configuration.C`The amount of full chunks which had been writtenBhExplicitly sets the pkarr client to use.AgCreate and run a client0DkExposes Client, which allows to establish connections to a \xe2\x80\xa6CgThe server-side representation of an ongoing client \xe2\x80\xa6CdWait for the connection to be closed for any reason.CjWaits for the connection to be closed, and returns the \xe2\x80\xa6ChReturns a future that resolves once the endpoint closes.EhCommon types between the super::handshake and super::relay \xe2\x80\xa6AlConfiguration for the serverDhCreates a QuicTransportConfig that emits qlog files, if \xe2\x80\xa6BjCreate QUIC error code from TLS alert codeBkAn underlying crypto (e.g. TLS) layer errorC`Only trust the explicitly set root certificates.DhCreates a new DnsResolver from a struct that implements \xe2\x80\xa6DaCreate a custom relay mode from a list of RelayUrls.21CdExtends this RelayMap with another one.0CmNotify the peer that no more data will ever be written to \xe2\x80\xa6AfHeader protection keysCmIgnores this incoming connection attempt, not sending any \xe2\x80\xa6BgInserts a new relay into the relay map.CdInsert a signed packet into the cache and the store.1CfEnables saving the TLS pre-master key for connections.lRate limits.CfAn in-memory address lookup system to manually add \xe2\x80\xa6DdCreates a new DNS discovery using the iroh.link domain.CkCreates a pkarr publisher which uses the number 0 pkarr \xe2\x80\xa6ClCreates a pkarr resolver builder which uses the number 0 \xe2\x80\xa6AhThe offset in the streamB`Packet deliveries were confirmed0CjA convenience method that waits for the endpoint to be \xe2\x80\xa6AfPacket protection keysBfApplies the given Preset.DkReturns a Preset to apply the DNS address lookup and Pkarr \xe2\x80\xa6B`Protocols used by the iroh-relayBnThe public key of this SecretKey.0BcHuman-readable reason for the close0BhHuman-readable explanation of the reasonCeClose reason to send with the connection close frame.BiRejects this incoming connection attempt.BbReturns Self::Reject.DkReturns a list with the RelayConfig for each relay in this \xe2\x80\xa60AgReload the certificate.BeRemoves an existing relay by its URL.0BmTake the provided endpoint and run the server0CkThe main server which combines the DNS and HTTP(S) servers.CeA fully-fledged iroh-relay server over HTTP or HTTPS.BeMetrics tracked for the relay server.BmMetrics collected by the endpoint\xe2\x80\x99s socket.C`Private source type, cannot be created publicly.0AkThe protocol decoding errorAkThe underlying stream error0ClReturns a stream which will yield the most recent values \xe2\x80\xa6AmThe relayed stream connectionCkUse the operating system\xe2\x80\x99s certificate facilities for \xe2\x80\xa60DeEncodes a EndpointId in z-base-32 encoding.0CjStatistics about datagrams and bytes received on this pathCgStatistics about UDP datagrams received on a connectionCfStatistics about datagrams and bytes sent on this pathCjStatistics about UDP datagrams transmitted on a connectionB`A QAD IPv4 round trip completed.B`A QAD IPv6 round trip completed.CgUpdates the watcher to the latest value and returns \xe2\x80\xa6ClVerify a signature on a message with this secret key\xe2\x80\x99s \xe2\x80\xa60CcNumber of ack-eliciting bytes that may be in flightDjquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6AeBoxed iterator alias.BbBuilder for Endpoint.BjBuilder for DhtAddressLookup.BeBuilder for DnsResolver.CkManages the connections to all currently connected clients.ClUse the default relay map, with production relay servers \xe2\x80\xa6BbUse the default bootstrap servers.CmA peer was expired due to being inactive, unreachable, or \xe2\x80\xa6AkMetrics for iroh-dns-serverBdMetrics tracked for the relay serverDiquinn types that are used in the public iroh API. Future \xe2\x80\xa6BfUse the staging relay servers from n0.CcThe peer is no longer accepting data on this streamCaThe stream is larger than the user-supplied limitAdNot yet determined..AlThe HTTP/1.1 Upgrade failed.CkA handle to a value that\xe2\x80\x99s represented by one or more \xe2\x80\xa6Dbquinn types that are used in the public iroh API. \xe2\x80\xa6CfNumber of times this server has accepted a connection.0DbCreates a DnsAddressLookupBuilder that implements \xe2\x80\xa6DhReturns a PkarrPublisherBuilder that publishes endpoint \xe2\x80\xa6ChCreates a new resolver builder using the pkarr relay \xe2\x80\xa6BnCreate a PkarrRelayClientBuilder.ChCreates a new builder for DhtAddressLookup.EbReturns a MdnsAddressLookupBuilder that implements Into.CmCreates a builder to construct a DNS resolver with custom \xe2\x80\xa6DiReturns a default QuicTransportConfigBuilder that allows \xe2\x80\xa6DgReturns the builder for an Endpoint, with a production \xe2\x80\xa6DdCreates a new Router using given Endpoint.3CcThe total number of clients which should be createdCaThe \xe2\x80\x9cServer\xe2\x80\x9d side of the client. Uses the \xe2\x80\xa6BkConnects to a remote Endpoint.CaEstablishes a new connection to the relay server.CgDecrypt the packet payload with the given packet numberBcDecrypt the given packet\xe2\x80\x99s headerClThe list of domains for which SSL certificates should be \xe2\x80\xa6BjSet to true to enable the mainline lookup.CgEncrypt the packet payload with the given packet numberBcEncrypt the given packet\xe2\x80\x99s headerBnDo we have any indication that UDP is working?AnOnly keep direct IP addresses.0CbCheck if this stream has been opened during 0-RTT.0BkCo-locating all of the iroh metrics structsCmRetrieve implementation-specific metrics used to populate \xe2\x80\xa60BlReturns metrics collected for this endpoint.CgShow iroh library counter metrics at the end of the \xe2\x80\xa6AnMetrics support for the serverAbMetrics collector.AnConfig for the metrics server.CbReturns the metrics collected in the relay server.CnThe maximum UDP payload size guaranteed to be supported by \xe2\x80\xa6BbOne or more packets were just sent0BnInitiates a new outgoing bidirectional stream.EdDomain used for serving the _iroh.<endpointid>.<origin> \xe2\x80\xa6ChPresets allow configuring an endpoint quickly with a \xe2\x80\xa6CeIf set, is a description of why the connection is \xe2\x80\xa6DgPublishes the given EndpointData to the Address Lookup \xe2\x80\xa6BfPublishes a SignedPacket.ClNumber of reports executed by net_report, including full \xe2\x80\xa6DeResolves the Item for the given EndpointId.DkResolves a SignedPacket for the given EndpointId.AdResolve a DNS query.BoAAAA record to set for all originsAfStaging configuration.CiCompletes when the peer stops the stream or reads the \xe2\x80\xa6CcThe total number of streams which should be createdCjStreams used in the server-side implementation of iroh \xe2\x80\xa6ClImplements logic for abstracting over a websocket stream \xe2\x80\xa6CeThe length of the AEAD tag appended to packets on \xe2\x80\xa6ClExposes functions to quickly configure a server suitable \xe2\x80\xa6BgCancel-safe waiting for a ping timeout.BaReturns a connection info struct.CgAn advisory duration for how long the client should \xe2\x80\xa6DfReturns a future completing with Ok(value) once a new \xe2\x80\xa6Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6CkIf the 0-RTT data was accepted, you can continue to use \xe2\x80\xa6AeThe shared app state.BnOptions when configuring binding an IP socket.C`The mode how SSL certificates should be created.BdDatagram support is disabled locallyCmDisable relay servers completely. This means that neither \xe2\x80\xa6AcDisable rate limit.AjThe key cache is disabled.B`Potential errors related to dns.ClControls an iroh endpoint, establishing connections with \xe2\x80\xa6hEveryoneCkA collection of HTTP request handlers for custom endpoints.BbThe address is not currently used.CkAn incoming connection for which the server has not yet \xe2\x80\xa6AhA cache for public keys.B`The largest encoded value lengthCmthe connection is being closed abruptly in the absence of \xe2\x80\xa6CmApplication layer with a specific name added the endpoint \xe2\x80\xa6DcInformation about a network path used by a Connection.AmWebSocket protocol violation.CiIf the 0-RTT data was rejected, any streams that were \xe2\x80\xa6CmList of relay server configurations to be used in an iroh \xe2\x80\xa60BaA URL identifying a relay server.0BeTrait for DNS resolvers used in iroh.iRun errorDbquinn types that are used in the public iroh API. \xe2\x80\xa6CnCommunication with the peer has lapsed for longer than the \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6ClThe datagram is larger than the connection can currently \xe2\x80\xa61CkUnder the hood this is a UTF-8 String is no longer than \xe2\x80\xa600BdGet this public key as a byte array.0EhReturns true if a relay with url is contained in this this \xe2\x80\xa60AoThe contents of the datagram(s)AgGet the data directory.CeLocation where all data of iroh-dns-server is stored.BhDefault values used in irohBaDefault values used in the relay.AkDisable the metrics server.BjSet to true to disable the metrics server.CnUse a compiled-in copy of the root certificates trusted by \xe2\x80\xa60ChReturns the Endpoint stored in this router.CbReturns the Endpoint of the endpoint.DkThe Endpoint allows establishing connections to other iroh \xe2\x80\xa6C`Statistics about frames received on a connectionCcStatistics about frames transmitted on a connectionDkCreates a new qlog factory that writes files into QLOGDIR, \xe2\x80\xa6DdCreates a new QlogFileGroup that is only enabled if \xe2\x80\xa6CfCreates a new user error from an arbitrary error type.00BjConstruct a VarInt infalliblyBeSucceeds iff x < 2^62DfParses a EndpointId from z-base-32 encoding.0DbGenerate a new SecretKey with a randomness generator.0C`Number of FrameType::Pings received0BnGet the server\xe2\x80\x99s http RelayUrl.CmSpecifies the time to wait after completing MTU discovery \xe2\x80\xa6CcReturns Self for use in down-casting to extract \xe2\x80\xa6BlReturns a list of IP addresses of this peer.BmReturns the direct addresses of the endpoint.10CkReturns true, if only a EndpointId is present.CeReturns true if this relay map is empty.BbAre there any services configured?BoReturns true if the list is empty.32CgWhether this is a transport address via a relay server.BgWhether this is a relay transport path.1CmDuration after an address validation token was issued for \xe2\x80\xa6CmReturns the local IP address which was used when the peer \xe2\x80\xa6AoConfig for the mainline lookup.AbStarts a new ping.BoInitiates a new outgoing unidirectional stream.BcGet the priority of the send streamCjTools for spawning an accept loop that routes incoming \xe2\x80\xa6CmBuilds the client handler and starts the read & write \xe2\x80\xa6BbCalled when the router shuts down.BkSee ProtocolHandler::shutdown.BcShuts down the accept loop cleanly.CfShutdown the server an wait for all tasks to complete.CgShutdown the server and wait for all tasks to complete.CkCancel the server tasks and wait for all tasks to complete.AfShutdown the resolver.AkRequests graceful shutdown.BaShuts down all connected clients.ChShuts down the relay service, disconnecting all clients.AlSlow start threshold (bytes)CgContains all timeouts that we use in iroh.CkConvert this to the bytes representing the secret part. \xe2\x80\xa6AlReturn the inner byte array.10BeSucceeds iff x < 2^6200Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6BeIn-progress connection attempt futureCmRepresents datagrams sent from relays (originally sent to \xe2\x80\xa6CnRequest from the client to relay datagrams to given remote \xe2\x80\xa6CjOne or multiple datagrams being transferred via the relay.CeErrors that can occur while dialing the relay server.AcDNS server settingsBnA DNS server that serves pkarr signed packets.Ddquinn_proto types that are used in the public iroh API.BgPossible frame types during handshakingDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6BoThe mechanism that was used for authentication.AdA net_report report.2Dbquinn types that are used in the public iroh API. \xe2\x80\xa6mA public key.0AeA read error occurredDiquinn types that are used in the public iroh API. Errors \xe2\x80\xa6CeErrors when receiving messages from the relay server.AdRelay receive errorsD`Configuration of the relay servers for an Endpoint.CiUse a TLS key and certificate chain that can be reloaded.mA secret key.0BoError for sending messages to the relay server.AaRelay send errorsAbEd25519 signature.0BcTLS configuration for Relay server.BkConfiguration to use for the TLS connectionBaA store for pkarr signed packets.BnAccept the next incoming bidirectional stream.BcAdd addresses to the endpoint data.0DfAdds an already Boxed AddressLookup service.CiSets whether this endpoint should advertise its presence.CbBinds an IP socket at the provided socket address.BkOptionally set a custom address to bind to.CmThe IPv4 or IPv6 address to bind the UDP DNS server. Uses \xe2\x80\xa6CmOptionally set a custom bind address (will use 0.0.0.0 if \xe2\x80\xa60ChThe socket address on which the QUIC server should bind.AkSet custom bootstrap nodes.BdThe mode of SSL certificate creationCjRate limits for incoming traffic from a client connection.BbDuplicate the controller\xe2\x80\x99s stateBdThe amount of UDP datagrams observedBlThe datagrams and related metadata to relay.BcThe datagrams and related metadata.CnConvert to a hex string limited to the first 5 bytes for a \xe2\x80\xa60DjCreates a RelayMap from an iterator of RelayUrl.0Afip:port of global IPv4Be[ip]:port of global IPv6ClImplements the handshake protocol that authenticates and \xe2\x80\xa6AmDoes this have any addresses?0BiGet the bound address of the HTTP socket.CcThe socket address the HTTP server is listening on.BoGet the server\xe2\x80\x99s https RelayUrl.AjCreate an in-memory store.BoWhich side of a connection initiated the streamDhConverts this Connecting into a 0-RTT connection at the \xe2\x80\xa6DkConverts this Accepting into a 0-RTT or 0.5-RTT connection \xe2\x80\xa6BiConverts into TransportAddr.BaBase types and utilities for IrohBoShorthand for self == Side::ClientCaReturns true if this path is closed.CiCheck if this endpoint is still alive, or already closed.BoShorthand for self == Side::ServerBkThe authentication mechanism that was used.BaThe HTTP URL of the Pkarr server.CiAttempts to read from the stream into the provided bufferCkSets an explicit proxy url to proxy all HTTP(S) traffic \xe2\x80\xa6CjSet an explicit proxy url to proxy all HTTP(S) traffic \xe2\x80\xa6CcThe socket address the QUIC server is listening on.BdReturns the relay map for this mode.DaReturns the EndpointId of the endpoint that this \xe2\x80\xa6DfReturns the EndpointId from the peer\xe2\x80\x99s TLS certificate.00DfRuns a future to completion, or until the Endpoint is \xe2\x80\xa6BlNumber of FrameType::Pongs sent0BiSets the list of accepted ALPN protocols.BhA stable identifier for this connection.BbSubscribe to discovered endpoints.CgReturns the optional user-defined data of the endpoint.AnReturns any user-defined data.1BoWrite a buffer into this stream in its entiretyClA filter and/or reordering function applied to transport \xe2\x80\xa600AnTLS certificate configuration.CbThe client frame type for the authentication frameB`The send half of a relay client.BcAn outgoing connection in progress.BlWe established a connection on this address.AbA QUIC connection.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6D`A direct address on which an iroh-endpoint might be \xe2\x80\xa6ChA peer was discovered or it\xe2\x80\x99s information was updated.AeState for serving DNSCeThe identifier for an endpoint in the (iroh) network.04AjConfig for the HTTP serverBjThe HTTP(S) server part of iroh-dns-serverCbThe max byte length allowed for user-defined data.0CaThe provenance string for this Address Lookup \xe2\x80\xa6CeAn address assigned by the router using port mapping.BeConfiguration for qlog trace logging.CbHandles the client side of QUIC address discovery.BbConfiguration for the QUIC server.ChThe HTTP path under which the relay accepts relaying \xe2\x80\xa6Dkquinn types that are used in the public iroh API. A stream \xe2\x80\xa6BdInformation about a remote endpoint.Diquinn types that are used in the public iroh API. Errors \xe2\x80\xa6CmSent from server to client for the server to declare that \xe2\x80\xa6ClA one-way message from relay to client, advertising that \xe2\x80\xa6DkOnly endpoints for which the function returns Access::Allow\xe2\x80\xa6DhError for attempting to retry an Incoming which already \xe2\x80\xa6CiCreate self-signed certificates and store them in the \xe2\x80\xa67AcServer spawn errorsDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa67CaAccepts the next incoming uni-directional stream.CkWhether the implementation is permitted to set the spin \xe2\x80\xa6ChBytes received from a FrameType::SendPacket0CdBytes sent from a FrameType::SendPacket0BhThe authenticated client\xe2\x80\x99s public key.BnClass of error as encoded in the specificationB`Application-specific reason codeCcError code to send with the connection close frame.BcType of frame that caused the closeCgCreates a new user error from an arbitrary boxed error.CiConstruct a PublicKey from a slice of bytes.CaCreate a secret key from its byte representation.BmParse an Ed25519 signature from a byte slice.210CgCreates a new EndpointAddr from its parts.CgCreates a new EndpointInfo from its parts.10BjGet the bound address of the HTTPS socket.CdThe socket address the HTTPS server is listening on.CjConverts into an iterator over known all addresses for \xe2\x80\xa6AiExtract the integer valueCkIroh\xe2\x80\x99s relay is a feature within iroh, a peer-to-peer \xe2\x80\xa6AiIs this endpoint allowed?BlGet the local address of the UDP/TCP socket.BhReturns the local address of the client.AfLooks up a TXT record.AeLooks up TXT records.1BeThe amount of bytes lost on this pathBeThe socket address of the DNS server.BaMetrics collected by net reports.C`Disables publishing even if a secret key is set.ChWhether to run a local relay and have the server and \xe2\x80\xa6CjPad UDP datagrams carrying application data to current \xe2\x80\xa6AnNumber of PCP probes executed.AiCreate a persistent storeC`Attempt to write bytes from buf into the stream.BlMetrics collected by the portmapper service.DkReturns the prefix_len, see Self::set_prefix_len.CcReturns the provenance of this Address Lookup item.AmRead the next segment of dataAoReads the next segment of data.CkRead an exact number of bytes contiguously from the stream.CdSets the relay servers to assist in establishing \xe2\x80\xa6AjOnly keep relay addresses.0BjReturns a list of relay urls of this peer.BfReturns the relay URL of the endpoint.10CgSets the secret key to use for signing the DNS packets.CcSets a secret key to authenticate with other peers.BhReturns the secret_key of this endpoint.CaRuns the server side of the handshaking protocol.BoEpoch qlog event times are recorded relative toBfInternal utilities to support testing.DjReturns the rustls::ClientConfig used by the endpoint for \xe2\x80\xa6CfCreates a TlsConfig suitable for testing.EeReturns a Watcher for the current EndpointAddr for this \xe2\x80\xa6AiAdds a list of addresses.0AjConfig for the zone store.AeServer accept errors.CmWraps an existing protocol, limiting its access, based on \xe2\x80\xa6CgThe address was advertised by a call-me-maybe DISCO \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CaProtocols over which DNS records can be resolved.CcThe DNS resolver used throughout iroh.0BaAttempted to send an empty packetAkConfig for the HTTPS serverDjquinn types that are used in the public iroh API. Maximum \xe2\x80\xa6AmACME with LetsEncrypt serversAdUse Let\xe2\x80\x99s Encrypt.CmWatcher for the open paths and selected network path in a \xe2\x80\xa6BjTracks pings on a single relay connection.D`Constructs a QlogConfig for individual connections.BgInformation on a specific relay server.0CbConfiguration for the Relay HTTP and HTTPS server.AiThe config for the store.BjError from the underlying WebSocket stream0BkError type for WebSocket stream operations.CcAccepts this incoming connection using a custom \xe2\x80\xa6BcRemoves all entries from the cache.AjClears the internal cache.1BbCreate a connection usable for qadCdLargest UDP payload size the path currently supportsCaSOA record data for any authoritative DNS recordsCmDefault time to live for returned DNS records (TXT & SOA)BiDescription to record in the qlog captureCiNumber of connections we have removed because of an error0AhHandler for DNS requestsCcReturns the endpoint id of the discovered endpoint.CjThe EndpointId of the endpoint this is about.BdThe id of the endpoint that expired.BcThe endpoint ID of the remote peer.2AmThe endpoint ID of the client3ClLow-level HTTP server components for embedding the relay \xe2\x80\xa6CkThe initial value to be used as the maximum UDP payload \xe2\x80\xa6BkStarting guess for maximum UDP payload sizeBkThe RTT used before an RTT sample is taken.DjReturns a future completing once the value is set to Some \xe2\x80\xa6ClReturns the value set by Self::set_is_required.D`Returns true if this path is currently the main \xe2\x80\xa6BiChecks if the router is already shutdown.BgPerforms an IPv4 lookup with a timeout.AiLooks up an IPv4 address.1BgPerforms an IPv6 lookup with a timeout.AiLooks up an IPv6 address.1CeThe amount of concurrent streams which should be usedDdPackets are acked in batches, all with the same now \xe2\x80\xa60ClWait until a Pkarr announce for an endpoint is published \xe2\x80\xa6AdPacing rate (bits/s)CfThe number of network paths to peers that are relayed.B`Sets the pkarr relay URL to use.CgCreates a QuicConfig suitable for testing.AnRead the next segments of dataCkConvenience method to read all remaining data into a bufferCgThe remote transport address used by this network path.CgReturns the remote address of this incoming connection.BnReturns the remote address of this connection.ChReturns addressing information about a recently used \xe2\x80\xa6BoThe sample size used for this key\xe2\x80\x99s algorithmCiMaximum number of bytes to transmit to a peer without \xe2\x80\xa6B`Returns the handle for the task.CaNumber of bytes to transmit from client to serverAoNumber of UPnP probes executed.CnSpecifies the upper bound to the max UDP payload size that \xe2\x80\xa6CeSets a prefix to the filename of the generated files.DbWrite a single Bytes into this stream in its entiretyCfControls which endpoints are allowed to use the relay.BcThe receive half of a relay client.CgThe stream has already been stopped, finished, or resetBmThe stream has already been finished or resetDhquinn types that are used in the public iroh API. Error \xe2\x80\xa6AbConnection errors.CjNetwork-level addressing information for an iroh endpoint.0CgData about an endpoint that may be published to and \xe2\x80\xa600ChSent from server to client to signal that a previous \xe2\x80\xa6CjIndicates that the client identified by the underlying \xe2\x80\xa6CnInformation about an endpoint that may be published to and \xe2\x80\xa600BnThe remote address for an incoming connection.CfAn in-memory address lookup system to manually add \xe2\x80\xa6EaList of PathInfo for the network paths of a Connection.Diquinn types that are used in the public iroh API. Future \xe2\x80\xa6BdMetrics tracked for the relay serverBhAll metrics tracked in the relay server.CiThe hyper Service that serves the actual relay endpoints.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa64BiParameters governing incoming connectionsBaConfiguration for the full Relay.Diquinn types that are used in the public iroh API. Errors \xe2\x80\xa6DiA simpler version of ToSocketAddrs, that does not do any \xe2\x80\xa6CiCompletes the authorization protocol by notifying the \xe2\x80\xa6ChThe certificates chain if configured with manual TLS \xe2\x80\xa6BlIf the connection is closed, the reason why.AlConservative estimate of RTTAdDNS requests (total)AmSets the DNS resolver to use.CnSets the DNS resolver to use for resolving the pkarr relay \xe2\x80\xa60CiOptionally sets a custom DNS resolver to use for this \xe2\x80\xa6ClReturns the DNS resolver used in this Endpoint.DhCreate a DnsResolver configured to use the test DNS server.CnCreates a new user error from an arbitrary error type that \xe2\x80\xa6CjCreates a new user error from an arbitrary boxed error \xe2\x80\xa60CmAdds the provided configuration to the RelayMap.CiWhether this watcher is still connected to all of its \xe2\x80\xa6CnReturns the optional timestamp when this endpoint info was \xe2\x80\xa6CjOptional timestamp when this endpoint address info was \xe2\x80\xa6BgThe amount of packets lost on this pathAkSocket to serve metrics on.DgOptional interception point to handle the Accepting state.BoSee ProtocolHandler::on_accepting.CeThe number of network paths to peers that are direct.DiPolls for the next value, or returns Disconnected if one \xe2\x80\xa6D`Configures qlog capturing by setting a QlogFactory.CkAn advisory duration that the client should wait before \xe2\x80\xa6ChCreates a RelayConfig suitable for testing.DdRemoves the configuration from the RelayMap for the \xe2\x80\xa6BmNumber of full reports executed by net_reportC`Resolves a hostname from a URL to an IP address.0CkThe segment size if this transmission contains multiple \xe2\x80\xa6AkSets a custom service name.BcSet the priority of the send streamAiAdds an IP based address.0DgWrite a slice of Bytes into this stream, returning how \xe2\x80\xa6CfThe address was discovered by an Address Lookup systemCfAddressLookup system for super::Endpoint.CcAttempted to read from or write to a closed stream.ClConfigures the trusted CA root certificates for non-iroh \xe2\x80\xa60CmThe connection could not be created because not enough of \xe2\x80\xa60oBuild a Client.ChEndpointHooks intercept the connection establishment \xe2\x80\xa6DiExtension methods for EndpointId to encode to and decode \xe2\x80\xa60BnThe stream finished before all bytes were readCcreceived an invalid Retry Token in a client InitialBeThe DNS name for the iroh TXT record.0BkThe local application closed the connectionBbThe config for the metrics server.CjResolver of address lookup information from a pkarr relay.CcHard NAT: QAD\xe2\x80\x99ed IPv4 address + local fixed port.CcBuilder to create one or more related qlog configs.BeThe relay\xe2\x80\x99s connection to a client.DcBuilder for creating a Router for accepting protocols.AnEnum of metrics for the moduleAhAvailable address types.0AmRecord data for a TXT record.AaReturned from \xe2\x80\xa6CnReturns the local socket addresses on which the underlying \xe2\x80\xa6CcBuild a ClientConfig from this config.0CaNumber of bytes to transmit from server to clientDcReturns the builder for an Endpoint, with an empty \xe2\x80\xa6ClSupport for handling DNS resource records for dialing by \xe2\x80\xa6DbReturns the EndpointInfo for the discovered endpoint.CbThe endpoint info for the endpoint, as discovered.2CcCreates a new ConcurrentAddressLookup.AgNumber of HTTP requestsAmGet the IncomingCnThe max_ack_delay we will request the peer to useCkThe known MTU for the current network path has been updatedBmNumber of PCP probes that found it available.BcCryptographic identity of the peer.CnAttempts to read from the stream into the provided buffer, \xe2\x80\xa6BnUpdates the ping tracker with a received pong.DjConfigures qlog capturing through the QLOGDIR environment \xe2\x80\xa6BaReceives an application datagram.Abkeyed by relay UrlBdReturns the currently selected path.DgTransmits data as an unreliable, unordered application \xe2\x80\xa6CmWhether to implement fair queuing for send streams having \xe2\x80\xa6CaThe TLS server configuration for the QUIC server.AiThe server configuration.CiCreates a ServerConfig suitable for testing.CePrivate key used to authenticate data included in \xe2\x80\xa6C`Sets the user-defined data of the endpoint data.0DiSplits the current datagram into at maximum num_segments \xe2\x80\xa6CaCreates a RelayMap from an iterator.0CkToString::to_string, but without panic on OOM.000000000000000000000000000000000000000000000000000000000000000000000000000000000CnSets the direct addresses and returns the updated endpoint \xe2\x80\xa6CgSets the IP based addresses and returns the updated \xe2\x80\xa610BgWrite timeout for the client connectionDbOptions for the Endpoint::connect_with_opts function.AoInformation about a connection.AgThe connection was lost0000AkThe type of direct address.DaAn event emitted from the MdnsAddressLookup service.CeHandle and drop guard for test DNS and Pkarr servers.CcFuture returned from Endpoint::closed.Cithe endpoint encountered an internal error and cannot \xe2\x80\xa6BlAttempted to connect to an invalid DNS name.BbThe config for the metrics server.CiThe main underlying IO stream type used for the relay \xe2\x80\xa6ClConfigures the endpoint to use the n0 defaults, but with \xe2\x80\xa6Amno viable network path existsBbPayload length limit was exceeded.CiPublisher of address lookup information to a pkarr relay.AnEnum of metrics for the moduleDiquinn types that are used in the public iroh API. Errors \xe2\x80\xa60BcVerification of a signature failed.0BkError returned when a staggered call fails.CmThe peer violated the QUIC specification as understood by \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6BeLookup the address of an Endpoint ID.CdAdds an additional Address Lookup for this endpoint.CbReturns the Address Lookup service, if configured.AfDerive AEAD using hkdfAdHandle a DNS requestCgIntercept outgoing connections before they are started.0CjCaptivePortal is set when we think there\xe2\x80\x99s a captive \xe2\x80\xa6CdRemoves all direct addresses from the endpoint data.0CgTake the provided endpoint and run the client benchmarkBnCreate a client endpoint and client connection0C`Apply the given filter to the current addresses.0DiReturns a QlogConfig for a connection, if logging should \xe2\x80\xa6BjParameters negotiated during the handshake0BkParameters negotiated during the handshake.ClThe socket address on which the Relay HTTP server should \xe2\x80\xa6AiInitial congestion windowBnConverts this stream into an unordered stream.B`Get a key from a slice of bytes.CnSpecifies the minimum MTU change to stop the MTU discovery \xe2\x80\xa6CaNotifies the system of potential network changes.B`Number of probing tasks started.CgSets the proxy url from the environment, in this order:BkConfigures qlog capturing into a directory.ClThe socket address on which to server the QUIC server is \xe2\x80\xa6BeWhether to use the unordered read APIClMaximum number of bytes the peer may transmit across all \xe2\x80\xa6CkCompletes when the stream has been reset by the peer or \xe2\x80\xa60BbNumber of QUIC datagrams received.AoWait for all tasks to complete.0CeSaturating integer addition. Computes self + rhs, \xe2\x80\xa60ChSaturating integer subtraction. Computes self - rhs, \xe2\x80\xa6CeSets the network prefix length of the subnet this \xe2\x80\xa6CkMaximum reordering in time space before time based loss \xe2\x80\xa6ChTries to convert this type to a SocketAddr.CkConverts into a list of {key}={value} strings.0CbNumber of FrameType::Unknown received0BnNumber of UPnP probes that found it available.BeAdds a RelayUrl address.CiSets the relay URL and returns the updated endpoint data.CiSets the relay URL and returns the updated endpoint info.210CfSets the user-defined data and returns the updated \xe2\x80\xa6000CdConfigure the bootstrap servers for mainline DHT \xe2\x80\xa6BoShorthand for a type that implements both a \xe2\x80\xa6BdPer-client rate limit configuration.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6Djquinn types that are used in the public iroh API. Reasons \xe2\x80\xa6DfTrait to track the state of a Connection at compile time.Dbquinn types that are used in the public iroh API. \xe2\x80\xa6CoMetrics collected by an crate::endpoint::Endpoint.CnMarker type for a connection that is in the incoming 0-RTT \xe2\x80\xa6DnError when deserialising a PublicKey or a SecretKey.0ClThe maximum size of a packet sent over relay. (This only \xe2\x80\xa6CeAttempted to connect a client to a remote without \xe2\x80\xa6CnMarker type for a connection that is in the outgoing 0-RTT \xe2\x80\xa6BaHandler for incoming connections.BkEnables writing qlog traces to a directory.BbConfig for http server rate limit.CjConfiguration for speaking to the QUIC endpoint on the \xe2\x80\xa6C`The server frame type for the challenge responseCnAuthentication was performed by verifying a signature of a \xe2\x80\xa6AbServer task errorsDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CbThe peer doesn\xe2\x80\x99t implement any supported versionBgError when writing a frame to a client.CbThis was a 0-RTT stream and the server rejected it000CmIntercept both incoming and outgoing connections once the \xe2\x80\xa60CjSets the trusted CA root certificates for non-iroh TLS \xe2\x80\xa6BjReturns the current timeout set for pings.B`The remote endpoint to relay to.AkThe endpoint origin domain.CgParses a EndpointInfo from DNS TXT lookup.0CfThe socket address on which to serve the HTTPS server.CdMaximum number of incoming packets that may fail \xe2\x80\xa6AlA DNS server and pkarr relayBnMax number of bytes to read in a single burst.BoSet the maximum number of TLS tickets to cache.CnProbe indicating the presence of port mapping protocols on \xe2\x80\xa6BeSets the republish delay for the DHT.AoWait for all tasks to complete.CmRun DNS and Pkarr servers on localhost with the specified \xe2\x80\xa6CiCreates a server endpoint which runs on the given runtime0CmSets a filter to control which addresses are published by \xe2\x80\xa600CcSets whether bind errors are fatal for this socket.BnObject to get current SystemTime.CkCreates a new DNS resolver configured with a single UDP \xe2\x80\xa6AiAdds a single nameserver.1CjCreates a new Memory Lookup instance with the provided \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6BmA drop guard to clean up test infrastructure.BeMessages that clients send to relays.CbThe peer\xe2\x80\x99s QUIC stack aborted the connection \xe2\x80\xa6CcPkarr Mainline DHT and relay server address lookup.BeAttempted to add a disallowed header.AfDNS endpoint discoveryCaThe endpoint can no longer create new connectionsCnreceived a STREAM frame or a RESET_STREAM frame containing \xe2\x80\xa6CdError when handling an incoming frame from a client.A`key update errorAnEnum of metrics for the moduleClIterator returned from PathInfoList::into_iter.DjA pkarr client to publish pkarr::SignedPackets to a pkarr \xe2\x80\xa6=ClThe HTTP path under which the relay allows doing latency \xe2\x80\xa6CmThe messages that a relay sends to clients or the clients \xe2\x80\xa6BoThe server frame type for authentication denialCjMax number of bytes per second to read from the client \xe2\x80\xa6BlChannel capacity for internal message queuesCiRecord that the token was used and, ideally, return a \xe2\x80\xa6CdRemoves all direct addresses from the endpoint data.0CjCurrent state of the congestion control algorithm, for \xe2\x80\xa6CiGet the default RelayConfig for Asia-PacificC`Get the default RelayConfig for EU.0BiReturns iroh\xe2\x80\x99s default crypto provider.0BaDNS lookup responses which failedAdDNS requests via UDPBhReturns whether this is a default route.CjWhether to use the letsenrypt production servers (only \xe2\x80\xa6CbResolves IPv4 and IPv6 in parallel with a timeout.0B`Number of mapping tasks started.AoNumber of failed mapping tasks.CnMaximum duration of inactivity to accept before timing out \xe2\x80\xa6CmNumber of connections closed (only handshaked connections \xe2\x80\xa6CcThe number of connections that have been direct \xe2\x80\xa6CmNumber of connections opened (only handshaked connections \xe2\x80\xa6CiMaximum reordering in packet number space before FACK \xe2\x80\xa6CiRuns a relay server with QUIC enabled suitable for tests.CfPasses an optional DNS resolver for the client to use.DdMaximum number of Incoming to allow to exist at a time.DgConverts into a EndpointAddr by cloning the needed fields.00DaSets a custom QuicTransportConfig for this endpoint.CmSets a filter to control which addresses are published by \xe2\x80\xa6B`no-op: resolver does not publishCkAdd additional root certificates to the list of trusted \xe2\x80\xa60AkAdds a list of nameservers.DdWrite a slice of Bytes into this stream in its entiretyCfthe application or application protocol caused the \xe2\x80\xa6BkHostname of the default Asia-Pacific relay.AnThe peer closed the connectionAbDNS lookup failed.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa60BoThe default HTTP port used by the Relay server.0CgDefault TTL for the records in the pkarr signed packet.BaHostname of the default EU relay.0Djquinn_proto types that are used in the public iroh API. A \xe2\x80\xa6BcThe given server name was malformedDgAddress Lookup using swarm-discovery, a variation on mdns.CmA Certificate resolver that reloads the certificate every \xe2\x80\xa6Diquinn types that are used in the public iroh API. Errors \xe2\x80\xa6ClAuthentication was performed by verifying a signature of \xe2\x80\xa6BfAddress of a remote with some metadataCcThe peer does not support receiving datagram framesEfAn unsupported, i.e. not ws or wss, or no URI scheme was \xe2\x80\xa6CnBurst limit for accepting new connection. Unlimited if not \xe2\x80\xa6CmRate limit for accepting new connection. Unlimited if not \xe2\x80\xa6CjAugments endpoint addressing information for the given \xe2\x80\xa6BcCongestion events on the connectionAiCongestion window (bytes)D`Starts a connection attempt with a remote Endpoint.BfGet the default RelayMap.0CiReturns endpoint addressing information for the given \xe2\x80\xa6BjGet the latest signed packet for a pubkey.AoHandle the incoming connection.CmComputes the maximum size of datagrams that may be passed \xe2\x80\xa6BkFrameType::SendPacket received0BgFrameType::SendPacket sent0CfSets endpoint addressing information for the given \xe2\x80\xa6AiSets a custom TLS config.BfSets a custom TLS verification config.Cmthe endpoint has reached the confidentiality or integrity \xe2\x80\xa6Dbquinn types that are used in the public iroh API. \xe2\x80\xa6CdThe HTTP header name for relay client authenticationBmthe server refused to accept a new connectionC`The default HTTPS port used by the Relay server.0DiA dyn-compatible version of ProtocolHandler that returns \xe2\x80\xa6Ckreceived more data than permitted in advertised data limitsCjError returned when forwarding a packet to a client fails.CgMarker type for a connection that has completed the \xe2\x80\xa67CjThe maximum amount of time, in seconds, the net_report \xe2\x80\xa6Ckdetected an error with protocol compliance that was not \xe2\x80\xa6CmCan occur when parsing a string into a RelayUrl.0Cjreceived a frame for a stream identifier that exceeded \xe2\x80\xa6Cnreceived a frame for a stream that was not in a state that \xe2\x80\xa6CeThe server frame type for authentication confirmationBlInformation how a transport address is used.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6ChThe local endpoint does not support the QUIC version \xe2\x80\xa61CiMaximum quantity of out-of-order crypto layer data to \xe2\x80\xa6AoReturns the default relay mode.BmDNS lookup responses with at least one answerAlDNS requests via HTTPS (DoH)CiCreates a Memory Lookup instance from endpoint addresses.C`Create a VarInt without ensuring it\xe2\x80\x99s in rangeCfThe number of times holepunching is initiated on a \xe2\x80\xa6CjConverts into a EndpointAddr without cloning.00BnSet the capacity of the cache for public keys.AcKey cache capacity.BdNumber of updates to the local port.BjUses the default number 0 pkarr relay URL.CaPackets of other FrameTypes received0BmPackets of other FrameTypes sent0ChNumber of pkarr relay puts that did not update the stateBfNumber of datagrams received using GROCcThe EndpointId of the original sender.CnSets the interval after which packets are republished even \xe2\x80\xa6DgTransmits data as an unreliable, unordered application \xe2\x80\xa6CnSee quinn_proto::TransportConfig::receive_window.BdNumber of unique client keys per day0AmNumber of failed Upnp probes.CiOverride the instant relative to which all events are \xe2\x80\xa6B`ALPN for our quic addr discoveryBmThe encoded information had the wrong length.0C`Parameters governing the core QUIC state machineBjA builder for a ServerConfig.Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6Dkquinn types that are used in the public iroh API. A stream \xe2\x80\xa6CbBinds an IP socket at the provided socket address.CjSpecifies the amount of time that MTU discovery should \xe2\x80\xa6B`Removes all IP based transports.BdDNS lookup responses with no answersDaReturns true if the use of staging relays is forced.ClWaits until the full handshake occurs and then returns a \xe2\x80\xa6CgWaits until the full handshake occurs and returns a \xe2\x80\xa6CbNumber of HTTP requests with a non-2xx status codeChTurns this AddressLookup builder into a ready-to-use \xe2\x80\xa6ChPeriod of inactivity before sending a keep-alive packet.ChLetsencrypt contact email address (required if using \xe2\x80\xa6CiThe amount of PLPMTUD probe packets lost on this path \xe2\x80\xa6BlPackets were deemed lost or marked congestedCiThe amount of PLPMTUD probe packets sent on this path \xe2\x80\xa6ClReturns a stream which will yield the most recent values \xe2\x80\xa6DjTrait for structs that can be converted into AddressLookup\xe2\x80\xa6CeOutcome of EndpointHooks::before_connectCbThe default metrics port used by the Relay server.0BlPacket size exceeds the maximum allowed sizeCgThis trait allows anything that ends up potentially \xe2\x80\xa6Bireceived a frame that was badly formattedCiThe remote SocketAddr supplied was malformedBgBuilder for PkarrResolver.ClMaximum time the server will attempt to get a successful \xe2\x80\xa6BeErrors when attempting to upgrade andDhquinn types that are used in the public iroh API. Error \xe2\x80\xa6DkSpecifies the ACK frequency config (see AckFrequencyConfig \xe2\x80\xa6CiThe number of times a black hole was detected in the pathCeRemoves all Address Lookup services from the builder.CcINSECURE: Do not verify server certificates at all.0DkSpecifies the MTU discovery config (see MtuDiscoveryConfig \xe2\x80\xa6CaNumber of pkarr relay puts that updated the stateAkConfig for pkarr rate limitCmRemoves all endpoint addressing information for the given \xe2\x80\xa6ChThe reordering threshold we will request the peer to useBjFrameType::SendPacket dropped0CjBuilds a ServerCertVerifier from this config.0BeSets whether this is a default route.BoSets a custom QuicTransportConfig.ClPublishes the addressing information about this endpoint \xe2\x80\xa6CnNumber of UPnP probes that resulted in a gateway different \xe2\x80\xa6CeMakes the builder respect the host system\xe2\x80\x99s DNS \xe2\x80\xa6CfOutcome of EndpointHooks::after_handshakeCg32B dest pub key + ECN bytes + one datagram\xe2\x80\x99s contentBjNo default client configuration was set upBiPath abandoned due to unstable interfacesBhBuilder for PkarrPublisher.Cf32B src pub key + ECN bytes + one datagram\xe2\x80\x99s contentDhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CmMaximum number of packets that may be sent using a single \xe2\x80\xa6CeGet the default RelayConfig for NA east.0CeGet the default RelayConfig for NA west.BnNumber of HTTP requests with a 2xx status codeDgLooks up endpoint info by EndpointId and origin domain \xe2\x80\xa60CiPerforms an IPv4 lookup with a timeout in a staggered \xe2\x80\xa60CiPerforms an IPv6 lookup with a timeout in a staggered \xe2\x80\xa60C`Packets of other FrameTypes dropped0CfWhether the socket address that is initiating this \xe2\x80\xa6AdRuns a relay server.AiNumber of expired packetsBeSigned packets removed from the storeBeNumber of updates to existing packetsCiMaximum number of bytes the peer may transmit without \xe2\x80\xa6CnSets ALPN identifiers that should be signaled as supported \xe2\x80\xa6CkSets the QUIC transport config options for this connection.Chreceived more data in CRYPTO frames than can be bufferedCmServer connection errors, includes errors that can happen \xe2\x80\xa6DkError returned when an input value is too long for UserData\xe2\x80\xa60BaHostname of the default NA relay.BfHostname of the default NA east relay.BfHostname of the default NA west relay.ChThe websocket sub-protocol version that we currently \xe2\x80\xa6BcRemoves all relay based transports.ChDerives keying material from this connection\xe2\x80\x99s TLS \xe2\x80\xa6CkIf this type ends up wrapping a TLS stream, then this triesClWhether the reported public address differs when probing \xe2\x80\xa6BfSigned packets inserted into the storeBkCreates a pkarr::SignedPacket.0CkConfigure a pkarr client for resolution of packets from \xe2\x80\xa6BhFailed to deserialize client auth headerClAn Address Lookup service that combines multiple Address \xe2\x80\xa6ClThe default QUIC port used by the Relay server to accept \xe2\x80\xa60BjBuilder for DnsAddressLookup.BkThe production pkarr relay run by number 0.BoA builder for the PkarrRelayClientCkThe ack-eliciting threshold we will request the peer to useCdReturns if we should prefer ipv6 it replaces the \xe2\x80\xa6BmPath abandoned at the application\xe2\x80\x99s requestChEnvironment variable to force the use of staging relays.BkBuilder for MdnsAddressLookup.ClThis represents successful authentication for the client \xe2\x80\xa6CjNumber of times the external address obtained via port \xe2\x80\xa6DkParses a EndpointInfo from a pkarr::SignedPacket.0CgMaximum number of received bytes to buffer for each \xe2\x80\xa6ClDuration after a retry token was issued for which it\xe2\x80\x99s \xe2\x80\xa6BhGet the path to the store database file.BdNumber of IP transport paths opened.BhAddressLookupBuilder errorsCmthe number of connection IDs provided by the peer exceeds \xe2\x80\xa6Dhquinn_proto types that are used in the public iroh API. \xe2\x80\xa6CjA QUIC connection on the server-side that can possibly \xe2\x80\xa6CmPath abandoned due to no available connection IDs for the \xe2\x80\xa6BfThe client side of a 0-RTT connection.AiEndpoint close error codeClreceived transport parameters that were badly formatted, \xe2\x80\xa6ClMaximum number of outgoing application datagram bytes to \xe2\x80\xa6BcTotal duration of all HTTP requestsCn32B dest pub key + ECN byte + segment size u16 + datagrams \xe2\x80\xa6CkThe default capacity of the key cache for the relay server.ClInterval in which to republish the endpoint info even if \xe2\x80\xa6BhThe testing pkarr relay run by number 0.BoBuilder for a QuicTransportConfig.Cm32B src pub key + ECN byte + segment size u16 + datagrams \xe2\x80\xa6CnNumber of bytes received from client connection which have \xe2\x80\xa60CjNumber of client connections which have had any frames \xe2\x80\xa60C`Bytes available in the outgoing datagram buffer.CeRaces an IPv4 and IPv6 lookup with a timeout in a \xe2\x80\xa60DaVariant of max_concurrent_bidi_streams affecting \xe2\x80\xa6BdNumber of IP transport paths closed.CcThe n0 testing DNS endpoint origin, for production.00CkPath abandoned due to resource limitations in the transportCeThe number of packets buffered for sending per clientAeEndpoint close reasonChWhether to use \xe2\x80\x9cGeneric Segmentation Offload\xe2\x80\x9d to \xe2\x80\xa6ClWhether the reported public address differs when probing \xe2\x80\xa60CmMaximum number of incoming bidirectional streams that may \xe2\x80\xa6CaSets a custom ValidationTokenConfig.BgNumber of relay transport paths opened.BhThe default certificate reload interval.DdCreate a ServerConfigBuilder for this endpoint that \xe2\x80\xa6ClMaximum number of incoming application datagram bytes to \xe2\x80\xa6CkCreates a client config that trusts any servers without \xe2\x80\xa6BdPackets were incorrectly deemed lost0DdSpawn the server and run until the Ctrl-C signal is \xe2\x80\xa6CiSets the initial user-defined data to be published in \xe2\x80\xa6CjHow to construct new congestion::Controllers.BmSets a default per-path maximum idle timeout.CbWhether to send observed address reports to peers.ClModifies the number of bidirectional streams that may be \xe2\x80\xa6BgNumber of relay transport paths closed.C`The n0 testing DNS endpoint origin, for testing.00BcLooks up endpoint info by DNS name.0BiEnables the Multipath Extension for QUIC.DhMaximum number of received bytes to buffer for all IncomingCmModifies the number of unidirectional streams that may be \xe2\x80\xa6DgLooks up endpoint info by EndpointId and origin domain \xe2\x80\xa60CeNumber of consecutive PTOs after which network is \xe2\x80\xa6BlSets a default per-path keep alive interval.CjWhether to receive observed address reports from other \xe2\x80\xa6DiCreates a rustls::ServerConfig and certificates suitable \xe2\x80\xa6?AcNat traversal draftCkSets the maximum number of nat traversal addresses this \xe2\x80\xa6CjLooks up endpoint info by DNS name in a staggered fashion.0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/entry/13664586d9f1.js b/pr/3958/docs/search.index/entry/13664586d9f1.js deleted file mode 100644 index 249376f47a..0000000000 --- a/pr/3958/docs/search.index/entry/13664586d9f1.js +++ /dev/null @@ -1 +0,0 @@ -rd_("Al[7458,15,3732,3732,7912,0,0]Al[2246,15,8283,8283,2804,0,0]Ai[2246,15,4854,0,5757,0,0]0Ah[2246,5,4854,2510,0,0,0]0Ah[2246,5,4854,8953,0,0,0]Al[7458,15,6095,6095,2806,0,0]Ah[2246,5,4854,7887,0,0,0]Ao[7457,13,7458,7458,4771,6370,0]Al[2246,13,4854,4854,4288,0,0]Ai[2246,13,4854,0,8802,0,0]1Al[8623,14,4455,4455,4313,0,0]Ae[2246,7,4854,0,0,0,0]Dc[2246,13,4854,7247,6295,0,0,\"impl-Connection%3COutgoingZeroRtt%3E\"]Dc[2246,13,4854,7247,6295,0,0,\"impl-Connection%3CIncomingZeroRtt%3E\"]3Al[2246,12,8283,8283,8743,0,0]Ao[2246,13,8283,8283,9022,8743,0]Ao[2246,13,4018,4018,7938,8743,0]Am[2246,13,643,643,8652,8743,0]Am[2246,13,643,643,9025,8743,0]Ao[2246,13,3244,3244,8962,8743,0]Ao[2246,13,3244,3244,8263,8743,0]Ao[2246,13,3244,3244,8929,8743,0]Ao[2246,13,3244,3244,8063,8743,0]Am[2246,13,638,638,8650,8743,0]Am[2246,13,638,638,4289,8743,0]Ao[2246,13,2254,2254,8751,8743,0]Ao[2246,13,2254,2254,9045,8743,0]Al[2246,13,4854,2510,9079,0,0]Al[8623,14,1766,1766,7553,0,0]Ai[2246,14,4854,0,5785,0,0]Ai[2246,12,4854,0,6297,0,0]Ao[7458,13,4499,4499,8259,6275,0]2Ai[2246,14,4854,0,6309,0,0]Ai[2246,13,2247,0,4351,0,0]1Ai[2246,14,4453,0,8070,0,0]Ah[2246,6,4854,3231,0,0,0]Ae[2246,6,4854,0,0,0,0]Af[2246,18,4845,0,0,0,0]Af[7458,18,4846,0,0,0,0]Al[7458,15,6095,6095,2806,0,0]Al[2246,15,4854,1133,8746,0,0]Al[7458,15,3732,1143,5812,0,0]Al[7458,15,4499,4499,5813,0,0]Af[7458,10,7459,0,0,0,0]Ai[2246,19,4854,0,8815,0,0]Ai[2246,15,8089,0,8032,0,0]Al[7458,15,8090,8090,8033,0,0]Ai[2246,15,4854,0,8671,0,0]Al[7458,15,3732,3732,7912,0,0]Ae[2246,5,3244,0,0,0,0]Af[7458,18,5074,0,0,0,0]Ae[7458,6,7830,0,0,0,0]Ah[2246,5,4854,4281,0,0,0]Al[2246,13,4854,2510,9079,0,0]Ai[2246,14,4854,0,5785,0,0]Al[2246,13,4854,4854,4288,0,0]Ao[7457,13,7458,7458,4771,8253,0]An[7457,13,7458,7458,358,8253,0]An[7457,13,1046,1046,359,8253,0]Ae[7457,7,2246,0,0,0,0]Ae[7457,7,3248,0,0,0,0]7Al[8623,14,4455,4455,4313,0,0]Al[8623,14,3986,3986,3303,0,0]Al[2246,13,4018,4018,7938,0,0]Ai[2246,13,4854,0,8785,0,0]Ai[2246,14,4854,0,6309,0,0]Ai[2246,14,4453,0,7946,0,0]Al[7458,14,4045,4454,4315,0,0]Al[2246,13,4854,1133,4768,0,0]Al[2246,13,4854,2510,8870,0,0]4Al[2246,13,3244,3244,8263,0,0]Ai[2246,14,4453,0,8264,0,0]Aj[7458,13,644,644,4290,0,0]Ah[2246,6,4854,3231,0,0,0]Al[7458,15,3742,3742,5758,0,0]Ai[2246,15,4854,0,8671,0,0]Ai[2246,19,4854,0,8815,0,0]Ae[2246,5,3244,0,0,0,0]3Ah[2246,5,4854,7247,0,0,0]Ah[2246,5,4854,3985,0,0,0]Ai[2246,12,4854,0,5783,0,0]Ae[2246,7,4496,0,0,0,0]Ae[2246,7,2506,0,0,0,0]0Al[8623,14,4455,4455,4313,0,0]Ah[2246,13,642,0,7539,0,0]Aj[7458,13,644,644,7540,0,0]1010Ai[2246,14,4453,0,7946,0,0]Al[7458,14,4045,4454,4315,0,0]Ai[2246,14,4854,0,6309,0,0]Ae[2246,7,7515,0,0,0,0]666Al[2246,13,4854,2510,9079,0,0]Al[2246,13,4854,4854,8231,0,0]0?Ae[7458,6,7830,0,0,0,0]Ae[2246,6,8283,0,0,0,0]Al[2246,15,4854,4052,5741,0,0]Ah[2246,5,8089,8090,0,0,0]Ae[7458,5,8090,0,0,0,0]Af[2246,18,4496,0,0,0,0]Af[2246,18,2506,0,0,0,0]0Al[7458,15,4045,4045,8472,0,0]Ai[2246,15,4854,0,5757,0,0]Al[7458,15,3732,3732,5752,0,0]Af[7458,18,1765,0,0,0,0]Al[2246,13,4854,4854,4288,0,0]Al[2246,13,4854,7247,6295,0,0]Al[7458,12,7459,7459,8920,0,0]Ao[7458,13,4499,4499,8259,8920,0]Ai[2246,13,2247,0,5773,0,0]Ai[2246,14,4854,0,6309,0,0]Al[8623,14,4455,4455,4313,0,0]Ai[2246,13,8283,0,7925,0,0]Al[7458,13,8090,8090,7926,0,0]Al[8623,13,8624,3276,5831,0,0]=Al[7458,15,6095,6095,2806,0,0]Ae[2246,5,8283,0,0,0,0]Ai[2246,18,4845,4846,0,0,0]Af[7458,18,4846,0,0,0,0]Ad[2246,5,643,0,0,0,0]Al[2246,15,5056,5056,7526,0,0]Af[2246,18,3244,0,0,0,0]Al[7458,15,3732,3732,7912,0,0]Ai[2246,13,4854,0,8785,0,0]Al[7458,13,3732,3732,8019,0,0]An[7457,13,7458,7458,358,1067,0]An[7457,13,1046,1046,359,1067,0]Ao[7457,13,7458,7458,4771,8253,0]An[7457,13,7458,7458,358,8253,0]An[7457,13,1046,1046,359,8253,0]Ai[2246,19,4854,0,8815,0,0]Af[2246,18,4854,0,0,0,0]Al[2246,15,4854,7247,8413,0,0]Al[2246,15,4854,4854,8909,0,0]Ae[2246,5,2254,0,0,0,0]Ae[7458,5,6095,0,0,0,0]Ai[2246,14,4453,0,8264,0,0]Ai[2246,13,8283,0,7925,0,0]Al[7458,13,8090,8090,7926,0,0]Aj[2246,13,638,638,4289,0,0]Al[2246,13,4854,7247,4795,0,0]Al[2246,13,4854,2510,8870,0,0]0Al[8623,13,3986,3986,3303,0,0]Ai[2246,14,4453,0,8070,0,0]=Ah[2246,5,4854,3989,0,0,0]Ah[2246,8,4854,7247,0,0,0]?0Al[7458,15,3732,3732,5752,0,0]0Af[7458,18,2511,0,0,0,0]Al[7458,15,7830,7830,7527,0,0]Ai[2246,19,4854,0,8815,0,0]Al[2246,13,4854,2510,9079,0,0]Al[8623,14,4455,4455,4313,0,0]Al[7458,13,3732,3732,8019,0,0]Ai[2246,14,4854,0,6309,0,0]Al[7458,15,3742,3742,5758,0,0]Af[7458,18,4846,0,0,0,0]Af[2246,18,3244,0,0,0,0]0Ah[2246,5,4854,2510,0,0,0]3>Ai[2246,14,4453,0,7946,0,0]Al[7458,14,4045,4454,4315,0,0]10Al[2246,13,4854,7247,6295,0,0]Ah[2246,13,642,0,7539,0,0]Aj[7458,13,644,644,7540,0,0]2Ah[2305,15,4978,0,356,0,0]Al[2305,13,8496,8496,9270,0,0]Al[2305,13,2306,0,8122,5937,0]Al[2305,13,2306,0,8283,5937,0]Al[2305,13,2306,0,5941,5937,0]Al[2305,13,2306,0,8654,5937,0]Al[2305,13,2306,0,5958,5937,0]Al[2305,13,2306,0,5965,5937,0]Al[2305,13,2306,0,8486,5937,0]Al[2305,13,2306,0,4939,5937,0]Al[2305,13,2306,0,9047,5937,0]Al[2305,13,2306,0,4936,5937,0]Al[2305,13,2306,0,7765,5937,0]Al[2305,13,2306,0,5923,5937,0]Al[2305,13,4568,0,8477,5937,0]Al[2305,13,4568,0,8279,5937,0]Al[2305,13,4568,0,8153,5937,0]Ao[2305,13,4568,4568,8639,5937,0]Al[2305,13,4568,0,8889,5937,0]Al[2305,13,1075,0,8224,5937,0]Al[2305,13,8496,0,8125,5937,0]Al[2305,13,8496,0,6433,5937,0]Al[2305,13,8496,0,4956,5937,0]Al[2305,13,8496,0,8130,5937,0]Al[2305,13,8496,0,6501,5937,0]Ao[2305,13,8496,8496,9304,5937,0]Ao[2305,13,8496,8496,2871,5937,0]Ao[2305,13,8496,8496,1113,5937,0]Ao[2305,13,8496,8496,9270,5937,0]Ao[2305,13,4121,4121,8145,5937,0]Am[2305,13,659,659,8876,5937,0]Am[2305,13,659,659,9273,5937,0]Ao[2305,13,3331,3331,6507,5937,0]Ao[2305,13,3331,3331,9211,5937,0]Ao[2305,13,3331,3331,8476,5937,0]Ao[2305,13,3331,3331,9174,5937,0]Ao[2305,13,3331,3331,8272,5937,0]Ao[2305,13,3331,3331,8894,5937,0]Ao[2305,13,3331,3331,9277,5937,0]Am[2305,13,654,654,8874,5937,0]Am[2305,13,654,654,4396,5937,0]Ao[2305,13,2313,2313,8991,5937,0]Ao[2305,13,2313,2313,9294,5937,0]Ao[2305,13,2313,2313,8452,5937,0]Ak[2305,13,658,0,7734,5937,0]Al[2305,13,4978,0,4424,5937,0]Al[2305,13,4978,0,3415,5937,0]Al[2305,13,4978,0,5882,5937,0]Al[2305,13,4978,0,4885,5937,0]Al[2305,13,4978,0,8152,5937,0]Al[2305,13,4978,0,8159,5937,0]Al[2305,13,4978,0,8993,5937,0]Al[2305,13,4978,0,6514,5937,0]Al[2305,13,4978,0,9118,5937,0]Al[2305,13,4978,0,8483,5937,0]Al[2305,13,4978,0,5946,5937,0]Al[2305,13,4978,0,6516,5937,0]Al[2305,13,4978,0,8482,5937,0]Al[2305,13,4978,0,6524,5937,0]Al[2305,13,4978,0,6534,5937,0]Al[2305,13,4978,0,8164,5937,0]Al[2305,13,4978,0,6509,5937,0]Al[2305,13,4978,0,1114,5937,0]Ao[2305,13,4978,8197,8147,5937,0]Ao[2305,13,4978,8197,8892,5937,0]Ao[2305,13,4978,8197,7762,5937,0]Ao[2305,13,4978,8197,4931,5937,0]Ao[2305,13,4978,8094,6515,5937,0]Ao[2305,13,4978,8094,8997,5937,0]Ao[2305,13,4978,8094,9056,5937,0]Al[2305,13,4978,0,8686,5937,0]Al[2305,13,4978,0,9115,5937,0]Al[2305,13,4978,0,3446,5937,0]Al[2305,13,4978,0,9178,5937,0]Al[2305,13,4978,0,2850,5937,0]Al[2305,13,4978,0,3418,5937,0]Ao[2305,13,4978,7699,3437,5937,0]Al[2305,13,4978,0,8158,5937,0]Al[2305,13,4978,0,4954,5937,0]Al[2305,13,4978,0,6470,5937,0]Al[2305,13,4978,0,5935,5937,0]Al[2305,13,4978,0,8636,5937,0]Al[2305,13,4978,0,4459,5937,0]Al[2305,13,4978,0,8112,5937,0]Ao[2305,13,4978,4156,5891,5937,0]Ao[2305,13,4978,4156,6459,5937,0]Ao[2305,13,4978,4156,8450,5937,0]Al[2305,13,4978,0,8634,5937,0]Al[2305,13,4978,0,8676,5937,0]Ao[2305,13,4978,1163,4890,5937,0]Al[2305,13,4978,0,9026,5937,0]Ao[2305,13,4978,1163,8986,5937,0]Al[2305,13,4978,0,9043,5937,0]Al[2305,13,4978,0,7749,5937,0]Ao[2305,13,4978,7436,8135,5937,0]Al[2305,13,4978,0,9215,5937,0]Ao[2305,13,4978,7436,3376,5937,0]Ao[2305,13,4978,7436,4917,5937,0]Al[2305,13,4978,0,9306,5937,0]Ao[2305,13,4978,7436,6522,5937,0]Al[2305,13,4978,0,7729,5937,0]Al[2305,13,4978,0,9059,5937,0]Al[2305,13,4978,0,5907,5937,0]Ao[2305,13,4978,7436,9096,5937,0]Ao[2305,13,4978,7436,6446,5937,0]Ao[2305,13,4978,7436,5883,5937,0]Ao[2305,13,4978,7436,5888,5937,0]Ao[2305,13,4978,7436,8626,5937,0]Ao[2305,13,4978,7436,8291,5937,0]Ao[2305,13,4978,7436,6456,5937,0]Ao[2305,13,4978,7436,9037,5937,0]Ao[2305,13,4978,7436,8640,5937,0]Ao[2305,13,4978,7436,8671,5937,0]Ao[2305,13,4978,7436,9213,5937,0]Ao[2305,13,4978,7436,8443,5937,0]Ao[2305,13,4978,3318,9152,5937,0]Ao[2305,13,4978,3318,9207,5937,0]Ao[2305,13,4978,2570,9327,5937,0]Ao[2305,13,4978,2570,9113,5937,0]Ao[2305,13,4978,2570,9114,5937,0]Ao[2305,13,4978,2570,8161,5937,0]Ao[2305,13,4978,4978,4395,5937,0]Ao[2305,13,4978,4978,8244,5937,0]Ao[2305,13,4978,4978,4908,5937,0]Ao[2305,13,4978,4978,9154,5937,0]Ao[2305,13,4978,4978,8116,5937,0]Al[2305,13,4978,0,8628,5937,0]Ao[2305,13,4978,4978,8442,5937,0]Al[2305,13,4978,0,8869,5937,0]Ao[2305,13,4978,4978,8458,5937,0]Ao[2305,13,4978,4978,5954,5937,0]Al[2305,13,4978,0,8895,5937,0]Al[2305,13,4978,0,8494,5937,0]Al[2305,13,4978,0,9057,5937,0]Al[2305,13,4978,0,8977,5937,0]Al[2305,13,4978,0,1136,5937,0]Ak[2305,13,4978,0,356,5937,0]Al[2305,13,4978,0,4946,5937,0]Am[2305,13,4586,4586,16,5937,0]Ao[2305,13,4586,4586,8472,5937,0]Ao[2305,13,5185,5185,3429,5937,0]Ao[2305,13,5185,5185,8278,5937,0]Ao[2305,13,5185,5185,7721,5937,0]Ao[2305,13,5185,5185,7723,5937,0]Al[2305,13,8300,0,8241,5937,0]Al[2305,13,8300,0,8236,5937,0]Al[2305,13,8300,0,9244,5937,0]Ao[2305,13,7709,2568,8275,5937,0]Ao[2305,13,7709,7709,8870,5937,0]Ao[2305,13,7709,9220,8453,5937,0]Ao[7649,13,7650,7650,8877,5937,0]Ao[7649,13,7650,7650,9029,5937,0]Ao[7649,13,7650,7650,4893,5937,0]An[7649,13,7650,7650,367,5937,0]Ao[7649,13,7650,7650,7727,5937,0]Ao[7649,13,3355,3355,2900,5937,0]Ao[7649,13,3355,3355,7785,5937,0]Ao[7649,13,3355,3355,8492,5937,0]An[7649,13,1071,1071,368,5937,0]Ao[8844,13,8845,3363,5981,5937,0]Ao[8844,13,3352,3352,4888,5937,0]Ao[8844,13,4087,4087,3390,5937,0]Ao[8844,13,4087,4087,7774,5937,0]Ao[8844,13,4087,4087,8270,5937,0]Ao[8844,13,4087,4087,8469,5937,0]Ao[8844,13,4087,4087,8622,5937,0]Am[8844,13,661,661,5904,5937,0]Am[8844,13,661,661,5903,5937,0]Am[8844,13,661,661,6462,5937,0]Am[8844,13,661,661,3398,5937,0]Ao[8844,13,1811,1811,6473,5937,0]Ao[8844,13,1811,8324,8677,5937,0]Ao[8844,13,1811,1077,4892,5937,0]Ao[8844,13,1811,1811,6472,5937,0]Ao[8844,13,1811,1811,7748,5937,0]Ao[8844,13,4570,4570,4420,5937,0]Ao[8844,13,4150,4150,3432,5937,0]Ao[7650,13,7651,8199,7763,5937,0]Ao[7650,13,7651,6272,4923,5937,0]Ao[7650,13,7651,6290,4937,5937,0]Ao[7650,13,7651,6290,7766,5937,0]Ao[7650,13,7651,6290,8678,5937,0]Ao[7650,13,3826,1173,5962,5937,0]Ao[7650,13,3826,1173,5951,5937,0]Ao[7650,13,3826,3826,8117,5937,0]Ao[7650,13,3826,3826,5902,5937,0]Ao[7650,13,3826,3826,8228,5937,0]Ao[7650,13,3826,3826,3385,5937,0]Ao[7650,13,3826,3826,6440,5937,0]Ao[7650,13,3826,3826,8109,5937,0]Ao[7650,13,4149,4569,4422,5937,0]Ao[7650,13,4149,4569,8154,5937,0]Ao[7650,13,4149,5188,8992,5937,0]Ao[7650,13,4149,4149,8162,5937,0]Ao[7650,13,4149,4149,7767,5937,0]Ao[7650,13,4149,4149,8105,5937,0]Ao[7650,13,4149,4149,3378,5937,0]Ao[7650,13,4149,4149,6511,5937,0]Ao[7650,13,4149,4149,5970,5937,0]Ao[7650,13,4149,4149,3408,5937,0]Ao[7650,13,4149,4149,8624,5937,0]Ao[7650,13,4149,4149,6438,5937,0]Ao[7650,13,4149,4149,3433,5937,0]Ao[7650,13,4149,4149,6528,5937,0]Ao[7650,13,4149,4149,8685,5937,0]Ao[7650,13,3827,3827,3391,5937,0]Ao[7650,13,3827,3827,3386,5937,0]Ao[7650,13,3827,3827,8881,5937,0]Ao[7650,13,3827,3827,8693,5937,0]Ao[7650,13,3827,3827,4945,5937,0]Ao[7650,13,3827,3827,9036,5937,0]Ao[7650,13,4614,4614,8276,5937,0]Ao[7650,13,4614,4614,5963,5937,0]Ao[7650,13,4614,4614,5952,5937,0]Ao[7650,13,4614,4614,8471,5937,0]Ao[7650,13,4614,4614,9103,5937,0]Ao[7650,13,4473,4473,4398,5937,0]Ao[7650,13,8033,8033,5971,5937,0]Ao[7650,13,8033,8033,9177,5937,0]Ao[7650,13,8033,8033,7722,5937,0]Ao[7650,13,8033,8033,9241,5937,0]Ao[7650,13,8033,8033,8156,5937,0]Ao[7650,13,8033,8033,4912,5937,0]Ao[7650,13,3836,3836,5908,5937,0]Ao[7650,13,3836,3836,8464,5937,0]Ao[7650,13,3338,3338,2874,5937,0]Ao[7650,13,3338,3338,8898,5937,0]Ao[7650,13,3338,3338,8872,5937,0]Ao[7650,13,3338,3338,5899,5937,0]Ao[7650,13,6252,6252,2873,5937,0]Ao[7650,13,6252,6252,9295,5937,0]Ao[7650,13,6252,6252,5922,5937,0]Ao[7650,13,2571,2571,2872,5937,0]Ao[7650,13,2571,2571,6510,5937,0]Ao[7650,13,1076,1076,8225,5937,0]Am[7650,13,660,660,4901,5937,0]Am[7650,13,660,660,7754,5937,0]Am[7650,13,660,660,8489,5937,0]Am[7650,13,660,660,4397,5937,0]Am[7650,13,660,660,7733,5937,0]Am[7650,13,660,660,7735,5937,0]Am[7650,13,660,660,8285,5937,0]Ao[7650,13,8301,8301,8242,5937,0]Ao[7650,13,8301,8301,8238,5937,0]Ao[7650,13,8301,8301,8126,5937,0]Ao[7650,13,8301,8301,6434,5937,0]Ao[7650,13,8301,8301,4957,5937,0]Ao[7650,13,8301,8301,9245,5937,0]Ao[7650,13,8301,8301,8131,5937,0]Ao[7650,13,8301,8301,6503,5937,0]Ai[7650,14,9240,0,8438,0,0]Ak[2305,13,2306,0,8122,369,0]Ak[2305,13,2306,0,8283,369,0]Ak[2305,13,2306,0,5941,369,0]Ak[2305,13,2306,0,4939,369,0]Ak[2305,13,2306,0,7765,369,0]Ak[2305,13,8496,0,4956,369,0]Ak[2305,13,4978,0,3446,369,0]Ak[2305,13,4978,0,3418,369,0]An[2305,13,4978,4156,6459,369,0]An[2305,13,4978,4156,8450,369,0]Ak[2305,13,4978,0,7749,369,0]Ak[2305,13,4978,0,1136,369,0]Aj[2305,13,4978,0,356,369,0]Ak[2305,13,4978,0,4946,369,0]An[6266,13,6267,8299,8123,369,0]An[6266,13,6267,8299,8284,369,0]An[6266,13,6267,1007,5942,369,0]An[6266,13,6267,6292,4940,369,0]An[7650,13,7651,6290,7766,369,0]An[7650,13,7651,6290,8678,369,0]An[7650,13,8301,8301,4957,369,0]Ae[2305,2,3331,0,0,0,0]Aj[2305,13,654,654,4396,0,0]Ai[2305,13,4978,0,4946,0,0]Ae[2305,2,2306,0,0,0,0]Ae[2305,2,8496,0,0,0,0]Ae[8844,2,8845,0,0,0,0]Al[8844,14,4087,4087,3390,0,0]Ae[7650,2,7651,0,0,0,0]Al[7650,14,3338,3338,5899,0,0]Al[2305,13,2306,0,8122,2853,0]Al[2305,13,2306,0,8283,2853,0]Cg[2305,13,2306,0,5941,2853,0,\"impl-Debug-for-PublicKey\"]Ci[2305,13,2306,0,5941,4409,0,\"impl-Display-for-PublicKey\"]Cm[2305,13,2306,0,8654,2853,0,\"impl-Debug-for-KeyParsingError\"]Co[2305,13,2306,0,8654,4409,0,\"impl-Display-for-KeyParsingError\"]Al[2305,13,2306,0,5958,2853,0]Cg[2305,13,2306,0,5965,2853,0,\"impl-Debug-for-Signature\"]Ci[2305,13,2306,0,5965,4409,0,\"impl-Display-for-Signature\"]Cn[2305,13,2306,0,8486,4409,0,\"impl-Display-for-SignatureError\"]Cl[2305,13,2306,0,8486,2853,0,\"impl-Debug-for-SignatureError\"]Cf[2305,13,2306,0,4939,2853,0,\"impl-Debug-for-RelayUrl\"]Ch[2305,13,2306,0,4939,4409,0,\"impl-Display-for-RelayUrl\"]D`[2305,13,2306,0,9047,2853,0,\"impl-Debug-for-RelayUrlParseError\"]Db[2305,13,2306,0,9047,4409,0,\"impl-Display-for-RelayUrlParseError\"]Cf[2305,13,2306,0,4936,2853,0,\"impl-Debug-for-RelayMap\"]Ch[2305,13,2306,0,4936,4409,0,\"impl-Display-for-RelayMap\"]Ci[2305,13,2306,0,7765,2853,0,\"impl-Debug-for-RelayConfig\"]Ck[2305,13,2306,0,7765,4409,0,\"impl-Display-for-RelayConfig\"]Cd[2305,13,2306,0,5923,2853,0,\"impl-Debug-for-Report\"]Cf[2305,13,2306,0,5923,4409,0,\"impl-Display-for-Report\"]Al[2305,13,4568,0,8477,2853,0]Al[2305,13,4568,0,8279,2853,0]Al[2305,13,4568,0,8153,2853,0]Ao[2305,13,4568,4568,8639,2853,0]Al[2305,13,4568,0,8889,2853,0]Al[2305,13,1075,0,8224,2853,0]Al[2305,13,8496,0,8125,2853,0]Al[2305,13,8496,0,6433,2853,0]Cf[2305,13,8496,0,4956,2853,0,\"impl-Debug-for-UserData\"]Ch[2305,13,8496,0,4956,4409,0,\"impl-Display-for-UserData\"]Al[2305,13,8496,0,8130,2853,0]Cj[2305,13,8496,0,6501,4409,0,\"impl-Display-for-ParseError\"]Ch[2305,13,8496,0,6501,2853,0,\"impl-Debug-for-ParseError\"]Dl[2305,13,8496,8496,9304,4409,0,\"impl-Display-for-AddressLookupBuilderError\"]Dj[2305,13,8496,8496,9304,2853,0,\"impl-Debug-for-AddressLookupBuilderError\"]Ch[2305,13,8496,8496,2871,4409,0,\"impl-Display-for-Error\"]Cf[2305,13,8496,8496,2871,2853,0,\"impl-Debug-for-Error\"]Ao[2305,13,8496,8496,1113,2853,0]Ao[2305,13,8496,8496,9270,2853,0]Ao[2305,13,4121,4121,8145,2853,0]Am[2305,13,659,659,8876,2853,0]Am[2305,13,659,659,9273,2853,0]Cm[2305,13,3331,3331,6507,4409,0,\"impl-Display-for-PkarrError\"]Ck[2305,13,3331,3331,6507,2853,0,\"impl-Debug-for-PkarrError\"]Ao[2305,13,3331,3331,9211,2853,0]Ao[2305,13,3331,3331,8476,2853,0]Ao[2305,13,3331,3331,9174,2853,0]Ao[2305,13,3331,3331,8272,2853,0]Ao[2305,13,3331,3331,8894,2853,0]Ao[2305,13,3331,3331,9277,2853,0]Am[2305,13,654,654,8874,2853,0]Am[2305,13,654,654,4396,2853,0]Ao[2305,13,2313,2313,8991,2853,0]Ao[2305,13,2313,2313,9294,2853,0]Ao[2305,13,2313,2313,8452,2853,0]Ak[2305,13,658,0,7734,2853,0]Co[2305,13,4978,0,8993,2853,0,\"impl-Debug-for-SendDatagramError\"]Da[2305,13,4978,0,8993,4409,0,\"impl-Display-for-SendDatagramError\"]Al[2305,13,4978,0,6514,2853,0]Al[2305,13,4978,0,9118,2853,0]Cn[2305,13,4978,0,8483,4409,0,\"impl-Display-for-ReadToEndError\"]Cl[2305,13,4978,0,8483,2853,0,\"impl-Debug-for-ReadToEndError\"]Ci[2305,13,4978,0,5946,4409,0,\"impl-Display-for-ReadError\"]Cg[2305,13,4978,0,5946,2853,0,\"impl-Debug-for-ReadError\"]Ch[2305,13,4978,0,6516,2853,0,\"impl-Debug-for-ResetError\"]Cj[2305,13,4978,0,6516,4409,0,\"impl-Display-for-ResetError\"]Cl[2305,13,4978,0,8482,2853,0,\"impl-Debug-for-ReadExactError\"]Cn[2305,13,4978,0,8482,4409,0,\"impl-Display-for-ReadExactError\"]Al[2305,13,4978,0,6524,2853,0]Cj[2305,13,4978,0,6534,4409,0,\"impl-Display-for-WriteError\"]Ch[2305,13,4978,0,6534,2853,0,\"impl-Debug-for-WriteError\"]Cj[2305,13,4978,0,8164,2853,0,\"impl-Debug-for-StoppedError\"]Cl[2305,13,4978,0,8164,4409,0,\"impl-Display-for-StoppedError\"]Ao[2305,13,4978,8197,8147,2853,0]Ao[2305,13,4978,8197,8892,2853,0]Ao[2305,13,4978,8197,7762,2853,0]Ao[2305,13,4978,8197,4931,2853,0]Ao[2305,13,4978,8094,6515,2853,0]Ao[2305,13,4978,8094,8997,2853,0]Ao[2305,13,4978,8094,9056,2853,0]Al[2305,13,4978,0,9115,2853,0]Cf[2305,13,4978,0,3446,4409,0,\"impl-Display-for-VarInt\"]Cd[2305,13,4978,0,3446,2853,0,\"impl-Debug-for-VarInt\"]Db[2305,13,4978,0,9178,2853,0,\"impl-Debug-for-VarIntBoundsExceeded\"]Dd[2305,13,4978,0,9178,4409,0,\"impl-Display-for-VarIntBoundsExceeded\"]Al[2305,13,4978,0,2850,2853,0]Cd[2305,13,4978,0,3418,2853,0,\"impl-Debug-for-PathId\"]Cf[2305,13,4978,0,3418,4409,0,\"impl-Display-for-PathId\"]Ci[2305,13,4978,7699,3437,4409,0,\"impl-Display-for-Source\"]Cg[2305,13,4978,7699,3437,2853,0,\"impl-Debug-for-Source\"]Al[2305,13,4978,0,8158,2853,0]Al[2305,13,4978,0,4954,2853,0]Al[2305,13,4978,0,6470,2853,0]Al[2305,13,4978,0,5935,2853,0]Al[2305,13,4978,0,8636,2853,0]Al[2305,13,4978,0,4459,2853,0]Cl[2305,13,4978,0,8112,4409,0,\"impl-Display-for-ClosedStream\"]Cj[2305,13,4978,0,8112,2853,0,\"impl-Debug-for-ClosedStream\"]Cl[2305,13,4978,4156,5891,4409,0,\"impl-Display-for-BindError\"]Cj[2305,13,4978,4156,5891,2853,0,\"impl-Debug-for-BindError\"]Ao[2305,13,4978,4156,6459,2853,0]Da[2305,13,4978,4156,8450,4409,0,\"impl-Display-for-DirectAddrType\"]Co[2305,13,4978,4156,8450,2853,0,\"impl-Debug-for-DirectAddrType\"]Cm[2305,13,4978,0,8634,2853,0,\"impl-Debug-for-ConnectionError\"]Co[2305,13,4978,0,8634,4409,0,\"impl-Display-for-ConnectionError\"]Al[2305,13,4978,0,8676,2853,0]Ao[2305,13,4978,1163,4890,2853,0]Al[2305,13,4978,0,9026,2853,0]Db[2305,13,4978,1163,8986,2853,0,\"impl-Debug-for-InvalidSocketAddr\"]Dd[2305,13,4978,1163,8986,4409,0,\"impl-Display-for-InvalidSocketAddr\"]Al[2305,13,4978,0,9043,2853,0]Al[2305,13,4978,0,7749,2853,0]Ao[2305,13,4978,7436,8135,2853,0]Al[2305,13,4978,0,9215,2853,0]Ao[2305,13,4978,7436,3376,2853,0]Ao[2305,13,4978,7436,4917,2853,0]Al[2305,13,4978,0,9306,2853,0]Ck[2305,13,4978,7436,6522,2853,0,\"impl-Debug-for-RetryError\"]Cm[2305,13,4978,7436,6522,4409,0,\"impl-Display-for-RetryError\"]Al[2305,13,4978,0,7729,2853,0]Al[2305,13,4978,0,9059,2853,0]Ci[2305,13,4978,0,5907,4409,0,\"impl-Display-for-FrameType\"]Cg[2305,13,4978,0,5907,2853,0,\"impl-Debug-for-FrameType\"]Dd[2305,13,4978,7436,9096,2853,0,\"impl-Debug-for-AuthenticationError\"]Df[2305,13,4978,7436,9096,4409,0,\"impl-Display-for-AuthenticationError\"]Ao[2305,13,4978,7436,6446,2853,0]Ao[2305,13,4978,7436,5883,2853,0]Cj[2305,13,4978,7436,5888,2853,0,\"impl-Debug-for-AlpnError\"]Cl[2305,13,4978,7436,5888,4409,0,\"impl-Display-for-AlpnError\"]D`[2305,13,4978,7436,8626,2853,0,\"impl-Debug-for-ConnectingError\"]Db[2305,13,4978,7436,8626,4409,0,\"impl-Display-for-ConnectingError\"]Ao[2305,13,4978,7436,8291,2853,0]Ao[2305,13,4978,7436,6456,2853,0]Ao[2305,13,4978,7436,9037,2853,0]Ao[2305,13,4978,7436,8640,2853,0]Ao[2305,13,4978,7436,8671,2853,0]Dh[2305,13,4978,7436,9213,4409,0,\"impl-Display-for-RemoteEndpointIdError\"]Df[2305,13,4978,7436,9213,2853,0,\"impl-Debug-for-RemoteEndpointIdError\"]Ao[2305,13,4978,7436,8443,2853,0]Ao[2305,13,4978,3318,9152,2853,0]Ao[2305,13,4978,3318,9207,2853,0]Ao[2305,13,4978,2570,9327,2853,0]Ao[2305,13,4978,2570,9113,2853,0]Ao[2305,13,4978,2570,9114,2853,0]Ao[2305,13,4978,2570,8161,2853,0]Ao[2305,13,4978,4978,4395,2853,0]Cn[2305,13,4978,4978,8244,2853,0,\"impl-Debug-for-EndpointError\"]D`[2305,13,4978,4978,8244,4409,0,\"impl-Display-for-EndpointError\"]Ao[2305,13,4978,4978,4908,2853,0]Dg[2305,13,4978,4978,9154,4409,0,\"impl-Display-for-ConnectWithOptsError\"]De[2305,13,4978,4978,9154,2853,0,\"impl-Debug-for-ConnectWithOptsError\"]Cm[2305,13,4978,4978,8116,2853,0,\"impl-Debug-for-ConnectError\"]Co[2305,13,4978,4978,8116,4409,0,\"impl-Display-for-ConnectError\"]Cm[2305,13,4978,0,8628,2853,0,\"impl-Debug-for-ConnectionClose\"]Co[2305,13,4978,0,8628,4409,0,\"impl-Display-for-ConnectionClose\"]Ao[2305,13,4978,4978,8442,2853,0]D`[2305,13,4978,0,8869,4409,0,\"impl-Display-for-ApplicationClose\"]Cn[2305,13,4978,0,8869,2853,0,\"impl-Debug-for-ApplicationClose\"]Ao[2305,13,4978,4978,8458,2853,0]Ao[2305,13,4978,4978,5954,2853,0]Cl[2305,13,4978,0,8895,4409,0,\"impl-Display-for-ConnectError\"]Cj[2305,13,4978,0,8895,2853,0,\"impl-Debug-for-ConnectError\"]Cn[2305,13,4978,0,8494,4409,0,\"impl-Display-for-TransportError\"]Cl[2305,13,4978,0,8494,2853,0,\"impl-Debug-for-TransportError\"]Db[2305,13,4978,0,9057,4409,0,\"impl-Display-for-TransportErrorCode\"]D`[2305,13,4978,0,9057,2853,0,\"impl-Debug-for-TransportErrorCode\"]Al[2305,13,4978,0,8977,2853,0]Al[2305,13,4978,0,1136,2853,0]C`[2305,13,4978,0,356,2853,0,\"impl-Debug-for-Dir\"]Cb[2305,13,4978,0,356,4409,0,\"impl-Display-for-Dir\"]Ch[2305,13,4978,0,4946,4409,0,\"impl-Display-for-StreamId\"]Cf[2305,13,4978,0,4946,2853,0,\"impl-Debug-for-StreamId\"]Am[2305,13,4586,4586,16,2853,0]Ao[2305,13,4586,4586,8472,2853,0]Ao[2305,13,5185,5185,3429,2853,0]Ao[2305,13,5185,5185,8278,2853,0]Cl[2305,13,5185,5185,7721,2853,0,\"impl-Debug-for-AcceptError\"]Cn[2305,13,5185,5185,7721,4409,0,\"impl-Display-for-AcceptError\"]Ao[2305,13,5185,5185,7723,2853,0]Cm[2305,13,8300,0,8241,4409,0,\"impl-Display-for-EncodingError\"]Ck[2305,13,8300,0,8241,2853,0,\"impl-Debug-for-EncodingError\"]Cm[2305,13,8300,0,8236,4409,0,\"impl-Display-for-DecodingError\"]Ck[2305,13,8300,0,8236,2853,0,\"impl-Debug-for-DecodingError\"]Df[2305,13,8300,0,9244,4409,0,\"impl-Display-for-MaxLengthExceededError\"]Dd[2305,13,8300,0,9244,2853,0,\"impl-Debug-for-MaxLengthExceededError\"]Ao[2305,13,7709,2568,8275,2853,0]Ao[2305,13,7709,7709,8870,2853,0]Ao[2305,13,7709,9220,8453,2853,0]Ao[6266,13,6267,8299,8123,2853,0]Ao[6266,13,6267,8299,8284,2853,0]Cl[6266,13,6267,1007,5942,4409,0,\"impl-Display-for-PublicKey\"]Cj[6266,13,6267,1007,5942,2853,0,\"impl-Debug-for-PublicKey\"]Db[6266,13,6267,1007,8655,4409,0,\"impl-Display-for-KeyParsingError\"]D`[6266,13,6267,1007,8655,2853,0,\"impl-Debug-for-KeyParsingError\"]Ao[6266,13,6267,1007,5959,2853,0]Cl[6266,13,6267,1007,5966,4409,0,\"impl-Display-for-Signature\"]Cj[6266,13,6267,1007,5966,2853,0,\"impl-Debug-for-Signature\"]Co[6266,13,6267,1007,8487,2853,0,\"impl-Debug-for-SignatureError\"]Da[6266,13,6267,1007,8487,4409,0,\"impl-Display-for-SignatureError\"]Ck[6266,13,6267,6292,4940,4409,0,\"impl-Display-for-RelayUrl\"]Ci[6266,13,6267,6292,4940,2853,0,\"impl-Debug-for-RelayUrl\"]Dc[6266,13,6267,6292,9048,2853,0,\"impl-Debug-for-RelayUrlParseError\"]De[6266,13,6267,6292,9048,4409,0,\"impl-Display-for-RelayUrlParseError\"]Ao[7649,13,7650,7650,4893,2853,0]An[7649,13,7650,7650,367,2853,0]Ao[7649,13,3355,3355,2900,2853,0]Ao[7649,13,3355,3355,7785,2853,0]Ao[7649,13,3355,3355,8492,2853,0]An[7649,13,1071,1071,368,2853,0]Ao[8844,13,8845,3363,5981,2853,0]Ao[8844,13,4087,4087,3390,2853,0]Ao[8844,13,4087,4087,7774,2853,0]Ao[8844,13,4087,4087,8270,2853,0]Ao[8844,13,4087,4087,8469,2853,0]Ao[8844,13,4087,4087,8622,2853,0]Am[8844,13,661,661,5903,2853,0]Am[8844,13,661,661,6462,2853,0]Am[8844,13,661,661,3398,2853,0]Ao[8844,13,1811,8324,8677,2853,0]Ci[8844,13,1811,1077,4892,2853,0,\"impl-Debug-for-CertMode\"]Ck[8844,13,1811,1077,4892,4409,0,\"impl-Display-for-CertMode\"]Ao[8844,13,1811,1811,6472,2853,0]Ao[8844,13,1811,1811,7748,2853,0]Ao[8844,13,4570,4570,4420,2853,0]Ao[7650,13,7651,8199,7763,2853,0]Ao[7650,13,7651,6272,4923,2853,0]Ci[7650,13,7651,6290,4937,2853,0,\"impl-Debug-for-RelayMap\"]Ck[7650,13,7651,6290,4937,4409,0,\"impl-Display-for-RelayMap\"]Cl[7650,13,7651,6290,7766,2853,0,\"impl-Debug-for-RelayConfig\"]Cn[7650,13,7651,6290,7766,4409,0,\"impl-Display-for-RelayConfig\"]Ao[7650,13,7651,6290,8678,2853,0]Cj[7650,13,3826,1173,5962,2853,0,\"impl-Debug-for-SendError\"]Cl[7650,13,3826,1173,5962,4409,0,\"impl-Display-for-SendError\"]Cj[7650,13,3826,1173,5951,2853,0,\"impl-Debug-for-RecvError\"]Cl[7650,13,3826,1173,5951,4409,0,\"impl-Display-for-RecvError\"]Cm[7650,13,3826,3826,8117,2853,0,\"impl-Debug-for-ConnectError\"]Co[7650,13,3826,3826,8117,4409,0,\"impl-Display-for-ConnectError\"]Cj[7650,13,3826,3826,5902,2853,0,\"impl-Debug-for-DialError\"]Cl[7650,13,3826,3826,5902,4409,0,\"impl-Display-for-DialError\"]Ao[7650,13,3826,3826,8228,2853,0]Ao[7650,13,3826,3826,3385,2853,0]Ao[7650,13,3826,3826,6440,2853,0]Ao[7650,13,3826,3826,8109,2853,0]Ao[7650,13,4149,4569,4422,2853,0]Ao[7650,13,4149,4569,8154,2853,0]Ao[7650,13,4149,5188,8992,2853,0]Ao[7650,13,4149,4149,8162,2853,0]Ao[7650,13,4149,4149,7767,2853,0]Ao[7650,13,4149,4149,8105,2853,0]Ao[7650,13,4149,4149,3378,2853,0]Ao[7650,13,4149,4149,6511,2853,0]Ao[7650,13,4149,4149,5970,2853,0]Ao[7650,13,4149,4149,3408,2853,0]Ao[7650,13,4149,4149,8624,2853,0]Ao[7650,13,4149,4149,6438,2853,0]Ao[7650,13,4149,4149,3433,2853,0]Ck[7650,13,4149,4149,6528,2853,0,\"impl-Debug-for-SpawnError\"]Cm[7650,13,4149,4149,6528,4409,0,\"impl-Display-for-SpawnError\"]Db[7650,13,4149,4149,8685,4409,0,\"impl-Display-for-SupervisorError\"]D`[7650,13,4149,4149,8685,2853,0,\"impl-Debug-for-SupervisorError\"]Ao[7650,13,3827,3827,3391,2853,0]Ao[7650,13,3827,3827,3386,2853,0]Da[7650,13,3827,3827,8881,2853,0,\"impl-Debug-for-HandleFrameError\"]Dc[7650,13,3827,3827,8881,4409,0,\"impl-Display-for-HandleFrameError\"]Db[7650,13,3827,3827,8693,4409,0,\"impl-Display-for-WriteFrameError\"]D`[7650,13,3827,3827,8693,2853,0,\"impl-Debug-for-WriteFrameError\"]Ci[7650,13,3827,3827,4945,2853,0,\"impl-Debug-for-RunError\"]Ck[7650,13,3827,3827,4945,4409,0,\"impl-Display-for-RunError\"]De[7650,13,3827,3827,9036,4409,0,\"impl-Display-for-ForwardPacketError\"]Dc[7650,13,3827,3827,9036,2853,0,\"impl-Debug-for-ForwardPacketError\"]Ao[7650,13,4614,4614,8276,2853,0]Cl[7650,13,4614,4614,5963,4409,0,\"impl-Display-for-SendError\"]Cj[7650,13,4614,4614,5963,2853,0,\"impl-Debug-for-SendError\"]Cj[7650,13,4614,4614,5952,2853,0,\"impl-Debug-for-RecvError\"]Cl[7650,13,4614,4614,5952,4409,0,\"impl-Display-for-RecvError\"]Ao[7650,13,4614,4614,8471,2853,0]Df[7650,13,4614,4614,9103,4409,0,\"impl-Display-for-InvalidBucketConfig\"]Dd[7650,13,4614,4614,9103,2853,0,\"impl-Debug-for-InvalidBucketConfig\"]Ao[7650,13,4473,4473,4398,2853,0]Ao[7650,13,8033,8033,5971,2853,0]De[7650,13,8033,8033,9177,2853,0,\"impl-Debug-for-ServeConnectionError\"]Dg[7650,13,8033,8033,9177,4409,0,\"impl-Display-for-ServeConnectionError\"]Cl[7650,13,8033,8033,7722,2853,0,\"impl-Debug-for-AcceptError\"]Cn[7650,13,8033,8033,7722,4409,0,\"impl-Display-for-AcceptError\"]Dg[7650,13,8033,8033,9241,2853,0,\"impl-Debug-for-ConnectionHandlerError\"]Di[7650,13,8033,8033,9241,4409,0,\"impl-Display-for-ConnectionHandlerError\"]Ao[7650,13,8033,8033,8156,2853,0]Ao[7650,13,8033,8033,4912,2853,0]Ao[7650,13,3836,3836,5908,2853,0]Da[7650,13,3836,3836,8464,4409,0,\"impl-Display-for-FrameTypeError\"]Co[7650,13,3836,3836,8464,2853,0,\"impl-Debug-for-FrameTypeError\"]Cf[7650,13,3338,3338,2874,2853,0,\"impl-Debug-for-Error\"]Ch[7650,13,3338,3338,2874,4409,0,\"impl-Display-for-Error\"]Ao[7650,13,3338,3338,8898,2853,0]Ao[7650,13,3338,3338,8872,2853,0]Ao[7650,13,3338,3338,5899,2853,0]Ch[7650,13,6252,6252,2873,4409,0,\"impl-Display-for-Error\"]Cf[7650,13,6252,6252,2873,2853,0,\"impl-Debug-for-Error\"]Ao[7650,13,6252,6252,9295,2853,0]Ao[7650,13,6252,6252,5922,2853,0]Cf[7650,13,2571,2571,2872,2853,0,\"impl-Debug-for-Error\"]Ch[7650,13,2571,2571,2872,4409,0,\"impl-Display-for-Error\"]Ao[7650,13,2571,2571,6510,2853,0]Ao[7650,13,1076,1076,8225,2853,0]Ci[7650,13,660,660,4901,4409,0,\"impl-Display-for-DnsError\"]Cg[7650,13,660,660,4901,2853,0,\"impl-Debug-for-DnsError\"]Cj[7650,13,660,660,7754,2853,0,\"impl-Debug-for-LookupError\"]Cl[7650,13,660,660,7754,4409,0,\"impl-Display-for-LookupError\"]Dd[7650,13,660,660,8489,2853,0,\"impl-Debug-for-StaggeredError%3CE%3E\"]Df[7650,13,660,660,8489,4409,0,\"impl-Display-for-StaggeredError%3CE%3E\"]Am[7650,13,660,660,4397,2853,0]Am[7650,13,660,660,7733,2853,0]Am[7650,13,660,660,7735,2853,0]Cn[7650,13,660,660,8285,4409,0,\"impl-Display-for-TxtRecordData\"]Cl[7650,13,660,660,8285,2853,0,\"impl-Debug-for-TxtRecordData\"]D`[7650,13,8301,8301,8242,4409,0,\"impl-Display-for-EncodingError\"]Cn[7650,13,8301,8301,8242,2853,0,\"impl-Debug-for-EncodingError\"]D`[7650,13,8301,8301,8238,4409,0,\"impl-Display-for-DecodingError\"]Cn[7650,13,8301,8301,8238,2853,0,\"impl-Debug-for-DecodingError\"]Ao[7650,13,8301,8301,8126,2853,0]Ao[7650,13,8301,8301,6434,2853,0]Ci[7650,13,8301,8301,4957,2853,0,\"impl-Debug-for-UserData\"]Ck[7650,13,8301,8301,4957,4409,0,\"impl-Display-for-UserData\"]Di[7650,13,8301,8301,9245,4409,0,\"impl-Display-for-MaxLengthExceededError\"]Dg[7650,13,8301,8301,9245,2853,0,\"impl-Debug-for-MaxLengthExceededError\"]Ao[7650,13,8301,8301,8131,2853,0]Cm[7650,13,8301,8301,6503,4409,0,\"impl-Display-for-ParseError\"]Ck[7650,13,8301,8301,6503,2853,0,\"impl-Debug-for-ParseError\"]Ai[2305,13,2306,0,4458,0,0]Ai[2305,13,2306,0,4936,0,0]Ai[2305,13,4978,0,8158,0,0]Al[7650,13,7651,6290,4937,0,0]Ai[7650,14,2864,0,8689,0,0]Ai[2305,14,4978,0,4954,0,0]Ai[2305,14,6496,0,8433,0,0]0Ai[7650,14,6499,0,8434,0,0]6Al[2305,13,8496,8496,9270,0,0]Al[2305,13,4978,8197,8147,0,0]Ai[2305,14,8231,0,8261,0,0]7Ai[7650,14,7779,0,8474,0,0]Ai[7650,14,8232,0,8262,0,0]Ai[2305,13,4978,0,9215,0,0]=;Ai[2305,13,2306,0,8122,0,0]Ai[2305,13,2306,0,8486,0,0]Ai[2305,13,2306,0,9047,0,0]Ai[2305,13,8496,0,8125,0,0]Ai[2305,13,8496,0,6433,0,0]Ai[2305,13,8496,0,8130,0,0]Al[2305,13,8496,8496,1113,0,0]Al[2305,13,4121,4121,8145,0,0]Al[2305,13,3331,3331,8894,0,0]Ah[2305,13,658,0,7734,0,0]Ai[2305,13,4978,0,6509,0,0]Ai[2305,13,4978,0,8676,0,0]Al[2305,13,4978,7436,6522,0,0]Al[2305,13,4978,7436,9213,0,0]Al[2305,13,4978,4978,4395,0,0]Al[2305,13,4978,4978,8442,0,0]Ai[2305,13,4978,0,8494,0,0]Ai[2305,13,4978,0,4946,0,0]Al[2305,13,5185,5185,8278,0,0]Al[2305,13,5185,5185,7723,0,0]Ai[2305,13,8300,0,9244,0,0]Al[2305,13,7709,2568,8275,0,0]Al[6266,13,6267,8299,8123,0,0]Al[6266,13,6267,1007,8487,0,0]Al[6266,13,6267,6292,9048,0,0]Al[7649,13,3355,3355,8492,0,0]Al[8844,13,8845,3363,5981,0,0]Aj[8844,13,661,661,6462,0,0]Al[7650,13,7651,8199,7763,0,0]Al[7650,13,7651,6272,4923,0,0]Al[7650,13,3826,3826,8228,0,0]Al[7650,13,3827,3827,9036,0,0]Al[7650,13,4614,4614,8276,0,0]Al[7650,13,4614,4614,9103,0,0]Al[7650,13,8033,8033,5971,0,0]Al[7650,13,8033,8033,8156,0,0]Al[7650,13,2571,2571,6510,0,0]Aj[7650,13,660,660,8489,0,0]Aj[7650,13,660,660,7735,0,0]Al[7650,13,8301,8301,8126,0,0]Al[7650,13,8301,8301,6434,0,0]Al[7650,13,8301,8301,9245,0,0]Al[7650,13,8301,8301,8131,0,0]Ak[2305,13,4978,0,1136,366,0]Ai[2305,12,4978,0,6533,0,0]Al[2305,13,4978,8197,4931,0,0]Al[2305,13,4978,7436,6456,0,0]Ai[2305,14,4978,0,5935,0,0]Al[2305,13,7709,9220,8453,0,0]Ae[7649,2,7650,0,0,0,0]Ai[7650,14,8459,0,8911,0,0]Ae[2305,2,2306,0,0,0,0]Ae[7650,2,7651,0,0,0,0]Al[7650,14,4149,4149,7767,0,0]Al[2305,13,3331,3331,9211,0,0]Aj[2305,13,654,654,4396,0,0]Al[2305,14,4978,4156,6459,0,0]Al[7650,13,3338,3338,8898,0,0]Ai[2305,14,2306,0,7765,0,0]Ai[2305,14,6506,0,8641,0,0]Ai[2305,14,8134,0,2889,0,0]Al[7650,14,7651,6290,7766,0,0]Ai[7650,14,8114,0,9106,0,0]Ai[7650,14,8114,0,8642,0,0]Ai[7650,14,5901,0,6482,0,0]Af[7649,18,2305,0,0,0,0]Af[7649,18,3335,0,0,0,0]Al[2305,17,4978,7436,8635,0,0]Al[7650,15,4149,4149,3378,0,0]Al[7650,15,3826,3826,8117,0,0]Al[7650,15,8033,8033,9177,0,0]Al[7649,15,7650,7650,8877,0,0]Al[7649,15,7650,7650,9029,0,0]Al[7649,15,7650,7650,4893,0,0]Ae[2305,5,8496,0,0,0,0]Ah[2305,5,4978,4090,0,0,0]Af[2305,18,2313,0,0,0,0]Al[2305,15,4978,7699,3437,0,0]Ai[2305,15,4978,0,5907,0,0]Al[7650,15,3836,3836,5908,0,0]Al[7650,15,3338,3338,8898,0,0]Al[7650,15,3338,3338,8872,0,0]210Ai[2305,15,4978,0,8483,0,0]Al[7650,15,3827,3827,8881,0,0]0Ah[2305,6,4978,6275,0,0,0]Al[2305,15,8496,8496,9304,0,0]Al[2305,15,8496,8496,2871,0,0]Al[2305,15,5185,5185,7721,0,0]Ai[2305,15,8496,0,6501,0,0]0Al[7650,15,8301,8301,6503,0,0]Ai[2305,19,4978,0,3418,0,0]Ai[2305,14,4978,0,6470,0,0]Al[2305,13,4978,8094,8997,0,0]Al[2305,13,4978,4978,4908,0,0]Al[2305,14,4978,4156,6459,0,0]Ai[7650,14,6527,0,8618,0,0]Al[2305,13,4978,7436,6446,0,0]Al[2305,13,4978,7436,5883,0,0]Dc[2305,13,4978,7436,6456,0,0,\"impl-Connection%3COutgoingZeroRtt%3E\"]Dc[2305,13,4978,7436,6456,0,0,\"impl-Connection%3CIncomingZeroRtt%3E\"]Bn[2305,13,4978,7436,6456,0,0,\"impl-Connection\"]Al[2305,13,4978,7436,8443,0,0]Al[2305,13,4978,4978,4395,0,0]9Ab[1166,3,0,0,0,0,0]Ao[7650,13,8033,8033,8156,7747,0]Ao[7650,13,8033,8033,8156,4436,0]Al[7650,14,4149,4149,5970,0,0]Ai[2305,14,4978,0,8494,0,0]Ai[7650,14,8114,0,9279,0,0]Ai[2305,14,4978,0,5935,0,0]Ai[2305,14,8496,0,8130,0,0]0Al[7650,14,8301,8301,8131,0,0]Al[2305,13,2306,0,8122,5936,0]Al[2305,13,2306,0,8283,5936,0]Al[2305,13,2306,0,5941,5936,0]Al[2305,13,2306,0,8654,5936,0]Al[2305,13,2306,0,5958,5936,0]Al[2305,13,2306,0,5958,1103,0]Al[2305,13,2306,0,5965,5936,0]Al[2305,13,2306,0,8486,5936,0]Al[2305,13,2306,0,4939,5936,0]Al[2305,13,2306,0,9047,5936,0]Al[2305,13,2306,0,4936,5936,0]Al[2305,13,2306,0,7765,5936,0]Al[2305,13,2306,0,5923,5936,0]Al[2305,13,4568,0,8477,5936,0]Al[2305,13,4568,0,8279,5936,0]Al[2305,13,4568,0,8153,5936,0]Ao[2305,13,4568,4568,8639,5936,0]Al[2305,13,4568,0,8889,5936,0]Al[2305,13,1075,0,8224,5936,0]Al[2305,13,8496,0,8125,5936,0]Al[2305,13,8496,0,6433,5936,0]Al[2305,13,8496,0,4956,5936,0]Al[2305,13,8496,0,8130,5936,0]Al[2305,13,8496,0,6501,5936,0]Ao[2305,13,8496,8496,9304,5936,0]Ao[2305,13,8496,8496,2871,5936,0]Ao[2305,13,8496,8496,1113,5936,0]Ao[2305,13,8496,8496,9270,5936,0]Ao[2305,13,4121,4121,8145,5936,0]Am[2305,13,659,659,8876,5936,0]Am[2305,13,659,659,9273,5936,0]Ao[2305,13,3331,3331,6507,5936,0]Ao[2305,13,3331,3331,9211,5936,0]Ao[2305,13,3331,3331,8476,5936,0]Ao[2305,13,3331,3331,9174,5936,0]Ao[2305,13,3331,3331,8272,5936,0]Ao[2305,13,3331,3331,8894,5936,0]Ao[2305,13,3331,3331,9277,5936,0]Am[2305,13,654,654,8874,5936,0]Am[2305,13,654,654,4396,5936,0]Ao[2305,13,2313,2313,8991,5936,0]Ao[2305,13,2313,2313,9294,5936,0]Ao[2305,13,2313,2313,8452,5936,0]Ak[2305,13,658,0,7734,5936,0]Al[2305,13,4978,0,4424,5936,0]Al[2305,13,4978,0,3415,5936,0]Al[2305,13,4978,0,5882,5936,0]Al[2305,13,4978,0,4885,5936,0]Al[2305,13,4978,0,8152,5936,0]Al[2305,13,4978,0,8159,5936,0]Al[2305,13,4978,0,8993,5936,0]Al[2305,13,4978,0,6514,5936,0]Al[2305,13,4978,0,6514,1103,0]Al[2305,13,4978,0,9118,5936,0]Al[2305,13,4978,0,8483,5936,0]Al[2305,13,4978,0,5946,5936,0]Al[2305,13,4978,0,6516,5936,0]Al[2305,13,4978,0,8482,5936,0]Al[2305,13,4978,0,6524,5936,0]Al[2305,13,4978,0,6524,1103,0]Al[2305,13,4978,0,6534,5936,0]Al[2305,13,4978,0,8164,5936,0]Al[2305,13,4978,0,6509,5936,0]Al[2305,13,4978,0,1114,5936,0]Ao[2305,13,4978,8197,8147,5936,0]Ao[2305,13,4978,8197,8892,5936,0]Ao[2305,13,4978,8197,7762,5936,0]Ao[2305,13,4978,8197,4931,5936,0]Ao[2305,13,4978,8094,6515,5936,0]Ao[2305,13,4978,8094,8997,5936,0]Ao[2305,13,4978,8094,9056,5936,0]Al[2305,13,4978,0,8686,5936,0]Al[2305,13,4978,0,9115,5936,0]Al[2305,13,4978,0,3446,5936,0]Al[2305,13,4978,0,9178,5936,0]Al[2305,13,4978,0,2850,5936,0]Al[2305,13,4978,0,3418,5936,0]Ao[2305,13,4978,7699,3437,5936,0]Al[2305,13,4978,0,8158,5936,0]Al[2305,13,4978,0,4954,5936,0]Al[2305,13,4978,0,6470,5936,0]Al[2305,13,4978,0,5935,5936,0]Al[2305,13,4978,0,8636,5936,0]Al[2305,13,4978,0,4459,5936,0]Al[2305,13,4978,0,8112,5936,0]Ao[2305,13,4978,4156,5891,5936,0]Ao[2305,13,4978,4156,6459,5936,0]Ao[2305,13,4978,4156,8450,5936,0]Al[2305,13,4978,0,8634,5936,0]Al[2305,13,4978,0,8676,5936,0]Ao[2305,13,4978,1163,4890,5936,0]Al[2305,13,4978,0,9026,5936,0]Ao[2305,13,4978,1163,8986,5936,0]Al[2305,13,4978,0,9043,5936,0]Al[2305,13,4978,0,7749,5936,0]Ao[2305,13,4978,7436,8135,5936,0]Al[2305,13,4978,0,9215,5936,0]Ao[2305,13,4978,7436,3376,5936,0]Ao[2305,13,4978,7436,4917,5936,0]Al[2305,13,4978,0,9306,5936,0]Ao[2305,13,4978,7436,6522,5936,0]Al[2305,13,4978,0,7729,5936,0]Al[2305,13,4978,0,9059,5936,0]Al[2305,13,4978,0,5907,5936,0]Ao[2305,13,4978,7436,9096,5936,0]Ao[2305,13,4978,7436,6446,5936,0]Ao[2305,13,4978,7436,5883,5936,0]Ao[2305,13,4978,7436,5888,5936,0]Ao[2305,13,4978,7436,8626,5936,0]Ao[2305,13,4978,7436,8291,5936,0]Ao[2305,13,4978,7436,6456,5936,0]Ao[2305,13,4978,7436,9037,5936,0]Ao[2305,13,4978,7436,8640,5936,0]Ao[2305,13,4978,7436,8671,5936,0]Ao[2305,13,4978,7436,9213,5936,0]Ao[2305,13,4978,7436,8443,5936,0]Ao[2305,13,4978,3318,9152,5936,0]Ao[2305,13,4978,3318,9207,5936,0]Ao[2305,13,4978,2570,9327,5936,0]Ao[2305,13,4978,2570,9113,5936,0]Ao[2305,13,4978,2570,9114,5936,0]Ao[2305,13,4978,2570,8161,5936,0]Ao[2305,13,4978,4978,4395,5936,0]Ao[2305,13,4978,4978,8244,5936,0]Ao[2305,13,4978,4978,4908,5936,0]Ao[2305,13,4978,4978,9154,5936,0]Ao[2305,13,4978,4978,8116,5936,0]Al[2305,13,4978,0,8628,5936,0]Ao[2305,13,4978,4978,8442,5936,0]Al[2305,13,4978,0,8869,5936,0]Ao[2305,13,4978,4978,8458,5936,0]Ao[2305,13,4978,4978,5954,5936,0]Al[2305,13,4978,0,8895,5936,0]Al[2305,13,4978,0,8494,5936,0]Al[2305,13,4978,0,9057,5936,0]Al[2305,13,4978,0,8977,5936,0]Al[2305,13,4978,0,1136,5936,0]Ak[2305,13,4978,0,356,5936,0]Al[2305,13,4978,0,4946,5936,0]Am[2305,13,4586,4586,16,5936,0]Ao[2305,13,4586,4586,8472,5936,0]Ao[2305,13,5185,5185,3429,5936,0]Ao[2305,13,5185,5185,8278,5936,0]Ao[2305,13,5185,5185,7721,5936,0]Ao[2305,13,5185,5185,7723,5936,0]Al[2305,13,8300,0,8241,5936,0]Al[2305,13,8300,0,8236,5936,0]Al[2305,13,8300,0,9244,5936,0]Ao[2305,13,7709,2568,8275,5936,0]Ao[2305,13,7709,7709,8870,5936,0]Ao[2305,13,7709,9220,8453,5936,0]Ao[6266,13,6267,1007,5959,1103,0]Ao[7649,13,7650,7650,8877,5936,0]Ao[7649,13,7650,7650,9029,5936,0]Ao[7649,13,7650,7650,4893,5936,0]An[7649,13,7650,7650,367,5936,0]Ao[7649,13,7650,7650,7727,5936,0]Ao[7649,13,3355,3355,2900,5936,0]Ao[7649,13,3355,3355,7785,5936,0]Ao[7649,13,3355,3355,8492,5936,0]An[7649,13,1071,1071,368,5936,0]Ao[7650,13,7651,8199,7763,5936,0]Ao[7650,13,7651,6272,4923,5936,0]Ao[7650,13,7651,6290,4937,5936,0]Ao[7650,13,7651,6290,7766,5936,0]Ao[7650,13,7651,6290,8678,5936,0]Ao[7650,13,3826,1173,5962,5936,0]Ao[7650,13,3826,1173,5951,5936,0]Ao[7650,13,3826,3826,8117,5936,0]Ao[7650,13,3826,3826,5902,5936,0]Ao[7650,13,3826,3826,8228,5936,0]Ao[7650,13,3826,3826,3385,5936,0]Ao[7650,13,3826,3826,6440,5936,0]Ao[7650,13,3826,3826,8109,5936,0]Ao[7650,13,4149,4569,4422,5936,0]Ao[7650,13,4149,4569,8154,5936,0]Ao[7650,13,4149,5188,8992,5936,0]Ao[7650,13,4149,4149,8162,5936,0]Ao[7650,13,4149,4149,7767,5936,0]Ao[7650,13,4149,4149,8105,5936,0]Ao[7650,13,4149,4149,3378,5936,0]Ao[7650,13,4149,4149,6511,5936,0]Ao[7650,13,4149,4149,5970,5936,0]Ao[7650,13,4149,4149,3408,5936,0]Ao[7650,13,4149,4149,8624,5936,0]Ao[7650,13,4149,4149,6438,5936,0]Ao[7650,13,4149,4149,3433,5936,0]Ao[7650,13,4149,4149,6528,5936,0]Ao[7650,13,4149,4149,8685,5936,0]Ao[7650,13,3827,3827,3391,5936,0]Ao[7650,13,3827,3827,3386,5936,0]Ao[7650,13,3827,3827,8881,5936,0]Ao[7650,13,3827,3827,8693,5936,0]Ao[7650,13,3827,3827,4945,5936,0]Ao[7650,13,3827,3827,9036,5936,0]Ao[7650,13,4614,4614,8276,5936,0]Ao[7650,13,4614,4614,5963,5936,0]Ao[7650,13,4614,4614,5952,5936,0]Ao[7650,13,4614,4614,8471,5936,0]Ao[7650,13,4614,4614,9103,5936,0]Ao[7650,13,4473,4473,4398,5936,0]Ao[7650,13,8033,8033,5971,5936,0]Ao[7650,13,8033,8033,9177,5936,0]Ao[7650,13,8033,8033,7722,5936,0]Ao[7650,13,8033,8033,9241,5936,0]Ao[7650,13,8033,8033,8156,5936,0]Ao[7650,13,8033,8033,4912,5936,0]Ao[7650,13,3836,3836,5908,5936,0]Ao[7650,13,3836,3836,8464,5936,0]Ao[7650,13,3338,3338,2874,5936,0]Ao[7650,13,3338,3338,8898,5936,0]Ao[7650,13,3338,3338,8872,5936,0]Ao[7650,13,3338,3338,5899,5936,0]Ao[7650,13,6252,6252,2873,5936,0]Ao[7650,13,6252,6252,9295,5936,0]Ao[7650,13,6252,6252,5922,5936,0]Ao[7650,13,2571,2571,2872,5936,0]Ao[7650,13,2571,2571,6510,5936,0]Ao[7650,13,1076,1076,8225,5936,0]Am[7650,13,660,660,4901,5936,0]Am[7650,13,660,660,7754,5936,0]Am[7650,13,660,660,8489,5936,0]Am[7650,13,660,660,4397,5936,0]Am[7650,13,660,660,7733,5936,0]Am[7650,13,660,660,7735,5936,0]Am[7650,13,660,660,8285,5936,0]Ao[7650,13,8301,8301,8242,5936,0]Ao[7650,13,8301,8301,8238,5936,0]Ao[7650,13,8301,8301,8126,5936,0]Ao[7650,13,8301,8301,6434,5936,0]Ao[7650,13,8301,8301,4957,5936,0]Ao[7650,13,8301,8301,9245,5936,0]Ao[7650,13,8301,8301,8131,5936,0]Ao[7650,13,8301,8301,6503,5936,0]Al[2305,13,2306,0,8122,1104,0]Dh[2305,13,2306,0,8122,1104,0,\"impl-From%3CPublicKey%3E-for-EndpointAddr\"]Dk[2305,13,2306,0,8122,1104,0,\"impl-From%3CEndpointInfo%3E-for-EndpointAddr\"]Ea[2305,13,2306,0,8283,1104,0,\"impl-From%3CTransportAddrInfo%3E-for-TransportAddr\"]Al[2305,13,2306,0,8283,1104,0]Dl[2305,13,2306,0,8283,1104,0,\"impl-From%3CIncomingAddr%3E-for-TransportAddr\"]Al[2305,13,2306,0,5941,1104,0]Dg[2305,13,2306,0,8654,1104,0,\"impl-From%3CError%3E-for-KeyParsingError\"]Al[2305,13,2306,0,8654,1104,0]Dm[2305,13,2306,0,8654,1104,0,\"impl-From%3CDecodeError%3E-for-KeyParsingError\"]Al[2305,13,2306,0,5958,1104,0]0Al[2305,13,2306,0,5965,1104,0]Al[2305,13,2306,0,8486,1104,0]Al[2305,13,2306,0,4939,1104,0]0Al[2305,13,2306,0,9047,1104,0]Dc[2305,13,2306,0,4936,1104,0,\"impl-From%3CRelayUrl%3E-for-RelayMap\"]Al[2305,13,2306,0,4936,1104,0]Df[2305,13,2306,0,4936,1104,0,\"impl-From%3CRelayConfig%3E-for-RelayMap\"]Al[2305,13,2306,0,7765,1104,0]0Al[2305,13,2306,0,5923,1104,0]Al[2305,13,4568,0,8477,1104,0]Al[2305,13,4568,0,8279,1104,0]Al[2305,13,4568,0,8153,1104,0]Ao[2305,13,4568,4568,8639,1104,0]Al[2305,13,4568,0,8889,1104,0]Al[2305,13,1075,0,8224,1104,0]Al[2305,13,8496,0,8125,1104,0]0Al[2305,13,8496,0,6433,1104,0]Al[2305,13,8496,0,4956,1104,0]Ee[2305,13,8496,0,8130,1104,0,\"impl-From%3CTxtAttrs%3CIrohAttr%3E%3E-for-EndpointInfo\"]Al[2305,13,8496,0,8130,1104,0]Dk[2305,13,8496,0,8130,1104,0,\"impl-From%3CEndpointAddr%3E-for-EndpointInfo\"]Dc[2305,13,8496,0,8130,1104,0,\"impl-From%3CItem%3E-for-EndpointInfo\"]Eh[2305,13,8496,0,8130,1104,0,\"impl-From%3C%26TxtAttrs%3CIrohAttr%3E%3E-for-EndpointInfo\"]Dj[2305,13,8496,0,6501,1104,0,\"impl-From%3CDecodingError%3E-for-ParseError\"]Al[2305,13,8496,0,6501,1104,0]Df[2305,13,8496,0,6501,1104,0,\"impl-From%3CUtf8Error%3E-for-ParseError\"]Ao[2305,13,8496,8496,9304,1104,0]Eg[2305,13,8496,8496,9304,1104,0,\"impl-From%3CAnyError%3E-for-AddressLookupBuilderError\"]El[2305,13,8496,8496,9304,1104,0,\"impl-From%3CEndpointError%3E-for-AddressLookupBuilderError\"]Ao[2305,13,8496,8496,2871,1104,0]0Ao[2305,13,8496,8496,1113,1104,0]Ao[2305,13,8496,8496,9270,1104,0]0Ao[2305,13,4121,4121,8145,1104,0]Am[2305,13,659,659,8876,1104,0]Am[2305,13,659,659,9273,1104,0]Ao[2305,13,3331,3331,6507,1104,0]Ao[2305,13,3331,3331,9211,1104,0]Ao[2305,13,3331,3331,8476,1104,0]Ao[2305,13,3331,3331,9174,1104,0]Ao[2305,13,3331,3331,8272,1104,0]Ao[2305,13,3331,3331,8894,1104,0]Ao[2305,13,3331,3331,9277,1104,0]Am[2305,13,654,654,8874,1104,0]Am[2305,13,654,654,4396,1104,0]Ao[2305,13,2313,2313,8991,1104,0]Ao[2305,13,2313,2313,9294,1104,0]Ao[2305,13,2313,2313,8452,1104,0]Ak[2305,13,658,0,7734,1104,0]Al[2305,13,4978,0,4424,1104,0]Al[2305,13,4978,0,3415,1104,0]Al[2305,13,4978,0,5882,1104,0]Al[2305,13,4978,0,4885,1104,0]Al[2305,13,4978,0,8152,1104,0]Al[2305,13,4978,0,8159,1104,0]Al[2305,13,4978,0,8993,1104,0]0Al[2305,13,4978,0,6514,1104,0]Al[2305,13,4978,0,9118,1104,0]Al[2305,13,4978,0,8483,1104,0]0Dk[2305,13,4978,0,5946,1104,0,\"impl-From%3CConnectionError%3E-for-ReadError\"]Df[2305,13,4978,0,5946,1104,0,\"impl-From%3CResetError%3E-for-ReadError\"]Al[2305,13,4978,0,5946,1104,0]Al[2305,13,4978,0,6516,1104,0]0Al[2305,13,4978,0,8482,1104,0]0Al[2305,13,4978,0,6524,1104,0]Di[2305,13,4978,0,6534,1104,0,\"impl-From%3CStoppedError%3E-for-WriteError\"]Al[2305,13,4978,0,6534,1104,0]Dl[2305,13,4978,0,6534,1104,0,\"impl-From%3CConnectionError%3E-for-WriteError\"]Di[2305,13,4978,0,6534,1104,0,\"impl-From%3CClosedStream%3E-for-WriteError\"]Al[2305,13,4978,0,8164,1104,0]0Al[2305,13,4978,0,6509,1104,0]Al[2305,13,4978,0,1114,1104,0]Ao[2305,13,4978,8197,8147,1104,0]Ao[2305,13,4978,8197,8892,1104,0]Ao[2305,13,4978,8197,7762,1104,0]Ao[2305,13,4978,8197,4931,1104,0]Ao[2305,13,4978,8094,6515,1104,0]Ao[2305,13,4978,8094,8997,1104,0]Ao[2305,13,4978,8094,9056,1104,0]Al[2305,13,4978,0,8686,1104,0]Al[2305,13,4978,0,9115,1104,0]Db[2305,13,4978,0,3446,1104,0,\"impl-From%3CFrameType%3E-for-VarInt\"]Ck[2305,13,4978,0,3446,1104,0,\"impl-From%3Cu8%3E-for-VarInt\"]Al[2305,13,4978,0,3446,1104,0]Dk[2305,13,4978,0,3446,1104,0,\"impl-From%3CTransportErrorCode%3E-for-VarInt\"]Cl[2305,13,4978,0,3446,1104,0,\"impl-From%3Cu16%3E-for-VarInt\"]Cl[2305,13,4978,0,3446,1104,0,\"impl-From%3Cu32%3E-for-VarInt\"]Da[2305,13,4978,0,3446,1104,0,\"impl-From%3CStreamId%3E-for-VarInt\"]Al[2305,13,4978,0,9178,1104,0]Al[2305,13,4978,0,2850,1104,0]Al[2305,13,4978,0,3418,1104,0]0Ao[2305,13,4978,7699,3437,1104,0]Al[2305,13,4978,0,8158,1104,0]Al[2305,13,4978,0,4954,1104,0]Al[2305,13,4978,0,6470,1104,0]Al[2305,13,4978,0,5935,1104,0]Al[2305,13,4978,0,8636,1104,0]Al[2305,13,4978,0,4459,1104,0]Al[2305,13,4978,0,8112,1104,0]Ao[2305,13,4978,4156,5891,1104,0]0Ao[2305,13,4978,4156,6459,1104,0]Ao[2305,13,4978,4156,8450,1104,0]Al[2305,13,4978,0,8634,1104,0]Dm[2305,13,4978,0,8634,1104,0,\"impl-From%3CCloseReason%3E-for-ConnectionError\"]E`[2305,13,4978,0,8634,1104,0,\"impl-From%3CTransportError%3E-for-ConnectionError\"]Dg[2305,13,4978,0,8634,1104,0,\"impl-From%3CClose%3E-for-ConnectionError\"]Al[2305,13,4978,0,8676,1104,0]Ao[2305,13,4978,1163,4890,1104,0]Al[2305,13,4978,0,9026,1104,0]Ee[2305,13,4978,1163,8986,1104,0,\"impl-From%3CAddrParseError%3E-for-InvalidSocketAddr\"]Ea[2305,13,4978,1163,8986,1104,0,\"impl-From%3CInfallible%3E-for-InvalidSocketAddr\"]Ee[2305,13,4978,1163,8986,1104,0,\"impl-From%3CPrefixLenError%3E-for-InvalidSocketAddr\"]Ao[2305,13,4978,1163,8986,1104,0]Al[2305,13,4978,0,9043,1104,0]Al[2305,13,4978,0,7749,1104,0]0Ao[2305,13,4978,7436,8135,1104,0]Al[2305,13,4978,0,9215,1104,0]Ao[2305,13,4978,7436,3376,1104,0]Ao[2305,13,4978,7436,4917,1104,0]Al[2305,13,4978,0,9306,1104,0]Ao[2305,13,4978,7436,6522,1104,0]Al[2305,13,4978,0,7729,1104,0]0Al[2305,13,4978,0,9059,1104,0]Al[2305,13,4978,0,5907,1104,0]Ao[2305,13,4978,7436,9096,1104,0]0Ao[2305,13,4978,7436,6446,1104,0]Ao[2305,13,4978,7436,5883,1104,0]Ao[2305,13,4978,7436,5888,1104,0]0Eh[2305,13,4978,7436,8626,1104,0,\"impl-From%3CAuthenticationError%3E-for-ConnectingError\"]Ed[2305,13,4978,7436,8626,1104,0,\"impl-From%3CConnectionError%3E-for-ConnectingError\"]Ao[2305,13,4978,7436,8626,1104,0]Ao[2305,13,4978,7436,8291,1104,0]Ao[2305,13,4978,7436,6456,1104,0]Ao[2305,13,4978,7436,9037,1104,0]Ao[2305,13,4978,7436,8640,1104,0]Ao[2305,13,4978,7436,8671,1104,0]Ao[2305,13,4978,7436,9213,1104,0]Ao[2305,13,4978,7436,8443,1104,0]Ao[2305,13,4978,3318,9152,1104,0]Ao[2305,13,4978,3318,9207,1104,0]Ao[2305,13,4978,2570,9327,1104,0]Ao[2305,13,4978,2570,9113,1104,0]Ao[2305,13,4978,2570,9114,1104,0]Ao[2305,13,4978,2570,8161,1104,0]Ao[2305,13,4978,4978,4395,1104,0]Ao[2305,13,4978,4978,8244,1104,0]Ao[2305,13,4978,4978,4908,1104,0]Ef[2305,13,4978,4978,9154,1104,0,\"impl-From%3CConnectError%3E-for-ConnectWithOptsError\"]Do[2305,13,4978,4978,9154,1104,0,\"impl-From%3CError%3E-for-ConnectWithOptsError\"]Ao[2305,13,4978,4978,9154,1104,0]Ea[2305,13,4978,4978,8116,1104,0,\"impl-From%3CConnectingError%3E-for-ConnectError\"]Ef[2305,13,4978,4978,8116,1104,0,\"impl-From%3CConnectWithOptsError%3E-for-ConnectError\"]Ea[2305,13,4978,4978,8116,1104,0,\"impl-From%3CConnectionError%3E-for-ConnectError\"]Ao[2305,13,4978,4978,8116,1104,0]Al[2305,13,4978,0,8628,1104,0]0Ao[2305,13,4978,4978,8442,1104,0]Al[2305,13,4978,0,8869,1104,0]Ao[2305,13,4978,4978,8458,1104,0]Ao[2305,13,4978,4978,5954,1104,0]Al[2305,13,4978,0,8895,1104,0]0Dm[2305,13,4978,0,8494,1104,0,\"impl-From%3CInvalidFrame%3E-for-TransportError\"]Df[2305,13,4978,0,8494,1104,0,\"impl-From%3CError%3E-for-TransportError\"]Al[2305,13,4978,0,8494,1104,0]Al[2305,13,4978,0,9057,1104,0]0Al[2305,13,4978,0,8977,1104,0]Al[2305,13,4978,0,1136,1104,0]Ak[2305,13,4978,0,356,1104,0]Al[2305,13,4978,0,4946,1104,0]0Am[2305,13,4586,4586,16,1104,0]Ao[2305,13,4586,4586,8472,1104,0]Ao[2305,13,5185,5185,3429,1104,0]Ao[2305,13,5185,5185,8278,1104,0]Ef[2305,13,5185,5185,7721,1104,0,\"impl-From%3CRemoteEndpointIdError%3E-for-AcceptError\"]Ao[2305,13,5185,5185,7721,1104,0]Dm[2305,13,5185,5185,7721,1104,0,\"impl-From%3CClosedStream%3E-for-AcceptError\"]E`[2305,13,5185,5185,7721,1104,0,\"impl-From%3CConnectingError%3E-for-AcceptError\"]E`[2305,13,5185,5185,7721,1104,0,\"impl-From%3CConnectionError%3E-for-AcceptError\"]Di[2305,13,5185,5185,7721,1104,0,\"impl-From%3CAnyError%3E-for-AcceptError\"]Df[2305,13,5185,5185,7721,1104,0,\"impl-From%3CError%3E-for-AcceptError\"]Ao[2305,13,5185,5185,7723,1104,0]Al[2305,13,8300,0,8241,1104,0]Al[2305,13,8300,0,8236,1104,0]Al[2305,13,8300,0,9244,1104,0]Ao[2305,13,7709,2568,8275,1104,0]Ao[2305,13,7709,7709,8870,1104,0]Ao[2305,13,7709,9220,8453,1104,0]Ao[6266,13,6267,8299,8123,1104,0]0Ao[6266,13,6267,8299,8284,1104,0]Ao[6266,13,6267,1007,5942,1104,0]E`[6266,13,6267,1007,8655,1104,0,\"impl-From%3CDecodeError%3E-for-KeyParsingError\"]Ao[6266,13,6267,1007,8655,1104,0]Dj[6266,13,6267,1007,8655,1104,0,\"impl-From%3CError%3E-for-KeyParsingError\"]Ao[6266,13,6267,1007,5959,1104,0]0Ao[6266,13,6267,1007,5966,1104,0]Ao[6266,13,6267,1007,8487,1104,0]Ao[6266,13,6267,6292,4940,1104,0]0Ao[6266,13,6267,6292,9048,1104,0]Ao[7649,13,7650,7650,8877,1104,0]Ao[7649,13,7650,7650,9029,1104,0]Ao[7649,13,7650,7650,4893,1104,0]An[7649,13,7650,7650,367,1104,0]Ao[7649,13,7650,7650,7727,1104,0]Ao[7649,13,3355,3355,2900,1104,0]Ao[7649,13,3355,3355,7785,1104,0]Ao[7649,13,3355,3355,8492,1104,0]An[7649,13,1071,1071,368,1104,0]Ao[8844,13,8845,3363,5981,1104,0]Ao[8844,13,3352,3352,4888,1104,0]Ao[8844,13,4087,4087,3390,1104,0]Ao[8844,13,4087,4087,7774,1104,0]Ao[8844,13,4087,4087,8270,1104,0]Ao[8844,13,4087,4087,8469,1104,0]Ao[8844,13,4087,4087,8622,1104,0]Am[8844,13,661,661,5904,1104,0]Am[8844,13,661,661,5903,1104,0]Am[8844,13,661,661,6462,1104,0]Am[8844,13,661,661,3398,1104,0]Ao[8844,13,1811,1811,6473,1104,0]Ao[8844,13,1811,8324,8677,1104,0]Ao[8844,13,1811,1077,4892,1104,0]Ao[8844,13,1811,1811,6472,1104,0]Ao[8844,13,1811,1811,7748,1104,0]Ao[8844,13,4570,4570,4420,1104,0]Ao[8844,13,4150,4150,3432,1104,0]Ao[7650,13,7651,8199,7763,1104,0]Ao[7650,13,7651,6272,4923,1104,0]Ao[7650,13,7651,6290,4937,1104,0]Di[7650,13,7651,6290,4937,1104,0,\"impl-From%3CRelayConfig%3E-for-RelayMap\"]Df[7650,13,7651,6290,4937,1104,0,\"impl-From%3CRelayUrl%3E-for-RelayMap\"]Ao[7650,13,7651,6290,7766,1104,0]0Ao[7650,13,7651,6290,8678,1104,0]Ao[7650,13,3826,1173,5962,1104,0]0Dd[7650,13,3826,1173,5951,1104,0,\"impl-From%3CError%3E-for-RecvError\"]0Ao[7650,13,3826,1173,5951,1104,0]Dg[7650,13,3826,3826,8117,1104,0,\"impl-From%3CError%3E-for-ConnectError\"]00Dk[7650,13,3826,3826,8117,1104,0,\"impl-From%3CDialError%3E-for-ConnectError\"]1Ao[7650,13,3826,3826,8117,1104,0]Df[7650,13,3826,3826,5902,1104,0,\"impl-From%3CElapsed%3E-for-DialError\"]Dd[7650,13,3826,3826,5902,1104,0,\"impl-From%3CError%3E-for-DialError\"]Ao[7650,13,3826,3826,5902,1104,0]Dg[7650,13,3826,3826,5902,1104,0,\"impl-From%3CDnsError%3E-for-DialError\"]2Ao[7650,13,3826,3826,8228,1104,0]Ao[7650,13,3826,3826,3385,1104,0]Ao[7650,13,3826,3826,6440,1104,0]Ao[7650,13,3826,3826,8109,1104,0]Ao[7650,13,4149,4569,4422,1104,0]Ao[7650,13,4149,4569,8154,1104,0]Ao[7650,13,4149,5188,8992,1104,0]Ao[7650,13,4149,4149,8162,1104,0]Ao[7650,13,4149,4149,7767,1104,0]Ao[7650,13,4149,4149,8105,1104,0]Ao[7650,13,4149,4149,3378,1104,0]Ao[7650,13,4149,4149,6511,1104,0]Ao[7650,13,4149,4149,5970,1104,0]Ao[7650,13,4149,4149,3408,1104,0]Ao[7650,13,4149,4149,8624,1104,0]Ao[7650,13,4149,4149,6438,1104,0]Ao[7650,13,4149,4149,3433,1104,0]Ao[7650,13,4149,4149,6528,1104,0]Ao[7650,13,4149,4149,8685,1104,0]0Ao[7650,13,3827,3827,3391,1104,0]Ao[7650,13,3827,3827,3386,1104,0]Do[7650,13,3827,3827,8881,1104,0,\"impl-From%3CRecvError%3E-for-HandleFrameError\"]Ao[7650,13,3827,3827,8881,1104,0]Eh[7650,13,3827,3827,8881,1104,0,\"impl-From%3CForwardPacketError%3E-for-HandleFrameError\"]Ee[7650,13,3827,3827,8881,1104,0,\"impl-From%3CWriteFrameError%3E-for-HandleFrameError\"]Dn[7650,13,3827,3827,8693,1104,0,\"impl-From%3CSendError%3E-for-WriteFrameError\"]Dl[7650,13,3827,3827,8693,1104,0,\"impl-From%3CElapsed%3E-for-WriteFrameError\"]Ao[7650,13,3827,3827,8693,1104,0]Dn[7650,13,3827,3827,4945,1104,0,\"impl-From%3CHandleFrameError%3E-for-RunError\"]E`[7650,13,3827,3827,4945,1104,0,\"impl-From%3CForwardPacketError%3E-for-RunError\"]Ao[7650,13,3827,3827,4945,1104,0]Ao[7650,13,3827,3827,9036,1104,0]Ao[7650,13,4614,4614,8276,1104,0]Ao[7650,13,4614,4614,5963,1104,0]0Dd[7650,13,4614,4614,5952,1104,0,\"impl-From%3CError%3E-for-RecvError\"]Ao[7650,13,4614,4614,5952,1104,0]1Ao[7650,13,4614,4614,8471,1104,0]Ao[7650,13,4614,4614,9103,1104,0]Ao[7650,13,4473,4473,4398,1104,0]Ao[7650,13,8033,8033,5971,1104,0]Ao[7650,13,8033,8033,9177,1104,0]Ed[7650,13,8033,8033,7722,1104,0,\"impl-From%3CInvalidBucketConfig%3E-for-AcceptError\"]Ao[7650,13,8033,8033,7722,1104,0]Df[7650,13,8033,8033,7722,1104,0,\"impl-From%3CError%3E-for-AcceptError\"]Ao[7650,13,8033,8033,9241,1104,0]0Ao[7650,13,8033,8033,8156,1104,0]Ao[7650,13,8033,8033,4912,1104,0]Ao[7650,13,3836,3836,5908,1104,0]Ao[7650,13,3836,3836,8464,1104,0]Ao[7650,13,3338,3338,2874,1104,0]Dd[7650,13,3338,3338,2874,1104,0,\"impl-From%3CUtf8Error%3E-for-Error\"]Dj[7650,13,3338,3338,2874,1104,0,\"impl-From%3CKeyParsingError%3E-for-Error\"]Di[7650,13,3338,3338,2874,1104,0,\"impl-From%3CFrameTypeError%3E-for-Error\"]D`[7650,13,3338,3338,2874,1104,0,\"impl-From%3CError%3E-for-Error\"]Ao[7650,13,3338,3338,8898,1104,0]Ao[7650,13,3338,3338,8872,1104,0]Ao[7650,13,3338,3338,5899,1104,0]0Ao[7650,13,6252,6252,2873,1104,0]Di[7650,13,6252,6252,2873,1104,0,\"impl-From%3CFrameTypeError%3E-for-Error\"]D`[7650,13,6252,6252,2873,1104,0,\"impl-From%3CError%3E-for-Error\"]Ao[7650,13,6252,6252,9295,1104,0]Ao[7650,13,6252,6252,5922,1104,0]Dj[7650,13,2571,2571,2872,1104,0,\"impl-From%3CConnectionError%3E-for-Error\"]Dg[7650,13,2571,2571,2872,1104,0,\"impl-From%3CConnectError%3E-for-Error\"]Dd[7650,13,2571,2571,2872,1104,0,\"impl-From%3CRecvError%3E-for-Error\"]Ao[7650,13,2571,2571,2872,1104,0]Ao[7650,13,2571,2571,6510,1104,0]Ao[7650,13,1076,1076,8225,1104,0]Am[7650,13,660,660,4901,1104,0]Dh[7650,13,660,660,4901,1104,0,\"impl-From%3CResolveError%3E-for-DnsError\"]Dc[7650,13,660,660,4901,1104,0,\"impl-From%3CElapsed%3E-for-DnsError\"]Dg[7650,13,660,660,7754,1104,0,\"impl-From%3CDnsError%3E-for-LookupError\"]Am[7650,13,660,660,7754,1104,0]Di[7650,13,660,660,7754,1104,0,\"impl-From%3CParseError%3E-for-LookupError\"]Am[7650,13,660,660,8489,1104,0]Am[7650,13,660,660,4397,1104,0]Am[7650,13,660,660,7733,1104,0]Am[7650,13,660,660,7735,1104,0]Am[7650,13,660,660,8285,1104,0]0Ao[7650,13,8301,8301,8242,1104,0]Ao[7650,13,8301,8301,8238,1104,0]Ao[7650,13,8301,8301,8126,1104,0]0Ao[7650,13,8301,8301,6434,1104,0]Ao[7650,13,8301,8301,4957,1104,0]Ao[7650,13,8301,8301,9245,1104,0]Ao[7650,13,8301,8301,8131,1104,0]0Dm[7650,13,8301,8301,6503,1104,0,\"impl-From%3CDecodingError%3E-for-ParseError\"]Di[7650,13,8301,8301,6503,1104,0,\"impl-From%3CUtf8Error%3E-for-ParseError\"]Ao[7650,13,8301,8301,6503,1104,0]Al[2305,13,2306,0,8122,1105,0]Al[2305,13,2306,0,8283,1105,0]Al[2305,13,2306,0,5941,1105,0]Al[2305,13,2306,0,4939,1105,0]Al[2305,13,8496,0,4956,1105,0]Al[2305,13,4978,0,3446,1105,0]Al[2305,13,4978,0,3418,1105,0]Ao[2305,13,4978,7699,3437,1105,0]Ao[2305,13,4978,4156,6459,1105,0]Ao[2305,13,4978,4156,8450,1105,0]Al[2305,13,4978,0,7749,1105,0]Al[2305,13,4978,0,1136,1105,0]Ak[2305,13,4978,0,356,1105,0]Al[2305,13,4978,0,4946,1105,0]Ao[6266,13,6267,8299,8123,1105,0]Ao[6266,13,6267,8299,8284,1105,0]Ao[6266,13,6267,1007,5942,1105,0]Ao[6266,13,6267,6292,4940,1105,0]Ao[7650,13,8301,8301,4957,1105,0]Ae[8844,2,8845,0,0,0,0]Al[8844,14,4087,4087,3390,0,0]Ae[7650,2,7651,0,0,0,0]Al[2305,13,2306,0,8122,5936,0]Al[2305,13,2306,0,8283,5936,0]Al[2305,13,2306,0,5941,5936,0]Al[2305,13,2306,0,8654,5936,0]Al[2305,13,2306,0,5958,5936,0]Al[2305,13,2306,0,5965,5936,0]Al[2305,13,2306,0,8486,5936,0]Al[2305,13,2306,0,4939,5936,0]Al[2305,13,2306,0,9047,5936,0]Al[2305,13,2306,0,4936,5936,0]Al[2305,13,2306,0,7765,5936,0]Al[2305,13,2306,0,5923,5936,0]Al[2305,13,4568,0,8477,5936,0]Al[2305,13,4568,0,8279,5936,0]Al[2305,13,4568,0,8153,5936,0]Ao[2305,13,4568,4568,8639,5936,0]Al[2305,13,4568,0,8889,5936,0]Al[2305,13,1075,0,8224,5936,0]Al[2305,13,8496,0,8125,5936,0]Al[2305,13,8496,0,6433,5936,0]Al[2305,13,8496,0,4956,5936,0]Al[2305,13,8496,0,8130,5936,0]Al[2305,13,8496,0,6501,5936,0]Ao[2305,13,8496,8496,9304,5936,0]Ao[2305,13,8496,8496,2871,5936,0]Ao[2305,13,8496,8496,1113,5936,0]Ao[2305,13,8496,8496,9270,5936,0]Ao[2305,13,4121,4121,8145,5936,0]Am[2305,13,659,659,8876,5936,0]Am[2305,13,659,659,9273,5936,0]Ao[2305,13,3331,3331,6507,5936,0]Ao[2305,13,3331,3331,9211,5936,0]Ao[2305,13,3331,3331,8476,5936,0]Ao[2305,13,3331,3331,9174,5936,0]Ao[2305,13,3331,3331,8272,5936,0]Ao[2305,13,3331,3331,8894,5936,0]Ao[2305,13,3331,3331,9277,5936,0]Am[2305,13,654,654,8874,5936,0]Am[2305,13,654,654,4396,5936,0]Ao[2305,13,2313,2313,8991,5936,0]Ao[2305,13,2313,2313,9294,5936,0]Ao[2305,13,2313,2313,8452,5936,0]Ak[2305,13,658,0,7734,5936,0]Al[2305,13,4978,0,4424,5936,0]Al[2305,13,4978,0,3415,5936,0]Al[2305,13,4978,0,5882,5936,0]Al[2305,13,4978,0,4885,5936,0]Al[2305,13,4978,0,8152,5936,0]Al[2305,13,4978,0,8159,5936,0]Al[2305,13,4978,0,8993,5936,0]Al[2305,13,4978,0,6514,5936,0]Al[2305,13,4978,0,9118,5936,0]Al[2305,13,4978,0,8483,5936,0]Al[2305,13,4978,0,5946,5936,0]Al[2305,13,4978,0,6516,5936,0]Al[2305,13,4978,0,8482,5936,0]Al[2305,13,4978,0,6524,5936,0]Al[2305,13,4978,0,6534,5936,0]Al[2305,13,4978,0,8164,5936,0]Al[2305,13,4978,0,6509,5936,0]Al[2305,13,4978,0,1114,5936,0]Ao[2305,13,4978,8197,8147,5936,0]Ao[2305,13,4978,8197,8892,5936,0]Ao[2305,13,4978,8197,7762,5936,0]Ao[2305,13,4978,8197,4931,5936,0]Ao[2305,13,4978,8094,6515,5936,0]Ao[2305,13,4978,8094,8997,5936,0]Ao[2305,13,4978,8094,9056,5936,0]Al[2305,13,4978,0,8686,5936,0]Al[2305,13,4978,0,9115,5936,0]Al[2305,13,4978,0,3446,5936,0]Al[2305,13,4978,0,9178,5936,0]Al[2305,13,4978,0,2850,5936,0]Al[2305,13,4978,0,3418,5936,0]Ao[2305,13,4978,7699,3437,5936,0]Al[2305,13,4978,0,8158,5936,0]Al[2305,13,4978,0,4954,5936,0]Al[2305,13,4978,0,6470,5936,0]Al[2305,13,4978,0,5935,5936,0]Al[2305,13,4978,0,8636,5936,0]Al[2305,13,4978,0,4459,5936,0]Al[2305,13,4978,0,8112,5936,0]Ao[2305,13,4978,4156,5891,5936,0]Ao[2305,13,4978,4156,6459,5936,0]Ao[2305,13,4978,4156,8450,5936,0]Al[2305,13,4978,0,8634,5936,0]Al[2305,13,4978,0,8676,5936,0]Ao[2305,13,4978,1163,4890,5936,0]Al[2305,13,4978,0,9026,5936,0]Ao[2305,13,4978,1163,8986,5936,0]Al[2305,13,4978,0,9043,5936,0]Al[2305,13,4978,0,7749,5936,0]Ao[2305,13,4978,7436,8135,5936,0]Al[2305,13,4978,0,9215,5936,0]Ao[2305,13,4978,7436,3376,5936,0]Ao[2305,13,4978,7436,4917,5936,0]Al[2305,13,4978,0,9306,5936,0]Ao[2305,13,4978,7436,6522,5936,0]Al[2305,13,4978,0,7729,5936,0]Al[2305,13,4978,0,9059,5936,0]Al[2305,13,4978,0,5907,5936,0]Ao[2305,13,4978,7436,9096,5936,0]Ao[2305,13,4978,7436,6446,5936,0]Ao[2305,13,4978,7436,5883,5936,0]Ao[2305,13,4978,7436,5888,5936,0]Ao[2305,13,4978,7436,8626,5936,0]Ao[2305,13,4978,7436,8291,5936,0]Ao[2305,13,4978,7436,6456,5936,0]Ao[2305,13,4978,7436,9037,5936,0]Ao[2305,13,4978,7436,8640,5936,0]Ao[2305,13,4978,7436,8671,5936,0]Ao[2305,13,4978,7436,9213,5936,0]Ao[2305,13,4978,7436,8443,5936,0]Ao[2305,13,4978,3318,9152,5936,0]Ao[2305,13,4978,3318,9207,5936,0]Ao[2305,13,4978,2570,9327,5936,0]Ao[2305,13,4978,2570,9113,5936,0]Ao[2305,13,4978,2570,9114,5936,0]Ao[2305,13,4978,2570,8161,5936,0]Ao[2305,13,4978,4978,4395,5936,0]Ao[2305,13,4978,4978,8244,5936,0]Ao[2305,13,4978,4978,4908,5936,0]Ao[2305,13,4978,4978,9154,5936,0]Ao[2305,13,4978,4978,8116,5936,0]Al[2305,13,4978,0,8628,5936,0]Ao[2305,13,4978,4978,8442,5936,0]Al[2305,13,4978,0,8869,5936,0]Ao[2305,13,4978,4978,8458,5936,0]Ao[2305,13,4978,4978,5954,5936,0]Al[2305,13,4978,0,8895,5936,0]Al[2305,13,4978,0,8494,5936,0]Al[2305,13,4978,0,9057,5936,0]Al[2305,13,4978,0,8977,5936,0]Al[2305,13,4978,0,1136,5936,0]Ak[2305,13,4978,0,356,5936,0]Al[2305,13,4978,0,4946,5936,0]Am[2305,13,4586,4586,16,5936,0]Ao[2305,13,4586,4586,8472,5936,0]Ao[2305,13,5185,5185,3429,5936,0]Ao[2305,13,5185,5185,8278,5936,0]Ao[2305,13,5185,5185,7721,5936,0]Ao[2305,13,5185,5185,7723,5936,0]Al[2305,13,8300,0,8241,5936,0]Al[2305,13,8300,0,8236,5936,0]Al[2305,13,8300,0,9244,5936,0]Ao[2305,13,7709,2568,8275,5936,0]Ao[2305,13,7709,7709,8870,5936,0]Ao[2305,13,7709,9220,8453,5936,0]Ao[7649,13,7650,7650,8877,5936,0]Ao[7649,13,7650,7650,9029,5936,0]Ao[7649,13,7650,7650,4893,5936,0]An[7649,13,7650,7650,367,5936,0]Ao[7649,13,7650,7650,7727,5936,0]Ao[7649,13,3355,3355,2900,5936,0]Ao[7649,13,3355,3355,7785,5936,0]Ao[7649,13,3355,3355,8492,5936,0]An[7649,13,1071,1071,368,5936,0]Ao[7650,13,7651,8199,7763,5936,0]Ao[7650,13,7651,6272,4923,5936,0]Ao[7650,13,7651,6290,4937,5936,0]Ao[7650,13,7651,6290,7766,5936,0]Ao[7650,13,7651,6290,8678,5936,0]Ao[7650,13,3826,1173,5962,5936,0]Ao[7650,13,3826,1173,5951,5936,0]Ao[7650,13,3826,3826,8117,5936,0]Ao[7650,13,3826,3826,5902,5936,0]Ao[7650,13,3826,3826,8228,5936,0]Ao[7650,13,3826,3826,3385,5936,0]Ao[7650,13,3826,3826,6440,5936,0]Ao[7650,13,3826,3826,8109,5936,0]Ao[7650,13,4149,4569,4422,5936,0]Ao[7650,13,4149,4569,8154,5936,0]Al[7650,13,4149,5188,8992,0,0]Ao[7650,13,4149,5188,8992,5936,0]Ao[7650,13,4149,4149,8162,5936,0]Ao[7650,13,4149,4149,7767,5936,0]Ao[7650,13,4149,4149,8105,5936,0]Ao[7650,13,4149,4149,3378,5936,0]Ao[7650,13,4149,4149,6511,5936,0]Ao[7650,13,4149,4149,5970,5936,0]Ao[7650,13,4149,4149,3408,5936,0]Ao[7650,13,4149,4149,8624,5936,0]Ao[7650,13,4149,4149,6438,5936,0]Ao[7650,13,4149,4149,3433,5936,0]Ao[7650,13,4149,4149,6528,5936,0]Ao[7650,13,4149,4149,8685,5936,0]Ao[7650,13,3827,3827,3391,5936,0]Ao[7650,13,3827,3827,3386,5936,0]Ao[7650,13,3827,3827,8881,5936,0]Ao[7650,13,3827,3827,8693,5936,0]Ao[7650,13,3827,3827,4945,5936,0]Ao[7650,13,3827,3827,9036,5936,0]Ao[7650,13,4614,4614,8276,5936,0]Ao[7650,13,4614,4614,5963,5936,0]Ao[7650,13,4614,4614,5952,5936,0]Ao[7650,13,4614,4614,8471,5936,0]Ao[7650,13,4614,4614,9103,5936,0]Ao[7650,13,4473,4473,4398,5936,0]Ao[7650,13,8033,8033,5971,5936,0]Ao[7650,13,8033,8033,9177,5936,0]Ao[7650,13,8033,8033,7722,5936,0]Ao[7650,13,8033,8033,9241,5936,0]Ao[7650,13,8033,8033,8156,5936,0]Ao[7650,13,8033,8033,4912,5936,0]Ao[7650,13,3836,3836,5908,5936,0]Ao[7650,13,3836,3836,8464,5936,0]Ao[7650,13,3338,3338,2874,5936,0]Ao[7650,13,3338,3338,8898,5936,0]Ao[7650,13,3338,3338,8872,5936,0]Ao[7650,13,3338,3338,5899,5936,0]Ao[7650,13,6252,6252,2873,5936,0]Ao[7650,13,6252,6252,9295,5936,0]Ao[7650,13,6252,6252,5922,5936,0]Ao[7650,13,2571,2571,2872,5936,0]Ao[7650,13,2571,2571,6510,5936,0]Ao[7650,13,1076,1076,8225,5936,0]Am[7650,13,660,660,4901,5936,0]Am[7650,13,660,660,7754,5936,0]Am[7650,13,660,660,8489,5936,0]Am[7650,13,660,660,4397,5936,0]Am[7650,13,660,660,7733,5936,0]Am[7650,13,660,660,7735,5936,0]Am[7650,13,660,660,8285,5936,0]Ao[7650,13,8301,8301,8242,5936,0]Ao[7650,13,8301,8301,8238,5936,0]Ao[7650,13,8301,8301,8126,5936,0]Ao[7650,13,8301,8301,6434,5936,0]Ao[7650,13,8301,8301,4957,5936,0]Ao[7650,13,8301,8301,9245,5936,0]Ao[7650,13,8301,8301,8131,5936,0]Ao[7650,13,8301,8301,6503,5936,0]Al[2305,13,2306,0,8122,1108,0]Al[2305,13,2306,0,8283,1108,0]Al[2305,13,2306,0,5941,1108,0]Al[2305,13,2306,0,8654,1108,0]Al[2305,13,2306,0,5958,1108,0]Al[2305,13,2306,0,5965,1108,0]Al[2305,13,2306,0,8486,1108,0]Al[2305,13,2306,0,4939,1108,0]Al[2305,13,2306,0,9047,1108,0]Al[2305,13,2306,0,4936,1108,0]Al[2305,13,2306,0,7765,1108,0]Al[2305,13,2306,0,5923,1108,0]Al[2305,13,4568,0,8477,1108,0]Al[2305,13,4568,0,8279,1108,0]Al[2305,13,4568,0,8153,1108,0]Ao[2305,13,4568,4568,8639,1108,0]Al[2305,13,4568,0,8889,1108,0]Al[2305,13,1075,0,8224,1108,0]Al[2305,13,8496,0,8125,1108,0]Al[2305,13,8496,0,6433,1108,0]Al[2305,13,8496,0,4956,1108,0]Al[2305,13,8496,0,8130,1108,0]Al[2305,13,8496,0,6501,1108,0]Ao[2305,13,8496,8496,9304,1108,0]Ao[2305,13,8496,8496,2871,1108,0]Ao[2305,13,8496,8496,1113,1108,0]Ao[2305,13,8496,8496,9270,1108,0]Ao[2305,13,4121,4121,8145,1108,0]Am[2305,13,659,659,8876,1108,0]Am[2305,13,659,659,9273,1108,0]Ao[2305,13,3331,3331,6507,1108,0]Ao[2305,13,3331,3331,9211,1108,0]Ao[2305,13,3331,3331,8476,1108,0]Ao[2305,13,3331,3331,9174,1108,0]Ao[2305,13,3331,3331,8272,1108,0]Ao[2305,13,3331,3331,8894,1108,0]Ao[2305,13,3331,3331,9277,1108,0]Am[2305,13,654,654,8874,1108,0]Am[2305,13,654,654,4396,1108,0]Ao[2305,13,2313,2313,8991,1108,0]Ao[2305,13,2313,2313,9294,1108,0]Ao[2305,13,2313,2313,8452,1108,0]Ak[2305,13,658,0,7734,1108,0]Al[2305,13,4978,0,4424,1108,0]Al[2305,13,4978,0,3415,1108,0]Al[2305,13,4978,0,5882,1108,0]Al[2305,13,4978,0,4885,1108,0]Al[2305,13,4978,0,8152,1108,0]Al[2305,13,4978,0,8159,1108,0]Al[2305,13,4978,0,8993,1108,0]Al[2305,13,4978,0,6514,1108,0]Al[2305,13,4978,0,9118,1108,0]Al[2305,13,4978,0,8483,1108,0]Al[2305,13,4978,0,5946,1108,0]Al[2305,13,4978,0,6516,1108,0]Al[2305,13,4978,0,8482,1108,0]Al[2305,13,4978,0,6524,1108,0]Al[2305,13,4978,0,6534,1108,0]Al[2305,13,4978,0,8164,1108,0]Al[2305,13,4978,0,6509,1108,0]Al[2305,13,4978,0,1114,1108,0]Ao[2305,13,4978,8197,8147,1108,0]Ao[2305,13,4978,8197,8892,1108,0]Ao[2305,13,4978,8197,7762,1108,0]Ao[2305,13,4978,8197,4931,1108,0]Ao[2305,13,4978,8094,6515,1108,0]Ao[2305,13,4978,8094,8997,1108,0]Ao[2305,13,4978,8094,9056,1108,0]Al[2305,13,4978,0,8686,1108,0]Al[2305,13,4978,0,9115,1108,0]Al[2305,13,4978,0,3446,1108,0]Al[2305,13,4978,0,9178,1108,0]Al[2305,13,4978,0,2850,1108,0]Al[2305,13,4978,0,3418,1108,0]Ao[2305,13,4978,7699,3437,1108,0]Al[2305,13,4978,0,8158,1108,0]Al[2305,13,4978,0,4954,1108,0]Al[2305,13,4978,0,6470,1108,0]Al[2305,13,4978,0,5935,1108,0]Al[2305,13,4978,0,8636,1108,0]Al[2305,13,4978,0,4459,1108,0]Al[2305,13,4978,0,8112,1108,0]Ao[2305,13,4978,4156,5891,1108,0]Ao[2305,13,4978,4156,6459,1108,0]Ao[2305,13,4978,4156,8450,1108,0]Al[2305,13,4978,0,8634,1108,0]Al[2305,13,4978,0,8676,1108,0]Ao[2305,13,4978,1163,4890,1108,0]Al[2305,13,4978,0,9026,1108,0]Ao[2305,13,4978,1163,8986,1108,0]Al[2305,13,4978,0,9043,1108,0]Al[2305,13,4978,0,7749,1108,0]Ao[2305,13,4978,7436,8135,1108,0]Al[2305,13,4978,0,9215,1108,0]Ao[2305,13,4978,7436,3376,1108,0]Ao[2305,13,4978,7436,4917,1108,0]Al[2305,13,4978,0,9306,1108,0]Ao[2305,13,4978,7436,6522,1108,0]Al[2305,13,4978,0,7729,1108,0]Al[2305,13,4978,0,9059,1108,0]Al[2305,13,4978,0,5907,1108,0]Ao[2305,13,4978,7436,9096,1108,0]Ao[2305,13,4978,7436,6446,1108,0]Ao[2305,13,4978,7436,5883,1108,0]Ao[2305,13,4978,7436,5888,1108,0]Ao[2305,13,4978,7436,8626,1108,0]Ao[2305,13,4978,7436,8291,1108,0]Ao[2305,13,4978,7436,6456,1108,0]Ao[2305,13,4978,7436,9037,1108,0]Ao[2305,13,4978,7436,8640,1108,0]Ao[2305,13,4978,7436,8671,1108,0]Ao[2305,13,4978,7436,9213,1108,0]Ao[2305,13,4978,7436,8443,1108,0]Ao[2305,13,4978,3318,9152,1108,0]Ao[2305,13,4978,3318,9207,1108,0]Ao[2305,13,4978,2570,9327,1108,0]Ao[2305,13,4978,2570,9113,1108,0]Ao[2305,13,4978,2570,9114,1108,0]Ao[2305,13,4978,2570,8161,1108,0]Ao[2305,13,4978,4978,4395,1108,0]Ao[2305,13,4978,4978,8244,1108,0]Ao[2305,13,4978,4978,4908,1108,0]Ao[2305,13,4978,4978,9154,1108,0]Ao[2305,13,4978,4978,8116,1108,0]Al[2305,13,4978,0,8628,1108,0]Ao[2305,13,4978,4978,8442,1108,0]Al[2305,13,4978,0,8869,1108,0]Ao[2305,13,4978,4978,8458,1108,0]Ao[2305,13,4978,4978,5954,1108,0]Al[2305,13,4978,0,8895,1108,0]Al[2305,13,4978,0,8494,1108,0]Al[2305,13,4978,0,9057,1108,0]Al[2305,13,4978,0,8977,1108,0]Al[2305,13,4978,0,1136,1108,0]Ak[2305,13,4978,0,356,1108,0]Al[2305,13,4978,0,4946,1108,0]Am[2305,13,4586,4586,16,1108,0]Ao[2305,13,4586,4586,8472,1108,0]Ao[2305,13,5185,5185,3429,1108,0]Ao[2305,13,5185,5185,8278,1108,0]Ao[2305,13,5185,5185,7721,1108,0]Ao[2305,13,5185,5185,7723,1108,0]Al[2305,13,8300,0,8241,1108,0]Al[2305,13,8300,0,8236,1108,0]Al[2305,13,8300,0,9244,1108,0]Ao[2305,13,7709,2568,8275,1108,0]Ao[2305,13,7709,7709,8870,1108,0]Ao[2305,13,7709,9220,8453,1108,0]Ao[6266,13,6267,8299,8123,1108,0]Ao[6266,13,6267,8299,8284,1108,0]Ao[6266,13,6267,1007,5942,1108,0]Ao[6266,13,6267,1007,8655,1108,0]Ao[6266,13,6267,1007,5959,1108,0]Ao[6266,13,6267,1007,5966,1108,0]Ao[6266,13,6267,1007,8487,1108,0]Ao[6266,13,6267,6292,4940,1108,0]Ao[6266,13,6267,6292,9048,1108,0]Ao[7649,13,7650,7650,8877,1108,0]Ao[7649,13,7650,7650,9029,1108,0]Ao[7649,13,7650,7650,4893,1108,0]An[7649,13,7650,7650,367,1108,0]Ao[7649,13,7650,7650,7727,1108,0]Ao[7649,13,3355,3355,2900,1108,0]Ao[7649,13,3355,3355,7785,1108,0]Ao[7649,13,3355,3355,8492,1108,0]An[7649,13,1071,1071,368,1108,0]Ao[8844,13,8845,3363,5981,1108,0]Ao[8844,13,3352,3352,4888,1108,0]Ao[8844,13,4087,4087,3390,1108,0]Ao[8844,13,4087,4087,7774,1108,0]Ao[8844,13,4087,4087,8270,1108,0]Ao[8844,13,4087,4087,8469,1108,0]Ao[8844,13,4087,4087,8622,1108,0]Am[8844,13,661,661,5904,1108,0]Am[8844,13,661,661,5903,1108,0]Am[8844,13,661,661,6462,1108,0]Am[8844,13,661,661,3398,1108,0]Ao[8844,13,1811,1811,6473,1108,0]Ao[8844,13,1811,8324,8677,1108,0]Ao[8844,13,1811,1077,4892,1108,0]Ao[8844,13,1811,1811,6472,1108,0]Ao[8844,13,1811,1811,7748,1108,0]Ao[8844,13,4570,4570,4420,1108,0]Ao[8844,13,4150,4150,3432,1108,0]Ao[7650,13,7651,8199,7763,1108,0]Ao[7650,13,7651,6272,4923,1108,0]Ao[7650,13,7651,6290,4937,1108,0]Ao[7650,13,7651,6290,7766,1108,0]Ao[7650,13,7651,6290,8678,1108,0]Ao[7650,13,3826,1173,5962,1108,0]Ao[7650,13,3826,1173,5951,1108,0]Ao[7650,13,3826,3826,8117,1108,0]Ao[7650,13,3826,3826,5902,1108,0]Ao[7650,13,3826,3826,8228,1108,0]Ao[7650,13,3826,3826,3385,1108,0]Ao[7650,13,3826,3826,6440,1108,0]Ao[7650,13,3826,3826,8109,1108,0]Ao[7650,13,4149,4569,4422,1108,0]Ao[7650,13,4149,4569,8154,1108,0]Ao[7650,13,4149,5188,8992,1108,0]Ao[7650,13,4149,4149,8162,1108,0]Ao[7650,13,4149,4149,7767,1108,0]Ao[7650,13,4149,4149,8105,1108,0]Ao[7650,13,4149,4149,3378,1108,0]Ao[7650,13,4149,4149,6511,1108,0]Ao[7650,13,4149,4149,5970,1108,0]Ao[7650,13,4149,4149,3408,1108,0]Ao[7650,13,4149,4149,8624,1108,0]Ao[7650,13,4149,4149,6438,1108,0]Ao[7650,13,4149,4149,3433,1108,0]Ao[7650,13,4149,4149,6528,1108,0]Ao[7650,13,4149,4149,8685,1108,0]Ao[7650,13,3827,3827,3391,1108,0]Ao[7650,13,3827,3827,3386,1108,0]Ao[7650,13,3827,3827,8881,1108,0]Ao[7650,13,3827,3827,8693,1108,0]Ao[7650,13,3827,3827,4945,1108,0]Ao[7650,13,3827,3827,9036,1108,0]Ao[7650,13,4614,4614,8276,1108,0]Ao[7650,13,4614,4614,5963,1108,0]Ao[7650,13,4614,4614,5952,1108,0]Ao[7650,13,4614,4614,8471,1108,0]Ao[7650,13,4614,4614,9103,1108,0]Ao[7650,13,4473,4473,4398,1108,0]Ao[7650,13,8033,8033,5971,1108,0]Ao[7650,13,8033,8033,9177,1108,0]Ao[7650,13,8033,8033,7722,1108,0]Ao[7650,13,8033,8033,9241,1108,0]Ao[7650,13,8033,8033,8156,1108,0]Ao[7650,13,8033,8033,4912,1108,0]Ao[7650,13,3836,3836,5908,1108,0]Ao[7650,13,3836,3836,8464,1108,0]Ao[7650,13,3338,3338,2874,1108,0]Ao[7650,13,3338,3338,8898,1108,0]Ao[7650,13,3338,3338,8872,1108,0]Ao[7650,13,3338,3338,5899,1108,0]Ao[7650,13,6252,6252,2873,1108,0]Ao[7650,13,6252,6252,9295,1108,0]Ao[7650,13,6252,6252,5922,1108,0]Ao[7650,13,2571,2571,2872,1108,0]Ao[7650,13,2571,2571,6510,1108,0]Ao[7650,13,1076,1076,8225,1108,0]Am[7650,13,660,660,4901,1108,0]Am[7650,13,660,660,7754,1108,0]Am[7650,13,660,660,8489,1108,0]Am[7650,13,660,660,4397,1108,0]Am[7650,13,660,660,7733,1108,0]Am[7650,13,660,660,7735,1108,0]Am[7650,13,660,660,8285,1108,0]Ao[7650,13,8301,8301,8242,1108,0]Ao[7650,13,8301,8301,8238,1108,0]Ao[7650,13,8301,8301,8126,1108,0]Ao[7650,13,8301,8301,6434,1108,0]Ao[7650,13,8301,8301,4957,1108,0]Ao[7650,13,8301,8301,9245,1108,0]Ao[7650,13,8301,8301,8131,1108,0]Ao[7650,13,8301,8301,6503,1108,0]Ai[7650,14,4900,0,7769,0,0]0Ab[2305,3,0,0,0,0,0]Ae[7649,2,7650,0,0,0,0]Al[2305,13,4978,8197,8147,0,0]Aj[7650,13,660,660,8489,0,0]Aj[7650,13,660,660,8285,0,0]Al[8844,13,4087,4087,3390,0,0]Ae[1166,7,1167,0,0,0,0]Ae[2305,2,8496,0,0,0,0]Al[2305,13,2306,0,8654,6529,0]Al[2305,13,2306,0,8486,6529,0]Al[2305,13,2306,0,9047,6529,0]Al[2305,13,8496,0,6501,6529,0]Ao[2305,13,8496,8496,9304,6529,0]Ao[2305,13,8496,8496,2871,6529,0]Ai[2305,14,2859,0,9108,0,0]Ai[2305,14,2859,0,5926,0,0]Ai[2305,14,2859,0,1139,0,0]Ao[2305,13,3331,3331,6507,6529,0]Ai[2305,14,6506,0,5938,0,0]Ai[2305,14,6506,0,3447,0,0]Ai[2305,14,6506,0,8641,0,0]Ai[2305,14,6506,0,4913,0,0]Ai[2305,14,6506,0,7745,0,0]Ai[2305,14,6506,0,7743,0,0]Ai[2305,14,6506,0,4904,0,0]Ai[2305,14,9303,0,1140,0,0]Ai[2305,14,9303,0,8455,0,0]Ai[2305,14,6496,0,8906,0,0]Ai[2305,14,6496,0,8433,0,0]Ai[2305,14,6496,0,5928,0,0]Ai[2305,14,6496,0,1145,0,0]Ai[2305,14,6496,0,8666,0,0]Ai[2305,14,6496,0,8230,0,0]Ao[2305,13,4978,4156,5891,6529,0]Ao[2305,13,4978,1163,8986,6529,0]Ao[2305,13,4978,7436,6522,6529,0]Ao[2305,13,4978,7436,9096,6529,0]Ao[2305,13,4978,7436,5888,6529,0]Ao[2305,13,4978,7436,8626,6529,0]Ao[2305,13,4978,7436,9213,6529,0]Ao[2305,13,4978,4978,8244,6529,0]Ao[2305,13,4978,4978,9154,6529,0]Ao[2305,13,4978,4978,8116,6529,0]Ai[2305,14,5890,0,4437,0,0]Ai[2305,14,5890,0,9030,0,0]Ai[2305,14,5890,0,9097,0,0]Ai[2305,14,5890,0,9242,0,0]Ai[2305,14,5890,0,9104,0,0]Ai[2305,14,5890,0,8219,0,0]Ai[2305,14,8113,0,4400,0,0]Ai[2305,14,8113,0,6442,0,0]Ai[2305,14,8113,0,6449,0,0]Ai[2305,14,8243,0,3387,0,0]Ai[2305,14,8985,0,5885,0,0]Ai[2305,14,8985,0,8265,0,0]Ai[2305,14,8985,0,6475,0,0]Ai[2305,14,8985,0,9159,0,0]Ai[2305,14,5887,0,8629,0,0]Ai[2305,14,5887,0,7786,0,0]Ai[2305,14,5887,0,8913,0,0]Ai[2305,14,9095,0,4941,0,0]Ai[2305,14,9095,0,3413,0,0]Ai[2305,14,8625,0,8630,0,0]Ai[2305,14,8625,0,8882,0,0]Ai[2305,14,8625,0,9291,0,0]Ai[2305,14,8625,0,8657,0,0]Ai[2305,14,9153,0,7771,0,0]Ai[2305,14,9153,0,5924,0,0]Ai[2305,14,9153,0,2884,0,0]Ai[2305,14,9153,0,9290,0,0]Ai[2305,14,9153,0,8656,0,0]Ai[2305,14,9153,0,8454,0,0]Ao[2305,13,5185,5185,7721,6529,0]Ai[2305,14,7719,0,6443,0,0]Ai[2305,14,7719,0,6450,0,0]Ai[2305,14,7719,0,9274,0,0]Ai[2305,14,7719,0,6491,0,0]Ai[2305,14,7719,0,1141,0,0]Ai[2305,14,8651,0,9099,0,0]Al[2305,13,8300,0,8241,6529,0]Al[2305,13,8300,0,8236,6529,0]Al[2305,13,8300,0,9244,6529,0]Ai[2305,14,6496,0,8906,0,0]Ai[2305,14,6496,0,8433,0,0]Ai[2305,14,6496,0,5928,0,0]Ai[2305,14,6496,0,1145,0,0]Ai[2305,14,6496,0,8666,0,0]Ai[2305,14,6496,0,8230,0,0]Ai[2305,14,8239,0,9167,0,0]Ai[2305,14,8239,0,8647,0,0]Ai[2305,14,8231,0,9038,0,0]Ai[2305,14,8231,0,8261,0,0]Ai[2305,14,8231,0,6478,0,0]Ao[6266,13,6267,1007,8655,6529,0]Ao[6266,13,6267,1007,8487,6529,0]Ao[6266,13,6267,6292,9048,6529,0]Ai[6266,14,8652,0,9100,0,0]Ao[7650,13,3826,1173,5962,6529,0]Ao[7650,13,3826,1173,5951,6529,0]Ao[7650,13,3826,3826,8117,6529,0]Ao[7650,13,3826,3826,5902,6529,0]Ai[7650,14,5949,0,4932,0,0]Ai[7650,14,5949,0,7775,0,0]Ai[7650,14,5960,0,7776,0,0]Ai[7650,14,5960,0,9161,0,0]Ai[7650,14,5960,0,7736,0,0]Ai[7650,14,8114,0,9106,0,0]Ai[7650,14,8114,0,8642,0,0]Ai[7650,14,8114,0,5977,0,0]Ai[7650,14,8114,0,5909,0,0]Ai[7650,14,8114,0,1101,0,0]Ai[7650,14,8114,0,9279,0,0]Ai[7650,14,8114,0,4455,0,0]Ai[7650,14,8114,0,9172,0,0]Ai[7650,14,8114,0,7757,0,0]Ah[7650,14,8114,0,374,0,0]Ai[7650,14,5901,0,8987,0,0]Ah[7650,14,5901,0,357,0,0]Ai[7650,14,5901,0,4442,0,0]Ag[7650,14,5901,0,10,0,0]Ai[7650,14,5901,0,6482,0,0]Ai[7650,14,5901,0,9312,0,0]Ai[7650,14,5901,0,8674,0,0]Ai[7650,14,5901,0,8150,0,0]Ai[7650,14,5901,0,9314,0,0]Ai[7650,14,5901,0,9252,0,0]Ao[7650,13,4149,4149,6528,6529,0]Ao[7650,13,4149,4149,8685,6529,0]Ao[7650,13,3827,3827,8881,6529,0]Ao[7650,13,3827,3827,8693,6529,0]Ao[7650,13,3827,3827,4945,6529,0]Ao[7650,13,3827,3827,9036,6529,0]Ai[7650,14,8880,0,8249,0,0]Ai[7650,14,8880,0,8902,0,0]Ai[7650,14,8880,0,1131,0,0]Ai[7650,14,8880,0,1134,0,0]Ai[7650,14,8692,0,3438,0,0]Ai[7650,14,8692,0,4443,0,0]Ai[7650,14,4944,0,8250,0,0]Ai[7650,14,4944,0,2875,0,0]Ai[7650,14,4944,0,7740,0,0]Ai[7650,14,4944,0,6494,0,0]Ai[7650,14,4944,0,8255,0,0]Ai[7650,14,4944,0,6535,0,0]Ai[7650,14,4944,0,5968,0,0]Ao[7650,13,4614,4614,5963,6529,0]Ao[7650,13,4614,4614,5952,6529,0]Ao[7650,13,4614,4614,9103,6529,0]Ai[7650,14,5950,0,2882,0,0]Ai[7650,14,5950,0,7777,0,0]Ai[7650,14,5961,0,7778,0,0]Ai[7650,14,5961,0,9162,0,0]Ai[7650,14,5961,0,7737,0,0]Ao[7650,13,8033,8033,9177,6529,0]Ao[7650,13,8033,8033,7722,6529,0]Ao[7650,13,8033,8033,9241,6529,0]Ai[7650,14,9240,0,3373,0,0]Ai[7650,14,9240,0,8637,0,0]Ai[7650,14,9240,0,8438,0,0]Ai[7650,14,9176,0,8165,0,0]Ai[7650,14,9176,0,8680,0,0]Ai[7650,14,9176,0,4444,0,0]Ai[7650,14,9176,0,8143,0,0]Ai[7650,14,9176,0,8989,0,0]Ai[7650,14,9176,0,2877,0,0]Ai[7650,14,9176,0,1106,0,0]Ai[7650,14,7720,0,5910,0,0]Ai[7650,14,7720,0,9317,0,0]Ai[7650,14,8684,0,4419,0,0]Ai[7650,14,8684,0,9266,0,0]Ai[7650,14,8684,0,5917,0,0]Ai[7650,14,8684,0,9249,0,0]Ai[7650,14,8684,0,8280,0,0]Ai[7650,14,6527,0,5919,0,0]Ai[7650,14,6527,0,5943,0,0]Ai[7650,14,6527,0,8490,0,0]Ai[7650,14,6527,0,8620,0,0]Ai[7650,14,6527,0,7758,0,0]Ai[7650,14,6527,0,8618,0,0]Ao[7650,13,3836,3836,8464,6529,0]Ai[7650,14,8459,0,8286,0,0]Ai[7650,14,8459,0,8911,0,0]Ao[7650,13,3338,3338,2874,6529,0]Ai[7650,14,2864,0,8689,0,0]Ai[7650,14,2864,0,8253,0,0]Ai[7650,14,2864,0,2896,0,0]Ai[7650,14,2864,0,8461,0,0]Ai[7650,14,2864,0,8886,0,0]Ai[7650,14,2864,0,8138,0,0]Ai[7650,14,2864,0,8884,0,0]Ai[7650,14,2864,0,9368,0,0]Ai[7650,14,2864,0,4951,0,0]Ao[7650,13,6252,6252,2873,6529,0]Ai[7650,14,2863,0,9268,0,0]Ai[7650,14,2863,0,5978,0,0]Ai[7650,14,2863,0,8287,0,0]Ai[7650,14,2863,0,8460,0,0]Ai[7650,14,2863,0,8899,0,0]Ai[7650,14,2863,0,9116,0,0]Ai[7650,14,2863,0,9157,0,0]Ao[7650,13,2571,2571,2872,6529,0]Ai[7650,14,2862,0,4401,0,0]Ai[7650,14,2862,0,6451,0,0]Ai[7650,14,2862,0,5975,0,0]Am[7650,13,660,660,4901,6529,0]Am[7650,13,660,660,7754,6529,0]Am[7650,13,660,660,8489,6529,0]Ai[7650,14,4900,0,4445,0,0]Ai[7650,14,4900,0,6488,0,0]Ai[7650,14,4900,0,7769,0,0]Ai[7650,14,4900,0,7755,0,0]Ai[7650,14,4900,0,4432,0,0]Ai[7650,14,4900,0,8645,0,0]Ai[7650,14,7753,0,6498,0,0]Ai[7650,14,7753,0,8141,0,0]Ao[7650,13,8301,8301,8242,6529,0]Ao[7650,13,8301,8301,8238,6529,0]Ao[7650,13,8301,8301,9245,6529,0]Ao[7650,13,8301,8301,6503,6529,0]Ai[7650,14,6499,0,8907,0,0]Ai[7650,14,6499,0,8434,0,0]Ai[7650,14,6499,0,5929,0,0]Ai[7650,14,6499,0,1146,0,0]Ai[7650,14,6499,0,8667,0,0]Ai[7650,14,6499,0,8233,0,0]Ai[7650,14,8240,0,9168,0,0]Ai[7650,14,8240,0,8648,0,0]Ai[7650,14,8232,0,9039,0,0]Ai[7650,14,8232,0,8262,0,0]Ai[7650,14,8232,0,6479,0,0]Al[2305,13,4568,0,8477,8146,0]Al[2305,13,4568,0,8279,8146,0]Al[2305,13,4568,0,8153,8146,0]Ao[2305,13,4568,4568,8639,8663,0]Al[2305,13,4568,0,8889,8146,0]Ai[2305,14,3436,0,8218,0,0]Ai[2305,14,3436,0,4926,0,0]Ao[8844,13,4570,4570,4420,8146,0]Ao[7650,13,4149,4569,4422,8146,0]Ao[7650,13,4149,4569,8154,8663,0]Ao[2305,13,4978,8197,8892,4922,0]Ai[2305,12,4978,0,4392,0,0]Ai[2305,12,2306,0,4458,0,0]Ao[2305,13,4978,8197,7762,4458,0]Ai[2305,14,4978,0,6470,0,0]Al[2305,13,4978,0,4424,3397,0]Al[2305,13,4978,0,3415,3397,0]Al[2305,13,4978,0,5882,3397,0]Al[2305,13,4978,0,4885,3397,0]Al[2305,13,4978,0,8152,3397,0]Al[2305,13,4978,0,8159,3397,0]Ao[2305,13,4978,7436,3376,3397,0]Ao[2305,13,4978,7436,6446,3397,0]Ao[2305,13,4978,7436,5883,3397,0]Ao[2305,13,4978,4978,8458,3397,0]Aj[8844,14,661,661,5903,0,0]Al[8844,14,1811,1811,6472,0,0]Al[8844,14,1811,1811,7748,0,0]Al[7650,14,7651,6290,8678,0,0]Ae[2305,2,4967,0,0,0,0]Ai[2305,14,2306,0,7765,0,0]Ae[7650,2,7651,0,0,0,0]Al[7650,14,7651,6290,7766,0,0]Al[7650,14,4149,4149,8162,0,0]Ai[2305,13,4978,0,6514,0,0]Ai[2305,13,4978,0,9115,0,0]:Ai[2305,12,4978,0,4392,0,0]Ai[2305,13,4978,0,9215,0,0]Al[2305,13,4978,7436,6456,0,0]Al[2305,13,4978,7436,8443,0,0]Ai[2305,13,2306,0,5958,0,0]Al[6266,13,6267,1007,5959,0,0]Al[7649,14,3355,3355,8492,0,0]Ai[7650,14,5960,0,9161,0,0]Ai[7650,14,5961,0,9162,0,0]:Ai[2305,13,4978,0,9118,0,0]3Ai[2305,13,2306,0,4936,0,0]Al[7650,13,7651,6290,4937,0,0]Al[2305,13,2306,0,8122,1150,0]Al[2305,13,2306,0,8283,1150,0]Al[2305,13,2306,0,5941,1150,0]Al[2305,13,2306,0,8654,1150,0]Al[2305,13,2306,0,5958,1150,0]Al[2305,13,2306,0,5965,1150,0]Al[2305,13,2306,0,8486,1150,0]Al[2305,13,2306,0,4939,1150,0]Al[2305,13,2306,0,9047,1150,0]Al[2305,13,2306,0,4936,1150,0]Al[2305,13,2306,0,7765,1150,0]Al[2305,13,2306,0,5923,1150,0]Al[2305,13,4568,0,8477,1150,0]Al[2305,13,4568,0,8279,1150,0]Al[2305,13,4568,0,8153,1150,0]Ao[2305,13,4568,4568,8639,1150,0]Al[2305,13,4568,0,8889,1150,0]Al[2305,13,1075,0,8224,1150,0]Al[2305,13,8496,0,8125,1150,0]Al[2305,13,8496,0,6433,1150,0]Al[2305,13,8496,0,4956,1150,0]Al[2305,13,8496,0,8130,1150,0]Al[2305,13,8496,0,6501,1150,0]Ao[2305,13,8496,8496,9304,1150,0]Ao[2305,13,8496,8496,2871,1150,0]Ao[2305,13,8496,8496,1113,1150,0]Ao[2305,13,8496,8496,9270,1150,0]Ao[2305,13,4121,4121,8145,1150,0]Am[2305,13,659,659,8876,1150,0]Am[2305,13,659,659,9273,1150,0]Ao[2305,13,3331,3331,6507,1150,0]Ao[2305,13,3331,3331,9211,1150,0]Ao[2305,13,3331,3331,8476,1150,0]Ao[2305,13,3331,3331,9174,1150,0]Ao[2305,13,3331,3331,8272,1150,0]Ao[2305,13,3331,3331,8894,1150,0]Ao[2305,13,3331,3331,9277,1150,0]Am[2305,13,654,654,8874,1150,0]Am[2305,13,654,654,4396,1150,0]Ao[2305,13,2313,2313,8991,1150,0]Ao[2305,13,2313,2313,9294,1150,0]Ao[2305,13,2313,2313,8452,1150,0]Ak[2305,13,658,0,7734,1150,0]Al[2305,13,4978,0,4424,1150,0]Al[2305,13,4978,0,3415,1150,0]Al[2305,13,4978,0,5882,1150,0]Al[2305,13,4978,0,4885,1150,0]Al[2305,13,4978,0,8152,1150,0]Al[2305,13,4978,0,8159,1150,0]Al[2305,13,4978,0,8993,1150,0]Al[2305,13,4978,0,6514,1150,0]Al[2305,13,4978,0,9118,1150,0]Al[2305,13,4978,0,8483,1150,0]Al[2305,13,4978,0,5946,1150,0]Al[2305,13,4978,0,6516,1150,0]Al[2305,13,4978,0,8482,1150,0]Al[2305,13,4978,0,6524,1150,0]Al[2305,13,4978,0,6534,1150,0]Al[2305,13,4978,0,8164,1150,0]Al[2305,13,4978,0,6509,1150,0]Al[2305,13,4978,0,1114,1150,0]Ao[2305,13,4978,8197,8147,1150,0]Ao[2305,13,4978,8197,8892,1150,0]Ao[2305,13,4978,8197,7762,1150,0]Ao[2305,13,4978,8197,4931,1150,0]Ao[2305,13,4978,8094,6515,1150,0]Ao[2305,13,4978,8094,8997,1150,0]Ao[2305,13,4978,8094,9056,1150,0]Al[2305,13,4978,0,8686,1150,0]Al[2305,13,4978,0,9115,1150,0]Al[2305,13,4978,0,3446,1150,0]Al[2305,13,4978,0,9178,1150,0]Al[2305,13,4978,0,2850,1150,0]Al[2305,13,4978,0,3418,1150,0]Ao[2305,13,4978,7699,3437,1150,0]Al[2305,13,4978,0,8158,1150,0]Al[2305,13,4978,0,4954,1150,0]Al[2305,13,4978,0,6470,1150,0]Al[2305,13,4978,0,5935,1150,0]Al[2305,13,4978,0,8636,1150,0]Al[2305,13,4978,0,4459,1150,0]Al[2305,13,4978,0,8112,1150,0]Ao[2305,13,4978,4156,5891,1150,0]Ao[2305,13,4978,4156,6459,1150,0]Ao[2305,13,4978,4156,8450,1150,0]Al[2305,13,4978,0,8634,1150,0]Al[2305,13,4978,0,8676,1150,0]Ao[2305,13,4978,1163,4890,1150,0]Al[2305,13,4978,0,9026,1150,0]Ao[2305,13,4978,1163,8986,1150,0]Al[2305,13,4978,0,9043,1150,0]Al[2305,13,4978,0,7749,1150,0]Ao[2305,13,4978,7436,8135,1150,0]Al[2305,13,4978,0,9215,1150,0]Ao[2305,13,4978,7436,3376,1150,0]Ao[2305,13,4978,7436,4917,1150,0]Al[2305,13,4978,0,9306,1150,0]Ao[2305,13,4978,7436,6522,1150,0]Al[2305,13,4978,0,7729,1150,0]Al[2305,13,4978,0,9059,1150,0]Al[2305,13,4978,0,5907,1150,0]Ao[2305,13,4978,7436,9096,1150,0]Ao[2305,13,4978,7436,6446,1150,0]Ao[2305,13,4978,7436,5883,1150,0]Ao[2305,13,4978,7436,5888,1150,0]Ao[2305,13,4978,7436,8626,1150,0]Ao[2305,13,4978,7436,8291,1150,0]Ao[2305,13,4978,7436,6456,1150,0]Ao[2305,13,4978,7436,9037,1150,0]Ao[2305,13,4978,7436,8640,1150,0]Ao[2305,13,4978,7436,8671,1150,0]Ao[2305,13,4978,7436,9213,1150,0]Ao[2305,13,4978,7436,8443,1150,0]Ao[2305,13,4978,3318,9152,1150,0]Ao[2305,13,4978,3318,9207,1150,0]Ao[2305,13,4978,2570,9327,1150,0]Ao[2305,13,4978,2570,9113,1150,0]Ao[2305,13,4978,2570,9114,1150,0]Ao[2305,13,4978,2570,8161,1150,0]Ao[2305,13,4978,4978,4395,1150,0]Ao[2305,13,4978,4978,8244,1150,0]Ao[2305,13,4978,4978,4908,1150,0]Ao[2305,13,4978,4978,9154,1150,0]Ao[2305,13,4978,4978,8116,1150,0]Al[2305,13,4978,0,8628,1150,0]Ao[2305,13,4978,4978,8442,1150,0]Al[2305,13,4978,0,8869,1150,0]Ao[2305,13,4978,4978,8458,1150,0]Ao[2305,13,4978,4978,5954,1150,0]Al[2305,13,4978,0,8895,1150,0]Al[2305,13,4978,0,8494,1150,0]Al[2305,13,4978,0,9057,1150,0]Al[2305,13,4978,0,8977,1150,0]Al[2305,13,4978,0,1136,1150,0]Ak[2305,13,4978,0,356,1150,0]Al[2305,13,4978,0,4946,1150,0]Am[2305,13,4586,4586,16,1150,0]Ao[2305,13,4586,4586,8472,1150,0]Ao[2305,13,5185,5185,3429,1150,0]Ao[2305,13,5185,5185,8278,1150,0]Ao[2305,13,5185,5185,7721,1150,0]Ao[2305,13,5185,5185,7723,1150,0]Al[2305,13,8300,0,8241,1150,0]Al[2305,13,8300,0,8236,1150,0]Al[2305,13,8300,0,9244,1150,0]Ao[2305,13,7709,2568,8275,1150,0]Ao[2305,13,7709,7709,8870,1150,0]Ao[2305,13,7709,9220,8453,1150,0]Ao[7649,13,7650,7650,8877,1150,0]Ao[7649,13,7650,7650,9029,1150,0]Ao[7649,13,7650,7650,4893,1150,0]An[7649,13,7650,7650,367,1150,0]Ao[7649,13,7650,7650,7727,1150,0]Ao[7649,13,3355,3355,2900,1150,0]Ao[7649,13,3355,3355,7785,1150,0]Ao[7649,13,3355,3355,8492,1150,0]An[7649,13,1071,1071,368,1150,0]Ao[8844,13,8845,3363,5981,1150,0]Ao[8844,13,3352,3352,4888,1150,0]Ao[8844,13,4087,4087,3390,1150,0]Ao[8844,13,4087,4087,7774,1150,0]Ao[8844,13,4087,4087,8270,1150,0]Ao[8844,13,4087,4087,8469,1150,0]Ao[8844,13,4087,4087,8622,1150,0]Am[8844,13,661,661,5904,1150,0]Am[8844,13,661,661,5903,1150,0]Am[8844,13,661,661,6462,1150,0]Am[8844,13,661,661,3398,1150,0]Ao[8844,13,1811,1811,6473,1150,0]Ao[8844,13,1811,8324,8677,1150,0]Ao[8844,13,1811,1077,4892,1150,0]Ao[8844,13,1811,1811,6472,1150,0]Ao[8844,13,1811,1811,7748,1150,0]Ao[8844,13,4570,4570,4420,1150,0]Ao[8844,13,4150,4150,3432,1150,0]Ao[7650,13,7651,8199,7763,1150,0]Ao[7650,13,7651,6272,4923,1150,0]Ao[7650,13,7651,6290,4937,1150,0]Ao[7650,13,7651,6290,7766,1150,0]Ao[7650,13,7651,6290,8678,1150,0]Ao[7650,13,3826,1173,5962,1150,0]Ao[7650,13,3826,1173,5951,1150,0]Ao[7650,13,3826,3826,8117,1150,0]Ao[7650,13,3826,3826,5902,1150,0]Ao[7650,13,3826,3826,8228,1150,0]Ao[7650,13,3826,3826,3385,1150,0]Ao[7650,13,3826,3826,6440,1150,0]Ao[7650,13,3826,3826,8109,1150,0]Ao[7650,13,4149,4569,4422,1150,0]Ao[7650,13,4149,4569,8154,1150,0]Ao[7650,13,4149,5188,8992,1150,0]Ao[7650,13,4149,4149,8162,1150,0]Ao[7650,13,4149,4149,7767,1150,0]Ao[7650,13,4149,4149,8105,1150,0]Ao[7650,13,4149,4149,3378,1150,0]Ao[7650,13,4149,4149,6511,1150,0]Ao[7650,13,4149,4149,5970,1150,0]Ao[7650,13,4149,4149,3408,1150,0]Ao[7650,13,4149,4149,8624,1150,0]Ao[7650,13,4149,4149,6438,1150,0]Ao[7650,13,4149,4149,3433,1150,0]Ao[7650,13,4149,4149,6528,1150,0]Ao[7650,13,4149,4149,8685,1150,0]Ao[7650,13,3827,3827,3391,1150,0]Ao[7650,13,3827,3827,3386,1150,0]Ao[7650,13,3827,3827,8881,1150,0]Ao[7650,13,3827,3827,8693,1150,0]Ao[7650,13,3827,3827,4945,1150,0]Ao[7650,13,3827,3827,9036,1150,0]Ao[7650,13,4614,4614,8276,1150,0]Ao[7650,13,4614,4614,5963,1150,0]Ao[7650,13,4614,4614,5952,1150,0]Ao[7650,13,4614,4614,8471,1150,0]Ao[7650,13,4614,4614,9103,1150,0]Ao[7650,13,4473,4473,4398,1150,0]Ao[7650,13,8033,8033,5971,1150,0]Ao[7650,13,8033,8033,9177,1150,0]Ao[7650,13,8033,8033,7722,1150,0]Ao[7650,13,8033,8033,9241,1150,0]Ao[7650,13,8033,8033,8156,1150,0]Ao[7650,13,8033,8033,4912,1150,0]Ao[7650,13,3836,3836,5908,1150,0]Ao[7650,13,3836,3836,8464,1150,0]Ao[7650,13,3338,3338,2874,1150,0]Ao[7650,13,3338,3338,8898,1150,0]Ao[7650,13,3338,3338,8872,1150,0]Ao[7650,13,3338,3338,5899,1150,0]Ao[7650,13,6252,6252,2873,1150,0]Ao[7650,13,6252,6252,9295,1150,0]Ao[7650,13,6252,6252,5922,1150,0]Ao[7650,13,2571,2571,2872,1150,0]Ao[7650,13,2571,2571,6510,1150,0]Ao[7650,13,1076,1076,8225,1150,0]Am[7650,13,660,660,4901,1150,0]Am[7650,13,660,660,7754,1150,0]Am[7650,13,660,660,8489,1150,0]Am[7650,13,660,660,4397,1150,0]Am[7650,13,660,660,7733,1150,0]Am[7650,13,660,660,7735,1150,0]Am[7650,13,660,660,8285,1150,0]Ao[7650,13,8301,8301,8242,1150,0]Ao[7650,13,8301,8301,8238,1150,0]Ao[7650,13,8301,8301,8126,1150,0]Ao[7650,13,8301,8301,6434,1150,0]Ao[7650,13,8301,8301,4957,1150,0]Ao[7650,13,8301,8301,9245,1150,0]Ao[7650,13,8301,8301,8131,1150,0]Ao[7650,13,8301,8301,6503,1150,0]Al[7650,15,4149,4149,3378,0,0]Ah[2305,5,4978,5987,0,0,0]Ae[2305,6,8496,0,0,0,0]Ae[7650,6,2571,0,0,0,0]Ae[7650,6,6252,0,0,0,0]Ae[7650,6,3338,0,0,0,0]Al[7650,15,3827,3827,4945,0,0]Al[7650,15,8033,8033,9177,0,0]Aj[7650,15,660,660,7733,0,0]Al[2305,15,4978,4156,8450,0,0]Al[7650,15,4614,4614,8471,0,0]Al[7650,15,4614,4614,5952,0,0]Al[2305,15,4978,4978,9154,0,0]Al[7649,15,7650,7650,8877,0,0]Al[7649,15,7650,7650,9029,0,0]Al[7649,15,7650,7650,4893,0,0]Ai[2305,15,2306,0,8283,0,0]Al[2305,15,4978,7699,3437,0,0]Al[2305,15,4978,7436,8135,0,0]Al[6266,15,6267,8299,8284,0,0]Ai[2305,15,4978,0,5946,0,0]Ai[2305,15,4978,0,8634,0,0]Al[7650,15,3338,3338,2874,0,0]Al[8844,15,1811,8324,8677,0,0]Ae[7649,5,3355,0,0,0,0]Ai[2305,17,2306,0,4458,0,0]Ai[2305,14,2306,0,8122,0,0]Ai[2305,13,8496,0,8125,0,0]Al[2305,13,4978,8094,6515,0,0]Al[6266,14,6267,8299,8123,0,0]Al[7650,13,8301,8301,8126,0,0]Al[2305,13,4978,4978,4395,0,0]Ai[2305,13,8496,0,6433,0,0]Al[2305,12,4586,4586,3420,0,0]Am[2305,13,4586,4586,16,3420,0]Ao[2305,13,4586,4586,8472,3420,0]Al[7650,13,8301,8301,6434,0,0]Aj[2305,13,659,659,9273,0,0]Al[2305,13,3331,3331,9211,0,0]Al[2305,13,3331,3331,9174,0,0]Al[2305,13,3331,3331,9277,0,0]Aj[2305,13,654,654,4396,0,0]Al[2305,13,2313,2313,9294,0,0]Ai[2305,12,4978,0,8976,0,0]Al[2305,13,4978,2570,9327,0,0]Al[2305,13,4978,2570,9114,0,0]Aj[7650,13,660,660,4397,0,0]Ai[2305,14,4978,0,2850,0,0]Ai[2305,14,4978,0,4954,0,0]Ai[2305,14,4978,0,4459,0,0]Ai[7650,14,6437,0,3410,0,0]Al[2305,13,8496,8496,9270,0,0]Al[2305,13,2306,0,8122,2851,0]Al[2305,13,2306,0,8283,2851,0]Al[2305,13,2306,0,5941,2851,0]Al[2305,13,2306,0,5958,2851,0]Al[2305,13,2306,0,5965,2851,0]Al[2305,13,2306,0,4939,2851,0]Al[2305,13,2306,0,4936,2851,0]Al[2305,13,2306,0,7765,2851,0]Al[2305,13,2306,0,5923,2851,0]Ao[2305,13,4568,4568,8639,2851,0]Al[2305,13,1075,0,8224,2851,0]Al[2305,13,8496,0,8125,2851,0]Al[2305,13,8496,0,6433,2851,0]Al[2305,13,8496,0,4956,2851,0]Al[2305,13,8496,0,8130,2851,0]Ao[2305,13,8496,8496,2871,2851,0]Ao[2305,13,8496,8496,1113,2851,0]Ao[2305,13,8496,8496,9270,2851,0]Ao[2305,13,4121,4121,8145,2851,0]Ao[2305,13,3331,3331,8476,2851,0]Ao[2305,13,3331,3331,8272,2851,0]Ao[2305,13,3331,3331,8894,2851,0]Ao[2305,13,3331,3331,9277,2851,0]Am[2305,13,654,654,8874,2851,0]Ao[2305,13,2313,2313,8991,2851,0]Ao[2305,13,2313,2313,8452,2851,0]Ak[2305,13,658,0,7734,2851,0]Al[2305,13,4978,0,8993,2851,0]Al[2305,13,4978,0,8483,2851,0]Al[2305,13,4978,0,5946,2851,0]Al[2305,13,4978,0,6516,2851,0]Al[2305,13,4978,0,8482,2851,0]Al[2305,13,4978,0,6534,2851,0]Al[2305,13,4978,0,8164,2851,0]Ao[2305,13,4978,8197,8147,2851,0]Ao[2305,13,4978,8197,7762,2851,0]Ao[2305,13,4978,8197,4931,2851,0]Ao[2305,13,4978,8094,6515,2851,0]Ao[2305,13,4978,8094,8997,2851,0]Ao[2305,13,4978,8094,9056,2851,0]Al[2305,13,4978,0,9115,2851,0]Al[2305,13,4978,0,3446,2851,0]Al[2305,13,4978,0,9178,2851,0]Al[2305,13,4978,0,3418,2851,0]Ao[2305,13,4978,7699,3437,2851,0]Al[2305,13,4978,0,8158,2851,0]Al[2305,13,4978,0,4954,2851,0]Al[2305,13,4978,0,6470,2851,0]Al[2305,13,4978,0,5935,2851,0]Al[2305,13,4978,0,8636,2851,0]Al[2305,13,4978,0,4459,2851,0]Al[2305,13,4978,0,8112,2851,0]Ao[2305,13,4978,4156,6459,2851,0]Ao[2305,13,4978,4156,8450,2851,0]Al[2305,13,4978,0,8634,2851,0]Ao[2305,13,4978,1163,4890,2851,0]Al[2305,13,4978,0,9026,2851,0]Al[2305,13,4978,0,9043,2851,0]Al[2305,13,4978,0,7749,2851,0]Ao[2305,13,4978,7436,8135,2851,0]Al[2305,13,4978,0,9215,2851,0]Al[2305,13,4978,0,5907,2851,0]Ao[2305,13,4978,7436,9096,2851,0]Ao[2305,13,4978,7436,8626,2851,0]Ao[2305,13,4978,7436,8291,2851,0]Ao[2305,13,4978,7436,6456,2851,0]Ao[2305,13,4978,7436,9037,2851,0]Ao[2305,13,4978,7436,8640,2851,0]Ao[2305,13,4978,7436,8671,2851,0]Ao[2305,13,4978,7436,9213,2851,0]Ao[2305,13,4978,7436,8443,2851,0]Ao[2305,13,4978,2570,9327,2851,0]Ao[2305,13,4978,2570,9113,2851,0]Ao[2305,13,4978,2570,9114,2851,0]Ao[2305,13,4978,2570,8161,2851,0]Ao[2305,13,4978,4978,4908,2851,0]Al[2305,13,4978,0,8628,2851,0]Ao[2305,13,4978,4978,8442,2851,0]Al[2305,13,4978,0,8869,2851,0]Ao[2305,13,4978,4978,5954,2851,0]Al[2305,13,4978,0,8895,2851,0]Al[2305,13,4978,0,8494,2851,0]Al[2305,13,4978,0,9057,2851,0]Al[2305,13,4978,0,1136,2851,0]Ak[2305,13,4978,0,356,2851,0]Al[2305,13,4978,0,4946,2851,0]Am[2305,13,4586,4586,16,2851,0]Ao[2305,13,4586,4586,8472,2851,0]Ao[2305,13,5185,5185,3429,2851,0]Ao[2305,13,5185,5185,7723,2851,0]Ao[2305,13,7709,2568,8275,2851,0]Ao[6266,13,6267,8299,8123,2851,0]Ao[6266,13,6267,8299,8284,2851,0]Ao[6266,13,6267,1007,5942,2851,0]Ao[6266,13,6267,1007,5959,2851,0]Ao[6266,13,6267,1007,5966,2851,0]Ao[6266,13,6267,6292,4940,2851,0]Ao[7649,13,7650,7650,4893,2851,0]An[7649,13,7650,7650,367,2851,0]An[7649,13,1071,1071,368,2851,0]Ao[8844,13,8845,3363,5981,2851,0]Ao[8844,13,3352,3352,4888,2851,0]Ao[8844,13,4087,4087,7774,2851,0]Am[8844,13,661,661,5903,2851,0]Am[8844,13,661,661,6462,2851,0]Am[8844,13,661,661,3398,2851,0]Ao[8844,13,1811,8324,8677,2851,0]Ao[8844,13,1811,1077,4892,2851,0]Ao[8844,13,1811,1811,6472,2851,0]Ao[8844,13,1811,1811,7748,2851,0]Ao[7650,13,7651,6272,4923,2851,0]Ao[7650,13,7651,6290,4937,2851,0]Ao[7650,13,7651,6290,7766,2851,0]Ao[7650,13,7651,6290,8678,2851,0]Ao[7650,13,3826,3826,8228,2851,0]Ao[7650,13,4149,4569,8154,2851,0]Ao[7650,13,4149,4149,3378,2851,0]Ao[7650,13,4149,4149,8624,2851,0]Ao[7650,13,4473,4473,4398,2851,0]Ao[7650,13,8033,8033,5971,2851,0]Ao[7650,13,8033,8033,8156,2851,0]Ao[7650,13,3836,3836,5908,2851,0]Ao[7650,13,3338,3338,8898,2851,0]Ao[7650,13,3338,3338,8872,2851,0]Ao[7650,13,3338,3338,5899,2851,0]Ao[7650,13,6252,6252,5922,2851,0]Ao[7650,13,2571,2571,6510,2851,0]Ao[7650,13,1076,1076,8225,2851,0]Am[7650,13,660,660,4397,2851,0]Am[7650,13,660,660,7733,2851,0]Am[7650,13,660,660,7735,2851,0]Am[7650,13,660,660,8285,2851,0]Ao[7650,13,8301,8301,8126,2851,0]Ao[7650,13,8301,8301,6434,2851,0]Ao[7650,13,8301,8301,4957,2851,0]Ao[7650,13,8301,8301,8131,2851,0]Al[2305,13,4978,7436,6456,0,0]Al[2305,13,4978,4978,4908,0,0]Al[7649,13,7650,7650,8877,0,0]Al[7649,13,7650,7650,9029,0,0]Al[2305,13,2306,0,8122,5936,0]Al[2305,13,2306,0,8283,5936,0]Al[2305,13,2306,0,5941,2854,0]Al[2305,13,2306,0,5941,5936,0]Al[2305,13,2306,0,8654,5936,0]Al[2305,13,2306,0,5958,5936,0]Al[2305,13,2306,0,5965,5936,0]Al[2305,13,2306,0,8486,5936,0]Al[2305,13,2306,0,4939,5936,0]Al[2305,13,2306,0,4939,2854,0]Al[2305,13,2306,0,9047,5936,0]Al[2305,13,2306,0,4936,5936,0]Al[2305,13,2306,0,7765,5936,0]Al[2305,13,2306,0,5923,5936,0]Al[2305,13,4568,0,8477,5936,0]Al[2305,13,4568,0,8279,5936,0]Al[2305,13,4568,0,8153,5936,0]Ao[2305,13,4568,4568,8639,5936,0]Al[2305,13,4568,0,8889,5936,0]Al[2305,13,1075,0,8224,5936,0]Al[2305,13,8496,0,8125,5936,0]Al[2305,13,8496,0,6433,5936,0]Al[2305,13,8496,0,4956,5936,0]Al[2305,13,8496,0,8130,2854,0]Al[2305,13,8496,0,8130,5936,0]Al[2305,13,8496,0,6501,5936,0]Ao[2305,13,8496,8496,9304,5936,0]Ao[2305,13,8496,8496,2871,5936,0]Ao[2305,13,8496,8496,1113,2854,0]Ao[2305,13,8496,8496,1113,5936,0]Ao[2305,13,8496,8496,9270,5936,0]Ao[2305,13,4121,4121,8145,5936,0]Am[2305,13,659,659,8876,5936,0]Am[2305,13,659,659,9273,5936,0]Ao[2305,13,3331,3331,6507,5936,0]Ao[2305,13,3331,3331,9211,5936,0]Ao[2305,13,3331,3331,8476,5936,0]Ao[2305,13,3331,3331,9174,5936,0]Ao[2305,13,3331,3331,8272,5936,0]Ao[2305,13,3331,3331,8894,5936,0]Ao[2305,13,3331,3331,9277,5936,0]Am[2305,13,654,654,8874,5936,0]Am[2305,13,654,654,4396,5936,0]Ao[2305,13,2313,2313,8991,5936,0]Ao[2305,13,2313,2313,9294,5936,0]Ao[2305,13,2313,2313,8452,5936,0]Ak[2305,13,658,0,7734,5936,0]Al[2305,13,4978,0,4424,5936,0]Al[2305,13,4978,0,3415,5936,0]Al[2305,13,4978,0,5882,5936,0]Al[2305,13,4978,0,4885,5936,0]Al[2305,13,4978,0,8152,5936,0]Al[2305,13,4978,0,8159,5936,0]Al[2305,13,4978,0,8993,5936,0]Al[2305,13,4978,0,6514,5936,0]Al[2305,13,4978,0,9118,5936,0]Al[2305,13,4978,0,8483,5936,0]Al[2305,13,4978,0,5946,5936,0]Al[2305,13,4978,0,6516,5936,0]Al[2305,13,4978,0,8482,5936,0]Al[2305,13,4978,0,6524,5936,0]Al[2305,13,4978,0,6534,5936,0]Al[2305,13,4978,0,8164,5936,0]Al[2305,13,4978,0,6509,5936,0]Al[2305,13,4978,0,1114,5936,0]Ao[2305,13,4978,8197,8147,5936,0]Ao[2305,13,4978,8197,8892,5936,0]Ao[2305,13,4978,8197,7762,5936,0]Ao[2305,13,4978,8197,4931,5936,0]Ao[2305,13,4978,8094,6515,5936,0]Ao[2305,13,4978,8094,8997,5936,0]Ao[2305,13,4978,8094,9056,5936,0]Al[2305,13,4978,0,8686,5936,0]Al[2305,13,4978,0,9115,5936,0]Al[2305,13,4978,0,3446,5936,0]Al[2305,13,4978,0,9178,5936,0]Al[2305,13,4978,0,2850,5936,0]Al[2305,13,4978,0,3418,5936,0]Ao[2305,13,4978,7699,3437,5936,0]Al[2305,13,4978,0,8158,5936,0]Al[2305,13,4978,0,4954,5936,0]Al[2305,13,4978,0,6470,5936,0]Al[2305,13,4978,0,5935,5936,0]Al[2305,13,4978,0,8636,5936,0]Al[2305,13,4978,0,4459,5936,0]Al[2305,13,4978,0,8112,5936,0]Ao[2305,13,4978,4156,5891,5936,0]Ao[2305,13,4978,4156,6459,5936,0]Ao[2305,13,4978,4156,8450,5936,0]Al[2305,13,4978,0,8634,5936,0]Al[2305,13,4978,0,8676,5936,0]Ao[2305,13,4978,1163,4890,5936,0]Al[2305,13,4978,0,9026,5936,0]Ao[2305,13,4978,1163,8986,5936,0]Al[2305,13,4978,0,9043,5936,0]Al[2305,13,4978,0,7749,5936,0]Ao[2305,13,4978,7436,8135,5936,0]Al[2305,13,4978,0,9215,5936,0]Ao[2305,13,4978,7436,3376,5936,0]Ao[2305,13,4978,7436,4917,5936,0]Al[2305,13,4978,0,9306,5936,0]Ao[2305,13,4978,7436,6522,5936,0]Al[2305,13,4978,0,7729,5936,0]Al[2305,13,4978,0,9059,5936,0]Al[2305,13,4978,0,5907,5936,0]Ao[2305,13,4978,7436,9096,5936,0]Ao[2305,13,4978,7436,6446,5936,0]Ao[2305,13,4978,7436,5883,5936,0]Ao[2305,13,4978,7436,5888,5936,0]Ao[2305,13,4978,7436,8626,5936,0]Ao[2305,13,4978,7436,8291,5936,0]Ao[2305,13,4978,7436,6456,5936,0]Ao[2305,13,4978,7436,9037,5936,0]Ao[2305,13,4978,7436,8640,5936,0]Ao[2305,13,4978,7436,8671,5936,0]Ao[2305,13,4978,7436,9213,5936,0]Ao[2305,13,4978,7436,8443,5936,0]Ao[2305,13,4978,3318,9152,5936,0]Ao[2305,13,4978,3318,9207,5936,0]Ao[2305,13,4978,2570,9327,5936,0]Ao[2305,13,4978,2570,9113,5936,0]Ao[2305,13,4978,2570,9114,5936,0]Ao[2305,13,4978,2570,8161,5936,0]Ao[2305,13,4978,4978,4395,5936,0]Ao[2305,13,4978,4978,8244,5936,0]Ao[2305,13,4978,4978,4908,5936,0]Ao[2305,13,4978,4978,9154,5936,0]Ao[2305,13,4978,4978,8116,5936,0]Al[2305,13,4978,0,8628,5936,0]Ao[2305,13,4978,4978,8442,5936,0]Al[2305,13,4978,0,8869,5936,0]Ao[2305,13,4978,4978,8458,5936,0]Ao[2305,13,4978,4978,5954,5936,0]Al[2305,13,4978,0,8895,5936,0]Al[2305,13,4978,0,8494,5936,0]Al[2305,13,4978,0,9057,5936,0]Al[2305,13,4978,0,8977,5936,0]Al[2305,13,4978,0,1136,5936,0]Ak[2305,13,4978,0,356,5936,0]Al[2305,13,4978,0,4946,5936,0]Am[2305,13,4586,4586,16,5936,0]Ao[2305,13,4586,4586,8472,5936,0]Ao[2305,13,5185,5185,3429,5936,0]Ao[2305,13,5185,5185,8278,5936,0]Ao[2305,13,5185,5185,7721,5936,0]Ao[2305,13,5185,5185,7723,5936,0]Al[2305,13,8300,0,8241,5936,0]Al[2305,13,8300,0,8236,5936,0]Al[2305,13,8300,0,9244,5936,0]Ao[2305,13,7709,2568,8275,5936,0]Ao[2305,13,7709,7709,8870,5936,0]Ao[2305,13,7709,9220,8453,5936,0]Ao[6266,13,6267,1007,5942,2854,0]Ao[6266,13,6267,6292,4940,2854,0]Ao[7649,13,7650,7650,8877,5936,0]Ao[7649,13,7650,7650,9029,5936,0]Ao[7649,13,7650,7650,4893,5936,0]An[7649,13,7650,7650,367,5936,0]Ao[7649,13,7650,7650,7727,5936,0]Ao[7649,13,3355,3355,2900,5936,0]Ao[7649,13,3355,3355,7785,5936,0]Ao[7649,13,3355,3355,8492,5936,0]An[7649,13,1071,1071,368,5936,0]Ao[7650,13,7651,8199,7763,5936,0]Ao[7650,13,7651,6272,4923,5936,0]Ao[7650,13,7651,6290,4937,5936,0]Ao[7650,13,7651,6290,7766,5936,0]Ao[7650,13,7651,6290,8678,5936,0]Ao[7650,13,3826,1173,5962,5936,0]Ao[7650,13,3826,1173,5951,5936,0]Ao[7650,13,3826,3826,8117,5936,0]Ao[7650,13,3826,3826,5902,5936,0]Ao[7650,13,3826,3826,8228,5936,0]Ao[7650,13,3826,3826,3385,5936,0]Ao[7650,13,3826,3826,6440,5936,0]Ao[7650,13,3826,3826,8109,5936,0]Ao[7650,13,4149,4569,4422,5936,0]Ao[7650,13,4149,4569,8154,5936,0]Ao[7650,13,4149,5188,8992,5936,0]Ao[7650,13,4149,5188,8992,2854,0]Ao[7650,13,4149,4149,8162,5936,0]Ao[7650,13,4149,4149,7767,5936,0]Ao[7650,13,4149,4149,8105,5936,0]Ao[7650,13,4149,4149,3378,5936,0]Ao[7650,13,4149,4149,6511,5936,0]Ao[7650,13,4149,4149,5970,5936,0]Ao[7650,13,4149,4149,3408,5936,0]Ao[7650,13,4149,4149,8624,5936,0]Ao[7650,13,4149,4149,6438,5936,0]Ao[7650,13,4149,4149,3433,5936,0]Ao[7650,13,4149,4149,6528,5936,0]Ao[7650,13,4149,4149,8685,5936,0]Ao[7650,13,3827,3827,3391,5936,0]Ao[7650,13,3827,3827,3386,5936,0]Ao[7650,13,3827,3827,8881,5936,0]Ao[7650,13,3827,3827,8693,5936,0]Ao[7650,13,3827,3827,4945,5936,0]Ao[7650,13,3827,3827,9036,5936,0]Ao[7650,13,4614,4614,8276,5936,0]Ao[7650,13,4614,4614,5963,5936,0]Ao[7650,13,4614,4614,5952,5936,0]Ao[7650,13,4614,4614,8471,5936,0]Ao[7650,13,4614,4614,9103,5936,0]Ao[7650,13,4473,4473,4398,5936,0]Ao[7650,13,8033,8033,5971,5936,0]Ao[7650,13,8033,8033,9177,5936,0]Ao[7650,13,8033,8033,7722,5936,0]Ao[7650,13,8033,8033,9241,5936,0]Ao[7650,13,8033,8033,8156,5936,0]Ao[7650,13,8033,8033,4912,2854,0]Ao[7650,13,8033,8033,4912,5936,0]Ao[7650,13,3836,3836,5908,5936,0]Ao[7650,13,3836,3836,8464,5936,0]Ao[7650,13,3338,3338,2874,5936,0]Ao[7650,13,3338,3338,8898,5936,0]Ao[7650,13,3338,3338,8872,5936,0]Ao[7650,13,3338,3338,5899,5936,0]Ao[7650,13,6252,6252,2873,5936,0]Ao[7650,13,6252,6252,9295,5936,0]Ao[7650,13,6252,6252,5922,5936,0]Ao[7650,13,2571,2571,2872,5936,0]Ao[7650,13,2571,2571,6510,5936,0]Ao[7650,13,1076,1076,8225,5936,0]Am[7650,13,660,660,4901,5936,0]Am[7650,13,660,660,7754,5936,0]Am[7650,13,660,660,8489,5936,0]Am[7650,13,660,660,4397,5936,0]Am[7650,13,660,660,7733,5936,0]Am[7650,13,660,660,7735,5936,0]Am[7650,13,660,660,8285,5936,0]Ao[7650,13,8301,8301,8242,5936,0]Ao[7650,13,8301,8301,8238,5936,0]Ao[7650,13,8301,8301,8126,5936,0]Ao[7650,13,8301,8301,6434,5936,0]Ao[7650,13,8301,8301,4957,5936,0]Ao[7650,13,8301,8301,9245,5936,0]Ao[7650,13,8301,8301,8131,5936,0]Ao[7650,13,8301,8301,8131,2854,0]Ao[7650,13,8301,8301,6503,5936,0]Ai[2305,13,2306,0,4936,0,0]Al[2305,13,8496,8496,9270,0,0]Al[2305,13,4978,4978,4395,0,0]Al[7650,13,7651,6290,4937,0,0]Ai[2305,14,4978,0,8494,0,0]2Al[8844,14,4087,4087,3390,0,0]Ai[2305,13,4978,0,4946,0,0]Ai[2305,13,2306,0,8283,0,0]Al[2305,13,4978,8197,4931,0,0]Al[6266,13,6267,8299,8284,0,0]Ai[2305,14,6496,0,8666,0,0]0Ai[7650,14,6499,0,8667,0,0]Al[2305,13,4978,7436,6456,0,0]Al[2305,13,4978,7436,8443,0,0]Ae[2305,2,8496,0,0,0,0]Al[7649,13,7650,7650,7727,0,0]Al[7649,13,3355,3355,2900,0,0]Ae[7649,2,7650,0,0,0,0]Al[7650,14,4149,4149,8162,0,0]Ae[7650,2,4133,0,0,0,0]Ah[2305,13,658,0,7734,0,0]Ai[2305,13,4978,0,6524,0,0]Aj[7650,12,660,660,4943,0,0]Aj[7650,13,660,660,7735,0,0]Al[2305,13,4978,7436,4917,0,0]Aj[8844,14,661,661,5903,0,0]Al[2305,13,5185,5185,8278,0,0]Aj[8844,13,661,661,5904,0,0]Al[8844,13,1811,1811,6473,0,0]Al[8844,13,4150,4150,3432,0,0]Al[7650,13,4149,4149,3433,0,0]Al[7650,13,3826,3826,3385,0,0]Ae[8844,2,8845,0,0,0,0]Ai[7650,14,6437,0,7750,0,0]Al[2305,13,4978,8197,4931,0,0]Al[2305,13,4978,7436,6456,0,0]Al[2305,13,4978,7436,8443,0,0]Ae[7649,2,7650,0,0,0,0]Al[7649,13,7650,7650,9029,0,0]Ak[7649,14,7650,7650,367,0,0]Al[8844,14,3352,3352,4888,0,0]Ai[2305,13,4978,0,6509,0,0]Al[2305,13,4978,8094,8997,0,0]Ai[7650,14,2863,0,9268,0,0]Ai[2305,13,4978,0,6524,0,0]Ai[2305,13,4978,0,9115,0,0]Al[2305,15,4978,3318,9152,0,0]Al[2305,15,4978,3318,9207,0,0]Ah[2305,5,4978,7436,0,0,0]Al[7650,15,8033,8033,9241,0,0]Ae[7650,6,4149,0,0,0,0]Ai[2305,15,4978,0,5907,0,0]Al[2305,15,4978,8094,9056,0,0]Ai[2305,15,4978,0,1136,0,0]Ae[7650,5,3826,0,0,0,0]Ae[7650,5,3827,0,0,0,0]Al[2305,15,4978,4978,8244,0,0]Ae[8844,5,4087,0,0,0,0]26Al[2305,15,4978,4978,5954,0,0]Al[8844,15,4087,4087,8622,0,0]Ai[2305,15,2306,0,8654,0,0]Al[6266,15,6267,1007,8655,0,0]Ad[8844,5,661,0,0,0,0]Al[7650,15,3836,3836,5908,0,0]Al[7650,15,3338,3338,8898,0,0]Ai[2305,19,2306,0,5941,0,0]Ai[2305,19,2306,0,5965,0,0]Al[6266,19,6267,1007,5942,0,0]Al[6266,19,6267,1007,5966,0,0]Ae[7650,5,4149,0,0,0,0]Al[8844,15,1811,1077,4892,0,0]Al[7650,15,4149,4149,6438,0,0]Al[2305,15,4978,7436,9096,0,0]Ah[2305,5,4978,7438,0,0,0]Ah[2305,5,4978,3328,0,0,0]Af[2305,10,4586,0,0,0,0]Al[2305,15,4978,3318,9152,0,0]Al[2305,15,4978,3318,9207,0,0]Ae[2305,5,5185,0,0,0,0]Al[7650,15,4615,4615,7784,0,0]Ai[2305,15,4978,0,1136,0,0]Ae[8844,5,4150,0,0,0,0]Al[2305,13,4978,1163,4890,0,0]Al[2305,13,8496,8496,1113,0,0]Ai[2305,14,2859,0,1139,0,0]Ai[2305,14,9303,0,1140,0,0]Ai[2305,13,4978,0,6514,0,0]Ai[2305,13,4978,0,9118,0,0]1Al[2305,13,4978,4978,4395,0,0]Ai[2305,13,8496,0,6433,0,0]Al[7650,13,8301,8301,6434,0,0]Ai[2305,13,2306,0,8122,0,0]Ai[2305,13,8496,0,8125,0,0]Al[6266,13,6267,8299,8123,0,0]Al[7650,13,8301,8301,8126,0,0]Aj[2305,13,654,654,4396,0,0]7Al[2305,13,4978,4978,4908,0,0]Ai[2305,14,4568,0,8279,0,0]Ae[7650,7,6252,0,0,0,0]Ao[7650,13,3826,3826,3385,1137,0]Ao[7650,13,3826,3826,6440,1137,0]Ao[7650,13,4614,4614,8276,1137,0]Ai[2305,13,4978,0,6509,0,0]Ae[2305,2,2306,0,0,0,0]Al[7649,14,3355,3355,8492,0,0]8Ae[7650,7,4622,0,0,0,0]Al[7649,14,3355,3355,2900,0,0]:?=Al[8844,14,4087,4087,3390,0,0]Ae[2305,6,5185,0,0,0,0]Ae[7650,6,8033,0,0,0,0]Ae[2305,5,5185,0,0,0,0]Al[2305,15,4978,7699,3437,0,0]Ae[7649,5,7650,0,0,0,0]Ah[2305,5,4978,4090,0,0,0]Ai[2305,15,4978,0,5907,0,0]Ad[7650,6,660,0,0,0,0]Af[2305,5,658,660,0,0,0]Ad[7650,5,660,0,0,0,0]Al[7650,15,3826,1173,5962,0,0]Al[7650,15,4614,4614,5963,0,0]Al[7650,15,3827,3827,4945,0,0]Al[2305,15,3331,3331,6507,0,0]0Ae[8844,5,1811,0,0,0,0]Ah[2305,5,4978,6426,0,0,0]Al[8844,15,1811,1077,4892,0,0]Al[7650,15,4149,4149,6438,0,0]:Aj[7650,15,660,660,4901,0,0]Al[7650,15,3826,3826,8117,0,0]Al[7650,15,4149,4149,6528,0,0]>Ah[2305,5,4978,8197,0,0,0]Ah[7650,5,7651,8199,0,0,0]Ai[2305,10,4978,2569,0,0,0]Ah[2305,5,2306,6290,0,0,0]Ah[7650,5,7651,6290,0,0,0]Ae[7650,5,4149,0,0,0,0]Ai[2305,15,4978,0,5907,0,0]9Al[2305,15,4978,4978,9154,0,0]1Ae[8844,5,4087,0,0,0,0]Al[7650,15,3826,1173,5962,0,0]Al[7650,15,3826,1173,5951,0,0]Al[7650,15,4614,4614,5963,0,0]Al[7650,15,4614,4614,5952,0,0]Ae[7650,8,4615,0,0,0,0]Ae[7649,5,3355,0,0,0,0]Al[2305,15,4978,7436,5888,0,0]Al[2305,13,2306,0,8122,4903,0]Al[2305,13,2306,0,8283,4903,0]Al[2305,13,2306,0,5941,4903,0]Al[2305,13,2306,0,5958,4903,0]Al[2305,13,2306,0,5965,4903,0]Al[2305,13,2306,0,4939,4903,0]Al[2305,13,2306,0,4936,4903,0]Al[2305,13,2306,0,7765,4903,0]Al[2305,13,2306,0,5923,4903,0]Ao[2305,13,4568,4568,8639,4903,0]Al[2305,13,1075,0,8224,4903,0]Al[2305,13,8496,0,8125,4903,0]Al[2305,13,8496,0,6433,4903,0]Al[2305,13,8496,0,4956,4903,0]Al[2305,13,8496,0,8130,4903,0]Ao[2305,13,8496,8496,2871,4903,0]Ao[2305,13,8496,8496,1113,4903,0]Ao[2305,13,8496,8496,9270,4903,0]Ao[2305,13,4121,4121,8145,4903,0]Ao[2305,13,3331,3331,8476,4903,0]Ao[2305,13,3331,3331,8272,4903,0]Ao[2305,13,3331,3331,8894,4903,0]Ao[2305,13,3331,3331,9277,4903,0]Am[2305,13,654,654,8874,4903,0]Ao[2305,13,2313,2313,8991,4903,0]Ao[2305,13,2313,2313,8452,4903,0]Ak[2305,13,658,0,7734,4903,0]Al[2305,13,4978,0,8993,4903,0]Al[2305,13,4978,0,8483,4903,0]Al[2305,13,4978,0,5946,4903,0]Al[2305,13,4978,0,6516,4903,0]Al[2305,13,4978,0,8482,4903,0]Al[2305,13,4978,0,6534,4903,0]Al[2305,13,4978,0,8164,4903,0]Ao[2305,13,4978,8197,8147,4903,0]Ao[2305,13,4978,8197,7762,4903,0]Ao[2305,13,4978,8197,4931,4903,0]Ao[2305,13,4978,8094,6515,4903,0]Ao[2305,13,4978,8094,8997,4903,0]Ao[2305,13,4978,8094,9056,4903,0]Al[2305,13,4978,0,9115,4903,0]Al[2305,13,4978,0,3446,4903,0]Al[2305,13,4978,0,9178,4903,0]Al[2305,13,4978,0,3418,4903,0]Ao[2305,13,4978,7699,3437,4903,0]Al[2305,13,4978,0,8158,4903,0]Al[2305,13,4978,0,4954,4903,0]Al[2305,13,4978,0,6470,4903,0]Al[2305,13,4978,0,5935,4903,0]Al[2305,13,4978,0,8636,4903,0]Al[2305,13,4978,0,4459,4903,0]Al[2305,13,4978,0,8112,4903,0]Ao[2305,13,4978,4156,6459,4903,0]Ao[2305,13,4978,4156,8450,4903,0]Al[2305,13,4978,0,8634,4903,0]Ao[2305,13,4978,1163,4890,4903,0]Al[2305,13,4978,0,9026,4903,0]Al[2305,13,4978,0,9043,4903,0]Al[2305,13,4978,0,7749,4903,0]Ao[2305,13,4978,7436,8135,4903,0]Al[2305,13,4978,0,9215,4903,0]Al[2305,13,4978,0,5907,4903,0]Ao[2305,13,4978,7436,9096,4903,0]Ao[2305,13,4978,7436,8626,4903,0]Ao[2305,13,4978,7436,8291,4903,0]Ao[2305,13,4978,7436,6456,4903,0]Ao[2305,13,4978,7436,9037,4903,0]Ao[2305,13,4978,7436,8640,4903,0]Ao[2305,13,4978,7436,8671,4903,0]Ao[2305,13,4978,7436,9213,4903,0]Ao[2305,13,4978,7436,8443,4903,0]Ao[2305,13,4978,2570,9327,4903,0]Ao[2305,13,4978,2570,9113,4903,0]Ao[2305,13,4978,2570,9114,4903,0]Ao[2305,13,4978,2570,8161,4903,0]Ao[2305,13,4978,4978,4908,4903,0]Al[2305,13,4978,0,8628,4903,0]Ao[2305,13,4978,4978,8442,4903,0]Al[2305,13,4978,0,8869,4903,0]Ao[2305,13,4978,4978,5954,4903,0]Al[2305,13,4978,0,8895,4903,0]Al[2305,13,4978,0,8494,4903,0]Al[2305,13,4978,0,9057,4903,0]Al[2305,13,4978,0,1136,4903,0]Ak[2305,13,4978,0,356,4903,0]Al[2305,13,4978,0,4946,4903,0]Am[2305,13,4586,4586,16,4903,0]Ao[2305,13,4586,4586,8472,4903,0]Ao[2305,13,5185,5185,3429,4903,0]Ao[2305,13,5185,5185,7723,4903,0]Ao[2305,13,7709,2568,8275,4903,0]Ao[7649,13,7650,7650,4893,4903,0]An[7649,13,7650,7650,367,4903,0]An[7649,13,1071,1071,368,4903,0]Ao[8844,13,8845,3363,5981,4903,0]Ao[8844,13,3352,3352,4888,4903,0]Ao[8844,13,4087,4087,7774,4903,0]Am[8844,13,661,661,5903,4903,0]Am[8844,13,661,661,6462,4903,0]Am[8844,13,661,661,3398,4903,0]Ao[8844,13,1811,8324,8677,4903,0]Ao[8844,13,1811,1077,4892,4903,0]Ao[8844,13,1811,1811,6472,4903,0]Ao[8844,13,1811,1811,7748,4903,0]Ao[7650,13,7651,6272,4923,4903,0]Ao[7650,13,7651,6290,4937,4903,0]Ao[7650,13,7651,6290,7766,4903,0]Ao[7650,13,7651,6290,8678,4903,0]Ao[7650,13,3826,3826,8228,4903,0]Ao[7650,13,4149,4569,8154,4903,0]Ao[7650,13,4149,4149,3378,4903,0]Ao[7650,13,4149,4149,8624,4903,0]Ao[7650,13,4473,4473,4398,4903,0]Ao[7650,13,8033,8033,5971,4903,0]Ao[7650,13,8033,8033,8156,4903,0]Ao[7650,13,3836,3836,5908,4903,0]Ao[7650,13,3338,3338,8898,4903,0]Ao[7650,13,3338,3338,8872,4903,0]Ao[7650,13,3338,3338,5899,4903,0]Ao[7650,13,6252,6252,5922,4903,0]Ao[7650,13,2571,2571,6510,4903,0]Ao[7650,13,1076,1076,8225,4903,0]Am[7650,13,660,660,4397,4903,0]Am[7650,13,660,660,7733,4903,0]Am[7650,13,660,660,7735,4903,0]Am[7650,13,660,660,8285,4903,0]Ao[7650,13,8301,8301,8126,4903,0]Ao[7650,13,8301,8301,6434,4903,0]Ao[7650,13,8301,8301,4957,4903,0]Ao[7650,13,8301,8301,8131,4903,0]Al[2305,13,4978,7436,4917,0,0]Ai[2305,14,4978,0,6470,0,0]Al[2305,13,4568,0,8477,8136,0]Al[2305,13,4568,0,8279,8136,0]Al[2305,13,4568,0,8153,8136,0]Al[2305,13,4568,0,8889,8136,0]Ao[8844,13,4570,4570,4420,8136,0]Ao[7650,13,4149,4569,4422,8136,0]Ah[2305,13,658,0,7734,0,0]Aj[7650,12,660,660,4943,0,0]Aj[7650,13,660,660,7735,0,0]Al[7650,13,2571,2571,6510,0,0]Ai[2305,14,4978,0,5935,0,0]Aj[8844,14,661,661,5903,0,0]0Ai[2305,13,4978,0,6509,0,0]Al[2305,13,2306,0,8122,7732,0]Al[2305,13,2306,0,8283,7732,0]Al[2305,13,2306,0,5941,7732,0]Al[2305,13,2306,0,5958,7732,0]Al[2305,13,2306,0,5965,7732,0]Al[2305,13,2306,0,4939,7732,0]Al[2305,13,2306,0,7765,7732,0]Al[2305,13,2306,0,5923,7732,0]Al[2305,13,4568,0,8477,7732,0]Al[2305,13,4568,0,8279,7732,0]Ao[2305,13,4568,4568,8639,7732,0]Al[2305,13,4568,0,8889,7732,0]Ao[2305,13,4978,7699,3437,7732,0]Ao[6266,13,6267,8299,8123,7732,0]Ao[6266,13,6267,8299,8284,7732,0]Ao[6266,13,6267,1007,5942,7732,0]Ao[6266,13,6267,1007,5959,7732,0]Ao[6266,13,6267,1007,5966,7732,0]Ao[6266,13,6267,6292,4940,7732,0]Ao[8844,13,4087,4087,3390,7732,0]Ao[8844,13,4087,4087,7774,7732,0]Ao[8844,13,4087,4087,8270,7732,0]Ao[8844,13,4087,4087,8469,7732,0]Ao[8844,13,4087,4087,8622,7732,0]Am[8844,13,661,661,5903,7732,0]Ao[8844,13,1811,8324,8677,7732,0]Ao[8844,13,1811,1077,4892,7732,0]Ao[8844,13,1811,1811,6472,7732,0]Ao[8844,13,1811,1811,7748,7732,0]Ao[7650,13,7651,6290,7766,7732,0]Ao[7650,13,7651,6290,8678,7732,0]Ai[2305,14,4568,0,8153,0,0]Al[7650,14,4149,4569,4422,0,0]Al[8844,14,3352,3352,4888,0,0]Al[2305,13,8496,8496,1113,0,0]Ai[2305,14,8496,0,8130,0,0]Ai[2305,14,8451,0,4411,0,0]Ai[2305,14,8134,0,2889,0,0]2Al[7650,14,3827,3827,3391,0,0]Al[7650,14,8301,8301,8131,0,0]Al[2305,13,4568,0,8477,4921,0]Al[2305,13,4568,0,8279,4921,0]Al[2305,13,4568,0,8153,4921,0]Al[2305,13,4568,0,8889,4921,0]Ao[8844,13,4570,4570,4420,4921,0]Ao[7650,13,4149,4569,4422,4921,0]Al[2305,13,2306,0,8654,6529,0]Al[2305,13,2306,0,8486,6529,0]Al[2305,13,2306,0,9047,6529,0]Al[2305,13,8496,0,6501,6529,0]Ao[2305,13,8496,8496,9304,6529,0]Ao[2305,13,8496,8496,2871,6529,0]Ao[2305,13,3331,3331,6507,6529,0]Ao[2305,13,4978,4156,5891,6529,0]Ao[2305,13,4978,1163,8986,6529,0]Ao[2305,13,4978,7436,6522,6529,0]Ao[2305,13,4978,7436,9096,6529,0]Ao[2305,13,4978,7436,5888,6529,0]Ao[2305,13,4978,7436,8626,6529,0]Ao[2305,13,4978,7436,9213,6529,0]Ao[2305,13,4978,4978,8244,6529,0]Ao[2305,13,4978,4978,9154,6529,0]Ao[2305,13,4978,4978,8116,6529,0]Ao[2305,13,5185,5185,7721,6529,0]Al[2305,13,8300,0,8241,6529,0]Al[2305,13,8300,0,8236,6529,0]Al[2305,13,8300,0,9244,6529,0]Ao[6266,13,6267,1007,8655,6529,0]Ao[6266,13,6267,1007,8487,6529,0]Ao[6266,13,6267,6292,9048,6529,0]Ao[7650,13,3826,1173,5962,6529,0]Ao[7650,13,3826,1173,5951,6529,0]Ao[7650,13,3826,3826,8117,6529,0]Ao[7650,13,3826,3826,5902,6529,0]Ao[7650,13,4149,4149,6528,6529,0]Ao[7650,13,4149,4149,8685,6529,0]Ao[7650,13,3827,3827,8881,6529,0]Ao[7650,13,3827,3827,8693,6529,0]Ao[7650,13,3827,3827,4945,6529,0]Ao[7650,13,3827,3827,9036,6529,0]Ao[7650,13,4614,4614,5963,6529,0]Ao[7650,13,4614,4614,5952,6529,0]Ao[7650,13,4614,4614,9103,6529,0]Ao[7650,13,8033,8033,9177,6529,0]Ao[7650,13,8033,8033,7722,6529,0]Ao[7650,13,8033,8033,9241,6529,0]Ao[7650,13,3836,3836,8464,6529,0]Ao[7650,13,3338,3338,2874,6529,0]Ao[7650,13,6252,6252,2873,6529,0]Ao[7650,13,2571,2571,2872,6529,0]Am[7650,13,660,660,4901,6529,0]Am[7650,13,660,660,7754,6529,0]Am[7650,13,660,660,8489,6529,0]Ao[7650,13,8301,8301,8242,6529,0]Ao[7650,13,8301,8301,8238,6529,0]Ao[7650,13,8301,8301,9245,6529,0]Ao[7650,13,8301,8301,6503,6529,0]Ae[7650,2,4149,0,0,0,0]Al[2305,13,4978,2570,9327,0,0]Ak[7649,14,7650,7650,367,0,0]1Ai[2305,13,2306,0,4458,0,0]Al[2305,13,4978,0,4424,6477,0]Al[2305,13,4978,0,3415,6477,0]Al[2305,13,4978,0,5882,6477,0]Al[2305,13,4978,0,4885,6477,0]Al[2305,13,4978,0,8152,6477,0]Al[2305,13,4978,0,8159,6477,0]Ao[2305,13,4978,7436,3376,6477,0]Ao[2305,13,4978,7436,4917,6477,0]Ao[2305,13,4978,7436,6446,6477,0]Ao[2305,13,4978,7436,5883,6477,0]Ao[2305,13,4978,4978,8458,6477,0]Al[2305,13,4978,1163,4890,0,0]Al[2305,13,4978,8197,4931,0,0]Al[2305,13,5185,5185,3429,0,0]Ah[2305,13,658,0,7734,0,0]Aj[7650,12,660,660,4943,0,0]Aj[7650,13,660,660,7735,0,0]210Ai[2305,14,4978,0,6470,0,0]Ak[7649,14,7650,7650,367,0,0]Ai[2305,13,4978,0,6458,0,0]0Al[2305,13,7709,9220,8453,0,0]Ai[2305,14,4978,0,8977,0,0]Al[2305,13,2306,0,8122,6504,0]Al[2305,13,2306,0,8283,6504,0]Al[2305,13,2306,0,5941,6504,0]Al[2305,13,2306,0,4939,6504,0]Al[2305,13,2306,0,7765,6504,0]Al[2305,13,8496,0,4956,6504,0]Al[2305,13,4978,0,3446,6504,0]Al[2305,13,4978,0,3418,6504,0]Ao[2305,13,4978,4156,6459,6504,0]Ao[2305,13,4978,4156,8450,6504,0]Al[2305,13,4978,0,7749,6504,0]Al[2305,13,4978,0,1136,6504,0]Ak[2305,13,4978,0,356,6504,0]Al[2305,13,4978,0,4946,6504,0]Ao[6266,13,6267,8299,8123,6504,0]Ao[6266,13,6267,8299,8284,6504,0]Ao[6266,13,6267,1007,5942,6504,0]Ao[6266,13,6267,6292,4940,6504,0]Ao[7650,13,7651,6290,7766,6504,0]Ao[7650,13,7651,6290,8678,6504,0]Ao[7650,13,8301,8301,4957,6504,0]Ai[2305,14,4568,0,8279,0,0]Aj[2305,13,654,654,4396,0,0]Ae[7650,7,4622,0,0,0,0]Ai[2305,13,4978,0,6514,0,0]0Al[2305,13,4978,8197,4931,0,0]Al[2305,13,4978,7436,4917,0,0]Al[2305,13,4978,7436,5883,0,0]Al[2305,13,4978,4978,4908,0,0]Ai[2305,12,4978,0,5913,0,0]Al[2305,13,4978,2570,9327,0,0]Al[7650,13,4149,4149,3433,0,0]Ak[7649,14,7650,7650,367,0,0]Ai[2305,14,4568,0,8477,0,0]Ai[2305,13,4978,0,9043,0,0]Ai[2305,13,4978,0,8676,0,0]Ai[2305,13,4978,0,6524,0,0]Ae[7650,6,4149,0,0,0,0]Ai[2305,15,4978,0,5907,0,0]Ae[7650,5,3826,0,0,0,0]Ai[2305,15,4978,0,5946,0,0]Ai[2305,15,4978,0,6534,0,0]Ah[2305,5,4978,4616,0,0,0]Ae[2305,6,4978,0,0,0,0]Ae[7650,6,3826,0,0,0,0]Ah[2305,5,2306,8299,0,0,0]Ah[6266,5,6267,8299,0,0,0]Ah[2305,5,8300,8301,0,0,0]Ah[2305,5,8496,8301,0,0,0]Ae[7650,5,8301,0,0,0,0]Al[7650,15,3836,3836,5908,0,0]Al[7650,15,3338,3338,8898,0,0]432=Ah[2305,6,4978,7436,0,0,0]Al[7650,15,3338,3338,2874,0,0]Aj[7650,15,660,660,7754,0,0]Al[7650,15,8033,8033,9177,0,0]Ae[2305,5,4121,0,0,0,0]Ah[2305,5,4978,8197,0,0,0]Ai[2305,15,4978,0,5907,0,0]0Al[7650,15,3826,3826,5902,0,0]Ah[2305,5,4978,7438,0,0,0]Ae[2305,5,4568,0,0,0,0]Ah[7650,5,4149,4569,0,0,0]Ah[7650,4,4149,8033,0,0,0]Ae[7650,5,8033,0,0,0,0]Ah[2305,5,4978,3328,0,0,0]5Ah[2305,5,4978,2570,0,0,0]Ae[7650,5,4149,0,0,0,0]Ah[2305,6,4978,8097,0,0,0]=Ai[2305,10,4978,1163,0,0,0]An[7649,13,7650,7650,367,1097,0]An[7649,13,1071,1071,368,1097,0]Al[7650,13,6252,6252,9295,0,0]Al[7650,13,4149,4149,3433,0,0]Al[2305,13,4978,7436,6456,0,0]Ai[2305,13,4978,0,8158,0,0]Ai[2305,14,4978,0,6470,0,0]Al[8844,14,4570,4570,4420,0,0]Aj[2305,13,659,659,9273,0,0]Al[2305,13,3331,3331,9211,0,0]Al[2305,13,3331,3331,9174,0,0]Al[2305,13,4978,4978,4395,0,0]Al[2305,13,4978,4978,4908,0,0]Al[2305,13,7709,9220,8453,0,0]Al[2305,13,8496,8496,2871,0,0]Al[2305,13,8496,8496,9304,0,0]13Ai[2305,12,2306,0,4458,0,0]Ao[2305,13,4978,8197,7762,4458,0]Al[2305,13,8496,8496,1113,0,0]Ai[2305,14,8451,0,6460,0,0]Ai[2305,14,4978,0,5935,0,0]Al[7650,14,4149,4149,8162,0,0]Al[2305,13,5185,5185,8673,0,0]Al[2305,13,5185,5185,9034,0,0]Ao[2305,13,5185,5185,7723,8673,0]Ao[2305,13,5185,5185,7723,9034,0]Ai[2305,14,4978,0,6470,0,0]Ai[2305,14,4568,0,8279,0,0];:Al[2305,13,4978,2570,9327,0,0]Ai[7650,14,8897,0,6517,0,0]Ae[7650,7,4622,0,0,0,0]Al[2305,13,4978,4978,4908,0,0]Ai[2305,14,4568,0,8889,0,0]6Ah[2305,13,658,0,7734,0,0]Aj[7650,13,660,660,7735,0,0]Al[7650,14,3338,3338,5899,0,0]Al[2305,13,2313,2313,9294,0,0]Ai[2305,13,4978,0,6524,0,0];Al[7649,14,3355,3355,2900,0,0]Ai[2305,13,2306,0,8122,0,0]Al[6266,13,6267,8299,8123,0,0]3Al[2305,15,4978,7699,3437,0,0]Al[2305,15,4978,4156,5891,0,0]Af[2305,10,8496,0,0,0,0]Al[7650,15,4615,4615,7784,0,0]Ah[2305,5,1075,1076,0,0,0]Ae[7650,5,1076,0,0,0,0]Ai[2305,15,4978,0,8634,0,0]Ai[2305,15,4978,0,8895,0,0]Ae[7650,5,3826,0,0,0,0]Ai[2305,15,8496,0,6501,0,0]0Ah[2305,6,8300,8301,0,0,0]Al[7650,15,8301,8301,6503,0,0]Ae[7650,6,8301,0,0,0,0]20Ae[2305,6,4978,0,0,0,0]Ai[2305,10,4978,3318,0,0,0]Ai[2305,10,8300,8301,0,0,0]Af[7650,10,8301,0,0,0,0]Ai[2305,15,4978,0,8482,0,0]Al[7650,15,3827,3827,8881,0,0]Al[7650,15,3827,3827,4945,0,0]Al[7650,15,3338,3338,2874,0,0]1Ai[2305,15,4978,0,5907,0,0]Ai[2305,19,4978,0,9057,0,0]Ai[2305,18,8300,8301,0,0,0]Af[7650,18,8301,0,0,0,0]Ai[2305,15,8300,0,8236,0,0]Al[7650,15,8301,8301,8238,0,0]Al[2305,15,4978,1163,8986,0,0]Ai[2305,15,4978,0,8634,0,0]77Ae[8844,5,4087,0,0,0,0]8Ae[2305,5,3331,0,0,0,0]Al[2305,15,4978,4156,8450,0,0]Ah[2305,5,7709,2568,0,0,0]Ae[7650,5,4614,0,0,0,0]3Af[2305,10,5185,0,0,0,0]Al[7650,15,3826,3826,5902,0,0]Ah[2305,5,4978,2569,0,0,0]Ah[8844,6,1811,8324,0,0,0]Ah[7650,5,7651,6290,0,0,0]Al[7650,15,8033,8033,9177,0,0]Al[7650,15,3836,3836,5908,0,0]Al[7650,15,6252,6252,5922,0,0]Ae[7650,6,4149,0,0,0,0]Ah[2305,5,4978,3366,0,0,0]Al[7650,15,3338,3338,2874,0,0]Ai[2305,15,4978,0,8634,0,0]Ae[7650,6,3827,0,0,0,0]Ai[2305,15,4978,0,5946,0,0]Ai[2305,15,4978,0,6516,0,0]Ai[2305,15,4978,0,6534,0,0]Ai[2305,15,4978,0,8164,0,0]Ai[2305,14,4568,0,8279,0,0]Al[2305,13,4978,3318,8245,0,0]0Al[2305,13,4978,4978,4395,0,0]Al[2305,13,2306,0,8122,8229,0]Al[2305,13,2306,0,8283,8229,0]Al[2305,13,2306,0,5941,8229,0]Al[2305,13,2306,0,5958,8229,0]Al[2305,13,2306,0,5965,8229,0]Al[2305,13,2306,0,4939,8229,0]Al[2305,13,2306,0,4936,8229,0]Al[2305,13,2306,0,7765,8229,0]Al[2305,13,2306,0,5923,8229,0]Ao[2305,13,4568,4568,8639,8229,0]Al[2305,13,1075,0,8224,8229,0]Al[2305,13,8496,0,8125,8229,0]Al[2305,13,8496,0,6433,8229,0]Al[2305,13,8496,0,4956,8229,0]Al[2305,13,8496,0,8130,8229,0]Ao[2305,13,8496,8496,2871,8229,0]Ao[2305,13,8496,8496,1113,8229,0]Ao[2305,13,8496,8496,9270,8229,0]Ao[2305,13,4121,4121,8145,8229,0]Ao[2305,13,3331,3331,8476,8229,0]Ao[2305,13,3331,3331,8272,8229,0]Ao[2305,13,3331,3331,8894,8229,0]Ao[2305,13,3331,3331,9277,8229,0]Am[2305,13,654,654,8874,8229,0]Ao[2305,13,2313,2313,8991,8229,0]Ao[2305,13,2313,2313,8452,8229,0]Ak[2305,13,658,0,7734,8229,0]Al[2305,13,4978,0,8993,8229,0]Al[2305,13,4978,0,8483,8229,0]Al[2305,13,4978,0,5946,8229,0]Al[2305,13,4978,0,6516,8229,0]Al[2305,13,4978,0,8482,8229,0]Al[2305,13,4978,0,6534,8229,0]Al[2305,13,4978,0,8164,8229,0]Ao[2305,13,4978,8197,8147,8229,0]Ao[2305,13,4978,8197,7762,8229,0]Ao[2305,13,4978,8197,4931,8229,0]Ao[2305,13,4978,8094,6515,8229,0]Ao[2305,13,4978,8094,8997,8229,0]Ao[2305,13,4978,8094,9056,8229,0]Al[2305,13,4978,0,9115,8229,0]Al[2305,13,4978,0,3446,8229,0]Al[2305,13,4978,0,9178,8229,0]Al[2305,13,4978,0,3418,8229,0]Ao[2305,13,4978,7699,3437,8229,0]Al[2305,13,4978,0,8158,8229,0]Al[2305,13,4978,0,4954,8229,0]Al[2305,13,4978,0,6470,8229,0]Al[2305,13,4978,0,5935,8229,0]Al[2305,13,4978,0,8636,8229,0]Al[2305,13,4978,0,4459,8229,0]Al[2305,13,4978,0,8112,8229,0]Ao[2305,13,4978,4156,6459,8229,0]Ao[2305,13,4978,4156,8450,8229,0]Al[2305,13,4978,0,8634,8229,0]Ao[2305,13,4978,1163,4890,8229,0]Al[2305,13,4978,0,9026,8229,0]Al[2305,13,4978,0,9043,8229,0]Al[2305,13,4978,0,7749,8229,0]Ao[2305,13,4978,7436,8135,8229,0]Al[2305,13,4978,0,9215,8229,0]Al[2305,13,4978,0,5907,8229,0]Ao[2305,13,4978,7436,9096,8229,0]Ao[2305,13,4978,7436,8626,8229,0]Ao[2305,13,4978,7436,8291,8229,0]Ao[2305,13,4978,7436,6456,8229,0]Ao[2305,13,4978,7436,9037,8229,0]Ao[2305,13,4978,7436,8640,8229,0]Ao[2305,13,4978,7436,8671,8229,0]Ao[2305,13,4978,7436,9213,8229,0]Ao[2305,13,4978,7436,8443,8229,0]Ao[2305,13,4978,2570,9327,8229,0]Ao[2305,13,4978,2570,9113,8229,0]") \ No newline at end of file diff --git a/pr/3958/docs/search.index/entry/8241a1b29006.js b/pr/3958/docs/search.index/entry/8241a1b29006.js new file mode 100644 index 0000000000..fe25adb9ea --- /dev/null +++ b/pr/3958/docs/search.index/entry/8241a1b29006.js @@ -0,0 +1 @@ +rd_("Ao[2305,13,4978,2570,9114,8229,0]Ao[2305,13,4978,2570,8161,8229,0]Ao[2305,13,4978,4978,4908,8229,0]Al[2305,13,4978,0,8628,8229,0]Ao[2305,13,4978,4978,8442,8229,0]Al[2305,13,4978,0,8869,8229,0]Ao[2305,13,4978,4978,5954,8229,0]Al[2305,13,4978,0,8895,8229,0]Al[2305,13,4978,0,8494,8229,0]Al[2305,13,4978,0,9057,8229,0]Al[2305,13,4978,0,1136,8229,0]Ak[2305,13,4978,0,356,8229,0]Al[2305,13,4978,0,4946,8229,0]Am[2305,13,4586,4586,16,8229,0]Ao[2305,13,4586,4586,8472,8229,0]Ao[2305,13,5185,5185,3429,8229,0]Ao[2305,13,5185,5185,7723,8229,0]Ao[2305,13,7709,2568,8275,8229,0]Ao[6266,13,6267,8299,8123,8229,0]Ao[6266,13,6267,8299,8284,8229,0]Ao[6266,13,6267,1007,5942,8229,0]Ao[6266,13,6267,1007,5959,8229,0]Ao[6266,13,6267,1007,5966,8229,0]Ao[6266,13,6267,6292,4940,8229,0]Ao[7649,13,7650,7650,4893,8229,0]An[7649,13,7650,7650,367,8229,0]An[7649,13,1071,1071,368,8229,0]Ao[8844,13,8845,3363,5981,8229,0]Ao[8844,13,3352,3352,4888,8229,0]Ao[8844,13,4087,4087,7774,8229,0]Am[8844,13,661,661,5903,8229,0]Am[8844,13,661,661,6462,8229,0]Am[8844,13,661,661,3398,8229,0]Ao[8844,13,1811,8324,8677,8229,0]Ao[8844,13,1811,1077,4892,8229,0]Ao[8844,13,1811,1811,6472,8229,0]Ao[8844,13,1811,1811,7748,8229,0]Ao[7650,13,7651,6272,4923,8229,0]Ao[7650,13,7651,6290,4937,8229,0]Ao[7650,13,7651,6290,7766,8229,0]Ao[7650,13,7651,6290,8678,8229,0]Ao[7650,13,3826,3826,8228,8229,0]Ao[7650,13,4149,4569,8154,8229,0]Ao[7650,13,4149,4149,3378,8229,0]Ao[7650,13,4149,4149,8624,8229,0]Ao[7650,13,4473,4473,4398,8229,0]Ao[7650,13,8033,8033,5971,8229,0]Ao[7650,13,8033,8033,8156,8229,0]Ao[7650,13,3836,3836,5908,8229,0]Ao[7650,13,3338,3338,8898,8229,0]Ao[7650,13,3338,3338,8872,8229,0]Ao[7650,13,3338,3338,5899,8229,0]Ao[7650,13,6252,6252,5922,8229,0]Ao[7650,13,2571,2571,6510,8229,0]Ao[7650,13,1076,1076,8225,8229,0]Am[7650,13,660,660,4397,8229,0]Am[7650,13,660,660,7733,8229,0]Am[7650,13,660,660,7735,8229,0]Am[7650,13,660,660,8285,8229,0]Ao[7650,13,8301,8301,8126,8229,0]Ao[7650,13,8301,8301,6434,8229,0]Ao[7650,13,8301,8301,4957,8229,0]Ao[7650,13,8301,8301,8131,8229,0]Al[7650,13,7651,8199,7763,0,0]Ai[7650,14,8871,0,5895,0,0]Al[2305,14,7709,9220,8453,0,0]Ai[2305,13,8496,0,8130,0,0]Al[7650,13,8301,8301,8131,0,0]Al[7650,14,4149,4149,5970,0,0]Ai[2305,12,4978,0,5933,0,0]Ab[8844,3,0,0,0,0,0]Al[7650,14,4149,4149,8624,0,0]Ai[2305,14,4978,0,6470,0,0]0Al[2305,13,4978,4978,4395,0,0]Ai[2305,14,2306,0,5923,0,0]Ai[2305,14,4568,0,8279,0,0]Aj[2305,13,654,654,4396,0,0]Al[8844,13,4150,4150,3432,0,0]Al[2305,13,7709,9220,8453,0,0]Ae[7649,7,2305,0,0,0,0]Ae[7649,7,3335,0,0,0,0]Al[2305,13,3331,3331,9211,0,0]5Al[2305,13,2313,2313,9294,0,0]Al[2305,13,4978,1163,4890,0,0]Al[2305,13,4978,2570,9114,0,0]Al[7649,13,3355,3355,2900,0,0]Al[7649,14,3355,3355,7785,0,0]Ah[2305,13,658,0,7734,0,0]Aj[7650,13,660,660,4397,0,0]Aj[7650,13,660,660,7735,0,0]Al[2305,13,4121,4121,8145,0,0]Ai[2305,15,4978,0,5907,0,0]Ah[2305,5,4978,3316,0,0,0]Ae[2305,5,7709,0,0,0,0]Ae[7650,6,3338,0,0,0,0]Ai[2305,15,4978,0,8634,0,0]Ad[2305,5,654,0,0,0,0]Al[7650,15,4615,4615,7784,0,0]Ad[2305,5,659,0,0,0,0]Ae[7649,6,7650,0,0,0,0]Ai[2305,15,4978,0,8895,0,0]Ai[2305,19,4978,0,9057,0,0]Ae[7650,6,3827,0,0,0,0]Al[2305,15,4978,7436,8626,0,0]Al[7650,15,3338,3338,2874,0,0]03Ae[2305,5,4568,0,0,0,0]>>Ah[2305,5,4978,8197,0,0,0]?Ae[2305,5,3331,0,0,0,0]Ae[2305,6,4978,0,0,0,0]Af[7650,18,1810,0,0,0,0]?Al[7650,15,6252,6252,2873,0,0]Al[7650,15,3836,3836,5908,0,0]Al[7650,15,3827,3827,8881,0,0]Ai[2305,15,8496,0,6501,0,0]0Al[7650,15,8301,8301,6503,0,0]Al[7650,15,3836,3836,8464,0,0]Al[2305,15,4978,7436,5888,0,0]Ai[2305,14,4568,0,8279,0,0]Al[7650,14,4149,4149,8624,0,0]Al[7650,14,3827,3827,3391,0,0]Ai[2305,12,4978,0,4949,0,0]Ai[2305,13,8496,0,8125,0,0]Al[7650,13,8301,8301,8126,0,0]Al[2305,13,4978,7436,6456,0,0]Ai[2305,14,4978,0,6470,0,0]Ae[2305,7,2566,0,0,0,0]Ae[2305,7,4611,0,0,0,0]1Ah[2305,7,1075,1076,0,0,0]Ae[7650,7,1076,0,0,0,0]Al[8844,14,4570,4570,4420,0,0]0Ao[7649,13,7650,7650,4893,8465,0]An[7649,13,7650,7650,367,8465,0]An[7649,13,1071,1071,368,8465,0]Al[2305,13,4978,1163,4890,0,0]Al[8844,14,1811,1811,7748,0,0]Ah[2305,13,658,0,7734,0,0]Aj[7650,13,660,660,7735,0,0]Ai[2305,14,4568,0,8477,0,0]0Al[2305,13,4978,2570,9327,0,0]>Ai[2305,14,4568,0,8279,0,0]001Ae[2305,7,7709,0,0,0,0]Al[2305,13,3331,3331,9277,0,0]Al[2305,13,4978,2570,9114,0,0]Ai[2305,13,8496,0,8130,0,0]Al[2305,13,8496,8496,1113,0,0]Al[7650,13,8301,8301,8131,0,0]Al[2305,13,4978,4978,4395,0,0]Ae[7649,7,2305,0,0,0,0]Ae[7649,7,3335,0,0,0,0]Al[2305,12,8496,8496,9151,0,0]Ao[2305,13,8496,8496,9270,9151,0]Ao[2305,13,4121,4121,8145,9151,0]Am[2305,13,659,659,8876,9151,0]Am[2305,13,659,659,9273,9151,0]Ao[2305,13,3331,3331,9211,9151,0]Ao[2305,13,3331,3331,8476,9151,0]Ao[2305,13,3331,3331,9174,9151,0]Ao[2305,13,3331,3331,8272,9151,0]Am[2305,13,654,654,8874,9151,0]Am[2305,13,654,654,4396,9151,0]Ao[2305,13,2313,2313,8991,9151,0]Ao[2305,13,2313,2313,9294,9151,0]Ai[2305,13,1075,0,8224,0,0]Al[7650,13,1076,1076,8225,0,0]Aj[7650,13,660,660,4397,0,0]Ai[2305,13,4978,0,6524,0,0]Ai[2305,19,4978,0,9057,0,0]Af[2305,18,2566,0,0,0,0]Ai[2305,15,4978,0,8634,0,0]Al[7650,15,4615,4615,7784,0,0]Ai[2305,10,4978,7435,0,0,0]Ah[2305,5,4978,7435,0,0,0]Af[2305,18,4967,0,0,0,0]Af[7650,18,4968,0,0,0,0]Af[2305,18,3331,0,0,0,0]Af[2305,18,4611,0,0,0,0]8Ai[2305,10,4978,4090,0,0,0]Ai[2305,15,4978,0,8895,0,0]Ah[2305,6,4978,1163,0,0,0]Al[7650,15,3826,3826,5902,0,0]Al[7650,15,8033,8033,9177,0,0]Ae[2305,5,2313,0,0,0,0]Ah[7650,5,4149,5188,0,0,0]Ah[2305,6,4978,7438,0,0,0]Al[7650,15,6252,6252,5922,0,0]Ai[2305,15,4978,0,5907,0,0]0Ah[2305,5,4978,8094,0,0,0]Ai[2305,15,4978,0,8993,0,0]Al[7650,15,4615,4615,7784,0,0]Al[7650,14,4149,4149,3408,0,0]0Ai[2305,14,4568,0,8279,0,0]Al[2305,13,4121,4121,8145,0,0]Ae[1166,7,1167,0,0,0,0]Ai[2305,14,4978,0,5935,0,0]Ai[2305,14,4978,0,8977,0,0]Al[2305,13,4978,4978,4908,0,0]Ae[2305,7,4611,0,0,0,0]Ae[2305,7,2566,0,0,0,0]6Al[8844,13,8845,3363,5981,0,0]Al[7650,13,8033,8033,8156,0,0]Ao[7650,13,4614,4614,8471,6436,0]Al[2305,13,4978,7436,6456,0,0]Ai[2305,14,4978,0,6470,0,0]00Al[7650,15,3826,3826,5902,0,0]0Af[7650,18,2571,0,0,0,0]Al[7650,15,8033,8033,7722,0,0]Ai[2305,19,4978,0,9057,0,0]Al[2305,13,4978,2570,9327,0,0]Al[8844,14,4570,4570,4420,0,0]Ai[2305,14,4978,0,6470,0,0]Al[7650,15,3836,3836,5908,0,0]Af[7650,18,4968,0,0,0,0]Af[2305,18,3331,0,0,0,0]0Ah[2305,5,4978,2570,0,0,0]3>Ai[2305,14,4568,0,8153,0,0]Al[7650,14,4149,4569,4422,0,0]10Al[2305,13,4978,7436,6456,0,0]Ah[2305,13,658,0,7734,0,0]Aj[7650,13,660,660,7735,0,0];Ai[2305,14,4568,0,8279,0,0]Ag[2305,18,659,660,0,0,0]Ag[2305,18,658,660,0,0,0]Ae[7650,18,660,0,0,0,0]Ai[2305,19,4978,0,9057,0,0]Af[7650,18,3338,0,0,0,0]Af[7650,18,2571,0,0,0,0]Al[2305,13,4978,2570,9327,0,0]Ai[2305,14,2306,0,5923,0,0]01Al[2305,13,4978,2570,9114,0,0]9Ao[7649,13,7650,7650,4893,8465,0]An[7649,13,7650,7650,367,8465,0]An[7649,13,1071,1071,368,8465,0]Ai[7650,18,4149,5188,0,0,0]Ae[7649,7,7650,0,0,0,0]Al[2305,13,4978,4978,4908,0,0]8Ae[7650,7,3826,0,0,0,0]Ai[2305,13,4978,0,6458,0,0]0Ae[8844,7,4150,0,0,0,0]Al[2305,13,4978,4978,4395,0,0]<<2Ah[2246,15,4854,0,347,0,0]Al[2246,13,8283,8283,9022,0,0]Al[2246,13,2247,0,7917,5787,0]Al[2246,13,2247,0,8074,5787,0]Al[2246,13,2247,0,5791,5787,0]Al[2246,13,2247,0,8441,5787,0]Al[2246,13,2247,0,5808,5787,0]Al[2246,13,2247,0,5815,5787,0]Al[2246,13,2247,0,8273,5787,0]Al[2246,13,2247,0,4817,5787,0]Al[2246,13,2247,0,8806,5787,0]Al[2246,13,2247,0,4814,5787,0]Al[2246,13,2247,0,7570,5787,0]Al[2246,13,2247,0,5773,5787,0]Al[2246,13,4453,0,8264,5787,0]Al[2246,13,4453,0,8070,5787,0]Al[2246,13,4453,0,7946,5787,0]Ao[2246,13,4453,4453,8426,5787,0]Al[2246,13,4453,0,8665,5787,0]Al[2246,13,8283,0,7920,5787,0]Al[2246,13,8283,0,4834,5787,0]Al[2246,13,8283,0,7925,5787,0]Al[2246,13,8283,0,6340,5787,0]Ao[2246,13,8283,8283,8993,5787,0]Ao[2246,13,8283,8283,2804,5787,0]Ao[2246,13,8283,8283,1083,5787,0]Ao[2246,13,8283,8283,9022,5787,0]Ao[2246,13,4018,4018,7938,5787,0]Am[2246,13,643,643,8652,5787,0]Am[2246,13,643,643,9025,5787,0]Ao[2246,13,3244,3244,6346,5787,0]Ao[2246,13,3244,3244,8962,5787,0]Ao[2246,13,3244,3244,8263,5787,0]Ao[2246,13,3244,3244,8929,5787,0]Ao[2246,13,3244,3244,8063,5787,0]Ao[2246,13,3244,3244,8670,5787,0]Am[2246,13,638,638,8650,5787,0]Am[2246,13,638,638,4289,5787,0]Ao[2246,13,2254,2254,8751,5787,0]Ao[2246,13,2254,2254,9045,5787,0]Ao[2246,13,2254,2254,8240,5787,0]Ak[2246,13,642,0,7539,5787,0]Al[2246,13,4854,0,4317,5787,0]Al[2246,13,4854,0,3328,5787,0]Al[2246,13,4854,0,5732,5787,0]Al[2246,13,4854,0,4763,5787,0]Al[2246,13,4854,0,7945,5787,0]Al[2246,13,4854,0,7952,5787,0]Al[2246,13,4854,0,8753,5787,0]Al[2246,13,4854,0,6353,5787,0]Al[2246,13,4854,0,8874,5787,0]Al[2246,13,4854,0,8270,5787,0]Al[2246,13,4854,0,5796,5787,0]Al[2246,13,4854,0,6355,5787,0]Al[2246,13,4854,0,8269,5787,0]Al[2246,13,4854,0,6363,5787,0]Al[2246,13,4854,0,6373,5787,0]Al[2246,13,4854,0,7957,5787,0]Al[2246,13,4854,0,6348,5787,0]Al[2246,13,4854,0,1084,5787,0]Ao[2246,13,4854,7990,7940,5787,0]Ao[2246,13,4854,7990,8668,5787,0]Ao[2246,13,4854,7990,7567,5787,0]Ao[2246,13,4854,7990,4809,5787,0]Ao[2246,13,4854,7889,6354,5787,0]Ao[2246,13,4854,7889,8757,5787,0]Ao[2246,13,4854,7889,8814,5787,0]Al[2246,13,4854,0,8473,5787,0]Al[2246,13,4854,0,8871,5787,0]Al[2246,13,4854,0,3359,5787,0]Al[2246,13,4854,0,8933,5787,0]Al[2246,13,4854,0,2783,5787,0]Al[2246,13,4854,0,3331,5787,0]Ao[2246,13,4854,7505,3350,5787,0]Al[2246,13,4854,0,7951,5787,0]Al[2246,13,4854,0,4832,5787,0]Al[2246,13,4854,0,6309,5787,0]Al[2246,13,4854,0,5785,5787,0]Al[2246,13,4854,0,8423,5787,0]Al[2246,13,4854,0,4352,5787,0]Al[2246,13,4854,0,7907,5787,0]Ao[2246,13,4854,4052,5741,5787,0]Ao[2246,13,4854,4052,6298,5787,0]Ao[2246,13,4854,4052,8238,5787,0]Al[2246,13,4854,0,8421,5787,0]Ao[2246,13,4854,1133,4768,5787,0]Ao[2246,13,4854,1133,8746,5787,0]Al[2246,13,4854,0,8463,5787,0]Ao[2246,13,4854,7247,3289,5787,0]Ao[2246,13,4854,7247,4795,5787,0]Ao[2246,13,4854,7247,6361,5787,0]Al[2246,13,4854,0,8785,5787,0]Al[2246,13,4854,0,8802,5787,0]Al[2246,13,4854,0,7554,5787,0]Ao[2246,13,4854,7247,8854,5787,0]Al[2246,13,4854,0,8966,5787,0]Ao[2246,13,4854,7247,6285,5787,0]Ao[2246,13,4854,7247,5733,5787,0]Al[2246,13,4854,0,9057,5787,0]Al[2246,13,4854,0,7534,5787,0]Ao[2246,13,4854,7247,5738,5787,0]Al[2246,13,4854,0,8817,5787,0]Al[2246,13,4854,0,5757,5787,0]Ao[2246,13,4854,7247,8413,5787,0]Ao[2246,13,4854,7247,8082,5787,0]Ao[2246,13,4854,7247,6295,5787,0]Ao[2246,13,4854,7247,8796,5787,0]Ao[2246,13,4854,7247,8427,5787,0]Ao[2246,13,4854,7247,8458,5787,0]Ao[2246,13,4854,7247,8964,5787,0]Ao[2246,13,4854,7247,8232,5787,0]Ao[2246,13,4854,3231,8907,5787,0]Ao[2246,13,4854,3231,8958,5787,0]Ao[2246,13,4854,2510,9079,5787,0]Ao[2246,13,4854,2510,8869,5787,0]Ao[2246,13,4854,2510,8870,5787,0]Ao[2246,13,4854,2510,7954,5787,0]Ao[2246,13,4854,4854,4288,5787,0]Ao[2246,13,4854,4854,8035,5787,0]Ao[2246,13,4854,4854,4786,5787,0]Ao[2246,13,4854,4854,8909,5787,0]Ao[2246,13,4854,4854,7911,5787,0]Ao[2246,13,4854,4854,8231,5787,0]Ao[2246,13,4854,4854,8246,5787,0]Ao[2246,13,4854,4854,5804,5787,0]Al[2246,13,4854,0,8415,5787,0]Al[2246,13,4854,0,8645,5787,0]Al[2246,13,4854,0,8671,5787,0]Al[2246,13,4854,0,8281,5787,0]Al[2246,13,4854,0,8815,5787,0]Al[2246,13,4854,0,8736,5787,0]Al[2246,13,4854,0,1106,5787,0]Ak[2246,13,4854,0,347,5787,0]Al[2246,13,4854,0,4824,5787,0]Am[2246,13,4471,4471,15,5787,0]Ao[2246,13,5056,5056,3342,5787,0]Ao[2246,13,5056,5056,8069,5787,0]Ao[2246,13,5056,5056,7526,5787,0]Ao[2246,13,5056,5056,7528,5787,0]Al[2246,13,8089,0,8032,5787,0]Al[2246,13,8089,0,8027,5787,0]Al[2246,13,8089,0,8996,5787,0]Ao[2246,13,7515,2508,8066,5787,0]Ao[2246,13,7515,7515,8646,5787,0]Ao[2246,13,7515,8971,8241,5787,0]Ao[7457,13,7458,7458,8653,5787,0]Ao[7457,13,7458,7458,8788,5787,0]Ao[7457,13,7458,7458,4771,5787,0]An[7457,13,7458,7458,358,5787,0]Ao[7457,13,7458,7458,7532,5787,0]Ao[7457,13,3268,3268,2831,5787,0]Ao[7457,13,3268,3268,7590,5787,0]Ao[7457,13,3268,3268,8279,5787,0]An[7457,13,1046,1046,359,5787,0]Ao[8623,13,8624,3276,5831,5787,0]Ao[8623,13,3265,3265,4766,5787,0]Ao[8623,13,3986,3986,3303,5787,0]Ao[8623,13,3986,3986,7579,5787,0]Ao[8623,13,3986,3986,8061,5787,0]Ao[8623,13,3986,3986,8257,5787,0]Ao[8623,13,3986,3986,8409,5787,0]Am[8623,13,645,645,5754,5787,0]Am[8623,13,645,645,5753,5787,0]Am[8623,13,645,645,6301,5787,0]Am[8623,13,645,645,3311,5787,0]Ao[8623,13,1766,1766,6312,5787,0]Ao[8623,13,1766,8113,8464,5787,0]Ao[8623,13,1766,1050,4770,5787,0]Ao[8623,13,1766,1766,6311,5787,0]Ao[8623,13,1766,1766,7553,5787,0]Ao[8623,13,4455,4455,4313,5787,0]Ao[8623,13,4046,4046,3345,5787,0]Ao[7458,13,7459,7992,7568,5787,0]Ao[7458,13,7459,6115,4801,5787,0]Ao[7458,13,7459,6132,4815,5787,0]Ao[7458,13,7459,6132,7571,5787,0]Ao[7458,13,7459,6132,8465,5787,0]Ao[7458,13,3732,1143,5812,5787,0]Ao[7458,13,3732,1143,5801,5787,0]Ao[7458,13,3732,3732,7912,5787,0]Ao[7458,13,3732,3732,5752,5787,0]Ao[7458,13,3732,3732,8019,5787,0]Ao[7458,13,3732,3732,3298,5787,0]Ao[7458,13,3732,3732,6279,5787,0]Ao[7458,13,3732,3732,7904,5787,0]Ao[7458,13,4045,4454,4315,5787,0]Ao[7458,13,4045,4454,7947,5787,0]Ao[7458,13,4045,5059,8752,5787,0]Ao[7458,13,4045,4045,7955,5787,0]Ao[7458,13,4045,4045,7572,5787,0]Ao[7458,13,4045,4045,7900,5787,0]Ao[7458,13,4045,4045,3291,5787,0]Ao[7458,13,4045,4045,6350,5787,0]Ao[7458,13,4045,4045,5820,5787,0]Ao[7458,13,4045,4045,3321,5787,0]Ao[7458,13,4045,4045,8411,5787,0]Ao[7458,13,4045,4045,6277,5787,0]Ao[7458,13,4045,4045,3346,5787,0]Ao[7458,13,4045,4045,6367,5787,0]Ao[7458,13,4045,4045,8472,5787,0]Ao[7458,13,3733,3733,3304,5787,0]Ao[7458,13,3733,3733,3299,5787,0]Ao[7458,13,3733,3733,8657,5787,0]Ao[7458,13,3733,3733,8480,5787,0]Ao[7458,13,3733,3733,4823,5787,0]Ao[7458,13,3733,3733,8795,5787,0]Ao[7458,13,4499,4499,8067,5787,0]Ao[7458,13,4499,4499,5813,5787,0]Ao[7458,13,4499,4499,5802,5787,0]Ao[7458,13,4499,4499,8259,5787,0]Ao[7458,13,4499,4499,8861,5787,0]Ao[7458,13,4365,4365,4291,5787,0]Ao[7458,13,7830,7830,5821,5787,0]Ao[7458,13,7830,7830,8932,5787,0]Ao[7458,13,7830,7830,7527,5787,0]Ao[7458,13,7830,7830,8991,5787,0]Ao[7458,13,7830,7830,7949,5787,0]Ao[7458,13,7830,7830,4790,5787,0]Ao[7458,13,3742,3742,5758,5787,0]Ao[7458,13,3742,3742,8252,5787,0]Ao[7458,13,3251,3251,2807,5787,0]Ao[7458,13,3251,3251,8674,5787,0]Ao[7458,13,3251,3251,8648,5787,0]Ao[7458,13,3251,3251,5749,5787,0]Ao[7458,13,6095,6095,2806,5787,0]Ao[7458,13,6095,6095,9046,5787,0]Ao[7458,13,6095,6095,5772,5787,0]Ao[7458,13,2511,2511,2805,5787,0]Ao[7458,13,2511,2511,6349,5787,0]Am[7458,13,644,644,4779,5787,0]Am[7458,13,644,644,7559,5787,0]Am[7458,13,644,644,8276,5787,0]Am[7458,13,644,644,4290,5787,0]Am[7458,13,644,644,7538,5787,0]Am[7458,13,644,644,7540,5787,0]Am[7458,13,644,644,8076,5787,0]Ao[7458,13,8090,8090,8033,5787,0]Ao[7458,13,8090,8090,8029,5787,0]Ao[7458,13,8090,8090,7921,5787,0]Ao[7458,13,8090,8090,4835,5787,0]Ao[7458,13,8090,8090,8997,5787,0]Ao[7458,13,8090,8090,7926,5787,0]Ao[7458,13,8090,8090,6342,5787,0]Ai[7458,14,8990,0,8227,0,0]Ak[2246,13,2247,0,7917,360,0]Ak[2246,13,2247,0,8074,360,0]Ak[2246,13,2247,0,5791,360,0]Ak[2246,13,2247,0,4817,360,0]Ak[2246,13,2247,0,7570,360,0]Ak[2246,13,8283,0,4834,360,0]Ak[2246,13,4854,0,3359,360,0]Ak[2246,13,4854,0,3331,360,0]An[2246,13,4854,4052,6298,360,0]An[2246,13,4854,4052,8238,360,0]Ak[2246,13,4854,0,7554,360,0]Ak[2246,13,4854,0,1106,360,0]Aj[2246,13,4854,0,347,360,0]Ak[2246,13,4854,0,4824,360,0]An[6109,13,6110,8088,7918,360,0]An[6109,13,6110,8088,8075,360,0]Am[6109,13,6110,984,5792,360,0]An[6109,13,6110,6134,4818,360,0]An[7458,13,7459,6132,7571,360,0]An[7458,13,7459,6132,8465,360,0]An[7458,13,8090,8090,4835,360,0]Ae[2246,2,3244,0,0,0,0]Aj[2246,13,638,638,4289,0,0]Ai[2246,13,4854,0,4824,0,0]Ae[2246,2,2247,0,0,0,0]Ae[2246,2,8283,0,0,0,0]Ae[8623,2,8624,0,0,0,0]Al[8623,14,3986,3986,3303,0,0]Ae[7458,2,7459,0,0,0,0]Al[7458,14,3251,3251,5749,0,0]Al[2246,13,2247,0,7917,2786,0]Al[2246,13,2247,0,8074,2786,0]Ci[2246,13,2247,0,5791,4302,0,\"impl-Display-for-PublicKey\"]Cg[2246,13,2247,0,5791,2786,0,\"impl-Debug-for-PublicKey\"]Co[2246,13,2247,0,8441,4302,0,\"impl-Display-for-KeyParsingError\"]Cm[2246,13,2247,0,8441,2786,0,\"impl-Debug-for-KeyParsingError\"]Al[2246,13,2247,0,5808,2786,0]Ci[2246,13,2247,0,5815,4302,0,\"impl-Display-for-Signature\"]Cg[2246,13,2247,0,5815,2786,0,\"impl-Debug-for-Signature\"]Cl[2246,13,2247,0,8273,2786,0,\"impl-Debug-for-SignatureError\"]Cn[2246,13,2247,0,8273,4302,0,\"impl-Display-for-SignatureError\"]Ch[2246,13,2247,0,4817,4302,0,\"impl-Display-for-RelayUrl\"]Cf[2246,13,2247,0,4817,2786,0,\"impl-Debug-for-RelayUrl\"]Db[2246,13,2247,0,8806,4302,0,\"impl-Display-for-RelayUrlParseError\"]D`[2246,13,2247,0,8806,2786,0,\"impl-Debug-for-RelayUrlParseError\"]Ch[2246,13,2247,0,4814,4302,0,\"impl-Display-for-RelayMap\"]Cf[2246,13,2247,0,4814,2786,0,\"impl-Debug-for-RelayMap\"]Ci[2246,13,2247,0,7570,2786,0,\"impl-Debug-for-RelayConfig\"]Ck[2246,13,2247,0,7570,4302,0,\"impl-Display-for-RelayConfig\"]Cd[2246,13,2247,0,5773,2786,0,\"impl-Debug-for-Report\"]Cf[2246,13,2247,0,5773,4302,0,\"impl-Display-for-Report\"]Al[2246,13,4453,0,8264,2786,0]Al[2246,13,4453,0,8070,2786,0]Al[2246,13,4453,0,7946,2786,0]Ao[2246,13,4453,4453,8426,2786,0]Al[2246,13,4453,0,8665,2786,0]Al[2246,13,8283,0,7920,2786,0]Ch[2246,13,8283,0,4834,4302,0,\"impl-Display-for-UserData\"]Cf[2246,13,8283,0,4834,2786,0,\"impl-Debug-for-UserData\"]Al[2246,13,8283,0,7925,2786,0]Ch[2246,13,8283,0,6340,2786,0,\"impl-Debug-for-ParseError\"]Cj[2246,13,8283,0,6340,4302,0,\"impl-Display-for-ParseError\"]Dg[2246,13,8283,8283,8993,2786,0,\"impl-Debug-for-IntoAddressLookupError\"]Di[2246,13,8283,8283,8993,4302,0,\"impl-Display-for-IntoAddressLookupError\"]Ch[2246,13,8283,8283,2804,4302,0,\"impl-Display-for-Error\"]Cf[2246,13,8283,8283,2804,2786,0,\"impl-Debug-for-Error\"]Ao[2246,13,8283,8283,1083,2786,0]Ao[2246,13,8283,8283,9022,2786,0]Ao[2246,13,4018,4018,7938,2786,0]Am[2246,13,643,643,8652,2786,0]Am[2246,13,643,643,9025,2786,0]Ck[2246,13,3244,3244,6346,2786,0,\"impl-Debug-for-PkarrError\"]Cm[2246,13,3244,3244,6346,4302,0,\"impl-Display-for-PkarrError\"]Ao[2246,13,3244,3244,8962,2786,0]Ao[2246,13,3244,3244,8263,2786,0]Ao[2246,13,3244,3244,8929,2786,0]Ao[2246,13,3244,3244,8063,2786,0]Ao[2246,13,3244,3244,8670,2786,0]Am[2246,13,638,638,8650,2786,0]Am[2246,13,638,638,4289,2786,0]Ao[2246,13,2254,2254,8751,2786,0]Ao[2246,13,2254,2254,9045,2786,0]Ao[2246,13,2254,2254,8240,2786,0]Ak[2246,13,642,0,7539,2786,0]Co[2246,13,4854,0,8753,2786,0,\"impl-Debug-for-SendDatagramError\"]Da[2246,13,4854,0,8753,4302,0,\"impl-Display-for-SendDatagramError\"]Al[2246,13,4854,0,6353,2786,0]Al[2246,13,4854,0,8874,2786,0]Cn[2246,13,4854,0,8270,4302,0,\"impl-Display-for-ReadToEndError\"]Cl[2246,13,4854,0,8270,2786,0,\"impl-Debug-for-ReadToEndError\"]Ci[2246,13,4854,0,5796,4302,0,\"impl-Display-for-ReadError\"]Cg[2246,13,4854,0,5796,2786,0,\"impl-Debug-for-ReadError\"]Ch[2246,13,4854,0,6355,2786,0,\"impl-Debug-for-ResetError\"]Cj[2246,13,4854,0,6355,4302,0,\"impl-Display-for-ResetError\"]Cl[2246,13,4854,0,8269,2786,0,\"impl-Debug-for-ReadExactError\"]Cn[2246,13,4854,0,8269,4302,0,\"impl-Display-for-ReadExactError\"]Al[2246,13,4854,0,6363,2786,0]Ch[2246,13,4854,0,6373,2786,0,\"impl-Debug-for-WriteError\"]Cj[2246,13,4854,0,6373,4302,0,\"impl-Display-for-WriteError\"]Cj[2246,13,4854,0,7957,2786,0,\"impl-Debug-for-StoppedError\"]Cl[2246,13,4854,0,7957,4302,0,\"impl-Display-for-StoppedError\"]Ao[2246,13,4854,7990,7940,2786,0]Ao[2246,13,4854,7990,8668,2786,0]Ao[2246,13,4854,7990,7567,2786,0]Ao[2246,13,4854,7990,4809,2786,0]Ao[2246,13,4854,7889,6354,2786,0]Ao[2246,13,4854,7889,8757,2786,0]Ao[2246,13,4854,7889,8814,2786,0]Al[2246,13,4854,0,8871,2786,0]Cd[2246,13,4854,0,3359,2786,0,\"impl-Debug-for-VarInt\"]Cf[2246,13,4854,0,3359,4302,0,\"impl-Display-for-VarInt\"]Db[2246,13,4854,0,8933,2786,0,\"impl-Debug-for-VarIntBoundsExceeded\"]Dd[2246,13,4854,0,8933,4302,0,\"impl-Display-for-VarIntBoundsExceeded\"]Al[2246,13,4854,0,2783,2786,0]Cf[2246,13,4854,0,3331,4302,0,\"impl-Display-for-PathId\"]Cd[2246,13,4854,0,3331,2786,0,\"impl-Debug-for-PathId\"]Ci[2246,13,4854,7505,3350,4302,0,\"impl-Display-for-Source\"]Cg[2246,13,4854,7505,3350,2786,0,\"impl-Debug-for-Source\"]Al[2246,13,4854,0,7951,2786,0]Al[2246,13,4854,0,4832,2786,0]Al[2246,13,4854,0,6309,2786,0]Al[2246,13,4854,0,5785,2786,0]Al[2246,13,4854,0,8423,2786,0]Al[2246,13,4854,0,4352,2786,0]Cj[2246,13,4854,0,7907,2786,0,\"impl-Debug-for-ClosedStream\"]Cl[2246,13,4854,0,7907,4302,0,\"impl-Display-for-ClosedStream\"]Cj[2246,13,4854,4052,5741,2786,0,\"impl-Debug-for-BindError\"]Cl[2246,13,4854,4052,5741,4302,0,\"impl-Display-for-BindError\"]Ao[2246,13,4854,4052,6298,2786,0]Co[2246,13,4854,4052,8238,2786,0,\"impl-Debug-for-DirectAddrType\"]Da[2246,13,4854,4052,8238,4302,0,\"impl-Display-for-DirectAddrType\"]Cm[2246,13,4854,0,8421,2786,0,\"impl-Debug-for-ConnectionError\"]Co[2246,13,4854,0,8421,4302,0,\"impl-Display-for-ConnectionError\"]Ao[2246,13,4854,1133,4768,2786,0]Dd[2246,13,4854,1133,8746,4302,0,\"impl-Display-for-InvalidSocketAddr\"]Db[2246,13,4854,1133,8746,2786,0,\"impl-Debug-for-InvalidSocketAddr\"]Al[2246,13,4854,0,8463,2786,0]Ao[2246,13,4854,7247,3289,2786,0]Ao[2246,13,4854,7247,4795,2786,0]Cm[2246,13,4854,7247,6361,4302,0,\"impl-Display-for-RetryError\"]Ck[2246,13,4854,7247,6361,2786,0,\"impl-Debug-for-RetryError\"]Al[2246,13,4854,0,8785,2786,0]Al[2246,13,4854,0,8802,2786,0]Al[2246,13,4854,0,7554,2786,0]Df[2246,13,4854,7247,8854,4302,0,\"impl-Display-for-AuthenticationError\"]Dd[2246,13,4854,7247,8854,2786,0,\"impl-Debug-for-AuthenticationError\"]Al[2246,13,4854,0,8966,2786,0]Ao[2246,13,4854,7247,6285,2786,0]Ao[2246,13,4854,7247,5733,2786,0]Al[2246,13,4854,0,9057,2786,0]Al[2246,13,4854,0,7534,2786,0]Cl[2246,13,4854,7247,5738,4302,0,\"impl-Display-for-AlpnError\"]Cj[2246,13,4854,7247,5738,2786,0,\"impl-Debug-for-AlpnError\"]Al[2246,13,4854,0,8817,2786,0]Ci[2246,13,4854,0,5757,4302,0,\"impl-Display-for-FrameType\"]Cg[2246,13,4854,0,5757,2786,0,\"impl-Debug-for-FrameType\"]Db[2246,13,4854,7247,8413,4302,0,\"impl-Display-for-ConnectingError\"]D`[2246,13,4854,7247,8413,2786,0,\"impl-Debug-for-ConnectingError\"]Ao[2246,13,4854,7247,8082,2786,0]Ao[2246,13,4854,7247,6295,2786,0]Ao[2246,13,4854,7247,8796,2786,0]Ao[2246,13,4854,7247,8427,2786,0]Ao[2246,13,4854,7247,8458,2786,0]Df[2246,13,4854,7247,8964,2786,0,\"impl-Debug-for-RemoteEndpointIdError\"]Dh[2246,13,4854,7247,8964,4302,0,\"impl-Display-for-RemoteEndpointIdError\"]Ao[2246,13,4854,7247,8232,2786,0]Ao[2246,13,4854,3231,8907,2786,0]Ao[2246,13,4854,3231,8958,2786,0]Ao[2246,13,4854,2510,9079,2786,0]Ao[2246,13,4854,2510,8869,2786,0]Ao[2246,13,4854,2510,8870,2786,0]Ao[2246,13,4854,2510,7954,2786,0]Ao[2246,13,4854,4854,4288,2786,0]Cn[2246,13,4854,4854,8035,2786,0,\"impl-Debug-for-EndpointError\"]D`[2246,13,4854,4854,8035,4302,0,\"impl-Display-for-EndpointError\"]Ao[2246,13,4854,4854,4786,2786,0]Dg[2246,13,4854,4854,8909,4302,0,\"impl-Display-for-ConnectWithOptsError\"]De[2246,13,4854,4854,8909,2786,0,\"impl-Debug-for-ConnectWithOptsError\"]Cm[2246,13,4854,4854,7911,2786,0,\"impl-Debug-for-ConnectError\"]Co[2246,13,4854,4854,7911,4302,0,\"impl-Display-for-ConnectError\"]Ao[2246,13,4854,4854,8231,2786,0]Ao[2246,13,4854,4854,8246,2786,0]Ao[2246,13,4854,4854,5804,2786,0]Cm[2246,13,4854,0,8415,2786,0,\"impl-Debug-for-ConnectionClose\"]Co[2246,13,4854,0,8415,4302,0,\"impl-Display-for-ConnectionClose\"]D`[2246,13,4854,0,8645,4302,0,\"impl-Display-for-ApplicationClose\"]Cn[2246,13,4854,0,8645,2786,0,\"impl-Debug-for-ApplicationClose\"]Cj[2246,13,4854,0,8671,2786,0,\"impl-Debug-for-ConnectError\"]Cl[2246,13,4854,0,8671,4302,0,\"impl-Display-for-ConnectError\"]Cn[2246,13,4854,0,8281,4302,0,\"impl-Display-for-TransportError\"]Cl[2246,13,4854,0,8281,2786,0,\"impl-Debug-for-TransportError\"]Db[2246,13,4854,0,8815,4302,0,\"impl-Display-for-TransportErrorCode\"]D`[2246,13,4854,0,8815,2786,0,\"impl-Debug-for-TransportErrorCode\"]Al[2246,13,4854,0,8736,2786,0]Al[2246,13,4854,0,1106,2786,0]C`[2246,13,4854,0,347,2786,0,\"impl-Debug-for-Dir\"]Cb[2246,13,4854,0,347,4302,0,\"impl-Display-for-Dir\"]Ch[2246,13,4854,0,4824,4302,0,\"impl-Display-for-StreamId\"]Cf[2246,13,4854,0,4824,2786,0,\"impl-Debug-for-StreamId\"]Am[2246,13,4471,4471,15,2786,0]Ao[2246,13,5056,5056,3342,2786,0]Ao[2246,13,5056,5056,8069,2786,0]Cl[2246,13,5056,5056,7526,2786,0,\"impl-Debug-for-AcceptError\"]Cn[2246,13,5056,5056,7526,4302,0,\"impl-Display-for-AcceptError\"]Ao[2246,13,5056,5056,7528,2786,0]Ck[2246,13,8089,0,8032,2786,0,\"impl-Debug-for-EncodingError\"]Cm[2246,13,8089,0,8032,4302,0,\"impl-Display-for-EncodingError\"]Cm[2246,13,8089,0,8027,4302,0,\"impl-Display-for-DecodingError\"]Ck[2246,13,8089,0,8027,2786,0,\"impl-Debug-for-DecodingError\"]Df[2246,13,8089,0,8996,4302,0,\"impl-Display-for-MaxLengthExceededError\"]Dd[2246,13,8089,0,8996,2786,0,\"impl-Debug-for-MaxLengthExceededError\"]Ao[2246,13,7515,2508,8066,2786,0]Ao[2246,13,7515,7515,8646,2786,0]Ao[2246,13,7515,8971,8241,2786,0]Ao[6109,13,6110,8088,7918,2786,0]Ao[6109,13,6110,8088,8075,2786,0]Ck[6109,13,6110,984,5792,4302,0,\"impl-Display-for-PublicKey\"]Ci[6109,13,6110,984,5792,2786,0,\"impl-Debug-for-PublicKey\"]Da[6109,13,6110,984,8442,4302,0,\"impl-Display-for-KeyParsingError\"]Co[6109,13,6110,984,8442,2786,0,\"impl-Debug-for-KeyParsingError\"]An[6109,13,6110,984,5809,2786,0]Ck[6109,13,6110,984,5816,4302,0,\"impl-Display-for-Signature\"]Ci[6109,13,6110,984,5816,2786,0,\"impl-Debug-for-Signature\"]Cn[6109,13,6110,984,8274,2786,0,\"impl-Debug-for-SignatureError\"]D`[6109,13,6110,984,8274,4302,0,\"impl-Display-for-SignatureError\"]Ck[6109,13,6110,6134,4818,4302,0,\"impl-Display-for-RelayUrl\"]Ci[6109,13,6110,6134,4818,2786,0,\"impl-Debug-for-RelayUrl\"]Dc[6109,13,6110,6134,8807,2786,0,\"impl-Debug-for-RelayUrlParseError\"]De[6109,13,6110,6134,8807,4302,0,\"impl-Display-for-RelayUrlParseError\"]Ao[7457,13,7458,7458,4771,2786,0]An[7457,13,7458,7458,358,2786,0]Ao[7457,13,3268,3268,2831,2786,0]Ao[7457,13,3268,3268,7590,2786,0]Ao[7457,13,3268,3268,8279,2786,0]An[7457,13,1046,1046,359,2786,0]Ao[8623,13,8624,3276,5831,2786,0]Ao[8623,13,3986,3986,3303,2786,0]Ao[8623,13,3986,3986,7579,2786,0]Ao[8623,13,3986,3986,8061,2786,0]Ao[8623,13,3986,3986,8257,2786,0]Ao[8623,13,3986,3986,8409,2786,0]Am[8623,13,645,645,5753,2786,0]Am[8623,13,645,645,6301,2786,0]Am[8623,13,645,645,3311,2786,0]Ao[8623,13,1766,8113,8464,2786,0]Ci[8623,13,1766,1050,4770,2786,0,\"impl-Debug-for-CertMode\"]Ck[8623,13,1766,1050,4770,4302,0,\"impl-Display-for-CertMode\"]Ao[8623,13,1766,1766,6311,2786,0]Ao[8623,13,1766,1766,7553,2786,0]Ao[8623,13,4455,4455,4313,2786,0]Ao[7458,13,7459,7992,7568,2786,0]Ao[7458,13,7459,6115,4801,2786,0]Ck[7458,13,7459,6132,4815,4302,0,\"impl-Display-for-RelayMap\"]Ci[7458,13,7459,6132,4815,2786,0,\"impl-Debug-for-RelayMap\"]Cn[7458,13,7459,6132,7571,4302,0,\"impl-Display-for-RelayConfig\"]Cl[7458,13,7459,6132,7571,2786,0,\"impl-Debug-for-RelayConfig\"]Ao[7458,13,7459,6132,8465,2786,0]Cl[7458,13,3732,1143,5812,4302,0,\"impl-Display-for-SendError\"]Cj[7458,13,3732,1143,5812,2786,0,\"impl-Debug-for-SendError\"]Cl[7458,13,3732,1143,5801,4302,0,\"impl-Display-for-RecvError\"]Cj[7458,13,3732,1143,5801,2786,0,\"impl-Debug-for-RecvError\"]Cm[7458,13,3732,3732,7912,2786,0,\"impl-Debug-for-ConnectError\"]Co[7458,13,3732,3732,7912,4302,0,\"impl-Display-for-ConnectError\"]Cj[7458,13,3732,3732,5752,2786,0,\"impl-Debug-for-DialError\"]Cl[7458,13,3732,3732,5752,4302,0,\"impl-Display-for-DialError\"]Ao[7458,13,3732,3732,8019,2786,0]Ao[7458,13,3732,3732,3298,2786,0]Ao[7458,13,3732,3732,6279,2786,0]Ao[7458,13,3732,3732,7904,2786,0]Ao[7458,13,4045,4454,4315,2786,0]Ao[7458,13,4045,4454,7947,2786,0]Ao[7458,13,4045,5059,8752,2786,0]Ao[7458,13,4045,4045,7955,2786,0]Ao[7458,13,4045,4045,7572,2786,0]Ao[7458,13,4045,4045,7900,2786,0]Ao[7458,13,4045,4045,3291,2786,0]Ao[7458,13,4045,4045,6350,2786,0]Ao[7458,13,4045,4045,5820,2786,0]Ao[7458,13,4045,4045,3321,2786,0]Ao[7458,13,4045,4045,8411,2786,0]Ao[7458,13,4045,4045,6277,2786,0]Ao[7458,13,4045,4045,3346,2786,0]Ck[7458,13,4045,4045,6367,2786,0,\"impl-Debug-for-SpawnError\"]Cm[7458,13,4045,4045,6367,4302,0,\"impl-Display-for-SpawnError\"]D`[7458,13,4045,4045,8472,2786,0,\"impl-Debug-for-SupervisorError\"]Db[7458,13,4045,4045,8472,4302,0,\"impl-Display-for-SupervisorError\"]Ao[7458,13,3733,3733,3304,2786,0]Ao[7458,13,3733,3733,3299,2786,0]Dc[7458,13,3733,3733,8657,4302,0,\"impl-Display-for-HandleFrameError\"]Da[7458,13,3733,3733,8657,2786,0,\"impl-Debug-for-HandleFrameError\"]D`[7458,13,3733,3733,8480,2786,0,\"impl-Debug-for-WriteFrameError\"]Db[7458,13,3733,3733,8480,4302,0,\"impl-Display-for-WriteFrameError\"]Ci[7458,13,3733,3733,4823,2786,0,\"impl-Debug-for-RunError\"]Ck[7458,13,3733,3733,4823,4302,0,\"impl-Display-for-RunError\"]De[7458,13,3733,3733,8795,4302,0,\"impl-Display-for-ForwardPacketError\"]Dc[7458,13,3733,3733,8795,2786,0,\"impl-Debug-for-ForwardPacketError\"]Ao[7458,13,4499,4499,8067,2786,0]Cl[7458,13,4499,4499,5813,4302,0,\"impl-Display-for-SendError\"]Cj[7458,13,4499,4499,5813,2786,0,\"impl-Debug-for-SendError\"]Cl[7458,13,4499,4499,5802,4302,0,\"impl-Display-for-RecvError\"]Cj[7458,13,4499,4499,5802,2786,0,\"impl-Debug-for-RecvError\"]Ao[7458,13,4499,4499,8259,2786,0]Dd[7458,13,4499,4499,8861,2786,0,\"impl-Debug-for-InvalidBucketConfig\"]Df[7458,13,4499,4499,8861,4302,0,\"impl-Display-for-InvalidBucketConfig\"]Ao[7458,13,4365,4365,4291,2786,0]Ao[7458,13,7830,7830,5821,2786,0]De[7458,13,7830,7830,8932,2786,0,\"impl-Debug-for-ServeConnectionError\"]Dg[7458,13,7830,7830,8932,4302,0,\"impl-Display-for-ServeConnectionError\"]Cl[7458,13,7830,7830,7527,2786,0,\"impl-Debug-for-AcceptError\"]Cn[7458,13,7830,7830,7527,4302,0,\"impl-Display-for-AcceptError\"]Dg[7458,13,7830,7830,8991,2786,0,\"impl-Debug-for-ConnectionHandlerError\"]Di[7458,13,7830,7830,8991,4302,0,\"impl-Display-for-ConnectionHandlerError\"]Ao[7458,13,7830,7830,7949,2786,0]Ao[7458,13,7830,7830,4790,2786,0]Ao[7458,13,3742,3742,5758,2786,0]Co[7458,13,3742,3742,8252,2786,0,\"impl-Debug-for-FrameTypeError\"]Da[7458,13,3742,3742,8252,4302,0,\"impl-Display-for-FrameTypeError\"]Cf[7458,13,3251,3251,2807,2786,0,\"impl-Debug-for-Error\"]Ch[7458,13,3251,3251,2807,4302,0,\"impl-Display-for-Error\"]Ao[7458,13,3251,3251,8674,2786,0]Ao[7458,13,3251,3251,8648,2786,0]Ao[7458,13,3251,3251,5749,2786,0]Cf[7458,13,6095,6095,2806,2786,0,\"impl-Debug-for-Error\"]Ch[7458,13,6095,6095,2806,4302,0,\"impl-Display-for-Error\"]Ao[7458,13,6095,6095,9046,2786,0]Ao[7458,13,6095,6095,5772,2786,0]Ch[7458,13,2511,2511,2805,4302,0,\"impl-Display-for-Error\"]Cf[7458,13,2511,2511,2805,2786,0,\"impl-Debug-for-Error\"]Ao[7458,13,2511,2511,6349,2786,0]Ci[7458,13,644,644,4779,4302,0,\"impl-Display-for-DnsError\"]Cg[7458,13,644,644,4779,2786,0,\"impl-Debug-for-DnsError\"]Cj[7458,13,644,644,7559,2786,0,\"impl-Debug-for-LookupError\"]Cl[7458,13,644,644,7559,4302,0,\"impl-Display-for-LookupError\"]Dd[7458,13,644,644,8276,2786,0,\"impl-Debug-for-StaggeredError%3CE%3E\"]Df[7458,13,644,644,8276,4302,0,\"impl-Display-for-StaggeredError%3CE%3E\"]Am[7458,13,644,644,4290,2786,0]Am[7458,13,644,644,7538,2786,0]Am[7458,13,644,644,7540,2786,0]Cn[7458,13,644,644,8076,4302,0,\"impl-Display-for-TxtRecordData\"]Cl[7458,13,644,644,8076,2786,0,\"impl-Debug-for-TxtRecordData\"]D`[7458,13,8090,8090,8033,4302,0,\"impl-Display-for-EncodingError\"]Cn[7458,13,8090,8090,8033,2786,0,\"impl-Debug-for-EncodingError\"]Cn[7458,13,8090,8090,8029,2786,0,\"impl-Debug-for-DecodingError\"]D`[7458,13,8090,8090,8029,4302,0,\"impl-Display-for-DecodingError\"]Ao[7458,13,8090,8090,7921,2786,0]Ck[7458,13,8090,8090,4835,4302,0,\"impl-Display-for-UserData\"]Ci[7458,13,8090,8090,4835,2786,0,\"impl-Debug-for-UserData\"]Dg[7458,13,8090,8090,8997,2786,0,\"impl-Debug-for-MaxLengthExceededError\"]Di[7458,13,8090,8090,8997,4302,0,\"impl-Display-for-MaxLengthExceededError\"]Ao[7458,13,8090,8090,7926,2786,0]Ck[7458,13,8090,8090,6342,2786,0,\"impl-Debug-for-ParseError\"]Cm[7458,13,8090,8090,6342,4302,0,\"impl-Display-for-ParseError\"]Ai[2246,13,2247,0,4351,0,0]Ai[2246,13,2247,0,4814,0,0]Ai[2246,13,4854,0,7951,0,0]Al[7458,13,7459,6132,4815,0,0]Ai[7458,14,2797,0,8476,0,0]Ai[2246,14,4854,0,4832,0,0]Ai[2246,14,6335,0,8222,0,0]0Ai[7458,14,6338,0,8223,0,0]6Al[2246,13,8283,8283,9022,0,0]Al[2246,13,4854,7990,7940,0,0]Ai[2246,14,8022,0,8052,0,0]7Ai[7458,14,7584,0,8261,0,0]Ai[7458,14,8023,0,8053,0,0]Ai[2246,13,4854,0,8966,0,0]=;Ai[2246,13,2247,0,7917,0,0]Ai[2246,13,2247,0,8273,0,0]Ai[2246,13,2247,0,8806,0,0]Ai[2246,13,8283,0,7920,0,0]Ai[2246,13,8283,0,7925,0,0]Al[2246,13,8283,8283,1083,0,0]Al[2246,13,4018,4018,7938,0,0]Al[2246,13,3244,3244,8670,0,0]Ah[2246,13,642,0,7539,0,0]Ai[2246,13,4854,0,6348,0,0]Ai[2246,13,4854,0,8463,0,0]Al[2246,13,4854,7247,6361,0,0]Al[2246,13,4854,7247,8964,0,0]Al[2246,13,4854,4854,4288,0,0]Al[2246,13,4854,4854,8231,0,0]Ai[2246,13,4854,0,8281,0,0]Ai[2246,13,4854,0,4824,0,0]Al[2246,13,5056,5056,8069,0,0]Al[2246,13,5056,5056,7528,0,0]Ai[2246,13,8089,0,8996,0,0]Al[2246,13,7515,2508,8066,0,0]Al[6109,13,6110,8088,7918,0,0]Ak[6109,13,6110,984,8274,0,0]Al[6109,13,6110,6134,8807,0,0]Al[7457,13,3268,3268,8279,0,0]Al[8623,13,8624,3276,5831,0,0]Aj[8623,13,645,645,6301,0,0]Al[7458,13,7459,7992,7568,0,0]Al[7458,13,7459,6115,4801,0,0]Al[7458,13,3732,3732,8019,0,0]Al[7458,13,3733,3733,8795,0,0]Al[7458,13,4499,4499,8067,0,0]Al[7458,13,4499,4499,8861,0,0]Al[7458,13,7830,7830,5821,0,0]Al[7458,13,7830,7830,7949,0,0]Al[7458,13,2511,2511,6349,0,0]Aj[7458,13,644,644,8276,0,0]Aj[7458,13,644,644,7540,0,0]Al[7458,13,8090,8090,7921,0,0]Al[7458,13,8090,8090,8997,0,0]Al[7458,13,8090,8090,7926,0,0]Ak[2246,13,4854,0,1106,357,0]Ai[2246,12,4854,0,6372,0,0]Al[2246,13,4854,7990,4809,0,0]Al[2246,13,4854,7247,6295,0,0]Ai[2246,14,4854,0,5785,0,0]Al[2246,13,7515,8971,8241,0,0]Ae[7457,2,7458,0,0,0,0]Ai[7458,14,8247,0,8687,0,0]Al[7458,14,4045,4045,7572,0,0]Al[2246,13,3244,3244,8962,0,0]Aj[2246,13,638,638,4289,0,0]Al[2246,14,4854,4052,6298,0,0]Al[7458,13,3251,3251,8674,0,0]Ai[2246,14,2247,0,7570,0,0]Ai[2246,14,6345,0,8428,0,0]Al[7458,14,7459,6132,7571,0,0]Ai[7458,14,7909,0,8862,0,0]Ai[7458,14,7909,0,8429,0,0]Ai[7458,14,5751,0,6321,0,0]Af[7457,18,2246,0,0,0,0]Af[7457,18,3248,0,0,0,0]Al[2246,17,4854,7247,8422,0,0]Al[7458,15,4045,4045,3291,0,0]Al[7458,15,3732,3732,7912,0,0]Al[7458,15,7830,7830,8932,0,0]Al[7457,15,7458,7458,8653,0,0]Al[7457,15,7458,7458,8788,0,0]Al[7457,15,7458,7458,4771,0,0]Ae[2246,5,8283,0,0,0,0]Ah[2246,5,4854,3989,0,0,0]Af[2246,18,2254,0,0,0,0]Al[2246,15,4854,7505,3350,0,0]Ai[2246,15,4854,0,5757,0,0]Al[7458,15,3742,3742,5758,0,0]Al[7458,15,3251,3251,8674,0,0]Al[7458,15,3251,3251,8648,0,0]210Ai[2246,15,4854,0,8270,0,0]Al[7458,15,3733,3733,8657,0,0]0Ah[2246,6,4854,8707,0,0,0]Al[2246,15,8283,8283,8993,0,0]Al[2246,15,8283,8283,2804,0,0]Al[2246,15,5056,5056,7526,0,0]Ai[2246,15,8283,0,6340,0,0]0Al[7458,15,8090,8090,6342,0,0]Ai[2246,19,4854,0,3331,0,0]Ai[2246,14,4854,0,6309,0,0]Al[2246,13,4854,7889,8757,0,0]Al[2246,13,4854,4854,4786,0,0]Al[2246,14,4854,4052,6298,0,0]Ai[7458,14,6366,0,8405,0,0]Al[2246,13,4854,7247,6285,0,0]Al[2246,13,4854,7247,5733,0,0]Bn[2246,13,4854,7247,6295,0,0,\"impl-Connection\"]Dc[2246,13,4854,7247,6295,0,0,\"impl-Connection%3COutgoingZeroRtt%3E\"]Dc[2246,13,4854,7247,6295,0,0,\"impl-Connection%3CIncomingZeroRtt%3E\"]Al[2246,13,4854,7247,8232,0,0]Al[2246,13,4854,4854,4288,0,0]9Ab[1136,3,0,0,0,0,0]Ao[7458,13,7830,7830,7949,4329,0]Ao[7458,13,7830,7830,7949,7552,0]Al[7458,14,4045,4045,5820,0,0]Ai[2246,14,4854,0,8281,0,0]Ai[7458,14,7909,0,9030,0,0]Ai[2246,14,4854,0,5785,0,0]Ai[2246,14,8283,0,7925,0,0]0Al[7458,14,8090,8090,7926,0,0]Al[2246,13,2247,0,7917,5786,0]Al[2246,13,2247,0,8074,5786,0]Al[2246,13,2247,0,5791,5786,0]Al[2246,13,2247,0,8441,5786,0]Al[2246,13,2247,0,5808,5786,0]Al[2246,13,2247,0,5808,1073,0]Al[2246,13,2247,0,5815,5786,0]Al[2246,13,2247,0,8273,5786,0]Al[2246,13,2247,0,4817,5786,0]Al[2246,13,2247,0,8806,5786,0]Al[2246,13,2247,0,4814,5786,0]Al[2246,13,2247,0,7570,5786,0]Al[2246,13,2247,0,5773,5786,0]Al[2246,13,4453,0,8264,5786,0]Al[2246,13,4453,0,8070,5786,0]Al[2246,13,4453,0,7946,5786,0]Ao[2246,13,4453,4453,8426,5786,0]Al[2246,13,4453,0,8665,5786,0]Al[2246,13,8283,0,7920,5786,0]Al[2246,13,8283,0,4834,5786,0]Al[2246,13,8283,0,7925,5786,0]Al[2246,13,8283,0,6340,5786,0]Ao[2246,13,8283,8283,8993,5786,0]Ao[2246,13,8283,8283,2804,5786,0]Ao[2246,13,8283,8283,1083,5786,0]Ao[2246,13,8283,8283,9022,5786,0]Ao[2246,13,4018,4018,7938,5786,0]Am[2246,13,643,643,8652,5786,0]Am[2246,13,643,643,9025,5786,0]Ao[2246,13,3244,3244,6346,5786,0]Ao[2246,13,3244,3244,8962,5786,0]Ao[2246,13,3244,3244,8263,5786,0]Ao[2246,13,3244,3244,8929,5786,0]Ao[2246,13,3244,3244,8063,5786,0]Ao[2246,13,3244,3244,8670,5786,0]Am[2246,13,638,638,8650,5786,0]Am[2246,13,638,638,4289,5786,0]Ao[2246,13,2254,2254,8751,5786,0]Ao[2246,13,2254,2254,9045,5786,0]Ao[2246,13,2254,2254,8240,5786,0]Ak[2246,13,642,0,7539,5786,0]Al[2246,13,4854,0,4317,5786,0]Al[2246,13,4854,0,3328,5786,0]Al[2246,13,4854,0,5732,5786,0]Al[2246,13,4854,0,4763,5786,0]Al[2246,13,4854,0,7945,5786,0]Al[2246,13,4854,0,7952,5786,0]Al[2246,13,4854,0,8753,5786,0]Al[2246,13,4854,0,6353,1073,0]Al[2246,13,4854,0,6353,5786,0]Al[2246,13,4854,0,8874,5786,0]Al[2246,13,4854,0,8270,5786,0]Al[2246,13,4854,0,5796,5786,0]Al[2246,13,4854,0,6355,5786,0]Al[2246,13,4854,0,8269,5786,0]Al[2246,13,4854,0,6363,1073,0]Al[2246,13,4854,0,6363,5786,0]Al[2246,13,4854,0,6373,5786,0]Al[2246,13,4854,0,7957,5786,0]Al[2246,13,4854,0,6348,5786,0]Al[2246,13,4854,0,1084,5786,0]Ao[2246,13,4854,7990,7940,5786,0]Ao[2246,13,4854,7990,8668,5786,0]Ao[2246,13,4854,7990,7567,5786,0]Ao[2246,13,4854,7990,4809,5786,0]Ao[2246,13,4854,7889,6354,5786,0]Ao[2246,13,4854,7889,8757,5786,0]Ao[2246,13,4854,7889,8814,5786,0]Al[2246,13,4854,0,8473,5786,0]Al[2246,13,4854,0,8871,5786,0]Al[2246,13,4854,0,3359,5786,0]Al[2246,13,4854,0,8933,5786,0]Al[2246,13,4854,0,2783,5786,0]Al[2246,13,4854,0,3331,5786,0]Ao[2246,13,4854,7505,3350,5786,0]Al[2246,13,4854,0,7951,5786,0]Al[2246,13,4854,0,4832,5786,0]Al[2246,13,4854,0,6309,5786,0]Al[2246,13,4854,0,5785,5786,0]Al[2246,13,4854,0,8423,5786,0]Al[2246,13,4854,0,4352,5786,0]Al[2246,13,4854,0,7907,5786,0]Ao[2246,13,4854,4052,5741,5786,0]Ao[2246,13,4854,4052,6298,5786,0]Ao[2246,13,4854,4052,8238,5786,0]Al[2246,13,4854,0,8421,5786,0]Ao[2246,13,4854,1133,4768,5786,0]Ao[2246,13,4854,1133,8746,5786,0]Al[2246,13,4854,0,8463,5786,0]Ao[2246,13,4854,7247,3289,5786,0]Ao[2246,13,4854,7247,4795,5786,0]Ao[2246,13,4854,7247,6361,5786,0]Al[2246,13,4854,0,8785,5786,0]Al[2246,13,4854,0,8802,5786,0]Al[2246,13,4854,0,7554,5786,0]Ao[2246,13,4854,7247,8854,5786,0]Al[2246,13,4854,0,8966,5786,0]Ao[2246,13,4854,7247,6285,5786,0]Ao[2246,13,4854,7247,5733,5786,0]Al[2246,13,4854,0,9057,5786,0]Al[2246,13,4854,0,7534,5786,0]Ao[2246,13,4854,7247,5738,5786,0]Al[2246,13,4854,0,8817,5786,0]Al[2246,13,4854,0,5757,5786,0]Ao[2246,13,4854,7247,8413,5786,0]Ao[2246,13,4854,7247,8082,5786,0]Ao[2246,13,4854,7247,6295,5786,0]Ao[2246,13,4854,7247,8796,5786,0]Ao[2246,13,4854,7247,8427,5786,0]Ao[2246,13,4854,7247,8458,5786,0]Ao[2246,13,4854,7247,8964,5786,0]Ao[2246,13,4854,7247,8232,5786,0]Ao[2246,13,4854,3231,8907,5786,0]Ao[2246,13,4854,3231,8958,5786,0]Ao[2246,13,4854,2510,9079,5786,0]Ao[2246,13,4854,2510,8869,5786,0]Ao[2246,13,4854,2510,8870,5786,0]Ao[2246,13,4854,2510,7954,5786,0]Ao[2246,13,4854,4854,4288,5786,0]Ao[2246,13,4854,4854,8035,5786,0]Ao[2246,13,4854,4854,4786,5786,0]Ao[2246,13,4854,4854,8909,5786,0]Ao[2246,13,4854,4854,7911,5786,0]Ao[2246,13,4854,4854,8231,5786,0]Ao[2246,13,4854,4854,8246,5786,0]Ao[2246,13,4854,4854,5804,5786,0]Al[2246,13,4854,0,8415,5786,0]Al[2246,13,4854,0,8645,5786,0]Al[2246,13,4854,0,8671,5786,0]Al[2246,13,4854,0,8281,5786,0]Al[2246,13,4854,0,8815,5786,0]Al[2246,13,4854,0,8736,5786,0]Al[2246,13,4854,0,1106,5786,0]Ak[2246,13,4854,0,347,5786,0]Al[2246,13,4854,0,4824,5786,0]Am[2246,13,4471,4471,15,5786,0]Ao[2246,13,5056,5056,3342,5786,0]Ao[2246,13,5056,5056,8069,5786,0]Ao[2246,13,5056,5056,7526,5786,0]Ao[2246,13,5056,5056,7528,5786,0]Al[2246,13,8089,0,8032,5786,0]Al[2246,13,8089,0,8027,5786,0]Al[2246,13,8089,0,8996,5786,0]Ao[2246,13,7515,2508,8066,5786,0]Ao[2246,13,7515,7515,8646,5786,0]Ao[2246,13,7515,8971,8241,5786,0]An[6109,13,6110,984,5809,1073,0]Ao[7457,13,7458,7458,8653,5786,0]Ao[7457,13,7458,7458,8788,5786,0]Ao[7457,13,7458,7458,4771,5786,0]An[7457,13,7458,7458,358,5786,0]Ao[7457,13,7458,7458,7532,5786,0]Ao[7457,13,3268,3268,2831,5786,0]Ao[7457,13,3268,3268,7590,5786,0]Ao[7457,13,3268,3268,8279,5786,0]An[7457,13,1046,1046,359,5786,0]Ao[7458,13,7459,7992,7568,5786,0]Ao[7458,13,7459,6115,4801,5786,0]Ao[7458,13,7459,6132,4815,5786,0]Ao[7458,13,7459,6132,7571,5786,0]Ao[7458,13,7459,6132,8465,5786,0]Ao[7458,13,3732,1143,5812,5786,0]Ao[7458,13,3732,1143,5801,5786,0]Ao[7458,13,3732,3732,7912,5786,0]Ao[7458,13,3732,3732,5752,5786,0]Ao[7458,13,3732,3732,8019,5786,0]Ao[7458,13,3732,3732,3298,5786,0]Ao[7458,13,3732,3732,6279,5786,0]Ao[7458,13,3732,3732,7904,5786,0]Ao[7458,13,4045,4454,4315,5786,0]Ao[7458,13,4045,4454,7947,5786,0]Ao[7458,13,4045,5059,8752,5786,0]Ao[7458,13,4045,4045,7955,5786,0]Ao[7458,13,4045,4045,7572,5786,0]Ao[7458,13,4045,4045,7900,5786,0]Ao[7458,13,4045,4045,3291,5786,0]Ao[7458,13,4045,4045,6350,5786,0]Ao[7458,13,4045,4045,5820,5786,0]Ao[7458,13,4045,4045,3321,5786,0]Ao[7458,13,4045,4045,8411,5786,0]Ao[7458,13,4045,4045,6277,5786,0]Ao[7458,13,4045,4045,3346,5786,0]Ao[7458,13,4045,4045,6367,5786,0]Ao[7458,13,4045,4045,8472,5786,0]Ao[7458,13,3733,3733,3304,5786,0]Ao[7458,13,3733,3733,3299,5786,0]Ao[7458,13,3733,3733,8657,5786,0]Ao[7458,13,3733,3733,8480,5786,0]Ao[7458,13,3733,3733,4823,5786,0]Ao[7458,13,3733,3733,8795,5786,0]Ao[7458,13,4499,4499,8067,5786,0]Ao[7458,13,4499,4499,5813,5786,0]Ao[7458,13,4499,4499,5802,5786,0]Ao[7458,13,4499,4499,8259,5786,0]Ao[7458,13,4499,4499,8861,5786,0]Ao[7458,13,4365,4365,4291,5786,0]Ao[7458,13,7830,7830,5821,5786,0]Ao[7458,13,7830,7830,8932,5786,0]Ao[7458,13,7830,7830,7527,5786,0]Ao[7458,13,7830,7830,8991,5786,0]Ao[7458,13,7830,7830,7949,5786,0]Ao[7458,13,7830,7830,4790,5786,0]Ao[7458,13,3742,3742,5758,5786,0]Ao[7458,13,3742,3742,8252,5786,0]Ao[7458,13,3251,3251,2807,5786,0]Ao[7458,13,3251,3251,8674,5786,0]Ao[7458,13,3251,3251,8648,5786,0]Ao[7458,13,3251,3251,5749,5786,0]Ao[7458,13,6095,6095,2806,5786,0]Ao[7458,13,6095,6095,9046,5786,0]Ao[7458,13,6095,6095,5772,5786,0]Ao[7458,13,2511,2511,2805,5786,0]Ao[7458,13,2511,2511,6349,5786,0]Am[7458,13,644,644,4779,5786,0]Am[7458,13,644,644,7559,5786,0]Am[7458,13,644,644,8276,5786,0]Am[7458,13,644,644,4290,5786,0]Am[7458,13,644,644,7538,5786,0]Am[7458,13,644,644,7540,5786,0]Am[7458,13,644,644,8076,5786,0]Ao[7458,13,8090,8090,8033,5786,0]Ao[7458,13,8090,8090,8029,5786,0]Ao[7458,13,8090,8090,7921,5786,0]Ao[7458,13,8090,8090,4835,5786,0]Ao[7458,13,8090,8090,8997,5786,0]Ao[7458,13,8090,8090,7926,5786,0]Ao[7458,13,8090,8090,6342,5786,0]Dh[2246,13,2247,0,7917,1074,0,\"impl-From%3CPublicKey%3E-for-EndpointAddr\"]Dk[2246,13,2247,0,7917,1074,0,\"impl-From%3CEndpointInfo%3E-for-EndpointAddr\"]Al[2246,13,2247,0,7917,1074,0]Al[2246,13,2247,0,8074,1074,0]0Al[2246,13,2247,0,5791,1074,0]Al[2246,13,2247,0,8441,1074,0]Dg[2246,13,2247,0,8441,1074,0,\"impl-From%3CError%3E-for-KeyParsingError\"]Dm[2246,13,2247,0,8441,1074,0,\"impl-From%3CDecodeError%3E-for-KeyParsingError\"]Al[2246,13,2247,0,5808,1074,0]0Al[2246,13,2247,0,5815,1074,0]Al[2246,13,2247,0,8273,1074,0]Al[2246,13,2247,0,4817,1074,0]0Al[2246,13,2247,0,8806,1074,0]Al[2246,13,2247,0,4814,1074,0]Dc[2246,13,2247,0,4814,1074,0,\"impl-From%3CRelayUrl%3E-for-RelayMap\"]Df[2246,13,2247,0,4814,1074,0,\"impl-From%3CRelayConfig%3E-for-RelayMap\"]Al[2246,13,2247,0,7570,1074,0]0Al[2246,13,2247,0,5773,1074,0]Al[2246,13,4453,0,8264,1074,0]Al[2246,13,4453,0,8070,1074,0]Al[2246,13,4453,0,7946,1074,0]Ao[2246,13,4453,4453,8426,1074,0]Al[2246,13,4453,0,8665,1074,0]Al[2246,13,8283,0,7920,1074,0]0Al[2246,13,8283,0,4834,1074,0]Dc[2246,13,8283,0,7925,1074,0,\"impl-From%3CItem%3E-for-EndpointInfo\"]Eh[2246,13,8283,0,7925,1074,0,\"impl-From%3C%26TxtAttrs%3CIrohAttr%3E%3E-for-EndpointInfo\"]Ee[2246,13,8283,0,7925,1074,0,\"impl-From%3CTxtAttrs%3CIrohAttr%3E%3E-for-EndpointInfo\"]Dk[2246,13,8283,0,7925,1074,0,\"impl-From%3CEndpointAddr%3E-for-EndpointInfo\"]Al[2246,13,8283,0,7925,1074,0]Dj[2246,13,8283,0,6340,1074,0,\"impl-From%3CDecodingError%3E-for-ParseError\"]Al[2246,13,8283,0,6340,1074,0]Df[2246,13,8283,0,6340,1074,0,\"impl-From%3CUtf8Error%3E-for-ParseError\"]Ed[2246,13,8283,8283,8993,1074,0,\"impl-From%3CAnyError%3E-for-IntoAddressLookupError\"]Ei[2246,13,8283,8283,8993,1074,0,\"impl-From%3CEndpointError%3E-for-IntoAddressLookupError\"]Ao[2246,13,8283,8283,8993,1074,0]Ao[2246,13,8283,8283,2804,1074,0]0Ao[2246,13,8283,8283,1083,1074,0]Ao[2246,13,8283,8283,9022,1074,0]0Ao[2246,13,4018,4018,7938,1074,0]Am[2246,13,643,643,8652,1074,0]Am[2246,13,643,643,9025,1074,0]Ao[2246,13,3244,3244,6346,1074,0]Ao[2246,13,3244,3244,8962,1074,0]Ao[2246,13,3244,3244,8263,1074,0]Ao[2246,13,3244,3244,8929,1074,0]Ao[2246,13,3244,3244,8063,1074,0]Ao[2246,13,3244,3244,8670,1074,0]Am[2246,13,638,638,8650,1074,0]Am[2246,13,638,638,4289,1074,0]Ao[2246,13,2254,2254,8751,1074,0]Ao[2246,13,2254,2254,9045,1074,0]Ao[2246,13,2254,2254,8240,1074,0]Ak[2246,13,642,0,7539,1074,0]Al[2246,13,4854,0,4317,1074,0]Al[2246,13,4854,0,3328,1074,0]Al[2246,13,4854,0,5732,1074,0]Al[2246,13,4854,0,4763,1074,0]Al[2246,13,4854,0,7945,1074,0]Al[2246,13,4854,0,7952,1074,0]Al[2246,13,4854,0,8753,1074,0]0Al[2246,13,4854,0,6353,1074,0]Al[2246,13,4854,0,8874,1074,0]Al[2246,13,4854,0,8270,1074,0]0Dk[2246,13,4854,0,5796,1074,0,\"impl-From%3CConnectionError%3E-for-ReadError\"]Df[2246,13,4854,0,5796,1074,0,\"impl-From%3CResetError%3E-for-ReadError\"]Al[2246,13,4854,0,5796,1074,0]Al[2246,13,4854,0,6355,1074,0]0Al[2246,13,4854,0,8269,1074,0]0Al[2246,13,4854,0,6363,1074,0]Al[2246,13,4854,0,6373,1074,0]Dl[2246,13,4854,0,6373,1074,0,\"impl-From%3CConnectionError%3E-for-WriteError\"]Di[2246,13,4854,0,6373,1074,0,\"impl-From%3CClosedStream%3E-for-WriteError\"]Di[2246,13,4854,0,6373,1074,0,\"impl-From%3CStoppedError%3E-for-WriteError\"]Al[2246,13,4854,0,7957,1074,0]0Al[2246,13,4854,0,6348,1074,0]Al[2246,13,4854,0,1084,1074,0]Ao[2246,13,4854,7990,7940,1074,0]Ao[2246,13,4854,7990,8668,1074,0]Ao[2246,13,4854,7990,7567,1074,0]Ao[2246,13,4854,7990,4809,1074,0]Ao[2246,13,4854,7889,6354,1074,0]Ao[2246,13,4854,7889,8757,1074,0]Ao[2246,13,4854,7889,8814,1074,0]Al[2246,13,4854,0,8473,1074,0]Al[2246,13,4854,0,8871,1074,0]Db[2246,13,4854,0,3359,1074,0,\"impl-From%3CFrameType%3E-for-VarInt\"]Da[2246,13,4854,0,3359,1074,0,\"impl-From%3CStreamId%3E-for-VarInt\"]Al[2246,13,4854,0,3359,1074,0]Dk[2246,13,4854,0,3359,1074,0,\"impl-From%3CTransportErrorCode%3E-for-VarInt\"]Cl[2246,13,4854,0,3359,1074,0,\"impl-From%3Cu32%3E-for-VarInt\"]Cl[2246,13,4854,0,3359,1074,0,\"impl-From%3Cu16%3E-for-VarInt\"]Ck[2246,13,4854,0,3359,1074,0,\"impl-From%3Cu8%3E-for-VarInt\"]Al[2246,13,4854,0,8933,1074,0]Al[2246,13,4854,0,2783,1074,0]Al[2246,13,4854,0,3331,1074,0]0Ao[2246,13,4854,7505,3350,1074,0]Al[2246,13,4854,0,7951,1074,0]Al[2246,13,4854,0,4832,1074,0]Al[2246,13,4854,0,6309,1074,0]Al[2246,13,4854,0,5785,1074,0]Al[2246,13,4854,0,8423,1074,0]Al[2246,13,4854,0,4352,1074,0]Al[2246,13,4854,0,7907,1074,0]Ao[2246,13,4854,4052,5741,1074,0]0Ao[2246,13,4854,4052,6298,1074,0]Ao[2246,13,4854,4052,8238,1074,0]Dg[2246,13,4854,0,8421,1074,0,\"impl-From%3CClose%3E-for-ConnectionError\"]Dm[2246,13,4854,0,8421,1074,0,\"impl-From%3CCloseReason%3E-for-ConnectionError\"]E`[2246,13,4854,0,8421,1074,0,\"impl-From%3CTransportError%3E-for-ConnectionError\"]Al[2246,13,4854,0,8421,1074,0]Ao[2246,13,4854,1133,4768,1074,0]Ee[2246,13,4854,1133,8746,1074,0,\"impl-From%3CAddrParseError%3E-for-InvalidSocketAddr\"]Ee[2246,13,4854,1133,8746,1074,0,\"impl-From%3CPrefixLenError%3E-for-InvalidSocketAddr\"]Ao[2246,13,4854,1133,8746,1074,0]Ea[2246,13,4854,1133,8746,1074,0,\"impl-From%3CInfallible%3E-for-InvalidSocketAddr\"]Al[2246,13,4854,0,8463,1074,0]Ao[2246,13,4854,7247,3289,1074,0]Ao[2246,13,4854,7247,4795,1074,0]Ao[2246,13,4854,7247,6361,1074,0]Al[2246,13,4854,0,8785,1074,0]Al[2246,13,4854,0,8802,1074,0]Al[2246,13,4854,0,7554,1074,0]0Ao[2246,13,4854,7247,8854,1074,0]0Al[2246,13,4854,0,8966,1074,0]Ao[2246,13,4854,7247,6285,1074,0]Ao[2246,13,4854,7247,5733,1074,0]Al[2246,13,4854,0,9057,1074,0]Al[2246,13,4854,0,7534,1074,0]0Ao[2246,13,4854,7247,5738,1074,0]0Al[2246,13,4854,0,8817,1074,0]Al[2246,13,4854,0,5757,1074,0]Ed[2246,13,4854,7247,8413,1074,0,\"impl-From%3CConnectionError%3E-for-ConnectingError\"]Ao[2246,13,4854,7247,8413,1074,0]Eh[2246,13,4854,7247,8413,1074,0,\"impl-From%3CAuthenticationError%3E-for-ConnectingError\"]Ao[2246,13,4854,7247,8082,1074,0]Ao[2246,13,4854,7247,6295,1074,0]Ao[2246,13,4854,7247,8796,1074,0]Ao[2246,13,4854,7247,8427,1074,0]Ao[2246,13,4854,7247,8458,1074,0]Ao[2246,13,4854,7247,8964,1074,0]Ao[2246,13,4854,7247,8232,1074,0]Ao[2246,13,4854,3231,8907,1074,0]Ao[2246,13,4854,3231,8958,1074,0]Ao[2246,13,4854,2510,9079,1074,0]Ao[2246,13,4854,2510,8869,1074,0]Ao[2246,13,4854,2510,8870,1074,0]Ao[2246,13,4854,2510,7954,1074,0]Ao[2246,13,4854,4854,4288,1074,0]Ao[2246,13,4854,4854,8035,1074,0]Ao[2246,13,4854,4854,4786,1074,0]Ao[2246,13,4854,4854,8909,1074,0]Do[2246,13,4854,4854,8909,1074,0,\"impl-From%3CError%3E-for-ConnectWithOptsError\"]Ef[2246,13,4854,4854,8909,1074,0,\"impl-From%3CConnectError%3E-for-ConnectWithOptsError\"]Ao[2246,13,4854,4854,7911,1074,0]Ea[2246,13,4854,4854,7911,1074,0,\"impl-From%3CConnectionError%3E-for-ConnectError\"]Ea[2246,13,4854,4854,7911,1074,0,\"impl-From%3CConnectingError%3E-for-ConnectError\"]Ef[2246,13,4854,4854,7911,1074,0,\"impl-From%3CConnectWithOptsError%3E-for-ConnectError\"]Ao[2246,13,4854,4854,8231,1074,0]Ao[2246,13,4854,4854,8246,1074,0]Ao[2246,13,4854,4854,5804,1074,0]Al[2246,13,4854,0,8415,1074,0]0Al[2246,13,4854,0,8645,1074,0]Al[2246,13,4854,0,8671,1074,0]0Df[2246,13,4854,0,8281,1074,0,\"impl-From%3CError%3E-for-TransportError\"]Dm[2246,13,4854,0,8281,1074,0,\"impl-From%3CInvalidFrame%3E-for-TransportError\"]Al[2246,13,4854,0,8281,1074,0]Al[2246,13,4854,0,8815,1074,0]0Al[2246,13,4854,0,8736,1074,0]Al[2246,13,4854,0,1106,1074,0]Ak[2246,13,4854,0,347,1074,0]Al[2246,13,4854,0,4824,1074,0]0Am[2246,13,4471,4471,15,1074,0]Ao[2246,13,5056,5056,3342,1074,0]Ao[2246,13,5056,5056,8069,1074,0]Ao[2246,13,5056,5056,7526,1074,0]E`[2246,13,5056,5056,7526,1074,0,\"impl-From%3CConnectionError%3E-for-AcceptError\"]Ef[2246,13,5056,5056,7526,1074,0,\"impl-From%3CRemoteEndpointIdError%3E-for-AcceptError\"]Di[2246,13,5056,5056,7526,1074,0,\"impl-From%3CAnyError%3E-for-AcceptError\"]Df[2246,13,5056,5056,7526,1074,0,\"impl-From%3CError%3E-for-AcceptError\"]Dm[2246,13,5056,5056,7526,1074,0,\"impl-From%3CClosedStream%3E-for-AcceptError\"]E`[2246,13,5056,5056,7526,1074,0,\"impl-From%3CConnectingError%3E-for-AcceptError\"]Ao[2246,13,5056,5056,7528,1074,0]Al[2246,13,8089,0,8032,1074,0]Al[2246,13,8089,0,8027,1074,0]Al[2246,13,8089,0,8996,1074,0]Ao[2246,13,7515,2508,8066,1074,0]Ao[2246,13,7515,7515,8646,1074,0]Ao[2246,13,7515,8971,8241,1074,0]Ao[6109,13,6110,8088,7918,1074,0]0Ao[6109,13,6110,8088,8075,1074,0]An[6109,13,6110,984,5792,1074,0]Do[6109,13,6110,984,8442,1074,0,\"impl-From%3CDecodeError%3E-for-KeyParsingError\"]An[6109,13,6110,984,8442,1074,0]Di[6109,13,6110,984,8442,1074,0,\"impl-From%3CError%3E-for-KeyParsingError\"]An[6109,13,6110,984,5809,1074,0]0An[6109,13,6110,984,5816,1074,0]An[6109,13,6110,984,8274,1074,0]Ao[6109,13,6110,6134,4818,1074,0]0Ao[6109,13,6110,6134,8807,1074,0]Ao[7457,13,7458,7458,8653,1074,0]Ao[7457,13,7458,7458,8788,1074,0]Ao[7457,13,7458,7458,4771,1074,0]An[7457,13,7458,7458,358,1074,0]Ao[7457,13,7458,7458,7532,1074,0]Ao[7457,13,3268,3268,2831,1074,0]Ao[7457,13,3268,3268,7590,1074,0]Ao[7457,13,3268,3268,8279,1074,0]An[7457,13,1046,1046,359,1074,0]Ao[8623,13,8624,3276,5831,1074,0]Ao[8623,13,3265,3265,4766,1074,0]Ao[8623,13,3986,3986,3303,1074,0]Ao[8623,13,3986,3986,7579,1074,0]Ao[8623,13,3986,3986,8061,1074,0]Ao[8623,13,3986,3986,8257,1074,0]Ao[8623,13,3986,3986,8409,1074,0]Am[8623,13,645,645,5754,1074,0]Am[8623,13,645,645,5753,1074,0]Am[8623,13,645,645,6301,1074,0]Am[8623,13,645,645,3311,1074,0]Ao[8623,13,1766,1766,6312,1074,0]Ao[8623,13,1766,8113,8464,1074,0]Ao[8623,13,1766,1050,4770,1074,0]Ao[8623,13,1766,1766,6311,1074,0]Ao[8623,13,1766,1766,7553,1074,0]Ao[8623,13,4455,4455,4313,1074,0]Ao[8623,13,4046,4046,3345,1074,0]Ao[7458,13,7459,7992,7568,1074,0]Ao[7458,13,7459,6115,4801,1074,0]Ao[7458,13,7459,6132,4815,1074,0]Df[7458,13,7459,6132,4815,1074,0,\"impl-From%3CRelayUrl%3E-for-RelayMap\"]Di[7458,13,7459,6132,4815,1074,0,\"impl-From%3CRelayConfig%3E-for-RelayMap\"]Ao[7458,13,7459,6132,7571,1074,0]0Ao[7458,13,7459,6132,8465,1074,0]Ao[7458,13,3732,1143,5812,1074,0]0Dd[7458,13,3732,1143,5801,1074,0,\"impl-From%3CError%3E-for-RecvError\"]Ao[7458,13,3732,1143,5801,1074,0]1Dg[7458,13,3732,3732,7912,1074,0,\"impl-From%3CError%3E-for-ConnectError\"]Ao[7458,13,3732,3732,7912,1074,0]Dk[7458,13,3732,3732,7912,1074,0,\"impl-From%3CDialError%3E-for-ConnectError\"]222Dg[7458,13,3732,3732,5752,1074,0,\"impl-From%3CDnsError%3E-for-DialError\"]Dd[7458,13,3732,3732,5752,1074,0,\"impl-From%3CError%3E-for-DialError\"]Df[7458,13,3732,3732,5752,1074,0,\"impl-From%3CElapsed%3E-for-DialError\"]1Ao[7458,13,3732,3732,5752,1074,0]Ao[7458,13,3732,3732,8019,1074,0]Ao[7458,13,3732,3732,3298,1074,0]Ao[7458,13,3732,3732,6279,1074,0]Ao[7458,13,3732,3732,7904,1074,0]Ao[7458,13,4045,4454,4315,1074,0]Ao[7458,13,4045,4454,7947,1074,0]Ao[7458,13,4045,5059,8752,1074,0]Ao[7458,13,4045,4045,7955,1074,0]Ao[7458,13,4045,4045,7572,1074,0]Ao[7458,13,4045,4045,7900,1074,0]Ao[7458,13,4045,4045,3291,1074,0]Ao[7458,13,4045,4045,6350,1074,0]Ao[7458,13,4045,4045,5820,1074,0]Ao[7458,13,4045,4045,3321,1074,0]Ao[7458,13,4045,4045,8411,1074,0]Ao[7458,13,4045,4045,6277,1074,0]Ao[7458,13,4045,4045,3346,1074,0]Ao[7458,13,4045,4045,6367,1074,0]Ao[7458,13,4045,4045,8472,1074,0]0Ao[7458,13,3733,3733,3304,1074,0]Ao[7458,13,3733,3733,3299,1074,0]Do[7458,13,3733,3733,8657,1074,0,\"impl-From%3CRecvError%3E-for-HandleFrameError\"]Eh[7458,13,3733,3733,8657,1074,0,\"impl-From%3CForwardPacketError%3E-for-HandleFrameError\"]Ao[7458,13,3733,3733,8657,1074,0]Ee[7458,13,3733,3733,8657,1074,0,\"impl-From%3CWriteFrameError%3E-for-HandleFrameError\"]Dl[7458,13,3733,3733,8480,1074,0,\"impl-From%3CElapsed%3E-for-WriteFrameError\"]Ao[7458,13,3733,3733,8480,1074,0]Dn[7458,13,3733,3733,8480,1074,0,\"impl-From%3CSendError%3E-for-WriteFrameError\"]Dn[7458,13,3733,3733,4823,1074,0,\"impl-From%3CHandleFrameError%3E-for-RunError\"]E`[7458,13,3733,3733,4823,1074,0,\"impl-From%3CForwardPacketError%3E-for-RunError\"]Ao[7458,13,3733,3733,4823,1074,0]Ao[7458,13,3733,3733,8795,1074,0]Ao[7458,13,4499,4499,8067,1074,0]Ao[7458,13,4499,4499,5813,1074,0]0Dd[7458,13,4499,4499,5802,1074,0,\"impl-From%3CError%3E-for-RecvError\"]Ao[7458,13,4499,4499,5802,1074,0]1Ao[7458,13,4499,4499,8259,1074,0]Ao[7458,13,4499,4499,8861,1074,0]Ao[7458,13,4365,4365,4291,1074,0]Ao[7458,13,7830,7830,5821,1074,0]Ao[7458,13,7830,7830,8932,1074,0]Df[7458,13,7830,7830,7527,1074,0,\"impl-From%3CError%3E-for-AcceptError\"]Ed[7458,13,7830,7830,7527,1074,0,\"impl-From%3CInvalidBucketConfig%3E-for-AcceptError\"]Ao[7458,13,7830,7830,7527,1074,0]Ao[7458,13,7830,7830,8991,1074,0]0Ao[7458,13,7830,7830,7949,1074,0]Ao[7458,13,7830,7830,4790,1074,0]Ao[7458,13,3742,3742,5758,1074,0]Ao[7458,13,3742,3742,8252,1074,0]Ao[7458,13,3251,3251,2807,1074,0]Dd[7458,13,3251,3251,2807,1074,0,\"impl-From%3CUtf8Error%3E-for-Error\"]Dj[7458,13,3251,3251,2807,1074,0,\"impl-From%3CKeyParsingError%3E-for-Error\"]Di[7458,13,3251,3251,2807,1074,0,\"impl-From%3CFrameTypeError%3E-for-Error\"]D`[7458,13,3251,3251,2807,1074,0,\"impl-From%3CError%3E-for-Error\"]Ao[7458,13,3251,3251,8674,1074,0]Ao[7458,13,3251,3251,8648,1074,0]Ao[7458,13,3251,3251,5749,1074,0]0D`[7458,13,6095,6095,2806,1074,0,\"impl-From%3CError%3E-for-Error\"]Di[7458,13,6095,6095,2806,1074,0,\"impl-From%3CFrameTypeError%3E-for-Error\"]Ao[7458,13,6095,6095,2806,1074,0]Ao[7458,13,6095,6095,9046,1074,0]Ao[7458,13,6095,6095,5772,1074,0]Dd[7458,13,2511,2511,2805,1074,0,\"impl-From%3CRecvError%3E-for-Error\"]Dj[7458,13,2511,2511,2805,1074,0,\"impl-From%3CConnectionError%3E-for-Error\"]Dg[7458,13,2511,2511,2805,1074,0,\"impl-From%3CConnectError%3E-for-Error\"]Ao[7458,13,2511,2511,2805,1074,0]Ao[7458,13,2511,2511,6349,1074,0]Dc[7458,13,644,644,4779,1074,0,\"impl-From%3CElapsed%3E-for-DnsError\"]Am[7458,13,644,644,4779,1074,0]Dh[7458,13,644,644,4779,1074,0,\"impl-From%3CResolveError%3E-for-DnsError\"]Dg[7458,13,644,644,7559,1074,0,\"impl-From%3CDnsError%3E-for-LookupError\"]Am[7458,13,644,644,7559,1074,0]Di[7458,13,644,644,7559,1074,0,\"impl-From%3CParseError%3E-for-LookupError\"]Am[7458,13,644,644,8276,1074,0]Am[7458,13,644,644,4290,1074,0]Am[7458,13,644,644,7538,1074,0]Am[7458,13,644,644,7540,1074,0]Am[7458,13,644,644,8076,1074,0]0Ao[7458,13,8090,8090,8033,1074,0]Ao[7458,13,8090,8090,8029,1074,0]Ao[7458,13,8090,8090,7921,1074,0]0Ao[7458,13,8090,8090,4835,1074,0]Ao[7458,13,8090,8090,8997,1074,0]Ao[7458,13,8090,8090,7926,1074,0]0Ao[7458,13,8090,8090,6342,1074,0]Di[7458,13,8090,8090,6342,1074,0,\"impl-From%3CUtf8Error%3E-for-ParseError\"]Dm[7458,13,8090,8090,6342,1074,0,\"impl-From%3CDecodingError%3E-for-ParseError\"]Al[2246,13,2247,0,7917,1075,0]Al[2246,13,2247,0,8074,1075,0]Al[2246,13,2247,0,5791,1075,0]Al[2246,13,2247,0,4817,1075,0]Al[2246,13,8283,0,4834,1075,0]Al[2246,13,4854,0,3359,1075,0]Al[2246,13,4854,0,3331,1075,0]Ao[2246,13,4854,7505,3350,1075,0]Ao[2246,13,4854,4052,6298,1075,0]Ao[2246,13,4854,4052,8238,1075,0]Al[2246,13,4854,0,7554,1075,0]Al[2246,13,4854,0,1106,1075,0]Ak[2246,13,4854,0,347,1075,0]Al[2246,13,4854,0,4824,1075,0]Ao[6109,13,6110,8088,7918,1075,0]Ao[6109,13,6110,8088,8075,1075,0]An[6109,13,6110,984,5792,1075,0]Ao[6109,13,6110,6134,4818,1075,0]Ao[7458,13,8090,8090,4835,1075,0]Ae[8623,2,8624,0,0,0,0]Al[8623,14,3986,3986,3303,0,0]Ae[7458,2,7459,0,0,0,0]Al[2246,13,2247,0,7917,5786,0]Al[2246,13,2247,0,8074,5786,0]Al[2246,13,2247,0,5791,5786,0]Al[2246,13,2247,0,8441,5786,0]Al[2246,13,2247,0,5808,5786,0]Al[2246,13,2247,0,5815,5786,0]Al[2246,13,2247,0,8273,5786,0]Al[2246,13,2247,0,4817,5786,0]Al[2246,13,2247,0,8806,5786,0]Al[2246,13,2247,0,4814,5786,0]Al[2246,13,2247,0,7570,5786,0]Al[2246,13,2247,0,5773,5786,0]Al[2246,13,4453,0,8264,5786,0]Al[2246,13,4453,0,8070,5786,0]Al[2246,13,4453,0,7946,5786,0]Ao[2246,13,4453,4453,8426,5786,0]Al[2246,13,4453,0,8665,5786,0]Al[2246,13,8283,0,7920,5786,0]Al[2246,13,8283,0,4834,5786,0]Al[2246,13,8283,0,7925,5786,0]Al[2246,13,8283,0,6340,5786,0]Ao[2246,13,8283,8283,8993,5786,0]Ao[2246,13,8283,8283,2804,5786,0]Ao[2246,13,8283,8283,1083,5786,0]Ao[2246,13,8283,8283,9022,5786,0]Ao[2246,13,4018,4018,7938,5786,0]Am[2246,13,643,643,8652,5786,0]Am[2246,13,643,643,9025,5786,0]Ao[2246,13,3244,3244,6346,5786,0]Ao[2246,13,3244,3244,8962,5786,0]Ao[2246,13,3244,3244,8263,5786,0]Ao[2246,13,3244,3244,8929,5786,0]Ao[2246,13,3244,3244,8063,5786,0]Ao[2246,13,3244,3244,8670,5786,0]Am[2246,13,638,638,8650,5786,0]Am[2246,13,638,638,4289,5786,0]Ao[2246,13,2254,2254,8751,5786,0]Ao[2246,13,2254,2254,9045,5786,0]Ao[2246,13,2254,2254,8240,5786,0]Ak[2246,13,642,0,7539,5786,0]Al[2246,13,4854,0,4317,5786,0]Al[2246,13,4854,0,3328,5786,0]Al[2246,13,4854,0,5732,5786,0]Al[2246,13,4854,0,4763,5786,0]Al[2246,13,4854,0,7945,5786,0]Al[2246,13,4854,0,7952,5786,0]Al[2246,13,4854,0,8753,5786,0]Al[2246,13,4854,0,6353,5786,0]Al[2246,13,4854,0,8874,5786,0]Al[2246,13,4854,0,8270,5786,0]Al[2246,13,4854,0,5796,5786,0]Al[2246,13,4854,0,6355,5786,0]Al[2246,13,4854,0,8269,5786,0]Al[2246,13,4854,0,6363,5786,0]Al[2246,13,4854,0,6373,5786,0]Al[2246,13,4854,0,7957,5786,0]Al[2246,13,4854,0,6348,5786,0]Al[2246,13,4854,0,1084,5786,0]Ao[2246,13,4854,7990,7940,5786,0]Ao[2246,13,4854,7990,8668,5786,0]Ao[2246,13,4854,7990,7567,5786,0]Ao[2246,13,4854,7990,4809,5786,0]Ao[2246,13,4854,7889,6354,5786,0]Ao[2246,13,4854,7889,8757,5786,0]Ao[2246,13,4854,7889,8814,5786,0]Al[2246,13,4854,0,8473,5786,0]Al[2246,13,4854,0,8871,5786,0]Al[2246,13,4854,0,3359,5786,0]Al[2246,13,4854,0,8933,5786,0]Al[2246,13,4854,0,2783,5786,0]Al[2246,13,4854,0,3331,5786,0]Ao[2246,13,4854,7505,3350,5786,0]Al[2246,13,4854,0,7951,5786,0]Al[2246,13,4854,0,4832,5786,0]Al[2246,13,4854,0,6309,5786,0]Al[2246,13,4854,0,5785,5786,0]Al[2246,13,4854,0,8423,5786,0]Al[2246,13,4854,0,4352,5786,0]Al[2246,13,4854,0,7907,5786,0]Ao[2246,13,4854,4052,5741,5786,0]Ao[2246,13,4854,4052,6298,5786,0]Ao[2246,13,4854,4052,8238,5786,0]Al[2246,13,4854,0,8421,5786,0]Ao[2246,13,4854,1133,4768,5786,0]Ao[2246,13,4854,1133,8746,5786,0]Al[2246,13,4854,0,8463,5786,0]Ao[2246,13,4854,7247,3289,5786,0]Ao[2246,13,4854,7247,4795,5786,0]Ao[2246,13,4854,7247,6361,5786,0]Al[2246,13,4854,0,8785,5786,0]Al[2246,13,4854,0,8802,5786,0]Al[2246,13,4854,0,7554,5786,0]Ao[2246,13,4854,7247,8854,5786,0]Al[2246,13,4854,0,8966,5786,0]Ao[2246,13,4854,7247,6285,5786,0]Ao[2246,13,4854,7247,5733,5786,0]Al[2246,13,4854,0,9057,5786,0]Al[2246,13,4854,0,7534,5786,0]Ao[2246,13,4854,7247,5738,5786,0]Al[2246,13,4854,0,8817,5786,0]Al[2246,13,4854,0,5757,5786,0]Ao[2246,13,4854,7247,8413,5786,0]Ao[2246,13,4854,7247,8082,5786,0]Ao[2246,13,4854,7247,6295,5786,0]Ao[2246,13,4854,7247,8796,5786,0]Ao[2246,13,4854,7247,8427,5786,0]Ao[2246,13,4854,7247,8458,5786,0]Ao[2246,13,4854,7247,8964,5786,0]Ao[2246,13,4854,7247,8232,5786,0]Ao[2246,13,4854,3231,8907,5786,0]Ao[2246,13,4854,3231,8958,5786,0]Ao[2246,13,4854,2510,9079,5786,0]Ao[2246,13,4854,2510,8869,5786,0]Ao[2246,13,4854,2510,8870,5786,0]Ao[2246,13,4854,2510,7954,5786,0]Ao[2246,13,4854,4854,4288,5786,0]Ao[2246,13,4854,4854,8035,5786,0]Ao[2246,13,4854,4854,4786,5786,0]Ao[2246,13,4854,4854,8909,5786,0]Ao[2246,13,4854,4854,7911,5786,0]Ao[2246,13,4854,4854,8231,5786,0]Ao[2246,13,4854,4854,8246,5786,0]Ao[2246,13,4854,4854,5804,5786,0]Al[2246,13,4854,0,8415,5786,0]Al[2246,13,4854,0,8645,5786,0]Al[2246,13,4854,0,8671,5786,0]Al[2246,13,4854,0,8281,5786,0]Al[2246,13,4854,0,8815,5786,0]Al[2246,13,4854,0,8736,5786,0]Al[2246,13,4854,0,1106,5786,0]Ak[2246,13,4854,0,347,5786,0]Al[2246,13,4854,0,4824,5786,0]Am[2246,13,4471,4471,15,5786,0]Ao[2246,13,5056,5056,3342,5786,0]Ao[2246,13,5056,5056,8069,5786,0]Ao[2246,13,5056,5056,7526,5786,0]Ao[2246,13,5056,5056,7528,5786,0]Al[2246,13,8089,0,8032,5786,0]Al[2246,13,8089,0,8027,5786,0]Al[2246,13,8089,0,8996,5786,0]Ao[2246,13,7515,2508,8066,5786,0]Ao[2246,13,7515,7515,8646,5786,0]Ao[2246,13,7515,8971,8241,5786,0]Ao[7457,13,7458,7458,8653,5786,0]Ao[7457,13,7458,7458,8788,5786,0]Ao[7457,13,7458,7458,4771,5786,0]An[7457,13,7458,7458,358,5786,0]Ao[7457,13,7458,7458,7532,5786,0]Ao[7457,13,3268,3268,2831,5786,0]Ao[7457,13,3268,3268,7590,5786,0]Ao[7457,13,3268,3268,8279,5786,0]An[7457,13,1046,1046,359,5786,0]Ao[7458,13,7459,7992,7568,5786,0]Ao[7458,13,7459,6115,4801,5786,0]Ao[7458,13,7459,6132,4815,5786,0]Ao[7458,13,7459,6132,7571,5786,0]Ao[7458,13,7459,6132,8465,5786,0]Ao[7458,13,3732,1143,5812,5786,0]Ao[7458,13,3732,1143,5801,5786,0]Ao[7458,13,3732,3732,7912,5786,0]Ao[7458,13,3732,3732,5752,5786,0]Ao[7458,13,3732,3732,8019,5786,0]Ao[7458,13,3732,3732,3298,5786,0]Ao[7458,13,3732,3732,6279,5786,0]Ao[7458,13,3732,3732,7904,5786,0]Ao[7458,13,4045,4454,4315,5786,0]Ao[7458,13,4045,4454,7947,5786,0]Ao[7458,13,4045,5059,8752,5786,0]Al[7458,13,4045,5059,8752,0,0]Ao[7458,13,4045,4045,7955,5786,0]Ao[7458,13,4045,4045,7572,5786,0]Ao[7458,13,4045,4045,7900,5786,0]Ao[7458,13,4045,4045,3291,5786,0]Ao[7458,13,4045,4045,6350,5786,0]Ao[7458,13,4045,4045,5820,5786,0]Ao[7458,13,4045,4045,3321,5786,0]Ao[7458,13,4045,4045,8411,5786,0]Ao[7458,13,4045,4045,6277,5786,0]Ao[7458,13,4045,4045,3346,5786,0]Ao[7458,13,4045,4045,6367,5786,0]Ao[7458,13,4045,4045,8472,5786,0]Ao[7458,13,3733,3733,3304,5786,0]Ao[7458,13,3733,3733,3299,5786,0]Ao[7458,13,3733,3733,8657,5786,0]Ao[7458,13,3733,3733,8480,5786,0]Ao[7458,13,3733,3733,4823,5786,0]Ao[7458,13,3733,3733,8795,5786,0]Ao[7458,13,4499,4499,8067,5786,0]Ao[7458,13,4499,4499,5813,5786,0]Ao[7458,13,4499,4499,5802,5786,0]Ao[7458,13,4499,4499,8259,5786,0]Ao[7458,13,4499,4499,8861,5786,0]Ao[7458,13,4365,4365,4291,5786,0]Ao[7458,13,7830,7830,5821,5786,0]Ao[7458,13,7830,7830,8932,5786,0]Ao[7458,13,7830,7830,7527,5786,0]Ao[7458,13,7830,7830,8991,5786,0]Ao[7458,13,7830,7830,7949,5786,0]Ao[7458,13,7830,7830,4790,5786,0]Ao[7458,13,3742,3742,5758,5786,0]Ao[7458,13,3742,3742,8252,5786,0]Ao[7458,13,3251,3251,2807,5786,0]Ao[7458,13,3251,3251,8674,5786,0]Ao[7458,13,3251,3251,8648,5786,0]Ao[7458,13,3251,3251,5749,5786,0]Ao[7458,13,6095,6095,2806,5786,0]Ao[7458,13,6095,6095,9046,5786,0]Ao[7458,13,6095,6095,5772,5786,0]Ao[7458,13,2511,2511,2805,5786,0]Ao[7458,13,2511,2511,6349,5786,0]Am[7458,13,644,644,4779,5786,0]Am[7458,13,644,644,7559,5786,0]Am[7458,13,644,644,8276,5786,0]Am[7458,13,644,644,4290,5786,0]Am[7458,13,644,644,7538,5786,0]Am[7458,13,644,644,7540,5786,0]Am[7458,13,644,644,8076,5786,0]Ao[7458,13,8090,8090,8033,5786,0]Ao[7458,13,8090,8090,8029,5786,0]Ao[7458,13,8090,8090,7921,5786,0]Ao[7458,13,8090,8090,4835,5786,0]Ao[7458,13,8090,8090,8997,5786,0]Ao[7458,13,8090,8090,7926,5786,0]Ao[7458,13,8090,8090,6342,5786,0]Al[2246,13,2247,0,7917,1078,0]Al[2246,13,2247,0,8074,1078,0]Al[2246,13,2247,0,5791,1078,0]Al[2246,13,2247,0,8441,1078,0]Al[2246,13,2247,0,5808,1078,0]Al[2246,13,2247,0,5815,1078,0]Al[2246,13,2247,0,8273,1078,0]Al[2246,13,2247,0,4817,1078,0]Al[2246,13,2247,0,8806,1078,0]Al[2246,13,2247,0,4814,1078,0]Al[2246,13,2247,0,7570,1078,0]Al[2246,13,2247,0,5773,1078,0]Al[2246,13,4453,0,8264,1078,0]Al[2246,13,4453,0,8070,1078,0]Al[2246,13,4453,0,7946,1078,0]Ao[2246,13,4453,4453,8426,1078,0]Al[2246,13,4453,0,8665,1078,0]Al[2246,13,8283,0,7920,1078,0]Al[2246,13,8283,0,4834,1078,0]Al[2246,13,8283,0,7925,1078,0]Al[2246,13,8283,0,6340,1078,0]Ao[2246,13,8283,8283,8993,1078,0]Ao[2246,13,8283,8283,2804,1078,0]Ao[2246,13,8283,8283,1083,1078,0]Ao[2246,13,8283,8283,9022,1078,0]Ao[2246,13,4018,4018,7938,1078,0]Am[2246,13,643,643,8652,1078,0]Am[2246,13,643,643,9025,1078,0]Ao[2246,13,3244,3244,6346,1078,0]Ao[2246,13,3244,3244,8962,1078,0]Ao[2246,13,3244,3244,8263,1078,0]Ao[2246,13,3244,3244,8929,1078,0]Ao[2246,13,3244,3244,8063,1078,0]Ao[2246,13,3244,3244,8670,1078,0]Am[2246,13,638,638,8650,1078,0]Am[2246,13,638,638,4289,1078,0]Ao[2246,13,2254,2254,8751,1078,0]Ao[2246,13,2254,2254,9045,1078,0]Ao[2246,13,2254,2254,8240,1078,0]Ak[2246,13,642,0,7539,1078,0]Al[2246,13,4854,0,4317,1078,0]Al[2246,13,4854,0,3328,1078,0]Al[2246,13,4854,0,5732,1078,0]Al[2246,13,4854,0,4763,1078,0]Al[2246,13,4854,0,7945,1078,0]Al[2246,13,4854,0,7952,1078,0]Al[2246,13,4854,0,8753,1078,0]Al[2246,13,4854,0,6353,1078,0]Al[2246,13,4854,0,8874,1078,0]Al[2246,13,4854,0,8270,1078,0]Al[2246,13,4854,0,5796,1078,0]Al[2246,13,4854,0,6355,1078,0]Al[2246,13,4854,0,8269,1078,0]Al[2246,13,4854,0,6363,1078,0]Al[2246,13,4854,0,6373,1078,0]Al[2246,13,4854,0,7957,1078,0]Al[2246,13,4854,0,6348,1078,0]Al[2246,13,4854,0,1084,1078,0]Ao[2246,13,4854,7990,7940,1078,0]Ao[2246,13,4854,7990,8668,1078,0]Ao[2246,13,4854,7990,7567,1078,0]Ao[2246,13,4854,7990,4809,1078,0]Ao[2246,13,4854,7889,6354,1078,0]Ao[2246,13,4854,7889,8757,1078,0]Ao[2246,13,4854,7889,8814,1078,0]Al[2246,13,4854,0,8473,1078,0]Al[2246,13,4854,0,8871,1078,0]Al[2246,13,4854,0,3359,1078,0]Al[2246,13,4854,0,8933,1078,0]Al[2246,13,4854,0,2783,1078,0]Al[2246,13,4854,0,3331,1078,0]Ao[2246,13,4854,7505,3350,1078,0]Al[2246,13,4854,0,7951,1078,0]Al[2246,13,4854,0,4832,1078,0]Al[2246,13,4854,0,6309,1078,0]Al[2246,13,4854,0,5785,1078,0]Al[2246,13,4854,0,8423,1078,0]Al[2246,13,4854,0,4352,1078,0]Al[2246,13,4854,0,7907,1078,0]Ao[2246,13,4854,4052,5741,1078,0]Ao[2246,13,4854,4052,6298,1078,0]Ao[2246,13,4854,4052,8238,1078,0]Al[2246,13,4854,0,8421,1078,0]Ao[2246,13,4854,1133,4768,1078,0]Ao[2246,13,4854,1133,8746,1078,0]Al[2246,13,4854,0,8463,1078,0]Ao[2246,13,4854,7247,3289,1078,0]Ao[2246,13,4854,7247,4795,1078,0]Ao[2246,13,4854,7247,6361,1078,0]Al[2246,13,4854,0,8785,1078,0]Al[2246,13,4854,0,8802,1078,0]Al[2246,13,4854,0,7554,1078,0]Ao[2246,13,4854,7247,8854,1078,0]Al[2246,13,4854,0,8966,1078,0]Ao[2246,13,4854,7247,6285,1078,0]Ao[2246,13,4854,7247,5733,1078,0]Al[2246,13,4854,0,9057,1078,0]Al[2246,13,4854,0,7534,1078,0]Ao[2246,13,4854,7247,5738,1078,0]Al[2246,13,4854,0,8817,1078,0]Al[2246,13,4854,0,5757,1078,0]Ao[2246,13,4854,7247,8413,1078,0]Ao[2246,13,4854,7247,8082,1078,0]Ao[2246,13,4854,7247,6295,1078,0]Ao[2246,13,4854,7247,8796,1078,0]Ao[2246,13,4854,7247,8427,1078,0]Ao[2246,13,4854,7247,8458,1078,0]Ao[2246,13,4854,7247,8964,1078,0]Ao[2246,13,4854,7247,8232,1078,0]Ao[2246,13,4854,3231,8907,1078,0]Ao[2246,13,4854,3231,8958,1078,0]Ao[2246,13,4854,2510,9079,1078,0]Ao[2246,13,4854,2510,8869,1078,0]Ao[2246,13,4854,2510,8870,1078,0]Ao[2246,13,4854,2510,7954,1078,0]Ao[2246,13,4854,4854,4288,1078,0]Ao[2246,13,4854,4854,8035,1078,0]Ao[2246,13,4854,4854,4786,1078,0]Ao[2246,13,4854,4854,8909,1078,0]Ao[2246,13,4854,4854,7911,1078,0]Ao[2246,13,4854,4854,8231,1078,0]Ao[2246,13,4854,4854,8246,1078,0]Ao[2246,13,4854,4854,5804,1078,0]Al[2246,13,4854,0,8415,1078,0]Al[2246,13,4854,0,8645,1078,0]Al[2246,13,4854,0,8671,1078,0]Al[2246,13,4854,0,8281,1078,0]Al[2246,13,4854,0,8815,1078,0]Al[2246,13,4854,0,8736,1078,0]Al[2246,13,4854,0,1106,1078,0]Ak[2246,13,4854,0,347,1078,0]Al[2246,13,4854,0,4824,1078,0]Am[2246,13,4471,4471,15,1078,0]Ao[2246,13,5056,5056,3342,1078,0]Ao[2246,13,5056,5056,8069,1078,0]Ao[2246,13,5056,5056,7526,1078,0]Ao[2246,13,5056,5056,7528,1078,0]Al[2246,13,8089,0,8032,1078,0]Al[2246,13,8089,0,8027,1078,0]Al[2246,13,8089,0,8996,1078,0]Ao[2246,13,7515,2508,8066,1078,0]Ao[2246,13,7515,7515,8646,1078,0]Ao[2246,13,7515,8971,8241,1078,0]Ao[6109,13,6110,8088,7918,1078,0]Ao[6109,13,6110,8088,8075,1078,0]An[6109,13,6110,984,5792,1078,0]An[6109,13,6110,984,8442,1078,0]An[6109,13,6110,984,5809,1078,0]An[6109,13,6110,984,5816,1078,0]An[6109,13,6110,984,8274,1078,0]Ao[6109,13,6110,6134,4818,1078,0]Ao[6109,13,6110,6134,8807,1078,0]Ao[7457,13,7458,7458,8653,1078,0]Ao[7457,13,7458,7458,8788,1078,0]Ao[7457,13,7458,7458,4771,1078,0]An[7457,13,7458,7458,358,1078,0]Ao[7457,13,7458,7458,7532,1078,0]Ao[7457,13,3268,3268,2831,1078,0]Ao[7457,13,3268,3268,7590,1078,0]Ao[7457,13,3268,3268,8279,1078,0]An[7457,13,1046,1046,359,1078,0]Ao[8623,13,8624,3276,5831,1078,0]Ao[8623,13,3265,3265,4766,1078,0]Ao[8623,13,3986,3986,3303,1078,0]Ao[8623,13,3986,3986,7579,1078,0]Ao[8623,13,3986,3986,8061,1078,0]Ao[8623,13,3986,3986,8257,1078,0]Ao[8623,13,3986,3986,8409,1078,0]Am[8623,13,645,645,5754,1078,0]Am[8623,13,645,645,5753,1078,0]Am[8623,13,645,645,6301,1078,0]Am[8623,13,645,645,3311,1078,0]Ao[8623,13,1766,1766,6312,1078,0]Ao[8623,13,1766,8113,8464,1078,0]Ao[8623,13,1766,1050,4770,1078,0]Ao[8623,13,1766,1766,6311,1078,0]Ao[8623,13,1766,1766,7553,1078,0]Ao[8623,13,4455,4455,4313,1078,0]Ao[8623,13,4046,4046,3345,1078,0]Ao[7458,13,7459,7992,7568,1078,0]Ao[7458,13,7459,6115,4801,1078,0]Ao[7458,13,7459,6132,4815,1078,0]Ao[7458,13,7459,6132,7571,1078,0]Ao[7458,13,7459,6132,8465,1078,0]Ao[7458,13,3732,1143,5812,1078,0]Ao[7458,13,3732,1143,5801,1078,0]Ao[7458,13,3732,3732,7912,1078,0]Ao[7458,13,3732,3732,5752,1078,0]Ao[7458,13,3732,3732,8019,1078,0]Ao[7458,13,3732,3732,3298,1078,0]Ao[7458,13,3732,3732,6279,1078,0]Ao[7458,13,3732,3732,7904,1078,0]Ao[7458,13,4045,4454,4315,1078,0]Ao[7458,13,4045,4454,7947,1078,0]Ao[7458,13,4045,5059,8752,1078,0]Ao[7458,13,4045,4045,7955,1078,0]Ao[7458,13,4045,4045,7572,1078,0]Ao[7458,13,4045,4045,7900,1078,0]Ao[7458,13,4045,4045,3291,1078,0]Ao[7458,13,4045,4045,6350,1078,0]Ao[7458,13,4045,4045,5820,1078,0]Ao[7458,13,4045,4045,3321,1078,0]Ao[7458,13,4045,4045,8411,1078,0]Ao[7458,13,4045,4045,6277,1078,0]Ao[7458,13,4045,4045,3346,1078,0]Ao[7458,13,4045,4045,6367,1078,0]Ao[7458,13,4045,4045,8472,1078,0]Ao[7458,13,3733,3733,3304,1078,0]Ao[7458,13,3733,3733,3299,1078,0]Ao[7458,13,3733,3733,8657,1078,0]Ao[7458,13,3733,3733,8480,1078,0]Ao[7458,13,3733,3733,4823,1078,0]Ao[7458,13,3733,3733,8795,1078,0]Ao[7458,13,4499,4499,8067,1078,0]Ao[7458,13,4499,4499,5813,1078,0]Ao[7458,13,4499,4499,5802,1078,0]Ao[7458,13,4499,4499,8259,1078,0]Ao[7458,13,4499,4499,8861,1078,0]Ao[7458,13,4365,4365,4291,1078,0]Ao[7458,13,7830,7830,5821,1078,0]Ao[7458,13,7830,7830,8932,1078,0]Ao[7458,13,7830,7830,7527,1078,0]Ao[7458,13,7830,7830,8991,1078,0]Ao[7458,13,7830,7830,7949,1078,0]Ao[7458,13,7830,7830,4790,1078,0]Ao[7458,13,3742,3742,5758,1078,0]Ao[7458,13,3742,3742,8252,1078,0]Ao[7458,13,3251,3251,2807,1078,0]Ao[7458,13,3251,3251,8674,1078,0]Ao[7458,13,3251,3251,8648,1078,0]Ao[7458,13,3251,3251,5749,1078,0]Ao[7458,13,6095,6095,2806,1078,0]Ao[7458,13,6095,6095,9046,1078,0]Ao[7458,13,6095,6095,5772,1078,0]Ao[7458,13,2511,2511,2805,1078,0]Ao[7458,13,2511,2511,6349,1078,0]Am[7458,13,644,644,4779,1078,0]Am[7458,13,644,644,7559,1078,0]Am[7458,13,644,644,8276,1078,0]Am[7458,13,644,644,4290,1078,0]Am[7458,13,644,644,7538,1078,0]Am[7458,13,644,644,7540,1078,0]Am[7458,13,644,644,8076,1078,0]Ao[7458,13,8090,8090,8033,1078,0]Ao[7458,13,8090,8090,8029,1078,0]Ao[7458,13,8090,8090,7921,1078,0]Ao[7458,13,8090,8090,4835,1078,0]Ao[7458,13,8090,8090,8997,1078,0]Ao[7458,13,8090,8090,7926,1078,0]Ao[7458,13,8090,8090,6342,1078,0]Ai[7458,14,4778,0,7574,0,0]0Ab[2246,3,0,0,0,0,0]Ae[7457,2,7458,0,0,0,0]Al[2246,13,4854,7990,7940,0,0]Aj[7458,13,644,644,8276,0,0]Aj[7458,13,644,644,8076,0,0]Al[8623,13,3986,3986,3303,0,0]Ae[1136,7,1137,0,0,0,0]Ae[2246,2,8283,0,0,0,0]Al[2246,13,2247,0,8441,6368,0]Al[2246,13,2247,0,8273,6368,0]Al[2246,13,2247,0,8806,6368,0]Al[2246,13,8283,0,6340,6368,0]Ao[2246,13,8283,8283,8993,6368,0]Ao[2246,13,8283,8283,2804,6368,0]Ai[2246,14,2792,0,8864,0,0]Ai[2246,14,2792,0,5776,0,0]Ai[2246,14,2792,0,1109,0,0]Ao[2246,13,3244,3244,6346,6368,0]Ai[2246,14,6345,0,5788,0,0]Ai[2246,14,6345,0,3360,0,0]Ai[2246,14,6345,0,8428,0,0]Ai[2246,14,6345,0,4791,0,0]Ai[2246,14,6345,0,7550,0,0]Ai[2246,14,6345,0,7548,0,0]Ai[2246,14,6345,0,4782,0,0]Ai[2246,14,8992,0,1110,0,0]Ai[2246,14,8992,0,8243,0,0]Ai[2246,14,6335,0,8682,0,0]Ai[2246,14,6335,0,8222,0,0]Ai[2246,14,6335,0,5778,0,0]Ai[2246,14,6335,0,1115,0,0]Ai[2246,14,6335,0,8453,0,0]Ai[2246,14,6335,0,8021,0,0]Ao[2246,13,4854,4052,5741,6368,0]Ao[2246,13,4854,1133,8746,6368,0]Ao[2246,13,4854,7247,6361,6368,0]Ao[2246,13,4854,7247,8854,6368,0]Ao[2246,13,4854,7247,5738,6368,0]Ao[2246,13,4854,7247,8413,6368,0]Ao[2246,13,4854,7247,8964,6368,0]Ao[2246,13,4854,4854,8035,6368,0]Ao[2246,13,4854,4854,8909,6368,0]Ao[2246,13,4854,4854,7911,6368,0]Ai[2246,14,5740,0,4330,0,0]Ai[2246,14,5740,0,8789,0,0]Ai[2246,14,5740,0,8855,0,0]Ai[2246,14,5740,0,8994,0,0]Ai[2246,14,5740,0,8012,0,0]Ai[2246,14,7908,0,4293,0,0]Ai[2246,14,7908,0,6281,0,0]Ai[2246,14,7908,0,6288,0,0]Ai[2246,14,8034,0,3300,0,0]Ai[2246,14,8745,0,5735,0,0]Ai[2246,14,8745,0,8056,0,0]Ai[2246,14,8745,0,6314,0,0]Ai[2246,14,8745,0,8914,0,0]Ai[2246,14,5737,0,8416,0,0]Ai[2246,14,5737,0,7591,0,0]Ai[2246,14,5737,0,8689,0,0]Ai[2246,14,8853,0,4819,0,0]Ai[2246,14,8853,0,3326,0,0]Ai[2246,14,8412,0,8417,0,0]Ai[2246,14,8412,0,8658,0,0]Ai[2246,14,8412,0,9042,0,0]Ai[2246,14,8412,0,8444,0,0]Ai[2246,14,8908,0,7576,0,0]Ai[2246,14,8908,0,5774,0,0]Ai[2246,14,8908,0,2817,0,0]Ai[2246,14,8908,0,9041,0,0]Ai[2246,14,8908,0,8443,0,0]Ai[2246,14,8908,0,8242,0,0]Ao[2246,13,5056,5056,7526,6368,0]Ai[2246,14,7524,0,6282,0,0]Ai[2246,14,7524,0,6289,0,0]Ai[2246,14,7524,0,9026,0,0]Ai[2246,14,7524,0,6330,0,0]Ai[2246,14,7524,0,1111,0,0]Ai[2246,14,8438,0,8857,0,0]Al[2246,13,8089,0,8032,6368,0]Al[2246,13,8089,0,8027,6368,0]Al[2246,13,8089,0,8996,6368,0]Ai[2246,14,6335,0,8682,0,0]Ai[2246,14,6335,0,8222,0,0]Ai[2246,14,6335,0,5778,0,0]Ai[2246,14,6335,0,1115,0,0]Ai[2246,14,6335,0,8453,0,0]Ai[2246,14,6335,0,8021,0,0]Ai[2246,14,8030,0,8922,0,0]Ai[2246,14,8030,0,8434,0,0]Ai[2246,14,8022,0,8797,0,0]Ai[2246,14,8022,0,8052,0,0]Ai[2246,14,8022,0,6317,0,0]An[6109,13,6110,984,8442,6368,0]An[6109,13,6110,984,8274,6368,0]Ao[6109,13,6110,6134,8807,6368,0]Ai[6109,14,8439,0,8858,0,0]Ao[7458,13,3732,1143,5812,6368,0]Ao[7458,13,3732,1143,5801,6368,0]Ao[7458,13,3732,3732,7912,6368,0]Ao[7458,13,3732,3732,5752,6368,0]Ai[7458,14,5799,0,4810,0,0]Ai[7458,14,5799,0,7580,0,0]Ai[7458,14,5810,0,7581,0,0]Ai[7458,14,5810,0,8916,0,0]Ai[7458,14,5810,0,7541,0,0]Ai[7458,14,7909,0,8862,0,0]Ai[7458,14,7909,0,8429,0,0]Ai[7458,14,7909,0,5827,0,0]Ai[7458,14,7909,0,5759,0,0]Ai[7458,14,7909,0,1071,0,0]Ai[7458,14,7909,0,9030,0,0]Ai[7458,14,7909,0,4348,0,0]Ai[7458,14,7909,0,8927,0,0]Ai[7458,14,7909,0,7562,0,0]Ah[7458,14,7909,0,365,0,0]Ai[7458,14,5751,0,8747,0,0]Ah[7458,14,5751,0,348,0,0]Ai[7458,14,5751,0,4335,0,0]Ag[7458,14,5751,0,10,0,0]Ai[7458,14,5751,0,6321,0,0]Ai[7458,14,5751,0,9063,0,0]Ai[7458,14,5751,0,8461,0,0]Ai[7458,14,5751,0,7943,0,0]Ai[7458,14,5751,0,9065,0,0]Ai[7458,14,5751,0,9004,0,0]Ao[7458,13,4045,4045,6367,6368,0]Ao[7458,13,4045,4045,8472,6368,0]Ao[7458,13,3733,3733,8657,6368,0]Ao[7458,13,3733,3733,8480,6368,0]Ao[7458,13,3733,3733,4823,6368,0]Ao[7458,13,3733,3733,8795,6368,0]Ai[7458,14,8656,0,8040,0,0]Ai[7458,14,8656,0,8678,0,0]Ai[7458,14,8656,0,1101,0,0]Ai[7458,14,8656,0,1104,0,0]Ai[7458,14,8479,0,3351,0,0]Ai[7458,14,8479,0,4336,0,0]Ai[7458,14,4822,0,8041,0,0]Ai[7458,14,4822,0,2808,0,0]Ai[7458,14,4822,0,7545,0,0]Ai[7458,14,4822,0,6333,0,0]Ai[7458,14,4822,0,8046,0,0]Ai[7458,14,4822,0,6374,0,0]Ai[7458,14,4822,0,5818,0,0]Ao[7458,13,4499,4499,5813,6368,0]Ao[7458,13,4499,4499,5802,6368,0]Ao[7458,13,4499,4499,8861,6368,0]Ai[7458,14,5800,0,2815,0,0]Ai[7458,14,5800,0,7582,0,0]Ai[7458,14,5811,0,7583,0,0]Ai[7458,14,5811,0,8917,0,0]Ai[7458,14,5811,0,7542,0,0]Ao[7458,13,7830,7830,8932,6368,0]Ao[7458,13,7830,7830,7527,6368,0]Ao[7458,13,7830,7830,8991,6368,0]Ai[7458,14,8990,0,3286,0,0]Ai[7458,14,8990,0,8424,0,0]Ai[7458,14,8990,0,8227,0,0]Ai[7458,14,8931,0,7958,0,0]Ai[7458,14,8931,0,8467,0,0]Ai[7458,14,8931,0,4337,0,0]Ai[7458,14,8931,0,7936,0,0]Ai[7458,14,8931,0,8749,0,0]Ai[7458,14,8931,0,2810,0,0]Ai[7458,14,8931,0,1076,0,0]Ai[7458,14,7525,0,5760,0,0]Ai[7458,14,7525,0,9068,0,0]Ai[7458,14,8471,0,4312,0,0]Ai[7458,14,8471,0,9018,0,0]Ai[7458,14,8471,0,5767,0,0]Ai[7458,14,8471,0,9001,0,0]Ai[7458,14,8471,0,8071,0,0]Ai[7458,14,6366,0,5769,0,0]Ai[7458,14,6366,0,5793,0,0]Ai[7458,14,6366,0,8277,0,0]Ai[7458,14,6366,0,8407,0,0]Ai[7458,14,6366,0,7563,0,0]Ai[7458,14,6366,0,8405,0,0]Ao[7458,13,3742,3742,8252,6368,0]Ai[7458,14,8247,0,8077,0,0]Ai[7458,14,8247,0,8687,0,0]Ao[7458,13,3251,3251,2807,6368,0]Ai[7458,14,2797,0,8476,0,0]Ai[7458,14,2797,0,8044,0,0]Ai[7458,14,2797,0,2827,0,0]Ai[7458,14,2797,0,8249,0,0]Ai[7458,14,2797,0,8662,0,0]Ai[7458,14,2797,0,7931,0,0]Ai[7458,14,2797,0,8660,0,0]Ai[7458,14,2797,0,9120,0,0]Ai[7458,14,2797,0,4829,0,0]Ao[7458,13,6095,6095,2806,6368,0]Ai[7458,14,2796,0,9020,0,0]Ai[7458,14,2796,0,5828,0,0]Ai[7458,14,2796,0,8078,0,0]Ai[7458,14,2796,0,8248,0,0]Ai[7458,14,2796,0,8675,0,0]Ai[7458,14,2796,0,8872,0,0]Ai[7458,14,2796,0,8912,0,0]Ao[7458,13,2511,2511,2805,6368,0]Ai[7458,14,2795,0,4294,0,0]Ai[7458,14,2795,0,6290,0,0]Ai[7458,14,2795,0,5825,0,0]Am[7458,13,644,644,4779,6368,0]Am[7458,13,644,644,7559,6368,0]Am[7458,13,644,644,8276,6368,0]Ai[7458,14,4778,0,4338,0,0]Ai[7458,14,4778,0,6327,0,0]Ai[7458,14,4778,0,7574,0,0]Ai[7458,14,4778,0,7560,0,0]Ai[7458,14,4778,0,4325,0,0]Ai[7458,14,4778,0,8432,0,0]Ai[7458,14,7558,0,6337,0,0]Ai[7458,14,7558,0,7934,0,0]Ao[7458,13,8090,8090,8033,6368,0]Ao[7458,13,8090,8090,8029,6368,0]Ao[7458,13,8090,8090,8997,6368,0]Ao[7458,13,8090,8090,6342,6368,0]Ai[7458,14,6338,0,8683,0,0]Ai[7458,14,6338,0,8223,0,0]Ai[7458,14,6338,0,5779,0,0]Ai[7458,14,6338,0,1116,0,0]Ai[7458,14,6338,0,8454,0,0]Ai[7458,14,6338,0,8024,0,0]Ai[7458,14,8031,0,8923,0,0]Ai[7458,14,8031,0,8435,0,0]Ai[7458,14,8023,0,8798,0,0]Ai[7458,14,8023,0,8053,0,0]Ai[7458,14,8023,0,6318,0,0]Al[2246,13,4453,0,8264,7939,0]Al[2246,13,4453,0,8070,7939,0]Al[2246,13,4453,0,7946,7939,0]Ao[2246,13,4453,4453,8426,8450,0]Al[2246,13,4453,0,8665,7939,0]Ai[2246,14,3349,0,8011,0,0]Ai[2246,14,3349,0,4804,0,0]Ao[8623,13,4455,4455,4313,7939,0]Ao[7458,13,4045,4454,4315,7939,0]Ao[7458,13,4045,4454,7947,8450,0]Ao[2246,13,4854,7990,8668,4800,0]Ai[2246,12,4854,0,4285,0,0]Ai[2246,12,2247,0,4351,0,0]Ao[2246,13,4854,7990,7567,4351,0]Ai[2246,14,4854,0,6309,0,0]Al[2246,13,4854,0,4317,3310,0]Al[2246,13,4854,0,3328,3310,0]Al[2246,13,4854,0,5732,3310,0]Al[2246,13,4854,0,4763,3310,0]Al[2246,13,4854,0,7945,3310,0]Al[2246,13,4854,0,7952,3310,0]Ao[2246,13,4854,7247,3289,3310,0]Ao[2246,13,4854,7247,6285,3310,0]Ao[2246,13,4854,7247,5733,3310,0]Ao[2246,13,4854,4854,8246,3310,0]Aj[8623,14,645,645,5753,0,0]Al[8623,14,1766,1766,6311,0,0]Al[8623,14,1766,1766,7553,0,0]Al[7458,14,7459,6132,8465,0,0]Ae[2246,2,4845,0,0,0,0]Ai[2246,14,2247,0,7570,0,0]Ae[7458,2,7459,0,0,0,0]Al[7458,14,7459,6132,7571,0,0]Al[7458,14,4045,4045,7955,0,0]Ai[2246,13,4854,0,6353,0,0]Ai[2246,13,4854,0,8871,0,0]:Ai[2246,12,4854,0,4285,0,0]Ai[2246,13,4854,0,8966,0,0]Al[2246,13,4854,7247,6295,0,0]Al[2246,13,4854,7247,8232,0,0]Ai[2246,13,2247,0,5808,0,0]Ak[6109,13,6110,984,5809,0,0]Al[7457,14,3268,3268,8279,0,0]Ai[7458,14,5810,0,8916,0,0]Ai[7458,14,5811,0,8917,0,0]:Ai[2246,13,4854,0,8874,0,0]3Ai[2246,13,2247,0,4814,0,0]Al[7458,13,7459,6132,4815,0,0]Al[2246,13,2247,0,7917,1120,0]Al[2246,13,2247,0,8074,1120,0]Al[2246,13,2247,0,5791,1120,0]Al[2246,13,2247,0,8441,1120,0]Al[2246,13,2247,0,5808,1120,0]Al[2246,13,2247,0,5815,1120,0]Al[2246,13,2247,0,8273,1120,0]Al[2246,13,2247,0,4817,1120,0]Al[2246,13,2247,0,8806,1120,0]Al[2246,13,2247,0,4814,1120,0]Al[2246,13,2247,0,7570,1120,0]Al[2246,13,2247,0,5773,1120,0]Al[2246,13,4453,0,8264,1120,0]Al[2246,13,4453,0,8070,1120,0]Al[2246,13,4453,0,7946,1120,0]Ao[2246,13,4453,4453,8426,1120,0]Al[2246,13,4453,0,8665,1120,0]Al[2246,13,8283,0,7920,1120,0]Al[2246,13,8283,0,4834,1120,0]Al[2246,13,8283,0,7925,1120,0]Al[2246,13,8283,0,6340,1120,0]Ao[2246,13,8283,8283,8993,1120,0]Ao[2246,13,8283,8283,2804,1120,0]Ao[2246,13,8283,8283,1083,1120,0]Ao[2246,13,8283,8283,9022,1120,0]Ao[2246,13,4018,4018,7938,1120,0]Am[2246,13,643,643,8652,1120,0]Am[2246,13,643,643,9025,1120,0]Ao[2246,13,3244,3244,6346,1120,0]Ao[2246,13,3244,3244,8962,1120,0]Ao[2246,13,3244,3244,8263,1120,0]Ao[2246,13,3244,3244,8929,1120,0]Ao[2246,13,3244,3244,8063,1120,0]Ao[2246,13,3244,3244,8670,1120,0]Am[2246,13,638,638,8650,1120,0]Am[2246,13,638,638,4289,1120,0]Ao[2246,13,2254,2254,8751,1120,0]Ao[2246,13,2254,2254,9045,1120,0]Ao[2246,13,2254,2254,8240,1120,0]Ak[2246,13,642,0,7539,1120,0]Al[2246,13,4854,0,4317,1120,0]Al[2246,13,4854,0,3328,1120,0]Al[2246,13,4854,0,5732,1120,0]Al[2246,13,4854,0,4763,1120,0]Al[2246,13,4854,0,7945,1120,0]Al[2246,13,4854,0,7952,1120,0]Al[2246,13,4854,0,8753,1120,0]Al[2246,13,4854,0,6353,1120,0]Al[2246,13,4854,0,8874,1120,0]Al[2246,13,4854,0,8270,1120,0]Al[2246,13,4854,0,5796,1120,0]Al[2246,13,4854,0,6355,1120,0]Al[2246,13,4854,0,8269,1120,0]Al[2246,13,4854,0,6363,1120,0]Al[2246,13,4854,0,6373,1120,0]Al[2246,13,4854,0,7957,1120,0]Al[2246,13,4854,0,6348,1120,0]Al[2246,13,4854,0,1084,1120,0]Ao[2246,13,4854,7990,7940,1120,0]Ao[2246,13,4854,7990,8668,1120,0]Ao[2246,13,4854,7990,7567,1120,0]Ao[2246,13,4854,7990,4809,1120,0]Ao[2246,13,4854,7889,6354,1120,0]Ao[2246,13,4854,7889,8757,1120,0]Ao[2246,13,4854,7889,8814,1120,0]Al[2246,13,4854,0,8473,1120,0]Al[2246,13,4854,0,8871,1120,0]Al[2246,13,4854,0,3359,1120,0]Al[2246,13,4854,0,8933,1120,0]Al[2246,13,4854,0,2783,1120,0]Al[2246,13,4854,0,3331,1120,0]Ao[2246,13,4854,7505,3350,1120,0]Al[2246,13,4854,0,7951,1120,0]Al[2246,13,4854,0,4832,1120,0]Al[2246,13,4854,0,6309,1120,0]Al[2246,13,4854,0,5785,1120,0]Al[2246,13,4854,0,8423,1120,0]Al[2246,13,4854,0,4352,1120,0]Al[2246,13,4854,0,7907,1120,0]Ao[2246,13,4854,4052,5741,1120,0]Ao[2246,13,4854,4052,6298,1120,0]Ao[2246,13,4854,4052,8238,1120,0]Al[2246,13,4854,0,8421,1120,0]Ao[2246,13,4854,1133,4768,1120,0]Ao[2246,13,4854,1133,8746,1120,0]Al[2246,13,4854,0,8463,1120,0]Ao[2246,13,4854,7247,3289,1120,0]Ao[2246,13,4854,7247,4795,1120,0]Ao[2246,13,4854,7247,6361,1120,0]Al[2246,13,4854,0,8785,1120,0]Al[2246,13,4854,0,8802,1120,0]Al[2246,13,4854,0,7554,1120,0]Ao[2246,13,4854,7247,8854,1120,0]Al[2246,13,4854,0,8966,1120,0]Ao[2246,13,4854,7247,6285,1120,0]Ao[2246,13,4854,7247,5733,1120,0]Al[2246,13,4854,0,9057,1120,0]Al[2246,13,4854,0,7534,1120,0]Ao[2246,13,4854,7247,5738,1120,0]Al[2246,13,4854,0,8817,1120,0]Al[2246,13,4854,0,5757,1120,0]Ao[2246,13,4854,7247,8413,1120,0]Ao[2246,13,4854,7247,8082,1120,0]Ao[2246,13,4854,7247,6295,1120,0]Ao[2246,13,4854,7247,8796,1120,0]Ao[2246,13,4854,7247,8427,1120,0]Ao[2246,13,4854,7247,8458,1120,0]Ao[2246,13,4854,7247,8964,1120,0]Ao[2246,13,4854,7247,8232,1120,0]Ao[2246,13,4854,3231,8907,1120,0]Ao[2246,13,4854,3231,8958,1120,0]Ao[2246,13,4854,2510,9079,1120,0]Ao[2246,13,4854,2510,8869,1120,0]Ao[2246,13,4854,2510,8870,1120,0]Ao[2246,13,4854,2510,7954,1120,0]Ao[2246,13,4854,4854,4288,1120,0]Ao[2246,13,4854,4854,8035,1120,0]Ao[2246,13,4854,4854,4786,1120,0]Ao[2246,13,4854,4854,8909,1120,0]Ao[2246,13,4854,4854,7911,1120,0]Ao[2246,13,4854,4854,8231,1120,0]Ao[2246,13,4854,4854,8246,1120,0]Ao[2246,13,4854,4854,5804,1120,0]Al[2246,13,4854,0,8415,1120,0]Al[2246,13,4854,0,8645,1120,0]Al[2246,13,4854,0,8671,1120,0]Al[2246,13,4854,0,8281,1120,0]Al[2246,13,4854,0,8815,1120,0]Al[2246,13,4854,0,8736,1120,0]Al[2246,13,4854,0,1106,1120,0]Ak[2246,13,4854,0,347,1120,0]Al[2246,13,4854,0,4824,1120,0]Am[2246,13,4471,4471,15,1120,0]Ao[2246,13,5056,5056,3342,1120,0]Ao[2246,13,5056,5056,8069,1120,0]Ao[2246,13,5056,5056,7526,1120,0]Ao[2246,13,5056,5056,7528,1120,0]Al[2246,13,8089,0,8032,1120,0]Al[2246,13,8089,0,8027,1120,0]Al[2246,13,8089,0,8996,1120,0]Ao[2246,13,7515,2508,8066,1120,0]Ao[2246,13,7515,7515,8646,1120,0]Ao[2246,13,7515,8971,8241,1120,0]Ao[7457,13,7458,7458,8653,1120,0]Ao[7457,13,7458,7458,8788,1120,0]Ao[7457,13,7458,7458,4771,1120,0]An[7457,13,7458,7458,358,1120,0]Ao[7457,13,7458,7458,7532,1120,0]Ao[7457,13,3268,3268,2831,1120,0]Ao[7457,13,3268,3268,7590,1120,0]Ao[7457,13,3268,3268,8279,1120,0]An[7457,13,1046,1046,359,1120,0]Ao[8623,13,8624,3276,5831,1120,0]Ao[8623,13,3265,3265,4766,1120,0]Ao[8623,13,3986,3986,3303,1120,0]Ao[8623,13,3986,3986,7579,1120,0]Ao[8623,13,3986,3986,8061,1120,0]Ao[8623,13,3986,3986,8257,1120,0]Ao[8623,13,3986,3986,8409,1120,0]Am[8623,13,645,645,5754,1120,0]Am[8623,13,645,645,5753,1120,0]Am[8623,13,645,645,6301,1120,0]Am[8623,13,645,645,3311,1120,0]Ao[8623,13,1766,1766,6312,1120,0]Ao[8623,13,1766,8113,8464,1120,0]Ao[8623,13,1766,1050,4770,1120,0]Ao[8623,13,1766,1766,6311,1120,0]Ao[8623,13,1766,1766,7553,1120,0]Ao[8623,13,4455,4455,4313,1120,0]Ao[8623,13,4046,4046,3345,1120,0]Ao[7458,13,7459,7992,7568,1120,0]Ao[7458,13,7459,6115,4801,1120,0]Ao[7458,13,7459,6132,4815,1120,0]Ao[7458,13,7459,6132,7571,1120,0]Ao[7458,13,7459,6132,8465,1120,0]Ao[7458,13,3732,1143,5812,1120,0]Ao[7458,13,3732,1143,5801,1120,0]Ao[7458,13,3732,3732,7912,1120,0]Ao[7458,13,3732,3732,5752,1120,0]Ao[7458,13,3732,3732,8019,1120,0]Ao[7458,13,3732,3732,3298,1120,0]Ao[7458,13,3732,3732,6279,1120,0]Ao[7458,13,3732,3732,7904,1120,0]Ao[7458,13,4045,4454,4315,1120,0]Ao[7458,13,4045,4454,7947,1120,0]Ao[7458,13,4045,5059,8752,1120,0]Ao[7458,13,4045,4045,7955,1120,0]Ao[7458,13,4045,4045,7572,1120,0]Ao[7458,13,4045,4045,7900,1120,0]Ao[7458,13,4045,4045,3291,1120,0]Ao[7458,13,4045,4045,6350,1120,0]Ao[7458,13,4045,4045,5820,1120,0]Ao[7458,13,4045,4045,3321,1120,0]Ao[7458,13,4045,4045,8411,1120,0]Ao[7458,13,4045,4045,6277,1120,0]Ao[7458,13,4045,4045,3346,1120,0]Ao[7458,13,4045,4045,6367,1120,0]Ao[7458,13,4045,4045,8472,1120,0]Ao[7458,13,3733,3733,3304,1120,0]Ao[7458,13,3733,3733,3299,1120,0]Ao[7458,13,3733,3733,8657,1120,0]Ao[7458,13,3733,3733,8480,1120,0]Ao[7458,13,3733,3733,4823,1120,0]Ao[7458,13,3733,3733,8795,1120,0]Ao[7458,13,4499,4499,8067,1120,0]Ao[7458,13,4499,4499,5813,1120,0]Ao[7458,13,4499,4499,5802,1120,0]Ao[7458,13,4499,4499,8259,1120,0]Ao[7458,13,4499,4499,8861,1120,0]Ao[7458,13,4365,4365,4291,1120,0]Ao[7458,13,7830,7830,5821,1120,0]Ao[7458,13,7830,7830,8932,1120,0]Ao[7458,13,7830,7830,7527,1120,0]Ao[7458,13,7830,7830,8991,1120,0]Ao[7458,13,7830,7830,7949,1120,0]Ao[7458,13,7830,7830,4790,1120,0]Ao[7458,13,3742,3742,5758,1120,0]Ao[7458,13,3742,3742,8252,1120,0]Ao[7458,13,3251,3251,2807,1120,0]Ao[7458,13,3251,3251,8674,1120,0]Ao[7458,13,3251,3251,8648,1120,0]Ao[7458,13,3251,3251,5749,1120,0]Ao[7458,13,6095,6095,2806,1120,0]Ao[7458,13,6095,6095,9046,1120,0]Ao[7458,13,6095,6095,5772,1120,0]Ao[7458,13,2511,2511,2805,1120,0]Ao[7458,13,2511,2511,6349,1120,0]Am[7458,13,644,644,4779,1120,0]Am[7458,13,644,644,7559,1120,0]Am[7458,13,644,644,8276,1120,0]Am[7458,13,644,644,4290,1120,0]Am[7458,13,644,644,7538,1120,0]Am[7458,13,644,644,7540,1120,0]Am[7458,13,644,644,8076,1120,0]Ao[7458,13,8090,8090,8033,1120,0]Ao[7458,13,8090,8090,8029,1120,0]Ao[7458,13,8090,8090,7921,1120,0]Ao[7458,13,8090,8090,4835,1120,0]Ao[7458,13,8090,8090,8997,1120,0]Ao[7458,13,8090,8090,7926,1120,0]Ao[7458,13,8090,8090,6342,1120,0]Al[7458,15,4045,4045,3291,0,0]Ah[2246,5,4854,5837,0,0,0]Ae[2246,6,8283,0,0,0,0]Ae[7458,6,2511,0,0,0,0]Ae[7458,6,6095,0,0,0,0]Ae[7458,6,3251,0,0,0,0]Al[7458,15,3733,3733,4823,0,0]Al[7458,15,7830,7830,8932,0,0]Aj[7458,15,644,644,7538,0,0]Al[2246,15,4854,4052,8238,0,0]Al[7458,15,4499,4499,8259,0,0]Al[7458,15,4499,4499,5802,0,0]Al[2246,15,4854,4854,8909,0,0]Al[7457,15,7458,7458,8653,0,0]Al[7457,15,7458,7458,8788,0,0]Al[7457,15,7458,7458,4771,0,0]Ai[2246,15,2247,0,8074,0,0]Al[2246,15,4854,7505,3350,0,0]Al[6109,15,6110,8088,8075,0,0]Ai[2246,15,4854,0,5796,0,0]Ai[2246,15,4854,0,8421,0,0]Al[7458,15,3251,3251,2807,0,0]Al[8623,15,1766,8113,8464,0,0]Ae[7457,5,3268,0,0,0,0]Ai[2246,17,2247,0,4351,0,0]Ai[2246,14,2247,0,7917,0,0]Ai[2246,13,8283,0,7920,0,0]Al[2246,13,4854,7889,6354,0,0]Al[6109,14,6110,8088,7918,0,0]Al[7458,13,8090,8090,7921,0,0]Al[2246,13,4854,4854,4288,0,0]Al[2246,12,4471,4471,3333,0,0]Am[2246,13,4471,4471,15,3333,0]Aj[2246,13,643,643,9025,0,0]Al[2246,13,3244,3244,8962,0,0]Al[2246,13,3244,3244,8929,0,0]Aj[2246,13,638,638,4289,0,0]Al[2246,13,2254,2254,9045,0,0]Ai[2246,12,4854,0,8735,0,0]Al[2246,13,4854,2510,9079,0,0]Al[2246,13,4854,2510,8870,0,0]Aj[7458,13,644,644,4290,0,0]Ai[2246,14,4854,0,2783,0,0]Ai[2246,14,4854,0,4832,0,0]Ai[2246,14,4854,0,4352,0,0]Ai[7458,14,6276,0,3323,0,0]Al[2246,13,8283,8283,9022,0,0]Al[2246,13,2247,0,7917,2784,0]Al[2246,13,2247,0,8074,2784,0]Al[2246,13,2247,0,5791,2784,0]Al[2246,13,2247,0,5808,2784,0]Al[2246,13,2247,0,5815,2784,0]Al[2246,13,2247,0,4817,2784,0]Al[2246,13,2247,0,4814,2784,0]Al[2246,13,2247,0,7570,2784,0]Al[2246,13,2247,0,5773,2784,0]Ao[2246,13,4453,4453,8426,2784,0]Al[2246,13,8283,0,7920,2784,0]Al[2246,13,8283,0,4834,2784,0]Al[2246,13,8283,0,7925,2784,0]Ao[2246,13,8283,8283,2804,2784,0]Ao[2246,13,8283,8283,1083,2784,0]Ao[2246,13,8283,8283,9022,2784,0]Ao[2246,13,4018,4018,7938,2784,0]Ao[2246,13,3244,3244,8263,2784,0]Ao[2246,13,3244,3244,8063,2784,0]Ao[2246,13,3244,3244,8670,2784,0]Am[2246,13,638,638,8650,2784,0]Ao[2246,13,2254,2254,8751,2784,0]Ao[2246,13,2254,2254,8240,2784,0]Ak[2246,13,642,0,7539,2784,0]Al[2246,13,4854,0,8753,2784,0]Al[2246,13,4854,0,8270,2784,0]Al[2246,13,4854,0,5796,2784,0]Al[2246,13,4854,0,6355,2784,0]Al[2246,13,4854,0,8269,2784,0]Al[2246,13,4854,0,6373,2784,0]Al[2246,13,4854,0,7957,2784,0]Ao[2246,13,4854,7990,7940,2784,0]Ao[2246,13,4854,7990,7567,2784,0]Ao[2246,13,4854,7990,4809,2784,0]Ao[2246,13,4854,7889,6354,2784,0]Ao[2246,13,4854,7889,8757,2784,0]Ao[2246,13,4854,7889,8814,2784,0]Al[2246,13,4854,0,8871,2784,0]Al[2246,13,4854,0,3359,2784,0]Al[2246,13,4854,0,8933,2784,0]Al[2246,13,4854,0,3331,2784,0]Ao[2246,13,4854,7505,3350,2784,0]Al[2246,13,4854,0,7951,2784,0]Al[2246,13,4854,0,4832,2784,0]Al[2246,13,4854,0,6309,2784,0]Al[2246,13,4854,0,5785,2784,0]Al[2246,13,4854,0,8423,2784,0]Al[2246,13,4854,0,4352,2784,0]Al[2246,13,4854,0,7907,2784,0]Ao[2246,13,4854,4052,6298,2784,0]Ao[2246,13,4854,4052,8238,2784,0]Al[2246,13,4854,0,8421,2784,0]Ao[2246,13,4854,1133,4768,2784,0]Al[2246,13,4854,0,8785,2784,0]Al[2246,13,4854,0,8802,2784,0]Al[2246,13,4854,0,7554,2784,0]Ao[2246,13,4854,7247,8854,2784,0]Al[2246,13,4854,0,8966,2784,0]Al[2246,13,4854,0,5757,2784,0]Ao[2246,13,4854,7247,8413,2784,0]Ao[2246,13,4854,7247,8082,2784,0]Ao[2246,13,4854,7247,6295,2784,0]Ao[2246,13,4854,7247,8796,2784,0]Ao[2246,13,4854,7247,8427,2784,0]Ao[2246,13,4854,7247,8458,2784,0]Ao[2246,13,4854,7247,8964,2784,0]Ao[2246,13,4854,7247,8232,2784,0]Ao[2246,13,4854,2510,9079,2784,0]Ao[2246,13,4854,2510,8869,2784,0]Ao[2246,13,4854,2510,8870,2784,0]Ao[2246,13,4854,2510,7954,2784,0]Ao[2246,13,4854,4854,4786,2784,0]Ao[2246,13,4854,4854,8231,2784,0]Ao[2246,13,4854,4854,5804,2784,0]Al[2246,13,4854,0,8415,2784,0]Al[2246,13,4854,0,8645,2784,0]Al[2246,13,4854,0,8671,2784,0]Al[2246,13,4854,0,8281,2784,0]Al[2246,13,4854,0,8815,2784,0]Al[2246,13,4854,0,1106,2784,0]Ak[2246,13,4854,0,347,2784,0]Al[2246,13,4854,0,4824,2784,0]Am[2246,13,4471,4471,15,2784,0]Ao[2246,13,5056,5056,3342,2784,0]Ao[2246,13,5056,5056,7528,2784,0]Ao[2246,13,7515,2508,8066,2784,0]Ao[6109,13,6110,8088,7918,2784,0]Ao[6109,13,6110,8088,8075,2784,0]An[6109,13,6110,984,5792,2784,0]An[6109,13,6110,984,5809,2784,0]An[6109,13,6110,984,5816,2784,0]Ao[6109,13,6110,6134,4818,2784,0]Ao[7457,13,7458,7458,4771,2784,0]An[7457,13,7458,7458,358,2784,0]An[7457,13,1046,1046,359,2784,0]Ao[8623,13,8624,3276,5831,2784,0]Ao[8623,13,3265,3265,4766,2784,0]Ao[8623,13,3986,3986,7579,2784,0]Am[8623,13,645,645,5753,2784,0]Am[8623,13,645,645,6301,2784,0]Am[8623,13,645,645,3311,2784,0]Ao[8623,13,1766,8113,8464,2784,0]Ao[8623,13,1766,1050,4770,2784,0]Ao[8623,13,1766,1766,6311,2784,0]Ao[8623,13,1766,1766,7553,2784,0]Ao[7458,13,7459,6115,4801,2784,0]Ao[7458,13,7459,6132,4815,2784,0]Ao[7458,13,7459,6132,7571,2784,0]Ao[7458,13,7459,6132,8465,2784,0]Ao[7458,13,3732,3732,8019,2784,0]Ao[7458,13,4045,4454,7947,2784,0]Ao[7458,13,4045,4045,3291,2784,0]Ao[7458,13,4045,4045,8411,2784,0]Ao[7458,13,4365,4365,4291,2784,0]Ao[7458,13,7830,7830,5821,2784,0]Ao[7458,13,7830,7830,7949,2784,0]Ao[7458,13,3742,3742,5758,2784,0]Ao[7458,13,3251,3251,8674,2784,0]Ao[7458,13,3251,3251,8648,2784,0]Ao[7458,13,3251,3251,5749,2784,0]Ao[7458,13,6095,6095,5772,2784,0]Ao[7458,13,2511,2511,6349,2784,0]Am[7458,13,644,644,4290,2784,0]Am[7458,13,644,644,7538,2784,0]Am[7458,13,644,644,7540,2784,0]Am[7458,13,644,644,8076,2784,0]Ao[7458,13,8090,8090,7921,2784,0]Ao[7458,13,8090,8090,4835,2784,0]Ao[7458,13,8090,8090,7926,2784,0]Al[2246,13,4854,7247,6295,0,0]Al[2246,13,4854,4854,4786,0,0]Al[7457,13,7458,7458,8653,0,0]Al[7457,13,7458,7458,8788,0,0]Al[2246,13,2247,0,7917,5786,0]Al[2246,13,2247,0,8074,5786,0]Al[2246,13,2247,0,5791,5786,0]Al[2246,13,2247,0,5791,2787,0]Al[2246,13,2247,0,8441,5786,0]Al[2246,13,2247,0,5808,5786,0]Al[2246,13,2247,0,5815,5786,0]Al[2246,13,2247,0,8273,5786,0]Al[2246,13,2247,0,4817,2787,0]Al[2246,13,2247,0,4817,5786,0]Al[2246,13,2247,0,8806,5786,0]Al[2246,13,2247,0,4814,5786,0]Al[2246,13,2247,0,7570,5786,0]Al[2246,13,2247,0,5773,5786,0]Al[2246,13,4453,0,8264,5786,0]Al[2246,13,4453,0,8070,5786,0]Al[2246,13,4453,0,7946,5786,0]Ao[2246,13,4453,4453,8426,5786,0]Al[2246,13,4453,0,8665,5786,0]Al[2246,13,8283,0,7920,5786,0]Al[2246,13,8283,0,4834,5786,0]Al[2246,13,8283,0,7925,2787,0]Al[2246,13,8283,0,7925,5786,0]Al[2246,13,8283,0,6340,5786,0]Ao[2246,13,8283,8283,8993,5786,0]Ao[2246,13,8283,8283,2804,5786,0]Ao[2246,13,8283,8283,1083,5786,0]Ao[2246,13,8283,8283,1083,2787,0]Ao[2246,13,8283,8283,9022,5786,0]Ao[2246,13,4018,4018,7938,5786,0]Am[2246,13,643,643,8652,5786,0]Am[2246,13,643,643,9025,5786,0]Ao[2246,13,3244,3244,6346,5786,0]Ao[2246,13,3244,3244,8962,5786,0]Ao[2246,13,3244,3244,8263,5786,0]Ao[2246,13,3244,3244,8929,5786,0]Ao[2246,13,3244,3244,8063,5786,0]Ao[2246,13,3244,3244,8670,5786,0]Am[2246,13,638,638,8650,5786,0]Am[2246,13,638,638,4289,5786,0]Ao[2246,13,2254,2254,8751,5786,0]Ao[2246,13,2254,2254,9045,5786,0]Ao[2246,13,2254,2254,8240,5786,0]Ak[2246,13,642,0,7539,5786,0]Al[2246,13,4854,0,4317,5786,0]Al[2246,13,4854,0,3328,5786,0]Al[2246,13,4854,0,5732,5786,0]Al[2246,13,4854,0,4763,5786,0]Al[2246,13,4854,0,7945,5786,0]Al[2246,13,4854,0,7952,5786,0]Al[2246,13,4854,0,8753,5786,0]Al[2246,13,4854,0,6353,5786,0]Al[2246,13,4854,0,8874,5786,0]Al[2246,13,4854,0,8270,5786,0]Al[2246,13,4854,0,5796,5786,0]Al[2246,13,4854,0,6355,5786,0]Al[2246,13,4854,0,8269,5786,0]Al[2246,13,4854,0,6363,5786,0]Al[2246,13,4854,0,6373,5786,0]Al[2246,13,4854,0,7957,5786,0]Al[2246,13,4854,0,6348,5786,0]Al[2246,13,4854,0,1084,5786,0]Ao[2246,13,4854,7990,7940,5786,0]Ao[2246,13,4854,7990,8668,5786,0]Ao[2246,13,4854,7990,7567,5786,0]Ao[2246,13,4854,7990,4809,5786,0]Ao[2246,13,4854,7889,6354,5786,0]Ao[2246,13,4854,7889,8757,5786,0]Ao[2246,13,4854,7889,8814,5786,0]Al[2246,13,4854,0,8473,5786,0]Al[2246,13,4854,0,8871,5786,0]Al[2246,13,4854,0,3359,5786,0]Al[2246,13,4854,0,8933,5786,0]Al[2246,13,4854,0,2783,5786,0]Al[2246,13,4854,0,3331,5786,0]Ao[2246,13,4854,7505,3350,5786,0]Al[2246,13,4854,0,7951,5786,0]Al[2246,13,4854,0,4832,5786,0]Al[2246,13,4854,0,6309,5786,0]Al[2246,13,4854,0,5785,5786,0]Al[2246,13,4854,0,8423,5786,0]Al[2246,13,4854,0,4352,5786,0]Al[2246,13,4854,0,7907,5786,0]Ao[2246,13,4854,4052,5741,5786,0]Ao[2246,13,4854,4052,6298,5786,0]Ao[2246,13,4854,4052,8238,5786,0]Al[2246,13,4854,0,8421,5786,0]Ao[2246,13,4854,1133,4768,5786,0]Ao[2246,13,4854,1133,8746,5786,0]Al[2246,13,4854,0,8463,5786,0]Ao[2246,13,4854,7247,3289,5786,0]Ao[2246,13,4854,7247,4795,5786,0]Ao[2246,13,4854,7247,6361,5786,0]Al[2246,13,4854,0,8785,5786,0]Al[2246,13,4854,0,8802,5786,0]Al[2246,13,4854,0,7554,5786,0]Ao[2246,13,4854,7247,8854,5786,0]Al[2246,13,4854,0,8966,5786,0]Ao[2246,13,4854,7247,6285,5786,0]Ao[2246,13,4854,7247,5733,5786,0]Al[2246,13,4854,0,9057,5786,0]Al[2246,13,4854,0,7534,5786,0]Ao[2246,13,4854,7247,5738,5786,0]Al[2246,13,4854,0,8817,5786,0]Al[2246,13,4854,0,5757,5786,0]Ao[2246,13,4854,7247,8413,5786,0]Ao[2246,13,4854,7247,8082,5786,0]Ao[2246,13,4854,7247,6295,5786,0]Ao[2246,13,4854,7247,8796,5786,0]Ao[2246,13,4854,7247,8427,5786,0]Ao[2246,13,4854,7247,8458,5786,0]Ao[2246,13,4854,7247,8964,5786,0]Ao[2246,13,4854,7247,8232,5786,0]Ao[2246,13,4854,3231,8907,5786,0]Ao[2246,13,4854,3231,8958,5786,0]Ao[2246,13,4854,2510,9079,5786,0]Ao[2246,13,4854,2510,8869,5786,0]Ao[2246,13,4854,2510,8870,5786,0]Ao[2246,13,4854,2510,7954,5786,0]Ao[2246,13,4854,4854,4288,5786,0]Ao[2246,13,4854,4854,8035,5786,0]Ao[2246,13,4854,4854,4786,5786,0]Ao[2246,13,4854,4854,8909,5786,0]Ao[2246,13,4854,4854,7911,5786,0]Ao[2246,13,4854,4854,8231,5786,0]Ao[2246,13,4854,4854,8246,5786,0]Ao[2246,13,4854,4854,5804,5786,0]Al[2246,13,4854,0,8415,5786,0]Al[2246,13,4854,0,8645,5786,0]Al[2246,13,4854,0,8671,5786,0]Al[2246,13,4854,0,8281,5786,0]Al[2246,13,4854,0,8815,5786,0]Al[2246,13,4854,0,8736,5786,0]Al[2246,13,4854,0,1106,5786,0]Ak[2246,13,4854,0,347,5786,0]Al[2246,13,4854,0,4824,5786,0]Am[2246,13,4471,4471,15,5786,0]Ao[2246,13,5056,5056,3342,5786,0]Ao[2246,13,5056,5056,8069,5786,0]Ao[2246,13,5056,5056,7526,5786,0]Ao[2246,13,5056,5056,7528,5786,0]Al[2246,13,8089,0,8032,5786,0]Al[2246,13,8089,0,8027,5786,0]Al[2246,13,8089,0,8996,5786,0]Ao[2246,13,7515,2508,8066,5786,0]Ao[2246,13,7515,7515,8646,5786,0]Ao[2246,13,7515,8971,8241,5786,0]An[6109,13,6110,984,5792,2787,0]Ao[6109,13,6110,6134,4818,2787,0]Ao[7457,13,7458,7458,8653,5786,0]Ao[7457,13,7458,7458,8788,5786,0]Ao[7457,13,7458,7458,4771,5786,0]An[7457,13,7458,7458,358,5786,0]Ao[7457,13,7458,7458,7532,5786,0]Ao[7457,13,3268,3268,2831,5786,0]Ao[7457,13,3268,3268,7590,5786,0]Ao[7457,13,3268,3268,8279,5786,0]An[7457,13,1046,1046,359,5786,0]Ao[7458,13,7459,7992,7568,5786,0]Ao[7458,13,7459,6115,4801,5786,0]Ao[7458,13,7459,6132,4815,5786,0]Ao[7458,13,7459,6132,7571,5786,0]Ao[7458,13,7459,6132,8465,5786,0]Ao[7458,13,3732,1143,5812,5786,0]Ao[7458,13,3732,1143,5801,5786,0]Ao[7458,13,3732,3732,7912,5786,0]Ao[7458,13,3732,3732,5752,5786,0]Ao[7458,13,3732,3732,8019,5786,0]Ao[7458,13,3732,3732,3298,5786,0]Ao[7458,13,3732,3732,6279,5786,0]Ao[7458,13,3732,3732,7904,5786,0]Ao[7458,13,4045,4454,4315,5786,0]Ao[7458,13,4045,4454,7947,5786,0]Ao[7458,13,4045,5059,8752,5786,0]Ao[7458,13,4045,5059,8752,2787,0]Ao[7458,13,4045,4045,7955,5786,0]Ao[7458,13,4045,4045,7572,5786,0]Ao[7458,13,4045,4045,7900,5786,0]Ao[7458,13,4045,4045,3291,5786,0]Ao[7458,13,4045,4045,6350,5786,0]Ao[7458,13,4045,4045,5820,5786,0]Ao[7458,13,4045,4045,3321,5786,0]Ao[7458,13,4045,4045,8411,5786,0]Ao[7458,13,4045,4045,6277,5786,0]Ao[7458,13,4045,4045,3346,5786,0]Ao[7458,13,4045,4045,6367,5786,0]Ao[7458,13,4045,4045,8472,5786,0]Ao[7458,13,3733,3733,3304,5786,0]Ao[7458,13,3733,3733,3299,5786,0]Ao[7458,13,3733,3733,8657,5786,0]Ao[7458,13,3733,3733,8480,5786,0]Ao[7458,13,3733,3733,4823,5786,0]Ao[7458,13,3733,3733,8795,5786,0]Ao[7458,13,4499,4499,8067,5786,0]Ao[7458,13,4499,4499,5813,5786,0]Ao[7458,13,4499,4499,5802,5786,0]Ao[7458,13,4499,4499,8259,5786,0]Ao[7458,13,4499,4499,8861,5786,0]Ao[7458,13,4365,4365,4291,5786,0]Ao[7458,13,7830,7830,5821,5786,0]Ao[7458,13,7830,7830,8932,5786,0]Ao[7458,13,7830,7830,7527,5786,0]Ao[7458,13,7830,7830,8991,5786,0]Ao[7458,13,7830,7830,7949,5786,0]Ao[7458,13,7830,7830,4790,2787,0]Ao[7458,13,7830,7830,4790,5786,0]Ao[7458,13,3742,3742,5758,5786,0]Ao[7458,13,3742,3742,8252,5786,0]Ao[7458,13,3251,3251,2807,5786,0]Ao[7458,13,3251,3251,8674,5786,0]Ao[7458,13,3251,3251,8648,5786,0]Ao[7458,13,3251,3251,5749,5786,0]Ao[7458,13,6095,6095,2806,5786,0]Ao[7458,13,6095,6095,9046,5786,0]Ao[7458,13,6095,6095,5772,5786,0]Ao[7458,13,2511,2511,2805,5786,0]Ao[7458,13,2511,2511,6349,5786,0]Am[7458,13,644,644,4779,5786,0]Am[7458,13,644,644,7559,5786,0]Am[7458,13,644,644,8276,5786,0]Am[7458,13,644,644,4290,5786,0]Am[7458,13,644,644,7538,5786,0]Am[7458,13,644,644,7540,5786,0]Am[7458,13,644,644,8076,5786,0]Ao[7458,13,8090,8090,8033,5786,0]Ao[7458,13,8090,8090,8029,5786,0]Ao[7458,13,8090,8090,7921,5786,0]Ao[7458,13,8090,8090,4835,5786,0]Ao[7458,13,8090,8090,8997,5786,0]Ao[7458,13,8090,8090,7926,2787,0]Ao[7458,13,8090,8090,7926,5786,0]Ao[7458,13,8090,8090,6342,5786,0]Ai[2246,13,2247,0,4814,0,0]Al[2246,13,8283,8283,9022,0,0]Al[2246,13,4854,4854,4288,0,0]Al[7458,13,7459,6132,4815,0,0]Ai[2246,14,4854,0,8281,0,0]2Al[8623,14,3986,3986,3303,0,0]Ai[2246,13,4854,0,4824,0,0]Ai[2246,13,2247,0,8074,0,0]Al[2246,13,4854,7990,4809,0,0]Al[6109,13,6110,8088,8075,0,0]Ai[2246,14,6335,0,8453,0,0]0Ai[7458,14,6338,0,8454,0,0]Al[2246,13,4854,7247,6295,0,0]Al[2246,13,4854,7247,8232,0,0]Ae[2246,2,8283,0,0,0,0]Al[7457,13,7458,7458,7532,0,0]Al[7457,13,3268,3268,2831,0,0]Ae[7457,2,7458,0,0,0,0]Al[7458,14,4045,4045,7955,0,0]Ae[7458,2,4029,0,0,0,0]Ah[2246,13,642,0,7539,0,0]Ai[2246,13,4854,0,6363,0,0]Aj[7458,12,644,644,4821,0,0]Aj[7458,13,644,644,7540,0,0]Al[2246,13,4854,7247,4795,0,0]Aj[8623,14,645,645,5753,0,0]Al[2246,13,5056,5056,8069,0,0]Aj[8623,13,645,645,5754,0,0]Al[8623,13,1766,1766,6312,0,0]Al[8623,13,4046,4046,3345,0,0]Al[7458,13,4045,4045,3346,0,0]Al[7458,13,3732,3732,3298,0,0]Ae[8623,2,8624,0,0,0,0]Ai[7458,14,6276,0,7555,0,0]Al[2246,13,4854,7990,4809,0,0]Al[2246,13,4854,7247,6295,0,0]Al[2246,13,4854,7247,8232,0,0]Ae[7457,2,7458,0,0,0,0]Al[7457,13,7458,7458,8788,0,0]Ak[7457,14,7458,7458,358,0,0]Al[8623,14,3265,3265,4766,0,0]Ai[2246,13,4854,0,6348,0,0]Al[2246,13,4854,7889,8757,0,0]Ai[7458,14,2796,0,9020,0,0]Ai[2246,13,4854,0,6363,0,0]Ai[2246,13,4854,0,8871,0,0]Al[2246,15,4854,3231,8907,0,0]Al[2246,15,4854,3231,8958,0,0]Ah[2246,5,4854,7247,0,0,0]Al[7458,15,7830,7830,8991,0,0]Ae[7458,6,4045,0,0,0,0]Ai[2246,15,4854,0,5757,0,0]Al[2246,15,4854,7889,8814,0,0]Ai[2246,15,4854,0,1106,0,0]Ae[7458,5,3732,0,0,0,0]Ae[7458,5,3733,0,0,0,0]Al[2246,15,4854,4854,8035,0,0]Ae[8623,5,3986,0,0,0,0]26Al[2246,15,4854,4854,5804,0,0]Al[8623,15,3986,3986,8409,0,0]Ai[2246,15,2247,0,8441,0,0]Ak[6109,15,6110,984,8442,0,0]Ad[8623,5,645,0,0,0,0]Al[7458,15,3742,3742,5758,0,0]Al[7458,15,3251,3251,8674,0,0]Ai[2246,19,2247,0,5791,0,0]Ai[2246,19,2247,0,5815,0,0]Ak[6109,19,6110,984,5792,0,0]Ak[6109,19,6110,984,5816,0,0]Ae[7458,5,4045,0,0,0,0]Al[8623,15,1766,1050,4770,0,0]Al[7458,15,4045,4045,6277,0,0]Al[2246,15,4854,7247,8854,0,0]Ah[2246,5,4854,7249,0,0,0]Ah[2246,5,4854,3241,0,0,0]Af[2246,10,4471,0,0,0,0]Al[2246,15,4854,3231,8907,0,0]Al[2246,15,4854,3231,8958,0,0]Ae[2246,5,5056,0,0,0,0]Al[7458,15,4500,4500,7589,0,0]Ai[2246,15,4854,0,1106,0,0]Ae[8623,5,4046,0,0,0,0]Al[2246,13,4854,1133,4768,0,0]Al[2246,13,8283,8283,1083,0,0]Ai[2246,14,2792,0,1109,0,0]Ai[2246,14,8992,0,1110,0,0]Ai[2246,13,4854,0,6353,0,0]Ai[2246,13,4854,0,8874,0,0]1Al[2246,13,4854,4854,4288,0,0]Ai[2246,13,2247,0,7917,0,0]Ai[2246,13,8283,0,7920,0,0]Al[6109,13,6110,8088,7918,0,0]Al[7458,13,8090,8090,7921,0,0]Aj[2246,13,638,638,4289,0,0]5Al[2246,13,4854,4854,4786,0,0]Ai[2246,14,4453,0,8070,0,0]Ae[7458,7,6095,0,0,0,0]Ao[7458,13,3732,3732,3298,1107,0]Ao[7458,13,3732,3732,6279,1107,0]Ao[7458,13,4499,4499,8067,1107,0]Ai[2246,13,4854,0,6348,0,0]Ae[2246,2,2247,0,0,0,0]Al[7457,14,3268,3268,8279,0,0]Ae[7458,7,4507,0,0,0,0]Al[7457,14,3268,3268,2831,0,0]:?=Al[8623,14,3986,3986,3303,0,0]Ae[2246,6,5056,0,0,0,0]Ae[7458,6,7830,0,0,0,0]Ae[2246,5,5056,0,0,0,0]Al[2246,15,4854,7505,3350,0,0]Ae[7457,5,7458,0,0,0,0]Ah[2246,5,4854,3989,0,0,0]Ai[2246,15,4854,0,5757,0,0]Ad[7458,6,644,0,0,0,0]Af[2246,5,642,644,0,0,0]Ad[7458,5,644,0,0,0,0]Al[7458,15,3732,1143,5812,0,0]Al[7458,15,4499,4499,5813,0,0]Al[7458,15,3733,3733,4823,0,0]Al[2246,15,3244,3244,6346,0,0]0Ae[8623,5,1766,0,0,0,0]Ah[2246,5,4854,6268,0,0,0]Al[8623,15,1766,1050,4770,0,0]Al[7458,15,4045,4045,6277,0,0]:Aj[7458,15,644,644,4779,0,0]Al[7458,15,3732,3732,7912,0,0]Al[7458,15,4045,4045,6367,0,0]>Ah[2246,5,4854,7990,0,0,0]Ah[7458,5,7459,7992,0,0,0]Ai[2246,10,4854,2509,0,0,0]Ah[2246,5,2247,6132,0,0,0]Ah[7458,5,7459,6132,0,0,0]Ae[7458,5,4045,0,0,0,0]Ai[2246,15,4854,0,5757,0,0]9Al[2246,15,4854,4854,8909,0,0]1Ae[8623,5,3986,0,0,0,0]Al[7458,15,3732,1143,5812,0,0]Al[7458,15,3732,1143,5801,0,0]Al[7458,15,4499,4499,5813,0,0]Al[7458,15,4499,4499,5802,0,0]Ae[7458,8,4500,0,0,0,0]Ae[7457,5,3268,0,0,0,0]Al[2246,15,4854,7247,5738,0,0]Al[2246,13,2247,0,7917,4781,0]Al[2246,13,2247,0,8074,4781,0]Al[2246,13,2247,0,5791,4781,0]Al[2246,13,2247,0,5808,4781,0]Al[2246,13,2247,0,5815,4781,0]Al[2246,13,2247,0,4817,4781,0]Al[2246,13,2247,0,4814,4781,0]Al[2246,13,2247,0,7570,4781,0]Al[2246,13,2247,0,5773,4781,0]Ao[2246,13,4453,4453,8426,4781,0]Al[2246,13,8283,0,7920,4781,0]Al[2246,13,8283,0,4834,4781,0]Al[2246,13,8283,0,7925,4781,0]Ao[2246,13,8283,8283,2804,4781,0]Ao[2246,13,8283,8283,1083,4781,0]Ao[2246,13,8283,8283,9022,4781,0]Ao[2246,13,4018,4018,7938,4781,0]Ao[2246,13,3244,3244,8263,4781,0]Ao[2246,13,3244,3244,8063,4781,0]Ao[2246,13,3244,3244,8670,4781,0]Am[2246,13,638,638,8650,4781,0]Ao[2246,13,2254,2254,8751,4781,0]Ao[2246,13,2254,2254,8240,4781,0]Ak[2246,13,642,0,7539,4781,0]Al[2246,13,4854,0,8753,4781,0]Al[2246,13,4854,0,8270,4781,0]Al[2246,13,4854,0,5796,4781,0]Al[2246,13,4854,0,6355,4781,0]Al[2246,13,4854,0,8269,4781,0]Al[2246,13,4854,0,6373,4781,0]Al[2246,13,4854,0,7957,4781,0]Ao[2246,13,4854,7990,7940,4781,0]Ao[2246,13,4854,7990,7567,4781,0]Ao[2246,13,4854,7990,4809,4781,0]Ao[2246,13,4854,7889,6354,4781,0]Ao[2246,13,4854,7889,8757,4781,0]Ao[2246,13,4854,7889,8814,4781,0]Al[2246,13,4854,0,8871,4781,0]Al[2246,13,4854,0,3359,4781,0]Al[2246,13,4854,0,8933,4781,0]Al[2246,13,4854,0,3331,4781,0]Ao[2246,13,4854,7505,3350,4781,0]Al[2246,13,4854,0,7951,4781,0]Al[2246,13,4854,0,4832,4781,0]Al[2246,13,4854,0,6309,4781,0]Al[2246,13,4854,0,5785,4781,0]Al[2246,13,4854,0,8423,4781,0]Al[2246,13,4854,0,4352,4781,0]Al[2246,13,4854,0,7907,4781,0]Ao[2246,13,4854,4052,6298,4781,0]Ao[2246,13,4854,4052,8238,4781,0]Al[2246,13,4854,0,8421,4781,0]Ao[2246,13,4854,1133,4768,4781,0]Al[2246,13,4854,0,8785,4781,0]Al[2246,13,4854,0,8802,4781,0]Al[2246,13,4854,0,7554,4781,0]Ao[2246,13,4854,7247,8854,4781,0]Al[2246,13,4854,0,8966,4781,0]Al[2246,13,4854,0,5757,4781,0]Ao[2246,13,4854,7247,8413,4781,0]Ao[2246,13,4854,7247,8082,4781,0]Ao[2246,13,4854,7247,6295,4781,0]Ao[2246,13,4854,7247,8796,4781,0]Ao[2246,13,4854,7247,8427,4781,0]Ao[2246,13,4854,7247,8458,4781,0]Ao[2246,13,4854,7247,8964,4781,0]Ao[2246,13,4854,7247,8232,4781,0]Ao[2246,13,4854,2510,9079,4781,0]Ao[2246,13,4854,2510,8869,4781,0]Ao[2246,13,4854,2510,8870,4781,0]Ao[2246,13,4854,2510,7954,4781,0]Ao[2246,13,4854,4854,4786,4781,0]Ao[2246,13,4854,4854,8231,4781,0]Ao[2246,13,4854,4854,5804,4781,0]Al[2246,13,4854,0,8415,4781,0]Al[2246,13,4854,0,8645,4781,0]Al[2246,13,4854,0,8671,4781,0]Al[2246,13,4854,0,8281,4781,0]Al[2246,13,4854,0,8815,4781,0]Al[2246,13,4854,0,1106,4781,0]Ak[2246,13,4854,0,347,4781,0]Al[2246,13,4854,0,4824,4781,0]Am[2246,13,4471,4471,15,4781,0]Ao[2246,13,5056,5056,3342,4781,0]Ao[2246,13,5056,5056,7528,4781,0]Ao[2246,13,7515,2508,8066,4781,0]Ao[7457,13,7458,7458,4771,4781,0]An[7457,13,7458,7458,358,4781,0]An[7457,13,1046,1046,359,4781,0]Ao[8623,13,8624,3276,5831,4781,0]Ao[8623,13,3265,3265,4766,4781,0]Ao[8623,13,3986,3986,7579,4781,0]Am[8623,13,645,645,5753,4781,0]Am[8623,13,645,645,6301,4781,0]Am[8623,13,645,645,3311,4781,0]Ao[8623,13,1766,8113,8464,4781,0]Ao[8623,13,1766,1050,4770,4781,0]Ao[8623,13,1766,1766,6311,4781,0]Ao[8623,13,1766,1766,7553,4781,0]Ao[7458,13,7459,6115,4801,4781,0]Ao[7458,13,7459,6132,4815,4781,0]Ao[7458,13,7459,6132,7571,4781,0]Ao[7458,13,7459,6132,8465,4781,0]Ao[7458,13,3732,3732,8019,4781,0]Ao[7458,13,4045,4454,7947,4781,0]Ao[7458,13,4045,4045,3291,4781,0]Ao[7458,13,4045,4045,8411,4781,0]Ao[7458,13,4365,4365,4291,4781,0]Ao[7458,13,7830,7830,5821,4781,0]Ao[7458,13,7830,7830,7949,4781,0]Ao[7458,13,3742,3742,5758,4781,0]Ao[7458,13,3251,3251,8674,4781,0]Ao[7458,13,3251,3251,8648,4781,0]Ao[7458,13,3251,3251,5749,4781,0]Ao[7458,13,6095,6095,5772,4781,0]Ao[7458,13,2511,2511,6349,4781,0]Am[7458,13,644,644,4290,4781,0]Am[7458,13,644,644,7538,4781,0]Am[7458,13,644,644,7540,4781,0]Am[7458,13,644,644,8076,4781,0]Ao[7458,13,8090,8090,7921,4781,0]Ao[7458,13,8090,8090,4835,4781,0]Ao[7458,13,8090,8090,7926,4781,0]Al[2246,13,4854,7247,4795,0,0]Ai[2246,14,4854,0,6309,0,0]Al[2246,13,4453,0,8264,7929,0]Al[2246,13,4453,0,8070,7929,0]Al[2246,13,4453,0,7946,7929,0]Al[2246,13,4453,0,8665,7929,0]Ao[8623,13,4455,4455,4313,7929,0]Ao[7458,13,4045,4454,4315,7929,0]Ah[2246,13,642,0,7539,0,0]Aj[7458,12,644,644,4821,0,0]Aj[7458,13,644,644,7540,0,0]Al[7458,13,2511,2511,6349,0,0]Ai[2246,14,4854,0,5785,0,0]Aj[8623,14,645,645,5753,0,0]0Ai[2246,13,4854,0,6348,0,0]Al[2246,13,2247,0,7917,7537,0]Al[2246,13,2247,0,8074,7537,0]Al[2246,13,2247,0,5791,7537,0]Al[2246,13,2247,0,5808,7537,0]Al[2246,13,2247,0,5815,7537,0]Al[2246,13,2247,0,4817,7537,0]Al[2246,13,2247,0,7570,7537,0]Al[2246,13,2247,0,5773,7537,0]Al[2246,13,4453,0,8264,7537,0]Al[2246,13,4453,0,8070,7537,0]Ao[2246,13,4453,4453,8426,7537,0]Al[2246,13,4453,0,8665,7537,0]Ao[2246,13,4854,7505,3350,7537,0]Ao[6109,13,6110,8088,7918,7537,0]Ao[6109,13,6110,8088,8075,7537,0]An[6109,13,6110,984,5792,7537,0]An[6109,13,6110,984,5809,7537,0]An[6109,13,6110,984,5816,7537,0]Ao[6109,13,6110,6134,4818,7537,0]Ao[8623,13,3986,3986,3303,7537,0]Ao[8623,13,3986,3986,7579,7537,0]Ao[8623,13,3986,3986,8061,7537,0]Ao[8623,13,3986,3986,8257,7537,0]Ao[8623,13,3986,3986,8409,7537,0]Am[8623,13,645,645,5753,7537,0]Ao[8623,13,1766,8113,8464,7537,0]Ao[8623,13,1766,1050,4770,7537,0]Ao[8623,13,1766,1766,6311,7537,0]Ao[8623,13,1766,1766,7553,7537,0]Ao[7458,13,7459,6132,7571,7537,0]Ao[7458,13,7459,6132,8465,7537,0]Ai[2246,14,4453,0,7946,0,0]Al[7458,14,4045,4454,4315,0,0]Al[8623,14,3265,3265,4766,0,0]Al[2246,13,8283,8283,1083,0,0]Ai[2246,14,8283,0,7925,0,0]Ai[2246,14,8239,0,4304,0,0]1Al[7458,14,3733,3733,3304,0,0]Al[7458,14,8090,8090,7926,0,0]Al[2246,13,4453,0,8264,4799,0]Al[2246,13,4453,0,8070,4799,0]Al[2246,13,4453,0,7946,4799,0]Al[2246,13,4453,0,8665,4799,0]Ao[8623,13,4455,4455,4313,4799,0]Ao[7458,13,4045,4454,4315,4799,0]Al[2246,13,2247,0,8441,6368,0]Al[2246,13,2247,0,8273,6368,0]Al[2246,13,2247,0,8806,6368,0]Al[2246,13,8283,0,6340,6368,0]Ao[2246,13,8283,8283,8993,6368,0]Ao[2246,13,8283,8283,2804,6368,0]Ao[2246,13,3244,3244,6346,6368,0]Ao[2246,13,4854,4052,5741,6368,0]Ao[2246,13,4854,1133,8746,6368,0]Ao[2246,13,4854,7247,6361,6368,0]Ao[2246,13,4854,7247,8854,6368,0]Ao[2246,13,4854,7247,5738,6368,0]Ao[2246,13,4854,7247,8413,6368,0]Ao[2246,13,4854,7247,8964,6368,0]Ao[2246,13,4854,4854,8035,6368,0]Ao[2246,13,4854,4854,8909,6368,0]Ao[2246,13,4854,4854,7911,6368,0]Ao[2246,13,5056,5056,7526,6368,0]Al[2246,13,8089,0,8032,6368,0]Al[2246,13,8089,0,8027,6368,0]Al[2246,13,8089,0,8996,6368,0]An[6109,13,6110,984,8442,6368,0]An[6109,13,6110,984,8274,6368,0]Ao[6109,13,6110,6134,8807,6368,0]Ao[7458,13,3732,1143,5812,6368,0]Ao[7458,13,3732,1143,5801,6368,0]Ao[7458,13,3732,3732,7912,6368,0]Ao[7458,13,3732,3732,5752,6368,0]Ao[7458,13,4045,4045,6367,6368,0]Ao[7458,13,4045,4045,8472,6368,0]Ao[7458,13,3733,3733,8657,6368,0]Ao[7458,13,3733,3733,8480,6368,0]Ao[7458,13,3733,3733,4823,6368,0]Ao[7458,13,3733,3733,8795,6368,0]Ao[7458,13,4499,4499,5813,6368,0]Ao[7458,13,4499,4499,5802,6368,0]Ao[7458,13,4499,4499,8861,6368,0]Ao[7458,13,7830,7830,8932,6368,0]Ao[7458,13,7830,7830,7527,6368,0]Ao[7458,13,7830,7830,8991,6368,0]Ao[7458,13,3742,3742,8252,6368,0]Ao[7458,13,3251,3251,2807,6368,0]Ao[7458,13,6095,6095,2806,6368,0]Ao[7458,13,2511,2511,2805,6368,0]Am[7458,13,644,644,4779,6368,0]Am[7458,13,644,644,7559,6368,0]Am[7458,13,644,644,8276,6368,0]Ao[7458,13,8090,8090,8033,6368,0]Ao[7458,13,8090,8090,8029,6368,0]Ao[7458,13,8090,8090,8997,6368,0]Ao[7458,13,8090,8090,6342,6368,0]Ae[7458,2,4045,0,0,0,0]Al[2246,13,4854,2510,9079,0,0]Ak[7457,14,7458,7458,358,0,0]1Ai[2246,13,2247,0,4351,0,0]Al[2246,13,4854,0,4317,6316,0]Al[2246,13,4854,0,3328,6316,0]Al[2246,13,4854,0,5732,6316,0]Al[2246,13,4854,0,4763,6316,0]Al[2246,13,4854,0,7945,6316,0]Al[2246,13,4854,0,7952,6316,0]Ao[2246,13,4854,7247,3289,6316,0]Ao[2246,13,4854,7247,4795,6316,0]Ao[2246,13,4854,7247,6285,6316,0]Ao[2246,13,4854,7247,5733,6316,0]Ao[2246,13,4854,4854,8246,6316,0]Al[2246,13,4854,1133,4768,0,0]Al[2246,13,4854,7990,4809,0,0]Al[2246,13,5056,5056,3342,0,0]Ah[2246,13,642,0,7539,0,0]Aj[7458,12,644,644,4821,0,0]Aj[7458,13,644,644,7540,0,0]210Ai[2246,14,4854,0,6309,0,0]Ak[7457,14,7458,7458,358,0,0]Ai[2246,13,4854,0,6297,0,0]0Al[2246,13,7515,8971,8241,0,0]Ai[2246,14,4854,0,8736,0,0]Al[2246,13,2247,0,7917,6343,0]Al[2246,13,2247,0,8074,6343,0]Al[2246,13,2247,0,5791,6343,0]Al[2246,13,2247,0,4817,6343,0]Al[2246,13,2247,0,7570,6343,0]Al[2246,13,8283,0,4834,6343,0]Al[2246,13,4854,0,3359,6343,0]Al[2246,13,4854,0,3331,6343,0]Ao[2246,13,4854,4052,6298,6343,0]Ao[2246,13,4854,4052,8238,6343,0]Al[2246,13,4854,0,7554,6343,0]Al[2246,13,4854,0,1106,6343,0]Ak[2246,13,4854,0,347,6343,0]Al[2246,13,4854,0,4824,6343,0]Ao[6109,13,6110,8088,7918,6343,0]Ao[6109,13,6110,8088,8075,6343,0]An[6109,13,6110,984,5792,6343,0]Ao[6109,13,6110,6134,4818,6343,0]Ao[7458,13,7459,6132,7571,6343,0]Ao[7458,13,7459,6132,8465,6343,0]Ao[7458,13,8090,8090,4835,6343,0]Ai[2246,14,4453,0,8070,0,0]Aj[2246,13,638,638,4289,0,0]Ae[7458,7,4507,0,0,0,0]Ai[2246,13,4854,0,6353,0,0]0Al[2246,13,4854,7990,4809,0,0]Al[2246,13,4854,4854,4786,0,0]Ai[2246,12,4854,0,5763,0,0]Al[2246,13,4854,2510,9079,0,0]Al[7458,13,4045,4045,3346,0,0]Ak[7457,14,7458,7458,358,0,0]Ai[2246,14,4453,0,8264,0,0]Ai[2246,13,4854,0,8802,0,0]Ai[2246,13,4854,0,8463,0,0]Ai[2246,13,4854,0,6363,0,0]Ae[7458,6,4045,0,0,0,0]Ai[2246,15,4854,0,5757,0,0]Ae[7458,5,3732,0,0,0,0]Ai[2246,15,4854,0,5796,0,0]Ai[2246,15,4854,0,6373,0,0]Ah[2246,5,4854,4501,0,0,0]Ae[2246,6,4854,0,0,0,0]Ae[7458,6,3732,0,0,0,0]Ah[2246,5,2247,8088,0,0,0]Ah[6109,5,6110,8088,0,0,0]Ah[2246,5,8089,8090,0,0,0]Ah[2246,5,8283,8090,0,0,0]Ae[7458,5,8090,0,0,0,0]Al[7458,15,3742,3742,5758,0,0]Al[7458,15,3251,3251,8674,0,0]432=Al[7458,15,3251,3251,2807,0,0]Aj[7458,15,644,644,7559,0,0]Al[7458,15,7830,7830,8932,0,0]Ae[2246,5,4018,0,0,0,0]Ah[2246,5,4854,7990,0,0,0]Ai[2246,15,4854,0,5757,0,0]0Al[7458,15,3732,3732,5752,0,0]Ah[2246,5,4854,7249,0,0,0]Ae[2246,5,4453,0,0,0,0]Ah[7458,5,4045,4454,0,0,0]Ah[7458,4,4045,7830,0,0,0]Ae[7458,5,7830,0,0,0,0]Ah[2246,5,4854,3241,0,0,0]5Ah[2246,5,4854,2510,0,0,0]Ae[7458,5,4045,0,0,0,0]Ah[2246,6,4854,7892,0,0,0]=Ai[2246,10,4854,1133,0,0,0]An[7457,13,7458,7458,358,1067,0]An[7457,13,1046,1046,359,1067,0]Al[7458,13,6095,6095,9046,0,0]Al[7458,13,4045,4045,3346,0,0]Al[2246,13,4854,7247,6295,0,0]Ai[2246,13,4854,0,7951,0,0]Ai[2246,14,4854,0,6309,0,0]Al[8623,14,4455,4455,4313,0,0]Aj[2246,13,643,643,9025,0,0]Al[2246,13,3244,3244,8962,0,0]Al[2246,13,3244,3244,8929,0,0]Al[2246,13,4854,4854,4288,0,0]Al[2246,13,4854,4854,4786,0,0]Al[2246,13,7515,8971,8241,0,0]Al[2246,13,8283,8283,2804,0,0]Al[2246,13,8283,8283,8993,0,0]13Ai[2246,12,2247,0,4351,0,0]Ao[2246,13,4854,7990,7567,4351,0]Al[2246,13,8283,8283,1083,0,0]Ai[2246,14,8239,0,6299,0,0]Ai[2246,14,4854,0,5785,0,0]Al[7458,14,4045,4045,7955,0,0]Al[2246,13,5056,5056,8460,0,0]Al[2246,13,5056,5056,8793,0,0]Ao[2246,13,5056,5056,7528,8793,0]Ao[2246,13,5056,5056,7528,8460,0]Ai[2246,14,4854,0,6309,0,0]Ai[2246,14,4453,0,8070,0,0];:Al[2246,13,4854,2510,9079,0,0]Ai[7458,14,8673,0,6356,0,0]Ae[7458,7,4507,0,0,0,0]Al[2246,13,4854,4854,4786,0,0]Ai[2246,14,4453,0,8665,0,0]6Ah[2246,13,642,0,7539,0,0]Aj[7458,13,644,644,7540,0,0]Al[7458,14,3251,3251,5749,0,0]Al[2246,13,2254,2254,9045,0,0]Ai[2246,13,4854,0,6363,0,0];Al[7457,14,3268,3268,2831,0,0]Ai[2246,13,2247,0,7917,0,0]Al[6109,13,6110,8088,7918,0,0]3Al[2246,15,4854,7505,3350,0,0]Al[2246,15,4854,4052,5741,0,0]Af[2246,10,8283,0,0,0,0]Al[7458,15,4500,4500,7589,0,0]Ai[2246,15,4854,0,8421,0,0]Ai[2246,15,4854,0,8671,0,0]Ae[7458,5,3732,0,0,0,0]Ai[2246,15,8283,0,6340,0,0]0Ah[2246,6,8089,8090,0,0,0]Al[7458,15,8090,8090,6342,0,0]Ae[7458,6,8090,0,0,0,0]20Ae[2246,6,4854,0,0,0,0]Ai[2246,10,4854,3231,0,0,0]Ai[2246,10,8089,8090,0,0,0]Af[7458,10,8090,0,0,0,0]Ai[2246,15,4854,0,8269,0,0]Al[7458,15,3733,3733,8657,0,0]Al[7458,15,3733,3733,4823,0,0]Al[7458,15,3251,3251,2807,0,0]1Ai[2246,15,4854,0,5757,0,0]Ai[2246,19,4854,0,8815,0,0]Ai[2246,18,8089,8090,0,0,0]Af[7458,18,8090,0,0,0,0]Ai[2246,15,8089,0,8027,0,0]Al[7458,15,8090,8090,8029,0,0]Al[2246,15,4854,1133,8746,0,0]Ai[2246,15,4854,0,8421,0,0]77Ae[8623,5,3986,0,0,0,0]8Ae[2246,5,3244,0,0,0,0]Al[2246,15,4854,4052,8238,0,0]Ah[2246,5,7515,2508,0,0,0]Ae[7458,5,4499,0,0,0,0]>Ai[2246,14,4453,0,8264,0,0]Al[2246,13,4854,7247,6295,0,0]Ai[2246,13,4854,0,6353,0,0]Al[2246,13,4854,0,6363,6275,0]Ao[7458,13,4499,4499,8259,6275,0]Al[7458,13,7459,7992,7568,0,0]Al[2246,13,4854,2510,9079,0,0]5Ai[2246,14,2247,0,5773,0,0]Al[2246,13,4854,7247,8232,0,0]72Am[8623,13,645,645,3311,8466,0]Al[7458,14,4045,4045,6350,0,0]Al[7458,14,4045,4045,5820,0,0]Ae[7458,7,4507,0,0,0,0]Al[2246,13,4854,2510,8870,0,0]Ai[2246,13,8283,0,7920,0,0]Al[7458,13,8090,8090,7921,0,0]Al[7458,13,3251,3251,5749,0,0]Ai[2246,13,2247,0,4814,0,0]Al[7458,13,7459,6132,4815,0,0]Ao[7458,13,3732,3732,3298,5823,0]Ao[7458,13,3732,3732,7904,5823,0]Ao[7458,13,4499,4499,8067,5823,0]Al[2246,13,2247,0,5791,8680,0]Al[2246,13,2247,0,8441,8680,0]Al[2246,13,2247,0,5815,8680,0]Al[2246,13,2247,0,8273,8680,0]Al[2246,13,2247,0,4817,8680,0]Al[2246,13,2247,0,8806,8680,0]Al[2246,13,2247,0,4814,8680,0]Al[2246,13,2247,0,7570,8680,0]Al[2246,13,2247,0,5773,8680,0]Al[2246,13,8283,0,4834,8680,0]Al[2246,13,8283,0,6340,8680,0]Ao[2246,13,8283,8283,8993,8680,0]Ao[2246,13,8283,8283,2804,8680,0]Ao[2246,13,3244,3244,6346,8680,0]Al[2246,13,4854,0,8753,8680,0]Al[2246,13,4854,0,8270,8680,0]Al[2246,13,4854,0,5796,8680,0]Al[2246,13,4854,0,6355,8680,0]Al[2246,13,4854,0,8269,8680,0]Al[2246,13,4854,0,6373,8680,0]Al[2246,13,4854,0,7957,8680,0]Al[2246,13,4854,0,3359,8680,0]Al[2246,13,4854,0,8933,8680,0]Al[2246,13,4854,0,3331,8680,0]Ao[2246,13,4854,7505,3350,8680,0]Al[2246,13,4854,0,7907,8680,0]Ao[2246,13,4854,4052,5741,8680,0]Ao[2246,13,4854,4052,8238,8680,0]Al[2246,13,4854,0,8421,8680,0]Ao[2246,13,4854,1133,8746,8680,0]Ao[2246,13,4854,7247,6361,8680,0]Ao[2246,13,4854,7247,8854,8680,0]Ao[2246,13,4854,7247,5738,8680,0]Al[2246,13,4854,0,5757,8680,0]Ao[2246,13,4854,7247,8413,8680,0]Ao[2246,13,4854,7247,8964,8680,0]Ao[2246,13,4854,4854,8035,8680,0]Ao[2246,13,4854,4854,8909,8680,0]Ao[2246,13,4854,4854,7911,8680,0]Al[2246,13,4854,0,8415,8680,0]Al[2246,13,4854,0,8645,8680,0]Al[2246,13,4854,0,8671,8680,0]Al[2246,13,4854,0,8281,8680,0]Al[2246,13,4854,0,8815,8680,0]Ak[2246,13,4854,0,347,8680,0]Al[2246,13,4854,0,4824,8680,0]Ao[2246,13,5056,5056,7526,8680,0]Al[2246,13,8089,0,8032,8680,0]Al[2246,13,8089,0,8027,8680,0]Al[2246,13,8089,0,8996,8680,0]Ao[8623,13,1766,1050,4770,8680,0]Ao[7458,13,7459,6132,4815,8680,0]Ao[7458,13,7459,6132,7571,8680,0]Ao[7458,13,3732,1143,5812,8680,0]Ao[7458,13,3732,1143,5801,8680,0]Ao[7458,13,3732,3732,7912,8680,0]Ao[7458,13,3732,3732,5752,8680,0]Ao[7458,13,4045,4045,6367,8680,0]Ao[7458,13,4045,4045,8472,8680,0]Ao[7458,13,3733,3733,8657,8680,0]Ao[7458,13,3733,3733,8480,8680,0]Ao[7458,13,3733,3733,4823,8680,0]Ao[7458,13,3733,3733,8795,8680,0]Ao[7458,13,4499,4499,5813,8680,0]Ao[7458,13,4499,4499,5802,8680,0]Ao[7458,13,4499,4499,8861,8680,0]Ao[7458,13,7830,7830,8932,8680,0]Ao[7458,13,7830,7830,7527,8680,0]Ao[7458,13,7830,7830,8991,8680,0]Ao[7458,13,3742,3742,8252,8680,0]Ao[7458,13,3251,3251,2807,8680,0]Ao[7458,13,6095,6095,2806,8680,0]Ao[7458,13,2511,2511,2805,8680,0]Am[7458,13,644,644,4779,8680,0]Am[7458,13,644,644,7559,8680,0]Am[7458,13,644,644,8276,8680,0]Am[7458,13,644,644,8076,8680,0]Ao[7458,13,8090,8090,8033,8680,0]Ao[7458,13,8090,8090,8029,8680,0]Ao[7458,13,8090,8090,4835,8680,0]Ao[7458,13,8090,8090,8997,8680,0]Ao[7458,13,8090,8090,6342,8680,0]Ai[2246,13,8283,0,7920,0,0]Ai[2246,13,8283,0,7925,0,0]Al[7458,13,8090,8090,7921,0,0]Al[7458,13,8090,8090,7926,0,0]Al[7458,14,3733,3733,3304,0,0]Ai[2246,15,4854,0,5757,0,0]0Ai[2246,15,8283,0,6340,0,0]0Al[7458,15,8090,8090,6342,0,0]Al[7458,15,7830,7830,8991,0,0]Ae[2246,5,4854,0,0,0,0]Ah[2246,5,4854,7247,0,0,0]Ai[2246,15,4854,0,8753,0,0]Ai[2246,15,4854,0,5796,0,0]Ai[2246,15,4854,0,6355,0,0]Ai[2246,15,4854,0,6373,0,0]Ai[2246,15,4854,0,7957,0,0]Ah[2246,6,4854,4052,0,0,0]Ae[2246,6,2254,0,0,0,0]Ah[2246,5,7515,8971,0,0,0]Al[2246,15,8283,8283,8993,0,0]Al[2246,15,4854,4854,8909,0,0];Al[7458,15,3251,3251,2807,0,0]Al[7458,15,6095,6095,2806,0,0]Ae[7458,6,3742,0,0,0,0]Ai[2246,19,4854,0,8815,0,0]Al[7458,15,4500,4500,7589,0,0]Ae[8623,5,3986,0,0,0,0]Ai[2246,15,4854,0,5757,0,0]Ae[7458,6,4499,0,0,0,0]43Ae[2246,5,3244,0,0,0,0]Ae[2246,5,4453,0,0,0,0]33Ah[2246,6,4854,7887,0,0,0]0Ag[2246,5,2247,984,0,0,0]Ag[6109,5,6110,984,0,0,0]Ad[7458,5,644,0,0,0,0]Al[7458,15,4045,4045,6367,0,0]Ae[7457,5,3268,0,0,0,0]Ai[2246,15,4854,0,8421,0,0]Ae[2246,5,4854,0,0,0,0]Ai[2246,14,4453,0,8070,0,0]Ae[2246,2,2247,0,0,0,0]Al[2246,13,4854,4854,4288,0,0]Al[2246,13,4854,4854,4786,0,0]Al[2246,13,7515,8971,8241,0,0]Ai[2246,12,4854,0,8742,0,0]Aj[8623,13,645,645,6301,0,0]Al[7457,14,3268,3268,8279,0,0]Al[2246,13,4854,3231,8036,0,0]0Ai[2246,14,2247,0,5773,0,0]Ai[2246,13,8283,0,7920,0,0]Al[7458,13,8090,8090,7921,0,0]Ae[7457,7,7458,0,0,0,0]Ae[7457,7,2246,0,0,0,0]Ae[7457,7,3248,0,0,0,0]Ai[7458,14,2796,0,8872,0,0]Ai[2246,12,4854,0,7569,0,0]Al[2246,13,4854,0,8463,7569,0]Am[8623,13,645,645,6301,8271,0]Al[2246,13,4854,7247,6285,0,0]Al[2246,13,4854,7247,5733,0,0]Al[2246,13,4854,7247,6295,0,0]Ai[2246,14,4854,0,6309,0,0]Ao[7457,13,7458,7458,4771,6370,0]Al[7458,14,4045,4045,7572,0,0]Ai[2246,12,4854,0,6297,0,0]Ai[2246,13,4854,0,6353,0,0]Al[2246,13,2247,0,8441,6368,0]Al[2246,13,2247,0,8273,6368,0]Al[2246,13,2247,0,8806,6368,0]Al[2246,13,8283,0,6340,6368,0]Ao[2246,13,8283,8283,8993,6368,0]Ao[2246,13,8283,8283,2804,6368,0]Ao[2246,13,3244,3244,6346,6368,0]Ao[2246,13,4854,4052,5741,6368,0]Ao[2246,13,4854,1133,8746,6368,0]Ao[2246,13,4854,7247,6361,6368,0]Ao[2246,13,4854,7247,8854,6368,0]Ao[2246,13,4854,7247,5738,6368,0]Ao[2246,13,4854,7247,8413,6368,0]Ao[2246,13,4854,7247,8964,6368,0]Ao[2246,13,4854,4854,8035,6368,0]Ao[2246,13,4854,4854,8909,6368,0]Ao[2246,13,4854,4854,7911,6368,0]Ao[2246,13,5056,5056,7526,6368,0]Al[2246,13,8089,0,8032,6368,0]Al[2246,13,8089,0,8027,6368,0]Al[2246,13,8089,0,8996,6368,0]An[6109,13,6110,984,8442,6368,0]An[6109,13,6110,984,8274,6368,0]Ao[6109,13,6110,6134,8807,6368,0]Ao[7458,13,3732,1143,5812,6368,0]Ao[7458,13,3732,1143,5801,6368,0]Ao[7458,13,3732,3732,7912,6368,0]Ao[7458,13,3732,3732,5752,6368,0]Ao[7458,13,4045,4045,6367,6368,0]Ao[7458,13,4045,4045,8472,6368,0]Ao[7458,13,3733,3733,8657,6368,0]Ao[7458,13,3733,3733,8480,6368,0]Ao[7458,13,3733,3733,4823,6368,0]Ao[7458,13,3733,3733,8795,6368,0]Ao[7458,13,4499,4499,5813,6368,0]Ao[7458,13,4499,4499,5802,6368,0]Ao[7458,13,4499,4499,8861,6368,0]Ao[7458,13,7830,7830,8932,6368,0]Ao[7458,13,7830,7830,7527,6368,0]Ao[7458,13,7830,7830,8991,6368,0]Ao[7458,13,3742,3742,8252,6368,0]Ao[7458,13,3251,3251,2807,6368,0]Ao[7458,13,6095,6095,2806,6368,0]Ao[7458,13,2511,2511,2805,6368,0]Am[7458,13,644,644,4779,6368,0]Am[7458,13,644,644,7559,6368,0]Am[7458,13,644,644,8276,6368,0]Ao[7458,13,8090,8090,8033,6368,0]Ao[7458,13,8090,8090,8029,6368,0]Ao[7458,13,8090,8090,8997,6368,0]Ao[7458,13,8090,8090,6342,6368,0]Al[7458,13,7459,6115,4801,0,0]Ai[2246,13,4854,0,8802,0,0]Al[2246,13,4854,4854,4786,0,0]Ai[2246,14,4854,0,6309,0,0]Ai[2246,14,4453,0,8264,0,0]Al[2246,13,4854,4854,4288,0,0]Ai[7458,14,5751,0,9065,0,0]Al[2246,13,4854,2510,9079,0,0]Al[7458,14,4045,4045,5820,0,0]Ak[7457,14,7458,7458,358,0,0]2Ai[2246,13,4854,0,6353,0,0]Ai[2246,13,4854,0,8874,0,0]Ai[2246,14,4453,0,8070,0,0]00Al[2246,13,4854,7247,4795,0,0]:Aj[8623,13,645,645,5754,0,0]Al[8623,13,1766,1766,6312,0,0]Ai[2246,13,4854,0,3359,0,0]Ai[2246,13,4854,0,3331,0,0]0Al[2246,13,4854,1133,4768,0,0]Ae[7457,7,3268,0,0,0,0]3Af[2246,10,5056,0,0,0,0]Al[7458,15,3732,3732,5752,0,0]Ah[2246,5,4854,2509,0,0,0]Ah[8623,6,1766,8113,0,0,0]Ah[7458,5,7459,6132,0,0,0]Al[7458,15,7830,7830,8932,0,0]Al[7458,15,3742,3742,5758,0,0]Al[7458,15,6095,6095,5772,0,0]Ae[7458,6,4045,0,0,0,0]Ah[2246,5,4854,3279,0,0,0]Al[7458,15,3251,3251,2807,0,0]Ai[2246,15,4854,0,8421,0,0]Ae[7458,6,3733,0,0,0,0]Ai[2246,15,4854,0,5796,0,0]Ai[2246,15,4854,0,6355,0,0]Ai[2246,15,4854,0,6373,0,0]Ai[2246,15,4854,0,7957,0,0]Ai[2246,14,4453,0,8070,0,0]Al[2246,13,4854,3231,8036,0,0]0Al[2246,13,2247,0,7917,8020,0]Al[2246,13,2247,0,8074,8020,0]Al[2246,13,2247,0,5791,8020,0]Al[2246,13,2247,0,5808,8020,0]Al[2246,13,2247,0,5815,8020,0]Al[2246,13,2247,0,4817,8020,0]Al[2246,13,2247,0,4814,8020,0]Al[2246,13,2247,0,7570,8020,0]Al[2246,13,2247,0,5773,8020,0]Ao[2246,13,4453,4453,8426,8020,0]Al[2246,13,8283,0,7920,8020,0]Al[2246,13,8283,0,4834,8020,0]Al[2246,13,8283,0,7925,8020,0]Ao[2246,13,8283,8283,2804,8020,0]Ao[2246,13,8283,8283,1083,8020,0]Ao[2246,13,8283,8283,9022,8020,0]Ao[2246,13,4018,4018,7938,8020,0]Ao[2246,13,3244,3244,8263,8020,0]Ao[2246,13,3244,3244,8063,8020,0]Ao[2246,13,3244,3244,8670,8020,0]Am[2246,13,638,638,8650,8020,0]Ao[2246,13,2254,2254,8751,8020,0]Ao[2246,13,2254,2254,8240,8020,0]Ak[2246,13,642,0,7539,8020,0]Al[2246,13,4854,0,8753,8020,0]Al[2246,13,4854,0,8270,8020,0]Al[2246,13,4854,0,5796,8020,0]Al[2246,13,4854,0,6355,8020,0]Al[2246,13,4854,0,8269,8020,0]Al[2246,13,4854,0,6373,8020,0]Al[2246,13,4854,0,7957,8020,0]Ao[2246,13,4854,7990,7940,8020,0]Ao[2246,13,4854,7990,7567,8020,0]Ao[2246,13,4854,7990,4809,8020,0]Ao[2246,13,4854,7889,6354,8020,0]Ao[2246,13,4854,7889,8757,8020,0]Ao[2246,13,4854,7889,8814,8020,0]Al[2246,13,4854,0,8871,8020,0]Al[2246,13,4854,0,3359,8020,0]Al[2246,13,4854,0,8933,8020,0]Al[2246,13,4854,0,3331,8020,0]Ao[2246,13,4854,7505,3350,8020,0]Al[2246,13,4854,0,7951,8020,0]Al[2246,13,4854,0,4832,8020,0]Al[2246,13,4854,0,6309,8020,0]Al[2246,13,4854,0,5785,8020,0]Al[2246,13,4854,0,8423,8020,0]Al[2246,13,4854,0,4352,8020,0]Al[2246,13,4854,0,7907,8020,0]Ao[2246,13,4854,4052,6298,8020,0]Ao[2246,13,4854,4052,8238,8020,0]Al[2246,13,4854,0,8421,8020,0]Ao[2246,13,4854,1133,4768,8020,0]Al[2246,13,4854,0,8785,8020,0]Al[2246,13,4854,0,8802,8020,0]Al[2246,13,4854,0,7554,8020,0]Ao[2246,13,4854,7247,8854,8020,0]Al[2246,13,4854,0,8966,8020,0]Al[2246,13,4854,0,5757,8020,0]Ao[2246,13,4854,7247,8413,8020,0]Ao[2246,13,4854,7247,8082,8020,0]Ao[2246,13,4854,7247,6295,8020,0]Ao[2246,13,4854,7247,8796,8020,0]Ao[2246,13,4854,7247,8427,8020,0]Ao[2246,13,4854,7247,8458,8020,0]Ao[2246,13,4854,7247,8964,8020,0]Ao[2246,13,4854,7247,8232,8020,0]Ao[2246,13,4854,2510,9079,8020,0]Ao[2246,13,4854,2510,8869,8020,0]Ao[2246,13,4854,2510,8870,8020,0]Ao[2246,13,4854,2510,7954,8020,0]Ao[2246,13,4854,4854,4786,8020,0]Ao[2246,13,4854,4854,8231,8020,0]Ao[2246,13,4854,4854,5804,8020,0]Al[2246,13,4854,0,8415,8020,0]Al[2246,13,4854,0,8645,8020,0]Al[2246,13,4854,0,8671,8020,0]Al[2246,13,4854,0,8281,8020,0]Al[2246,13,4854,0,8815,8020,0]Al[2246,13,4854,0,1106,8020,0]Ak[2246,13,4854,0,347,8020,0]Al[2246,13,4854,0,4824,8020,0]Am[2246,13,4471,4471,15,8020,0]Ao[2246,13,5056,5056,3342,8020,0]Ao[2246,13,5056,5056,7528,8020,0]Ao[2246,13,7515,2508,8066,8020,0]Ao[6109,13,6110,8088,7918,8020,0]Ao[6109,13,6110,8088,8075,8020,0]An[6109,13,6110,984,5792,8020,0]An[6109,13,6110,984,5809,8020,0]An[6109,13,6110,984,5816,8020,0]Ao[6109,13,6110,6134,4818,8020,0]Ao[7457,13,7458,7458,4771,8020,0]An[7457,13,7458,7458,358,8020,0]An[7457,13,1046,1046,359,8020,0]Ao[8623,13,8624,3276,5831,8020,0]Ao[8623,13,3265,3265,4766,8020,0]Ao[8623,13,3986,3986,7579,8020,0]Am[8623,13,645,645,5753,8020,0]Am[8623,13,645,645,6301,8020,0]Am[8623,13,645,645,3311,8020,0]Ao[8623,13,1766,8113,8464,8020,0]Ao[8623,13,1766,1050,4770,8020,0]Ao[8623,13,1766,1766,6311,8020,0]Ao[8623,13,1766,1766,7553,8020,0]Ao[7458,13,7459,6115,4801,8020,0]Ao[7458,13,7459,6132,4815,8020,0]Ao[7458,13,7459,6132,7571,8020,0]Ao[7458,13,7459,6132,8465,8020,0]Ao[7458,13,3732,3732,8019,8020,0]Ao[7458,13,4045,4454,7947,8020,0]Ao[7458,13,4045,4045,3291,8020,0]Ao[7458,13,4045,4045,8411,8020,0]Ao[7458,13,4365,4365,4291,8020,0]Ao[7458,13,7830,7830,5821,8020,0]Ao[7458,13,7830,7830,7949,8020,0]Ao[7458,13,3742,3742,5758,8020,0]Ao[7458,13,3251,3251,8674,8020,0]Ao[7458,13,3251,3251,8648,8020,0]Ao[7458,13,3251,3251,5749,8020,0]Ao[7458,13,6095,6095,5772,8020,0]Ao[7458,13,2511,2511,6349,8020,0]Am[7458,13,644,644,4290,8020,0]Am[7458,13,644,644,7538,8020,0]Am[7458,13,644,644,7540,8020,0]Am[7458,13,644,644,8076,8020,0]Ao[7458,13,8090,8090,7921,8020,0]Ao[7458,13,8090,8090,4835,8020,0]Ao[7458,13,8090,8090,7926,8020,0]Al[7458,13,7459,7992,7568,0,0]Ai[7458,14,8647,0,5745,0,0]Al[2246,14,7515,8971,8241,0,0]Ai[2246,13,8283,0,7925,0,0]Al[7458,13,8090,8090,7926,0,0]Al[7458,14,4045,4045,5820,0,0]Ai[2246,12,4854,0,5783,0,0]Ab[8623,3,0,0,0,0,0]Al[7458,14,4045,4045,8411,0,0]Ai[2246,14,4854,0,6309,0,0]0Al[2246,13,4854,4854,4288,0,0]Ai[2246,14,2247,0,5773,0,0]Ai[2246,14,4453,0,8070,0,0]Aj[2246,13,638,638,4289,0,0]Al[8623,13,4046,4046,3345,0,0]Al[2246,13,7515,8971,8241,0,0]Ae[7457,7,2246,0,0,0,0]Ae[7457,7,3248,0,0,0,0]Al[2246,13,4854,1133,4768,0,0]Al[2246,13,4854,2510,8870,0,0]Al[7457,13,3268,3268,2831,0,0]Al[7457,14,3268,3268,7590,0,0]Ah[2246,13,642,0,7539,0,0]Aj[7458,13,644,644,4290,0,0]Aj[7458,13,644,644,7540,0,0]Al[2246,13,4018,4018,7938,0,0]Ai[2246,15,4854,0,5757,0,0]Ah[2246,5,4854,3229,0,0,0]Ae[2246,5,7515,0,0,0,0]Ae[7458,6,3251,0,0,0,0]Ai[2246,15,4854,0,8421,0,0]Ad[2246,5,638,0,0,0,0]Al[7458,15,4500,4500,7589,0,0]Ad[2246,5,643,0,0,0,0]Ae[7457,6,7458,0,0,0,0]Ai[2246,15,4854,0,8671,0,0]Ai[2246,19,4854,0,8815,0,0]Ae[7458,6,3733,0,0,0,0]Al[2246,15,4854,7247,8413,0,0]Al[7458,15,3251,3251,2807,0,0]03Ae[2246,5,4453,0,0,0,0]>>Ah[2246,5,4854,7990,0,0,0]?Ae[2246,5,3244,0,0,0,0]Ae[2246,6,4854,0,0,0,0]Af[7458,18,1765,0,0,0,0]?Al[7458,15,6095,6095,2806,0,0]Al[7458,15,3742,3742,5758,0,0]Al[7458,15,3733,3733,8657,0,0]Ai[2246,15,8283,0,6340,0,0]0Al[7458,15,8090,8090,6342,0,0]Al[7458,15,3742,3742,8252,0,0]Al[2246,15,4854,7247,5738,0,0]Ai[2246,14,4453,0,8070,0,0]Al[7458,14,4045,4045,8411,0,0]Al[7458,14,3733,3733,3304,0,0]Ai[2246,12,4854,0,4827,0,0]Ai[2246,13,8283,0,7920,0,0]Al[7458,13,8090,8090,7921,0,0]Al[2246,13,4854,7247,6295,0,0]Ai[2246,14,4854,0,6309,0,0]Ae[2246,7,2506,0,0,0,0]Ae[2246,7,4496,0,0,0,0]1Al[8623,14,4455,4455,4313,0,0]0Ao[7457,13,7458,7458,4771,8253,0]An[7457,13,7458,7458,358,8253,0]An[7457,13,1046,1046,359,8253,0]Al[2246,13,4854,1133,4768,0,0]Al[8623,14,1766,1766,7553,0,0]Ah[2246,13,642,0,7539,0,0]Aj[7458,13,644,644,7540,0,0]Ai[2246,14,4453,0,8264,0,0]0Al[2246,13,4854,2510,9079,0,0]Aa[\"{BMCnCMMj}\",[]]o[\"{{}D@Jb}\",[]]Aa[\"{CAH`DDLl}\",[]]Bg[\"{cCMN`{{CMOd{}{{HGd{COAd}}}}}}\",[\"\"]]Aa[\"{BMCnCMNj}\",[]]Bh[\"{{CMNj{BONf{HC`}}{AJ@b{HDd}}}HGf}\",[]]o[\"{{}CN@d}\",[]]A`[\"{BNhDCKl}\",[]]o[\"{{}CJNf}\",[]]Aj[\"{{{BKb{AFBh}}}CAIh}\",[]]Aa[\"{BAL`DBAn}\",[]]Ag[\"{{CAK`BEFd}CAKb}\",[]]o[\"{{}DF@h}\",[]]Ae[\"{cBAH`AJ@j}\",[\"P\"]]o[\"{{}D@Dn}\",[]]Ag[\"{{DDMnAJCh}D@Kb}\",[]]Ah[\"{{HJdBKfHDd}BEK`}\",[]]Aa[\"{BEFdCO@j}\",[]]Dh[\"{{ce}{{CJM`{c}}}{DBAhAEL`}{{A`{CACl}{{AJ@d{HN`}}}}HInHJh}}\",[\"P\",\"F\"]]o[\"{{}DFDh}\",[]]Bg[\"{{ce}CO@d{{AEKf{HHb}}}BEKd}\",[\"\",\"\"]]Aa[\"{BMD`CMMl}\",[]]o[\"{{}D@Jd}\",[]]Aa[\"{CAH`DDLn}\",[]]Am[\"{{BEEhHDdBEEhHDd}D@Jn}\",[]]k[\"{{}}\",[]]Cd[\"{{BMHn{BONf{BLOb}}{BK`{BAKb}}}{{AJAj{CACj}}}}\",[]]Aa[\"{BEEhCKB`}\",[]]Aa[\"{AIJdBEHb}\",[]]Bg[\"{{cBMEnCJNh}CNJf{{HFl{BEJ`}}}}\",[\"\"]]4B`[\"{{cBEHb}{{CO@f{c}}}{}}\",[\"S\"]]Ai[\"{{GJlGJlBEEh}DECj}\",[]]Aj[\"{{{BK`{CNBb}}}BMGj}\",[]]Cf[\"{{BEFlBM@h{AJ@b{DAKf}}BEHbCMKh{BK`{BAKf}}}CNAj}\",[]]Ag[\"{{BEF`CMKn}CAIj}\",[]]Be[\"{{{BNj{c}}}{{D@Jh{c}}}CAL`}\",[\"E\"]]o[\"{{}CJNh}\",[]]Bg[\"{cCMNb{{CMOd{}{{HGd{COAb}}}}}}\",[\"\"]]o[\"{{}DFDj}\",[]]Aa[\"{CAD`CMNl}\",[]]o[\"{HJdHJd}\",[]]Ak[\"{{{BONf{CALh}}}CALf}\",[]]Be[\"{{{BONf{BEIb}}}{{AJ@b{BEEh}}}}\",[]]Ce[\"{{{BONf{{CABn{c}}}}AJ@f}{{AJ@b{BEEh}}}DALl}\",[\"T\"]]Aa[\"{BMCbBEEh}\",[]]Ai[\"{{}{{AJAh{D@Fb}}}}\",[]]Aa[\"{DCMnAJCl}\",[]]Aa[\"{CKBhAJ@b}\",[]]Af[\"{{DF@dHDb}DF@d}\",[]]Af[\"{{BAHbHDb}BAHb}\",[]]Aa[\"{CACdD@El}\",[]]Ak[\"{{{BONf{DCLd}}}BLOl}\",[]]Aa[\"{CKBdBEJb}\",[]]Aa[\"{DAMhBEJb}\",[]]Aa[\"{CKBfBEJ`}\",[]]A`[\"{DEClBNh}\",[]]A`[\"{DAMjBNh}\",[]]A`[\"{CAFbBNh}\",[]]o[\"{{}BONf}\",[]]00A`[\"{CADjHDd}\",[]]Be[\"{{{BONf{DDFj}}}{{BONf{COAd}}}}\",[]]Ak[\"{{{BONf{BEFd}}}CMMj}\",[]]Aa[\"{CACdCAKj}\",[]]Aa[\"{DAJjCAKj}\",[]]Cb[\"{{{BONf{GLlCAAj}}}{{AJAf{{BNj{BJf}}BLMd}}}}\",[]]Cb[\"{{{BONf{GLlBLLj}}}{{AJAf{{BNj{BJf}}BLMd}}}}\",[]]Cd[\"{{{BONf{{CABn{DDKh}}}}}{{BONf{{AIGd{BJf}}}}}}\",[]]Cc[\"{{{BONf{{CABn{DBAd}}}}}{{AJ@b{{BNj{BJf}}}}}}\",[]]Cc[\"{{{BONf{{CABn{DAMf}}}}}{{AJ@b{{BNj{BJf}}}}}}\",[]]Bl[\"{{{BONf{D@E`}}}{{BONf{{AIGd{BJf}}}}}}\",[]]Ao[\"{BAH`{{AJAf{BEFdBLMj}}}}\",[]]Am[\"{{}{{AJAf{BEFdBLMj}}}}\",[]]Cg[\"{{{BONf{CNAj}}{BALf{BEGd}}}c{}}\",[\"Service::Future\"]]Bg[\"{{{BONf{GLl}}{BALf{c}}}{}{}}\",[\"B1\"]]Aa[\"{BMGhCA@j}\",[]]Aa[\"{D@KbDDMn}\",[]]Aa[\"{DFHlCALb}\",[]]A`[\"{BMCbHDd}\",[]]Aa[\"{CMNjCMN`}\",[]]0Aa[\"{CMNlCMNb}\",[]]Aa[\"{AIJdACLj}\",[]]0000An[\"{{{BONf{GLlBMF`}}}ACLj}\",[]]111111111111111111111111111111111111111111An[\"{{{BONf{GLlCAJb}}}ACLj}\",[]]222222An[\"{{{BONf{GLlCAKf}}}ACLj}\",[]]333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333An[\"{{{BONf{GLlBMFb}}}ACLj}\",[]]44444444444444444444444444444444444444444444444444444444444444444444444444444444Aa[\"{BMCnCMMj}\",[]]Aa[\"{CMNjCMMj}\",[]]A`[\"{cc{}}\",[\"T\"]]0Aa[\"{DDFjCOAd}\",[]]11Aa[\"{AEMdDAOb}\",[]]Aa[\"{CJN`DAOb}\",[]]3Aj[\"{{{AFCj{BJf}}}BMF`}\",[]]44A`[\"{BNhBEJb}\",[]]555Aa[\"{BEJbBEIl}\",[]]Aa[\"{CKBdBEIl}\",[]]7Aa[\"{BEJbCKBd}\",[]]888888Aa[\"{CMMjCMN`}\",[]]99A`[\"{HGfCMNj}\",[]]Bc[\"{{{BONf{{BEKn{BEGl}}}}}CMNj}\",[]]Ak[\"{{{BEKn{BEGl}}}CMNj}\",[]]Aa[\"{CMMjCMNj}\",[]]=Aa[\"{CNKfCAHh}\",[]]>Aa[\"{BMH`CAHh}\",[]]Aa[\"{BECjDFDb}\",[]]Aa[\"{CNLfDFDb}\",[]]A`[\"{cc{}}\",[\"T\"]]Aa[\"{CAIdAENh}\",[]]111Bo[\"{cDFGl{{CMOd{}{{HGd{{BKb{CNIn}}}}}}}}\",[\"T\"]]2222222222222222222222Aa[\"{DALjDDFb}\",[]]333Aa[\"{BMDhD@Il}\",[]]Aa[\"{DALjBMDh}\",[]]Aa[\"{CAJfBMDh}\",[]]66Aa[\"{DALjCAJf}\",[]]7Aa[\"{BMDhD@Ij}\",[]]88Aa[\"{DALjCALj}\",[]]Aa[\"{CMLfCALj}\",[]]Aa[\"{CNBjCALj}\",[]];Aa[\"{DALjCNBj}\",[]]<<<<<<<<<<Aa[\"{DDMnAJCn}\",[]]A`[\"{HDbAJCn}\",[]]A`[\"{HD`AJCn}\",[]]A`[\"{BJfAJCn}\",[]]A`[\"{cc{}}\",[\"T\"]]00Am[\"{cAJ@f{{HFl{HDb}}}}\",[\"T\"]]11111111Aa[\"{DFDbBLMj}\",[]]222Aa[\"{AELbDALj}\",[]]Aa[\"{CJMjDALj}\",[]]Aa[\"{D@KbDALj}\",[]]55Aa[\"{D@CjDDEd}\",[]]Aa[\"{D@IbDDEd}\",[]]7Aa[\"{CAEbDDEd}\",[]]8888888Aa[\"{AJCnCK@d}\",[]]Aa[\"{DF@hDEBl}\",[]]:::::Aa[\"{CKEbCJMl}\",[]];;Aa[\"{DALjBLMd}\",[]]<>>>>>>>>>>>>>>>>Aa[\"{AENhDEIj}\",[]]Aa[\"{DCKnDEIj}\",[]]A`[\"{cc{}}\",[\"T\"]]Aa[\"{DALjCMLn}\",[]]Aa[\"{DAKjCMLn}\",[]]Aa[\"{DEIjCMLn}\",[]]3333Aa[\"{D@KbDAKn}\",[]]4Aa[\"{DDNbDCKn}\",[]]5Aa[\"{AEMnD@Kb}\",[]]Aa[\"{CMOhD@Kb}\",[]]7Aa[\"{AJCnDDMn}\",[]]8888Aa[\"{AJCnBEK`}\",[]]99999Aa[\"{DALjCJLl}\",[]]Aa[\"{DF@hCJLl}\",[]]Aa[\"{BECjCJLl}\",[]]Aa[\"{AELnCJLl}\",[]]Aa[\"{CMLfCJLl}\",[]]Aa[\"{DAKjCJLl}\",[]]???????Aa[\"{CACnCMMl}\",[]]A`[\"{cc{}}\",[\"T\"]]00Aa[\"{CJN`DAOd}\",[]]1Aa[\"{D@J`DAOd}\",[]]2Aj[\"{{{AFCj{BJf}}}BMFb}\",[]]333A`[\"{BNhBEJd}\",[]]4444444444444444444444444444444Aa[\"{BEJ`BEIn}\",[]]Aa[\"{CKBfBEIn}\",[]]6Aa[\"{BEJ`CKBf}\",[]]77Aa[\"{AENdBMFh}\",[]]Aa[\"{AENdBMEb}\",[]]9Aa[\"{AENnBMEb}\",[]]Aa[\"{AELnCMM`}\",[]];Aa[\"{BLO`CMM`}\",[]]Aa[\"{AENlCMM`}\",[]]Aa[\"{AEMlCMM`}\",[]]Aa[\"{AENdCMM`}\",[]]Aa[\"{BEEfBLO`}\",[]]Aa[\"{AEMlBLO`}\",[]]Aa[\"{BAInBLO`}\",[]]Aa[\"{AELnBLO`}\",[]]A`[\"{cc{}}\",[\"T\"]]0000000000000000000Aa[\"{BM@lDBC`}\",[]]11Aa[\"{BMEdDCJb}\",[]]Aa[\"{DDKfDCJb}\",[]]3Aa[\"{DBD`DCJb}\",[]]Aa[\"{BAInDBD`}\",[]]5Aa[\"{BMFjDBD`}\",[]]Aa[\"{DCJbBEJn}\",[]]Aa[\"{DDKfBEJn}\",[]]8888Aa[\"{CKDjBMFj}\",[]]Aa[\"{CKDjBMEd}\",[]]:Aa[\"{AENnBMEd}\",[]];;;;;Aa[\"{AENlCJLn}\",[]]Aa[\"{DECjCJLn}\",[]]==Aa[\"{CJLnDFCn}\",[]]>>>>>Aa[\"{BMH`AENn}\",[]]Aa[\"{DAO`AENn}\",[]]Aa[\"{D@GhAENn}\",[]]Aa[\"{AENbAENn}\",[]]A`[\"{cc{}}\",[\"T\"]]00Bf[\"{cBLNj{{AEKf{{AIGd{BJf}}}}}}\",[\"T\"]]Aa[\"{AENdAENl}\",[]]Aa[\"{D@GhAENl}\",[]]333Aa[\"{BMDlAENj}\",[]]Aa[\"{DALdAENj}\",[]]Aa[\"{CMLlAENj}\",[]]66Aa[\"{BAInBEEf}\",[]]7Aa[\"{CNAlBEEf}\",[]]Aa[\"{BEEfCK@n}\",[]]9Aa[\"{CAHlCK@n}\",[]]:::::Bh[\"{{{BNj{{BKb{{AIGd{BJf}}}}}}}COAh}\",[]];;Aa[\"{CMMhCMNb}\",[]]<<>>>Ak[\"{{}{{AJAf{c}}}{}}\",[\"U\"]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Ce[\"{{{BMb{{BONf{GLlc}}}}{BONf{GLlBAIb}}}HI`{}}\",[\"F\"]]0000000o[\"{BLlHN`}\",[]]Bg[\"{{{BONf{{CABn{c}}}}}BECfDALl}\",[\"T\"]]Ch[\"{{{BONf{GLlCMN`}}c}ACLj{{CMOd{}{{HGd{COAd}}}}}}\",[\"\"]]Ch[\"{{{BONf{GLlCMNb}}c}ACLj{{CMOd{}{{HGd{COAb}}}}}}\",[\"\"]]Bf[\"{{{BONf{DFGl}}{BKb{CNIn}}}ACLj}\",[]]Af[\"{{DFJjHN`}DFJj}\",[]]Bi[\"{{BAH`c}{{AJAf{BAH`DDEd}}}CNC`}\",[\"A\"]]Aa[\"{CNOjAJ@b}\",[]]Aa[\"{BLObAJ@b}\",[]]Aa[\"{CADnAJ@b}\",[]]Aa[\"{CK@bAJ@b}\",[]]Aa[\"{CAIlCAKj}\",[]]Aa[\"{D@HbAJ@b}\",[]]Aa[\"{CK@bBEDd}\",[]]Aa[\"{AIObAJ@b}\",[]]Bd[\"{{{BONf{CACb}}}{{BKb{CACb}}}}\",[]]A`[\"{BEL`HDd}\",[]]Aa[\"{BLNbBLNj}\",[]]Aa[\"{BLNdBLNj}\",[]]B`[\"{AIJd{{BONf{GLlc}}}{}}\",[\"T\"]]000000000000000000Bg[\"{{{BONf{GLlCMNj}}}{{BONf{GLl}}}}\",[]]11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Ci[\"{{{BONf{GLlBEFl}}}{{BONf{GLlc}}}{}}\",[\"Deref::Target\"]]22222222222222222222222Ci[\"{{{BONf{GLlCMNl}}}{{BONf{GLlc}}}{}}\",[\"Deref::Target\"]]33Bi[\"{{{BONf{D@I`}}AIJd}{{AJ@b{CAFl}}}}\",[]]Bi[\"{{{BONf{CO@l}}AIJd}{{AJ@b{CAFl}}}}\",[]]Bi[\"{{{BONf{CNAd}}AIJd}{{AJ@b{CAFl}}}}\",[]]Bi[\"{{{BONf{DCKb}}AIJd}{{AJ@b{CAFl}}}}\",[]]Bi[\"{{{BONf{BAKb}}AIJd}{{AJ@b{CAFl}}}}\",[]]Bi[\"{{{BONf{BAKf}}AIJd}{{AJ@b{CAFl}}}}\",[]]Be[\"{{{BONf{BMCn}}}{{`{BAIlHEh}}}}\",[]]Be[\"{{{BONf{BMD`}}}{{`{BAIlHEh}}}}\",[]]Aa[\"{CNMhAIJd}\",[]]Bo[\"{cBEIl{{CMOd{}{{HGd{{BK`{CKBd}}}}}}}}\",[\"T\"]]Bh[\"{cBEIl{{CMOd{}{{HGd{BEJb}}}}}}\",[\"T\"]]Bh[\"{cBEIl{{CMOd{}{{HGd{CKBd}}}}}}\",[\"T\"]]Bh[\"{cBEIn{{CMOd{}{{HGd{CKBf}}}}}}\",[\"T\"]]Bo[\"{cBEIn{{CMOd{}{{HGd{{BK`{CKBf}}}}}}}}\",[\"T\"]]Bh[\"{cBEIn{{CMOd{}{{HGd{BEJ`}}}}}}\",[\"T\"]]Cf[\"{cCOAh{{CMOd{}{{HGd{{BKb{{AIGd{BJf}}}}}}}}}}\",[\"T\"]]Aa[\"{BMAjAJ@b}\",[]]0Aj[\"{{{BONf{CMN`}}}HN`}\",[]]Aj[\"{{{BONf{CMNb}}}HN`}\",[]]Be[\"{{{BONf{CAE`}}}{{AJ@b{CAKj}}}}\",[]]Be[\"{{{BONf{AJBd}}}{{AJ@b{CAKj}}}}\",[]]Be[\"{{{BONf{AJBd}}}{{AJ@b{BEJ`}}}}\",[]]k[\"{{}}\",[]]A`[\"{BEK`HJd}\",[]]Ao[\"{CAAj{{AJAf{DFLjCAAj}}}}\",[]]Aa[\"{BLLjDFLd}\",[]]Aa[\"{DDFjCOAd}\",[]]Bh[\"{CN@hc{}}\",[\"IntoIterator::IntoIter\"]]Aa[\"{{}c{}}\",[\"I\"]]Bh[\"{CKAnc{}}\",[\"IntoIterator::IntoIter\"]]o[\"{HJdHN`}\",[]]Aj[\"{{{BONf{BEIb}}}HN`}\",[]]Aj[\"{{{BONf{BEFd}}}HN`}\",[]]2Aa[\"{DFJlBMAh}\",[]]A`[\"{CADjHDd}\",[]]0A`[\"{D@FbBNh}\",[]]Eb[\"{{{BMb{{BONf{GLlAILd}}}}{BONf{GLlBAIb}}}{{HI`{{AJ@b{c}}}}}{}}\",[\"Stream::Item\"]]Eb[\"{{{BMb{{BONf{GLlCML`}}}}{BONf{GLlBAIb}}}{{HI`{{AJ@b{c}}}}}{}}\",[\"Stream::Item\"]]Hb[\"{{{BMb{{BONf{GLl{CO@f{c}}}}}}{BONf{GLlBAIb}}}{{HI`{{AJ@b{e}}}}}{{AJC`{}{{HGd{{AJAf{AEKlCKDj}}}}}}AFBb}{}}\",[\"S\",\"Stream::Item\"]]Eh[\"{{{BMb{{BONf{GLlCAJb}}}}{BONf{GLlBAIb}}{BONf{GLlBALd}}}{{HI`{{AJAf{ACLjAELn}}}}}}\",[]]Eh[\"{{{BONf{GLlCAJb}}{BONf{GLlBAIb}}{BONf{GLl{AIGd{BJf}}}}}{{HI`{{AJAf{AIJdBMDh}}}}}}\",[]]Ed[\"{{{BMb{{BONf{GLlD@Hf}}}}{BONf{GLlBAIb}}{BONf{GLlBALd}}}{{HI`{{AJAh{ACLj}}}}}}\",[]]Af[\"{{BAH`BNh}BAH`}\",[]]Af[\"{{CNJfBNh}CNJf}\",[]]A`[\"{DBAjBNh}\",[]]Be[\"{{{BONf{AJBd}}}{{AJ@b{CAKj}}}}\",[]];Ak[\"{{{BONf{BMEh}}}BEIl}\",[]]Ak[\"{{{BONf{CAAj}}}CACl}\",[]]Bc[\"{{{BONf{{CABn{DDKh}}}}}CACl}\",[]]Ca[\"{{{BONf{{CABn{DAMf}}}}}{{AJAf{CAClDF@h}}}}\",[]]Ca[\"{{{BONf{{CABn{DBAd}}}}}{{AJAf{CAClDF@h}}}}\",[]]Ak[\"{{{BONf{D@E`}}}CACl}\",[]]Aj[\"{BLl{{AJAj{ACLj}}}}\",[]]Ak[\"{{D@Flc}AJ@bAIMl}\",[\"F\"]]Aa[\"{CO@lBAId}\",[]]0Aa[\"{CNAdBAId}\",[]]Aa[\"{BAKfBAId}\",[]]Be[\"{{{BONf{CMMj}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{COAd}}c}AJAfCAKh}\",[\"__S\"]]Bc[\"{{{BONf{BMCn}}c}AJAfCAKh}\",[\"S\"]]Bc[\"{{{BONf{BMF`}}c}AJAfCAKh}\",[\"S\"]]Bc[\"{{{BONf{BMFn}}c}AJAfCAKh}\",[\"S\"]]Be[\"{{{BONf{BEJb}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CKBd}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{BMAj}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{D@I`}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CO@l}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{DAMd}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{DCKb}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{AJBl}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CMMl}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{COAf}}c}AJAfCAKh}\",[\"__S\"]]Bc[\"{{{BONf{BMD`}}c}AJAfCAKh}\",[\"S\"]]Bc[\"{{{BONf{BMFb}}c}AJAfCAKh}\",[\"S\"]]Bc[\"{{{BONf{BMG`}}c}AJAfCAKh}\",[\"S\"]]Be[\"{{{BONf{BEJd}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{AILn}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CKCf}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CNOj}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{D@Hb}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{DAKb}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{BLOb}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{DBB`}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{BEDd}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CADn}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CK@b}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{CKBf}}c}AJAfCAKh}\",[\"__S\"]]Be[\"{{{BONf{DBBb}}c}AJAfCAKh}\",[\"__S\"]]Bl[\"{{{BONf{BEFd}}{BNj{{BNj{BJf}}}}}ACLj}\",[]]Bg[\"{{{BONf{{CABn{c}}}}}AIJdDALl}\",[\"T\"]]Cg[\"{{{BONf{DDEn}}}{{`{{AJC`{}{{HGd{D@F`}}}}AFBb}}}}\",[]]Aa[\"{BONfAJCh}\",[]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{CKDlBM@j}\",[]]Bm[\"{{{BONf{CMN`}}}{{AJ@b{{BONf{BELd}}}}}}\",[]]Bd[\"{{{BONf{HGf}}}{{AJ@b{BELd}}}}\",[]]Bm[\"{{{BONf{CMNb}}}{{AJ@b{{BONf{BELf}}}}}}\",[]]Co[\"{{{BONf{GLlCAKf}}{BONf{{AIGd{BJf}}}}}{{AJAf{ACLjCALj}}}}\",[]]o[\"{{}BONf}\",[]]Bg[\"{{{BONf{{CABn{c}}}}}BLLhDALl}\",[\"T\"]]Af[\"{{DFNnHN`}DFNn}\",[]]Bi[\"{{{BONf{GLl}}}{{BONf{GLlc}}}{}}\",[\"T\"]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{CNAdBAId}\",[]]Aa[\"{BAKfBAId}\",[]]10::Aa[\"{DFJlBMCj}\",[]]Bd[\"{{BONf{BONf{GLlc}}}ACLj{}}\",[\"T\"]]00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Ca[\"{{{BONf{GLl}}}{{AILl{{BONf{GLlc}}}}}{}}\",[\"T\"]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Be[\"{BONf{{AILl{{BONf{c}}}}}{}}\",[\"T\"]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B`[\"{{BONf{BONf{c}}}HN`{}}\",[\"K\"]]00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{DAKnDDMn}\",[]]Aa[\"{DCHjAJCn}\",[]]Aa[\"{AJ@nAJCn}\",[]]Aa[\"{DAKnCAFj}\",[]]Aa[\"{DCJhBLOl}\",[]]Aa[\"{DEE`BLOl}\",[]]Aa[\"{DEJ`BLOl}\",[]]Aj[\"{{{BKb{AELl}}}CJLl}\",[]]C`[\"{{{BONf{{AFCj{BJf}}}}}{{AJAf{BMCnDAOb}}}}\",[]]Bb[\"{{{BONf{{AFCj{BJf}}}}}BMF`}\",[]]Bb[\"{{{BONf{{AFCj{BJf}}}}}BMFn}\",[]]C`[\"{{{BONf{{AFCj{BJf}}}}}{{AJAf{BMD`DAOd}}}}\",[]]Bb[\"{{{BONf{{AFCj{BJf}}}}}BMFb}\",[]]Bb[\"{{{BONf{{AFCj{BJf}}}}}BMG`}\",[]]Bm[\"{{BMCnc}CMMj{{CMOd{}{{HGd{COAd}}}}}}\",[\"\"]]Ag[\"{{BMCnCMN`}CMNj}\",[]]Bm[\"{{BMD`c}CMMl{{CMOd{}{{HGd{COAf}}}}}}\",[\"\"]]Ag[\"{{CAD`CMNb}CMNl}\",[]]Be[\"{{{BONf{CAE`}}}{{AJ@b{CAKj}}}}\",[]]Be[\"{{{BONf{AJBd}}}{{AJ@b{CAKj}}}}\",[]]Bi[\"{CAJd{{`{{BEH`{}{{HGd{DDFj}}}}}}}}\",[]]A`[\"{AJCnHDd}\",[]]An[\"{{{BONf{CMKh}}CAD`}HN`}\",[]]Ak[\"{{{BONf{BLOd}}}CAKj}\",[]]Be[\"{{{BONf{CML`}}}{{AJ@b{CAKj}}}}\",[]]Dk[\"{{{BONf{CJNf}}cBEEh}{{AJAf{{`{{BEH`{}{{HGd{COAh}}}}}}BEEf}}}BEKd}\",[\"T\"]]Cm[\"{{{BONf{BEJj}}AJCh}{{AEKh{{AJAf{{BAGl{COAh}}BEEf}}}}}}\",[]]Dk[\"{{{BONf{CJNh}}cBEEh}{{AJAf{{`{{BEH`{}{{HGd{COAh}}}}}}BEEf}}}BEKd}\",[\"T\"]]A`[\"{BMCbHDd}\",[]]Aa[\"{D@FbCAKj}\",[]]A`[\"{DAMdBK`}\",[]]Aa[\"{BAHbBAHb}\",[]]Aa[\"{BMBdAIJd}\",[]]0Aa[\"{BMBfAIJd}\",[]]o[\"{BLlHN`}\",[]]Af[\"{{DFNnHN`}DFNn}\",[]]Aa[\"{D@I`BAId}\",[]]m[\"{{}}\",[\"\"]]Ee[\"{{{BMb{{BONf{GLlAILd}}}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLjc}}}}}{}}\",[\"Sink::Error\"]]Ee[\"{{{BMb{{BONf{GLlCA@n}}}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLjc}}}}}{}}\",[\"Sink::Error\"]]Gm[\"{{{BMb{{BONf{GLl{CO@f{c}}}}}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLje}}}}}{{HJf{AEKl}{{AELh{CKDj}}}}AFBb}{}}\",[\"S\",\"Sink::Error\"]]Di[\"{{{BMb{{BONf{GLlCAKf}}}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLjAELn}}}}}}\",[]]321Di[\"{{{BMb{{BONf{GLlD@Hf}}}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLjAELn}}}}}}\",[]]432El[\"{{{BMb{{BONf{GLlCAKf}}}}{BONf{GLlBAIb}}{BONf{{AIGd{BJf}}}}}{{HI`{{AJAf{AIJdAELn}}}}}}\",[]]El[\"{{{BMb{{BONf{GLlCAKf}}}}{BONf{GLlBAIb}}{BONf{{AIGd{BJf}}}}}{{HI`{{AJAf{AIJdCALj}}}}}}\",[]]El[\"{{{BMb{{BONf{GLlD@Hf}}}}{BONf{GLlBAIb}}{BONf{{AIGd{BJf}}}}}{{HI`{{AJAf{AIJdAELn}}}}}}\",[]]?Aj[\"{{{BONf{BED`}}}BJf}\",[]]Bc[\"{{{BONf{HGf}}}{{BONf{HC`}}}}\",[]]A`[\"{HJjBONf}\",[]]A`[\"{HJlBONf}\",[]]Ch[\"{{{BONf{GLlCAJb}}AIJd}{{AJAf{{AJ@b{AEKn}}BMDh}}}}\",[]]Ch[\"{{{BONf{GLlDEEd}}AIJd}{{AJAf{{AJ@b{AEKn}}BMDh}}}}\",[]]Db[\"{{{BONf{GLlCAJb}}{BONf{GLl{AIGd{BJf}}}}}{{AJAf{ACLjD@Ij}}}}\",[]]Ag[\"{{BAH`BMEh}BAH`}\",[]]Ck[\"{{{BONf{CMMj}}}{{`{{BEH`{}{{HGd{{BONf{BEJb}}}}}}}}}}\",[]]Ck[\"{{{BONf{CMN`}}}{{`{{BEH`{}{{HGd{{BONf{BEJb}}}}}}}}}}\",[]]Ck[\"{{{BONf{CMMl}}}{{`{{BEH`{}{{HGd{{BONf{BEJd}}}}}}}}}}\",[]]Ck[\"{{{BONf{CMNb}}}{{`{{BEH`{}{{HGd{{BONf{BEJ`}}}}}}}}}}\",[]]Ag[\"{{BAHbBMF`}BAHb}\",[]]Ag[\"{{BAH`BMF`}BAH`}\",[]]Be[\"{{{BONf{BEFd}}}{{BONf{BMF`}}}}\",[]]Aa[\"{CO@lBAId}\",[]]Da[\"{{{BONf{GLlc}}{AJ@b{CJOf}}}{{AJAf{DFJlAENl}}}{DAKdDEK`}}\",[\"\"]]Dc[\"{{{BMb{{BONf{GLlAILd}}}}DCI`}{{AJAf{ACLjc}}}{}}\",[\"Sink::Error\"]]Dc[\"{{{BMb{{BONf{GLlCA@n}}}}DCI`}{{AJAf{ACLjc}}}{}}\",[\"Sink::Error\"]]Fk[\"{{{BMb{{BONf{GLl{CO@f{c}}}}}}DCLd}{{AJAf{ACLje}}}{{HJf{AEKl}{{AELh{CKDj}}}}AFBb}{}}\",[\"S\",\"Sink::Error\"]]Bo[\"{{{BONf{GLlCAIh}}BAJh}{{BONf{GLlCAIh}}}}\",[]]A`[\"{D@JnEAj}\",[]]Ai[\"{{}{{BMGh{ACLj}}}}\",[]]A`[\"{AFAnHDd}\",[]]Cd[\"{{{BONf{BEFd}}}{{`{{BAOn{}{{AFBd{CMMj}}}}}}}}\",[]]Bm[\"{{CMMjc}CMMj{{CMOd{}{{HGd{COAd}}}}}}\",[\"\"]]Bm[\"{{CMMlc}CMMl{{CMOd{}{{HGd{COAf}}}}}}\",[\"\"]]Aa[\"{AILnAJ@b}\",[]]Bd[\"{{BONfBALb}{{BBNl{GLlACLj}}}}\",[]]00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Bl[\"{{BEGf{BK`{CNBd}}}{{AJAf{BLLjDALj}}}}\",[]]A`[\"{CADjHDd}\",[]]Ak[\"{BONf{{BONf{BEGn}}}}\",[]]00000Ak[\"{{{BONf{CJNf}}}ACLj}\",[]]Ak[\"{{{BONf{BEJj}}}ACLj}\",[]]Ak[\"{{{BONf{CJNh}}}ACLj}\",[]]Ch[\"{{{BONf{CAIj}}CAKj{BONf{HC`}}}{{AJAf{CABfAENj}}}}\",[]]A`[\"{BMCbHD`}\",[]]Aa[\"{BLObAJCh}\",[]]A`[\"{BLObHDb}\",[]]Cg[\"{{{BONf{GLlCAIh}}{AJ@b{AJCh}}}{{BONf{GLlCAIh}}}}\",[]]Ba[\"{c{{AJAf{CMMj}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{COAd}}}CMMd}\",[\"__D\"]]Ao[\"{c{{AJAf{BMCn}}}CMMd}\",[\"D\"]]Ao[\"{c{{AJAf{BMF`}}}CMMd}\",[\"D\"]]Ao[\"{c{{AJAf{BMFn}}}CMMd}\",[\"D\"]]Ba[\"{c{{AJAf{BEJb}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CKBd}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{BMAj}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{D@I`}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CO@l}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{DAMd}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{DCKb}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{AJBl}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CMMl}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{COAf}}}CMMd}\",[\"__D\"]]Ao[\"{c{{AJAf{BMD`}}}CMMd}\",[\"D\"]]Ao[\"{c{{AJAf{BMFb}}}CMMd}\",[\"D\"]]Ao[\"{c{{AJAf{BMG`}}}CMMd}\",[\"D\"]]Ba[\"{c{{AJAf{BEJd}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{AILn}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CKCf}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CNOj}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{D@Hb}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{DAKb}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{BLOb}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{DBB`}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{BEDd}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CADn}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CK@b}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{CKBf}}}CMMd}\",[\"__D\"]]Ba[\"{c{{AJAf{DBBb}}}CMMd}\",[\"__D\"]]Aa[\"{CNAdBAId}\",[]]Aa[\"{BAKfBAId}\",[]]Aa[\"{BEClCACj}\",[]]Aj[\"{{{BONf{HGf}}}CACl}\",[]]Aa[\"{CMNjBMCn}\",[]]Aa[\"{BAJ`CACl}\",[]]1Aa[\"{AIM`CAD`}\",[]]Aa[\"{CMNlCAD`}\",[]]Ak[\"{{{BONf{D@I`}}}AIJd}\",[]]Ak[\"{{{BONf{CO@l}}}AIJd}\",[]]Ak[\"{{{BONf{CNAd}}}AIJd}\",[]]Ak[\"{{{BONf{DCKb}}}AIJd}\",[]]Ak[\"{{{BONf{BAKb}}}AIJd}\",[]]Ak[\"{{{BONf{BAKf}}}AIJd}\",[]]Ch[\"{{{BONf{DAOb}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Ch[\"{{{BONf{D@Jb}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Ch[\"{{{BONf{DDLl}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Ch[\"{{{BONf{CAHh}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Bj[\"{{{BONf{DFDb}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{AENh}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CAId}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BLMj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DDEd}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CAKb}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DEBl}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BLMd}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DAKj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DF@h}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CNLf}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DEIj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CMLn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CJLl}}{BONf{GLlBLOh}}}AJAd}\",[]]Ch[\"{{{BONf{CNL`}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Ch[\"{{{BONf{CNKf}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Ch[\"{{{BONf{DFDh}}{BONf{GLlBLOh}}}{{AJAf{ACLjAELj}}}}\",[]]Bj[\"{{{BONf{DAOd}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{D@Jd}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DDLn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BMFh}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BMEb}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CMM`}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BLO`}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CAKn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DBC`}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DCJb}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DBD`}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BEJn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DDKf}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BMFj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BMEd}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DECj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DELh}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CJLn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DFCn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{D@Gh}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{AENn}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{AENl}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{AENj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{BEEf}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CK@n}}{BONf{GLlBLOh}}}AJAd}\",[]]Cf[\"{{{BONf{{D@Jh{c}}}}{BONf{GLlBLOh}}}AJAdCAL`}\",[\"E\"]]Bj[\"{{{BONf{CNLb}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CNKj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{DFDj}}{BONf{GLlBLOh}}}AJAd}\",[]]Bj[\"{{{BONf{CAHl}}{BONf{GLlBLOh}}}AJAd}\",[]]Af[\"{{DFNnHD`}DFNn}\",[]]o[\"{BLlHD`}\",[]]Ag[\"{{DFNnBEEh}DFNn}\",[]]Gh[\"{{{BONf{GLl{BAOn{}{{AFBd{c}}}}}}}{{D@Gn{eg{BAOn{}{{AFBd{c}}}}}}}{AEL`n}{}{{BEHn{e}}AEL`}}\",[\"Watcher::Value\",\"T\",\"W\"]]k[\"{{}}\",[]]000000Bh[\"{BEGfc{}}\",[\"IntoFuture::IntoFuture\"]]111Aj[\"{{{BONf{BED`}}}HN`}\",[]]Aj[\"{{{BONf{BEIb}}}HN`}\",[]]Aj[\"{{{BONf{AJAl}}}HN`}\",[]]Dk[\"{{{BONf{CJNf}}cBEEh}{{AJAf{{`{{BEH`{}{{HGd{AINh}}}}}}BEEf}}}BEKd}\",[\"T\"]]Cm[\"{{{BONf{BEJj}}AJCh}{{AEKh{{AJAf{{BAGl{BEGh}}BEEf}}}}}}\",[]]Dk[\"{{{BONf{CJNh}}cBEEh}{{AJAf{{`{{BEH`{}{{HGd{AINh}}}}}}BEEf}}}BEKd}\",[\"T\"]]2Cm[\"{{{BONf{BEJj}}AJCh}{{AEKh{{AJAf{{BAGl{BEGj}}BEEf}}}}}}\",[]]1A`[\"{CADjHDd}\",[]]A`[\"{BLlAIJd}\",[]]Cc[\"{{{BONf{GLlCACb}}BAJhHDdHN`{AJ@b{HDd}}}ACLj}\",[]]0Ce[\"{{{BONf{D@Fb}}{BONf{CACl}}BEEh}{{AJAh{ACLj}}}}\",[]]Aa[\"{DDD`AJ@b}\",[]]Ca[\"{{{BONf{CMMj}}{BONf{CMMj}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{COAd}}{BONf{COAd}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BMCn}}{BONf{BMCn}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BEJb}}{BONf{BEJb}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{CKBd}}{BONf{CKBd}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BELd}}{BONf{BELd}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{AJCn}}{BONf{AJCn}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{AJ@f}}{BONf{AJ@f}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{CACd}}{BONf{CACd}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{D@El}}{BONf{D@El}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{CK@d}}{BONf{CK@d}}}{{AJ@b{BEI`}}}}\",[]]Bo[\"{{{BONf{HJd}}{BONf{HJd}}}{{AJ@b{BEI`}}}}\",[]]Bo[\"{{{BONf{BKf}}{BONf{BKf}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BEK`}}{BONf{BEK`}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{CMMl}}{BONf{CMMl}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{COAf}}{BONf{COAf}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BMD`}}{BONf{BMD`}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BEJd}}{BONf{BEJd}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{CKBf}}{BONf{CKBf}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{DBBb}}{BONf{DBBb}}}{{AJ@b{BEI`}}}}\",[]]Ca[\"{{{BONf{BELf}}{BONf{BELf}}}{{AJ@b{BEI`}}}}\",[]]Aa[\"{CO@lBAId}\",[]]Af[\"{{BAHbBNh}BAHb}\",[]]o[\"{{}CAIl}\",[]]Dk[\"{{{BONf{GLlCAJb}}{BONf{GLl{AIGd{AEKl}}}}}{{AJAf{{AJ@b{AIJd}}BMDh}}}}\",[]]Cf[\"{{{BONf{GLlCAJb}}AIJd}{{AJAf{{BNj{BJf}}D@Il}}}}\",[]]Be[\"{{{BONf{BEIb}}}{{BONf{COAd}}}}\",[]]Bi[\"{{{BONf{BEFd}}CACl}{{AJ@b{CAJd}}}}\",[]]Ak[\"{{{BONf{BM@f}}}AIJd}\",[]]Af[\"{{DFNnHDd}DFNn}\",[]]Co[\"{{{BONf{GLlAJBd}}}{{BONf{GLl{DDCh{{AJAf{ACLjDBC`}}}}}}}}\",[]]o[\"{BLlHDd}\",[]]Aa[\"{D@I`BAId}\",[]]Bn[\"{{{BONf{GLlDDLd}}HD`}{{BONf{GLlDDLd}}}}\",[]]Aj[\"{{DBAnc}DBAnBEKd}\",[\"\"]]C`[\"{{{BONf{GLlCAKf}}AEKl}{{AJAf{ACLjCALj}}}}\",[]]Aa[\"{BAHhBAHh}\",[]]0Cl[\"{{DFJlHN`{BONf{GLlc}}}{{AJAf{BMCjAENl}}}{DAKdDEK`}}\",[\"\"]]Bl[\"{{{BONf{AJBd}}}{{AJ@b{{BNj{D@Dj}}}}}}\",[]]Ca[\"{{{BONf{{CABn{c}}}}}{{AJ@b{DALj}}}DALl}\",[\"T\"]]Ak[\"{{{BONf{CNAn}}}BEEh}\",[]]A`[\"{CADjHDd}\",[]]Aa[\"{BAKbBAId}\",[]]Ag[\"{{DFHbCJNf}DFHb}\",[]]Ag[\"{{DF@dCJNf}DF@d}\",[]]Ag[\"{{DELbCJNf}DELb}\",[]]Ag[\"{{BAH`CJNf}BAH`}\",[]]Ca[\"{{{BONf{BEFd}}}{{AJAf{{BONf{CJNf}}CNLf}}}}\",[]]Ak[\"{{{BONf{D@Fb}}}CJNf}\",[]]Bj[\"{{{BONf{HC`}}c}AENh{{HFl{BECj}}}}\",[\"\"]]Be[\"{{{BONf{HC`}}{BKb{AELl}}}DFDb}\",[]]Be[\"{{{BONf{HC`}}{BKb{AELl}}}AENh}\",[]]Ck[\"{{{BONf{BEFd}}BEJb{BK`{CKBd}}}{{AJ@b{{BK`{CKBd}}}}}}\",[]]D`[\"{{{BONf{{BAOn{}{{AFBd{c}}}}}}}HN`{AEL`n}}\",[\"Watcher::Value\"]]Aj[\"{{{BONf{CKAn}}}HN`}\",[]]Bc[\"{{{BONf{HGf}}}{{AJ@b{HDd}}}}\",[]]Aa[\"{CACfAJ@b}\",[]]A`[\"{BMCbHDd}\",[]]Aa[\"{CNBfAJ@b}\",[]]Dg[\"{{{BONf{DBAh}}BLLj}{{`{{AIMl{}{{AJ@d{{AJAf{CABnCJLl}}}}}}HIn}}}}\",[]]Bo[\"{{{BONf{DDKb}}BLLj}{{BMb{{BKb{AIMl}}}}}}\",[]]Bg[\"{{BONfBLLj}{{BMb{{BKb{AIMl}}}}}}\",[]]Ei[\"{{{BONf{{CJM`{c}}}}BLLj}{{`{{AIMl{}{{AJ@d{{AJAf{CABnCJLl}}}}}}HIn}}}{DBAhAEL`}}\",[\"P\"]]A`[\"{CADjHDd}\",[]]Aa[\"{CO@lBAId}\",[]]Fh[\"{{{BONf{GLl{BAOn{}{{AFBd{c}}}}}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLjCMMf}}}}}{AEL`n}}\",[\"Watcher::Value\"]]Db[\"{{{BONf{GLlCKAn}}{BONf{GLlBAIb}}}{{HI`{{AJAf{ACLjCMMf}}}}}}\",[]]An[\"{{DFNn{BK`{CKBb}}}DFNn}\",[]]Aa[\"{CAJhBEEh}\",[]]Ai[\"{{}{{CKBh{ACLj}}}}\",[]]Ch[\"{{{BONf{BEFd}}{BONf{BEJb}}}{{AJ@b{{BK`{CKBd}}}}}}\",[]]Aa[\"{DCKbBAId}\",[]]8Ck[\"{{{BONf{CJNf}}{BONf{BNh}}HN`BEEh}{{AJAf{AINhBEEf}}}}\",[]]Ck[\"{{{BONf{CJNh}}{BONf{BNh}}HN`BEEh}{{AJAf{AINhBEEf}}}}\",[]]Aa[\"{BLNjAJ@b}\",[]]Bc[\"{{DFJjc}DFJj{{HFl{AJCh}}}}\",[\"\"]]Bl[\"{{{BONf{CAKf}}GJj}{{AJAf{ACLjCMLf}}}}\",[]]=Aa[\"{AFAnCKDl}\",[]]Ag[\"{{CMMjCAKj}CMMj}\",[]]Ag[\"{{CMMlCAKj}CMMl}\",[]]Dc[\"{{{BONf{GLlCAKf}}{BONf{GLl{AIGd{AEKl}}}}}{{AJAf{BB@`CALj}}}}\",[]]o[\"{{}BONf}\",[]]0A`[\"{CADjHDd}\",[]]Bd[\"{{{BONf{BEFd}}}{{BNj{CAKj}}}}\",[]]o[\"{BLlHDd}\",[]]Aa[\"{CKDlBM@j}\",[]]Aa[\"{BMEhBAH`}\",[]]Bd[\"{{{BONf{HGf}}}{{BONf{CMNj}}}}\",[]]Aa[\"{CACfCMNj}\",[]]Ba[\"{{{BNj{{BKb{CNIn}}}}}DFGl}\",[]]Cj[\"{{{BONf{DAMd}}}{{`{{BEH`{}{{HGd{{BK`{CN@f}}}}}}}}}}\",[]]Cj[\"{{{BONf{CNAf}}}{{`{{BEH`{}{{HGd{{BK`{CN@f}}}}}}}}}}\",[]]Aa[\"{BAKbBAId}\",[]]:Aa[\"{CAKbBEGf}\",[]]Cg[\"{{{BONf{GLlDDJb}}{AJ@b{BEEh}}}{{BONf{GLlDDJb}}}}\",[]]66686Af[\"{{DFNnHN`}DFNn}\",[]]Aa[\"{BMAjAJ@b}\",[]]02Ag[\"{{DEDlDF@l}DEDl}\",[]]Aa[\"{CO@lBAId}\",[]]Ck[\"{{{BONf{GLlBEDf}}{BONf{GLlCA@d}}}{{AJAf{ACLjAEMb}}}}\",[]]Cj[\"{{{BONf{GLlBLl}}{BONf{GLlCA@d}}}{{AJAf{ACLjAEMb}}}}\",[]]Cj[\"{{{BONf{GLlBLn}}{BONf{GLlCA@d}}}{{AJAf{ACLjAEMb}}}}\",[]]>o[\"{{}ACLj}\",[]]Bl[\"{{{BONf{BEFd}}{BNj{{BNj{BJf}}}}}DEDl}\",[]]Ao[\"{{DFNn{AJ@b{AIJd}}}DFNn}\",[]]o[\"{{}CMKn}\",[]]An[\"{{{BONf{GLlCACb}}}ACLj}\",[]]0Ak[\"{AILn{{AJAj{ACLj}}}}\",[]]Ag[\"{{BAH`BELd}BAH`}\",[]]An[\"{{DFNn{BK`{DDCn}}}DFNn}\",[]]Ag[\"{{DFNnBEEh}DFNn}\",[]]?Bk[\"{{{BONf{{CABn{c}}}}AJCn}ACLjDALl}\",[\"T\"]]=o[\"{{}BONf}\",[]]00Aa[\"{BAHhBAHh}\",[]]Cd[\"{{{BONf{CJNf}}{BONf{HC`}}}{{AJAf{CMNjCK@n}}}}\",[]]Cd[\"{{{BONf{CJNh}}{BONf{HC`}}}{{AJAf{CMNlCK@n}}}}\",[]]Af[\"{{DFNnHDb}DFNn}\",[]]Af[\"{{DEDlHDd}DEDl}\",[]]6Af[\"{{BAH`HN`}BAH`}\",[]]Ek[\"{{{BONf{CJNf}}{BONf{BMCn}}{BONf{HC`}}{BONf{{AIGd{HDd}}}}}{{AJAf{CMNj{D@Jh{CK@n}}}}}}\",[]]Ek[\"{{{BONf{CJNh}}{BONf{CAD`}}{BONf{HC`}}{BONf{{AIGd{HDd}}}}}{{AJAf{CMNl{D@Jh{CK@n}}}}}}\",[]]4Aa[\"{CO@lBAId}\",[]];Af[\"{{DFNnHN`}DFNn}\",[]]Bd[\"{{}{{AIJ`{{BNj{D@Dj}}CNBb}}}}\",[]]Bg[\"{{{BONf{BEFd}}{AJ@b{BELd}}}ACLj}\",[]]Aa[\"{DEDnAJ@b}\",[]]Af[\"{{DFNnBJf}DFNn}\",[]]Do[\"{{{BONf{CJNf}}{BONf{HC`}}{BONf{{AIGd{HDd}}}}}{{AJAf{CMNj{D@Jh{CK@n}}}}}}\",[]]Do[\"{{{BONf{CJNh}}{BONf{HC`}}{BONf{{AIGd{HDd}}}}}{{AJAf{CMNl{D@Jh{CK@n}}}}}}\",[]]") \ No newline at end of file diff --git a/pr/3958/docs/search.index/function/970ed2ae5455.js b/pr/3958/docs/search.index/function/970ed2ae5455.js new file mode 100644 index 0000000000..bbc3faca90 --- /dev/null +++ b/pr/3958/docs/search.index/function/970ed2ae5455.js @@ -0,0 +1 @@ +rd_("Aa[\"{DEIdAJNf}\",[]]0Aa[\"{DEIfAJNf}\",[]]k[\"{{}}\",[]]00Bf[\"{{{CABb{COGd}}{CABb{COGd}}}IAl}\",[]]Bf[\"{{{CABb{D@Kf}}{CABb{D@Kf}}}IAl}\",[]]Bf[\"{{{CABb{BNFj}}{CABb{BNFj}}}IAl}\",[]]Bf[\"{{{CABb{BNIj}}{CABb{BNIj}}}IAl}\",[]]Bf[\"{{{CABb{BFIf}}{CABb{BFIf}}}IAl}\",[]]Bf[\"{{{CABb{BFI`}}{CABb{BFI`}}}IAl}\",[]]Bf[\"{{{CABb{CLJj}}{CABb{CLJj}}}IAl}\",[]]Bf[\"{{{CABb{BNDf}}{CABb{BNDf}}}IAl}\",[]]Bf[\"{{{CABb{COGj}}{CABb{COGj}}}IAl}\",[]]Bf[\"{{{CABb{BFKh}}{CABb{BFKh}}}IAl}\",[]]Bf[\"{{{CABb{COHd}}{CABb{COHd}}}IAl}\",[]]Bd[\"{{{CABb{HKb}}{CABb{HKb}}}IAl}\",[]]Bf[\"{{{CABb{DB@h}}{CABb{DB@h}}}IAl}\",[]]Bf[\"{{{CABb{DFDb}}{CABb{DFDb}}}IAl}\",[]]Bf[\"{{{CABb{DBDf}}{CABb{DBDf}}}IAl}\",[]]Bf[\"{{{CABb{BNGd}}{CABb{BNGd}}}IAl}\",[]]Bf[\"{{{CABb{CBNh}}{CABb{CBNh}}}IAl}\",[]]Bf[\"{{{CABb{DBDd}}{CABb{DBDd}}}IAl}\",[]]Bf[\"{{{CABb{CC@l}}{CABb{CC@l}}}IAl}\",[]]Bf[\"{{{CABb{COLh}}{CABb{COLh}}}IAl}\",[]]Bf[\"{{{CABb{COJf}}{CABb{COJf}}}IAl}\",[]]Bf[\"{{{CABb{BFHf}}{CABb{BFHf}}}IAl}\",[]]Bf[\"{{{CABb{DGCf}}{CABb{DGCf}}}IAl}\",[]]Bf[\"{{{CABb{AJNl}}{CABb{AJNl}}}IAl}\",[]]Bf[\"{{{CABb{DGKd}}{CABb{DGKd}}}IAl}\",[]]Bf[\"{{{CABb{AFDd}}{CABb{AFDd}}}IAl}\",[]]Bf[\"{{{CABb{AJKd}}{CABb{AJKd}}}IAl}\",[]]Bf[\"{{{CABb{AJMj}}{CABb{AJMj}}}IAl}\",[]]Bf[\"{{{CABb{BFKd}}{CABb{BFKd}}}IAl}\",[]]Bf[\"{{{CABb{BNEn}}{CABb{BNEn}}}IAl}\",[]]Bf[\"{{{CABb{BBMf}}{CABb{BBMf}}}IAl}\",[]]Bf[\"{{{CABb{COF`}}{CABb{COF`}}}IAl}\",[]]Bf[\"{{{CABb{CBGf}}{CABb{CBGf}}}IAl}\",[]]Bf[\"{{{CABb{DB@d}}{CABb{DB@d}}}IAl}\",[]]Bf[\"{{{CABb{DCGd}}{CABb{DCGd}}}IAl}\",[]]Bf[\"{{{CABb{BFCd}}{CABb{BFCd}}}IAl}\",[]]Bf[\"{{{CABb{CLHj}}{CABb{CLHj}}}IAl}\",[]]Bf[\"{{{CABb{COHn}}{CABb{COHn}}}IAl}\",[]]Bf[\"{{{CABb{DHKd}}{CABb{DHKd}}}IAl}\",[]]Bf[\"{{{CABb{BNBf}}{CABb{BNBf}}}IAl}\",[]]Bf[\"{{{CABb{DCFh}}{CABb{DCFh}}}IAl}\",[]]Bf[\"{{{CABb{DEDj}}{CABb{DEDj}}}IAl}\",[]]Bf[\"{{{CABb{BNHd}}{CABb{BNHd}}}IAl}\",[]]Bf[\"{{{CABb{DEGn}}{CABb{DEGn}}}IAl}\",[]]Bf[\"{{{CABb{DBEl}}{CABb{DBEl}}}IAl}\",[]]Bf[\"{{{CABb{DFLb}}{CABb{DFLb}}}IAl}\",[]]Bd[\"{{{CABb{HN`}}{CABb{HN`}}}IAl}\",[]]Bd[\"{{{CABb{BLh}}{CABb{BLh}}}IAl}\",[]]Bf[\"{{{CABb{BFJd}}{CABb{BFJd}}}IAl}\",[]]Bf[\"{{{CABb{COGf}}{CABb{COGf}}}IAl}\",[]]Bf[\"{{{CABb{D@Kh}}{CABb{D@Kh}}}IAl}\",[]]Bf[\"{{{CABb{BNFl}}{CABb{BNFl}}}IAl}\",[]]Bf[\"{{{CABb{BNIl}}{CABb{BNIl}}}IAl}\",[]]Bf[\"{{{CABb{BFIh}}{CABb{BFIh}}}IAl}\",[]]Bf[\"{{{CABb{BFCh}}{CABb{BFCh}}}IAl}\",[]]Bf[\"{{{CABb{BFIb}}{CABb{BFIb}}}IAl}\",[]]Bf[\"{{{CABb{CLJl}}{CABb{CLJl}}}IAl}\",[]]Bf[\"{{{CABb{DCLl}}{CABb{DCLl}}}IAl}\",[]]Bf[\"{{{CABb{AJFd}}{CABb{AJFd}}}IAl}\",[]]Bf[\"{{{CABb{BNBh}}{CABb{BNBh}}}IAl}\",[]]Bf[\"{{{CABb{DEHd}}{CABb{DEHd}}}IAl}\",[]]Bf[\"{{{CABb{DEE`}}{CABb{DEE`}}}IAl}\",[]]Bf[\"{{{CABb{BNAf}}{CABb{BNAf}}}IAl}\",[]]Bf[\"{{{CABb{BNDd}}{CABb{BNDd}}}IAl}\",[]]Bf[\"{{{CABb{CLFj}}{CABb{CLFj}}}IAl}\",[]]Bf[\"{{{CABb{COGl}}{CABb{COGl}}}IAl}\",[]]Bf[\"{{{CABb{BFKj}}{CABb{BFKj}}}IAl}\",[]]Bf[\"{{{CABb{COHf}}{CABb{COHf}}}IAl}\",[]]Aa[\"{COGdBNFj}\",[]]Ak[\"{{{CABb{CBNd}}}BFJd}\",[]]Ak[\"{{{CABb{DGCl}}}BFJd}\",[]]Ak[\"{{{CABb{CBOh}}}BFJd}\",[]]Ak[\"{{{CABb{BFHf}}}AJKd}\",[]]Ak[\"{{{CABb{CBNf}}}CBGn}\",[]]Ak[\"{{{CABb{BFEh}}}CBGn}\",[]]Aa[\"{COGfCBH`}\",[]]El[\"{{{BBMd{}{{AFJn{c}}}}e}{{AFJj{{BBMd{}{{AFJn{c}}}}e}}}{AFDfn}BBMd}\",[\"Watcher::Value\",\"W\"]]Co[\"{g{{Bb{ig}}}{}{}{{AJKf{ce}}}{{AJKf{ce}}}}\",[\"B\",\"E\",\"P\",\"T\"]]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000o[\"{{}BBJf}\",[]]Bb[\"{{{CABb{DHFl}}c}ADDbD@Cl}\",[\"\"]]D`[\"{g{{BKl{ig}}}{}{}{{AJKf{ce}}}{{AJKf{ce}}}}\",[\"B\",\"E\",\"P\",\"T\"]]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{DANlAFDb}\",[]]Bg[\"{{{CABb{COGd}}{CABb{COGd}}}BFHd}\",[]]Bg[\"{{{CABb{D@Kf}}{CABb{D@Kf}}}BFHd}\",[]]Bg[\"{{{CABb{BNFj}}{CABb{BNFj}}}BFHd}\",[]]Bg[\"{{{CABb{BFIf}}{CABb{BFIf}}}BFHd}\",[]]Bg[\"{{{CABb{CLJj}}{CABb{CLJj}}}BFHd}\",[]]Bg[\"{{{CABb{BFKh}}{CABb{BFKh}}}BFHd}\",[]]Bg[\"{{{CABb{AJNl}}{CABb{AJNl}}}BFHd}\",[]]Bg[\"{{{CABb{AJKd}}{CABb{AJKd}}}BFHd}\",[]]Bg[\"{{{CABb{CBGf}}{CABb{CBGf}}}BFHd}\",[]]Bg[\"{{{CABb{DB@d}}{CABb{DB@d}}}BFHd}\",[]]Bg[\"{{{CABb{CLHj}}{CABb{CLHj}}}BFHd}\",[]]Be[\"{{{CABb{HN`}}{CABb{HN`}}}BFHd}\",[]]Be[\"{{{CABb{BLh}}{CABb{BLh}}}BFHd}\",[]]Bg[\"{{{CABb{BFJd}}{CABb{BFJd}}}BFHd}\",[]]Bg[\"{{{CABb{COGf}}{CABb{COGf}}}BFHd}\",[]]Bg[\"{{{CABb{D@Kh}}{CABb{D@Kh}}}BFHd}\",[]]Bg[\"{{{CABb{BNFl}}{CABb{BNFl}}}BFHd}\",[]]Bg[\"{{{CABb{BFIh}}{CABb{BFIh}}}BFHd}\",[]]Bg[\"{{{CABb{CLJl}}{CABb{CLJl}}}BFHd}\",[]]Bg[\"{{{CABb{DCLl}}{CABb{DCLl}}}BFHd}\",[]]Bg[\"{{{CABb{BFKj}}{CABb{BFKj}}}BFHd}\",[]]Af[\"{{BBEhIAl}BBEh}\",[]]A`[\"{BFJdBLh}\",[]]Aa[\"{AJGlBNAn}\",[]]Aa[\"{BNAfAJK`}\",[]]Ch[\"{{{CABb{COGd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{D@Kf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BNFj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DCIl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{BNHl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BNIj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DBDl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{BFIf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DFJn}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{BFI`}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{CLJj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{BNDf}}{CABb{GOjBNBd}}}AJLb}\",[]]0Ch[\"{{{CABb{DBCj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{D@Jn}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{COKb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{DCGn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEGb}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{D@D`}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{COGj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{CBDb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BFKh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{COHd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{CBLj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{DHK`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{AFFn}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bi[\"{{{CABb{HKb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHFl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COJb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEEh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHGb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBMf}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DGOf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBCh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGJl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@J`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEGl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHGj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEEd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BBEh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DFCn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHIl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DB@h}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{CLFl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DFDb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{CBNd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DGCl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DBDf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{BNGd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{CBNh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DBDd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{CBOh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{CC@l}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{COLh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{COJf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEGh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLJd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFHf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBNf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DFDj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DFL`}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{DGCf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{AJNl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DGKd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{AFDd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{AJKd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{AJMj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{AJMj}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{COKl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BFKd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{CBHl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BNEn}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DCGh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BBMf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{COF`}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{BN@f}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{CBGf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DB@d}}{CABb{GOjBNBd}}}AJLb}\",[]]0Ch[\"{{{CABb{DCGd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DCLh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{BFCd}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{DFHd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{DFCd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Ch[\"{{{CABb{DFJf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{CLHj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{COHn}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{DGOn}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{AJF`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFFj}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{DHKd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{CBOd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Ch[\"{{{CABb{CLFb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DFLf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{BNBf}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{DGA`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{CBEl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BMOf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BN@`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DCFd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{D@Lf}}{CABb{GOjBNBd}}}AJLb}\",[]]D`[\"{{{CABb{{CBG`{c}}}}{CABb{GOjBNBd}}}AJLb{AFDjDCGf}}\",[\"State\"]]Bj[\"{{{CABb{DFIj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCH`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCKn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGOj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DAOf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGH`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGNn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHMn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGCb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGCd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COLb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BBEf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Fh}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BFEh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGHd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{COFh}}{CABb{GOjBNBd}}}AJLb}\",[]]0Ch[\"{{{CABb{DCFh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{DAOd}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{DEDj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{DBAd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNHd}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{DEGn}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DBEl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DFLb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DFBb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Cg[\"{{{CABb{HN`}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Cg[\"{{{CABb{BLh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{BFJd}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bh[\"{{{CABb{B`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBC`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AJLj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Jl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLEb}}{CABb{GOjBNBd}}}AJLb}\",[]]0D`[\"{{{CABb{{CLEf{c}}}}{CABb{GOjBNBd}}}AJLb{AFDjDCLbAFDf}}\",[\"P\"]]Ch[\"{{{CABb{D@Fb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{D@Eh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Ch[\"{{{CABb{DHCh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]0Bj[\"{{{CABb{D@Jf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEDl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DB@j}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COGf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Kh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNFl}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DCIn}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BNHn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNIl}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DBDn}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BFIh}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DFK`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BFCj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bi[\"{{{CABb{BMn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFJh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLMb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBEh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bi[\"{{{CABb{BN`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNKj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AJGl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLKl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Il}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBBj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCEl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNAn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBGl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AJHl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCLj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFCh}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{BFCh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{CBI`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLHh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BBHh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLJf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFGf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFIb}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{CLJl}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DCLl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNId}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BNGn}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{COFj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BNAl}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{D@Dh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AJGb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBE`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COEj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BBHl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COKd}}{CABb{GOjBNBd}}}AJLb}\",[]]D`[\"{{{CABb{{DFD`{c}}}}{CABb{GOjBNBd}}}AJLb{AFDjHMj}}\",[\"Loader\"]]Da[\"{{{CABb{{COLd{ce}}}}{CABb{GOjBNBd}}}AJLbAFDjAFDj}\",[\"EC\",\"EA\"]]Da[\"{{{CABb{{CLJn{ce}}}}{CABb{GOjBNBd}}}AJLbAFDjAFDj}\",[\"EC\",\"EA\"]]Bj[\"{{{CABb{COEb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AJFd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBMn}}{CABb{GOjBNBd}}}AJLb}\",[]]Da[\"{{{CABb{{BNJd{ce}}}}{CABb{GOjBNBd}}}AJLbAFDjAFDj}\",[\"EC\",\"EA\"]]Bj[\"{{{CABb{AJJ`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCF`}}{CABb{GOjBNBd}}}AJLb}\",[]]Da[\"{{{CABb{{CBDl{ce}}}}{CABb{GOjBNBd}}}AJLbAFDjAFDj}\",[\"EC\",\"EA\"]]Bj[\"{{{CABb{AJMb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CC@`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DCMj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Cf[\"{{{CABb{{AJGn{c}}}}{CABb{GOjBNBd}}}AJLbAFDj}\",[\"S\"]]Bj[\"{{{CABb{AJGd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEFb}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DCNj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BFJb}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DFIh}}{CABb{GOjBNBd}}}AJLb}\",[]]0Cf[\"{{{CABb{{D@Jh{c}}}}{CABb{GOjBNBd}}}AJLbAFDj}\",[\"S\"]]Bj[\"{{{CABb{BNIf}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BNH`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DBBn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGAn}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{BBEl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNJf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGKb}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{CLEd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DHCb}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{COKh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFF`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNBh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBB`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{AFGd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DEHd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEE`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNAf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFGb}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DHIn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNDd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFG`}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{CBMl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Db}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFDj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{CLId}}{CABb{GOjBNBd}}}AJLb}\",[]]0Cf[\"{{{CABb{{DBEb{c}}}}{CABb{GOjBNBd}}}AJLbCC@b}\",[\"E\"]]0Bj[\"{{{CABb{BBEj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLFj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLFn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Kj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{D@Fd}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{D@El}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{COGl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBDd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFKj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{DHCj}}{CABb{GOjBNBd}}}AJLb}\",[]]0Bj[\"{{{CABb{COHf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBLn}}{CABb{GOjBNBd}}}AJLb}\",[]]0Da[\"{{{CABb{GOj{BBMd{}{{AFJn{c}}}}}}}c{AFDfn}}\",[\"Watcher::Value\"]]Ch[\"{{{CABb{BFI`}}{CABb{BFIf}}}{{AJK`{{BLb{CLJj}}}}}}\",[]]Ak[\"{{{CABb{COKl}}}BFDl}\",[]]Ch[\"{{{CABb{BFIb}}{CABb{BFId}}}{{AJK`{{BLb{CLJl}}}}}}\",[]]Aa[\"{DCNbBNBh}\",[]]A`[\"{BFKdHGn}\",[]]Aa[\"{DANbAJNf}\",[]]0Aa[\"{DANdAJNf}\",[]]Ak[\"{{{CABb{BFI`}}}AJEb}\",[]]Ak[\"{{{CABb{DHFl}}}AJEb}\",[]]Ak[\"{{{CABb{COJf}}}AJEb}\",[]]Aa[\"{D@HjAJEb}\",[]]Ak[\"{{{CABb{BFIb}}}AJEb}\",[]]Aa[\"{DBCdAJEb}\",[]]Aa[\"{D@HlAJEb}\",[]]Cf[\"{{{CABb{GOjDGOn}}{BLb{BFJj}}}{{CABb{GOjDGOn}}}}\",[]]Gk[\"{{{BBMd{}{{AFJn{c}}}}g}{{BMj{{BBMd{}{{AFJn{c}}}}e}}}{AFDfn}{AFDfn}{{A`{c}{{AJKb{e}}}}HMjHNd}}\",[\"Watcher::Value\",\"T\",\"\"]]>Aa[\"{BNFjCOGd}\",[]]o[\"{{}DBDl}\",[]]Aa[\"{CBLbDFJn}\",[]]Bg[\"{cCOGj{{COIb{}{{HK`{D@Kf}}}}}}\",[\"\"]]Dg[\"{cCBDb{{A`{{CABb{{BFCb{D@Kf}}}}}{{AJKb{{BOl{D@Kf}}}}}}HMjHNd}}\",[\"\"]]Aa[\"{BNFjCOHd}\",[]]Bh[\"{{COHd{CABb{HFb}}{AJK`{HGn}}}HKb}\",[]]o[\"{{}COJb}\",[]]Af[\"{{BOjCOEh}DEGl}\",[]]o[\"{{}CLFl}\",[]]Aj[\"{{{BLd{AFKb}}}CBMj}\",[]]Aa[\"{BBIfDCLh}\",[]]Ag[\"{{CBObBFEh}CBOd}\",[]]o[\"{{}DGOj}\",[]]Ae[\"{cBBEfAJKh}\",[\"P\"]]o[\"{{}DAOd}\",[]]Ag[\"{{DFLbAJNf}DBEl}\",[]]Ah[\"{{HN`BLhHGn}BFJd}\",[]]Aa[\"{BFEhD@Jl}\",[]]Dh[\"{{ce}{{CLEf{c}}}{DCLbAFDf}{{A`{CBGn}{{AJKb{IAl}}}}HMjHNd}}\",[\"P\",\"F\"]]o[\"{{}DHCh}\",[]]Bg[\"{{ce}D@Jf{{AFCl{HKn}}}BFJh}\",[\"\",\"\"]]Aa[\"{BNFlCOGf}\",[]]o[\"{{}DBDn}\",[]]Aa[\"{CBLbDFK`}\",[]]Am[\"{{BFDlHGnBFDlHGn}DBEh}\",[]]k[\"{{}}\",[]]Cd[\"{{BNKj{CABb{BNAn}}{BLb{BBHh}}}{{AJLh{CBGl}}}}\",[]]Aa[\"{BFDlCLJf}\",[]]Aa[\"{AJEbBFGf}\",[]]Bg[\"{{cBNHjCLFn}D@Dh{{HJh{BFId}}}}\",[\"\"]]4B`[\"{{cBFGf}{{D@Jh{c}}}{}}\",[\"S\"]]Ai[\"{{GMjGMjBFDl}DGAn}\",[]]Aj[\"{{{BLb{COL`}}}BNJf}\",[]]Cf[\"{{BFF`BNCd{AJK`{DCF`}}BFGfCOEb{BLb{BBHl}}}COKh}\",[]]Ag[\"{{BFEdCOEh}CBMl}\",[]]Be[\"{{{BOl{c}}}{{DBEb{c}}}CC@b}\",[\"E\"]]o[\"{{}CLFn}\",[]]Bg[\"{cCOGl{{COIb{}{{HK`{D@Kd}}}}}}\",[\"\"]]Dg[\"{cCBDd{{A`{{CABb{{BFCb{D@Kd}}}}}{{AJKb{{BOl{D@Kd}}}}}}HMjHNd}}\",[\"\"]]o[\"{{}DHCj}\",[]]Aa[\"{CBHbCOHf}\",[]]o[\"{HN`HN`}\",[]]Ak[\"{{{CABb{CC@j}}}CC@h}\",[]]Be[\"{{{CABb{BFHf}}}{{AJK`{BFDl}}}}\",[]]Ce[\"{{{CABb{{CBG`{c}}}}AJKd}{{AJK`{BFDl}}}DCGf}\",[\"T\"]]Aa[\"{BNEnBFDl}\",[]]Ai[\"{{}{{AJLf{DB@j}}}}\",[]]Aa[\"{DEInAJNj}\",[]]Aa[\"{CLJnAJK`}\",[]]Af[\"{{DGOfHGl}DGOf}\",[]]Af[\"{{BBEhHGl}BBEh}\",[]]Aa[\"{CBGfDB@d}\",[]]Ak[\"{{{CABb{DEHd}}}BNBh}\",[]]Aa[\"{CLJjBFIf}\",[]]Aa[\"{DCHbBFIf}\",[]]Aa[\"{AFIbBFIf}\",[]]Aa[\"{CLJlBFId}\",[]]A`[\"{DGBdBOj}\",[]]A`[\"{DCHdBOj}\",[]]A`[\"{CBJdBOj}\",[]]o[\"{{}CABb}\",[]]00A`[\"{CBHlHGn}\",[]]Be[\"{{{CABb{DFDj}}}{{CABb{D@Kf}}}}\",[]]Ak[\"{{{CABb{BFEh}}}COGd}\",[]]Aa[\"{CBGfCBOl}\",[]]Aa[\"{DCEdCBOl}\",[]]Cb[\"{{{CABb{GOjCBEl}}}{{AJLd{{BOl{BKh}}BN@`}}}}\",[]]Cb[\"{{{CABb{GOjBMOf}}}{{AJLd{{BOl{BKh}}BN@`}}}}\",[]]Cc[\"{{{CABb{{CBG`{DCKn}}}}}{{AJK`{{BOl{BKh}}}}}}\",[]]Cc[\"{{{CABb{{CBG`{DCH`}}}}}{{AJK`{{BOl{BKh}}}}}}\",[]]Cd[\"{{{CABb{{CBG`{DFIj}}}}}{{CABb{{AJBb{BKh}}}}}}\",[]]Bl[\"{{{CABb{DAOf}}}{{CABb{{AJBb{BKh}}}}}}\",[]]Ao[\"{BBEf{{AJLd{BFEhBN@f}}}}\",[]]Am[\"{{}{{AJLd{BFEhBN@f}}}}\",[]]Bg[\"{{{CABb{GOj}}{BBIl{c}}}{}{}}\",[\"B1\"]]Cg[\"{{{CABb{COKh}}{BBIl{BFFh}}}c{}}\",[\"Service::Future\"]]Aa[\"{BNJdCBDl}\",[]]Aa[\"{DBElDFLb}\",[]]Aa[\"{DHGnCC@d}\",[]]A`[\"{BNEnHGn}\",[]]Aa[\"{COHdCOGj}\",[]]0Aa[\"{COHfCOGl}\",[]]Aa[\"{AJEbADDb}\",[]]0000An[\"{{{CABb{GOjBNHl}}}ADDb}\",[]]1111111111111111111111111111111111111111111111An[\"{{{CABb{GOjCBNd}}}ADDb}\",[]]222222An[\"{{{CABb{GOjCBOh}}}ADDb}\",[]]3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333An[\"{{{CABb{GOjBNHn}}}ADDb}\",[]]4444444444444444444444444444444444444444444444444444444444444444444444444444444444A`[\"{cc{}}\",[\"T\"]]Aa[\"{BNFjCOGd}\",[]]Aa[\"{COHdCOGd}\",[]]Aa[\"{DFDjD@Kf}\",[]]3Aa[\"{COHnD@Kf}\",[]]4Aa[\"{AFEjDCIl}\",[]]5Aa[\"{CLFfDCIl}\",[]]6Aj[\"{{{AFLj{BKh}}}BNHl}\",[]]77A`[\"{BOjBFIf}\",[]]88Aa[\"{BFIfBFI`}\",[]]9Aa[\"{CLJjBFI`}\",[]]:Aa[\"{BFIfCLJj}\",[]];;;;;;;;Aa[\"{COGdCOGj}\",[]]<>Aa[\"{DGOjDGA`}\",[]]????Aa[\"{DCGdBN@`}\",[]]Aa[\"{DGA`DCFd}\",[]]Aa[\"{DCGdDCFd}\",[]]A`[\"{cc{}}\",[\"T\"]]0000000000000000Aa[\"{DEGnDGHd}\",[]]Aa[\"{AFFnDGHd}\",[]]2Aa[\"{DCFdCOFh}\",[]]Aa[\"{DGHdCOFh}\",[]]Aa[\"{DCGdCOFh}\",[]]5Aa[\"{DBElDCFh}\",[]]66666Aa[\"{DFLfDEGn}\",[]]7Aa[\"{COIfDBEl}\",[]]Aa[\"{AFFdDBEl}\",[]]99Aa[\"{AJNlDFLb}\",[]]::::Aa[\"{AJNlBFJd}\",[]];;;;Aa[\"{DGOjCLEb}\",[]]Aa[\"{AFGdBNH`}\",[]]?????Aa[\"{DGAnCLEd}\",[]]A`[\"{cc{}}\",[\"T\"]]Aa[\"{AFGbCLEd}\",[]]Aa[\"{CLEdDHCb}\",[]]222222Aa[\"{BNJlAFGd}\",[]]Aa[\"{DCIjAFGd}\",[]]Aa[\"{DBB`AFGd}\",[]]Aa[\"{AFFhAFGd}\",[]]666Bf[\"{cBNAf{{AFCl{{AJBb{BKh}}}}}}\",[\"T\"]]7Aa[\"{DBB`AFGb}\",[]]Aa[\"{AFFjAFGb}\",[]]99Aa[\"{DCFnAFG`}\",[]]Aa[\"{COFfAFG`}\",[]]Aa[\"{BNGhAFG`}\",[]]<<<>>>Ak[\"{{}{{AJLd{c}}}{}}\",[\"U\"]]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Ce[\"{{{BNd{{CABb{GOjc}}}}{CABb{GOjBBFh}}}HLl{}}\",[\"F\"]]0000000o[\"{BMnIAl}\",[]]Bg[\"{{{CABb{{CBG`{c}}}}}BFBjDCGf}\",[\"T\"]]Ch[\"{{{CABb{GOjCOGj}}c}ADDb{{COIb{}{{HK`{D@Kf}}}}}}\",[\"\"]]Ch[\"{{{CABb{GOjCOGl}}c}ADDb{{COIb{}{{HK`{D@Kd}}}}}}\",[\"\"]]Bf[\"{{{CABb{DHFl}}{BLd{D@Cl}}}ADDb}\",[]]Af[\"{{DHIlIAl}DHIl}\",[]]Bi[\"{{BBEfc}{{AJLd{BBEfDFCd}}}COLn}\",[\"A\"]]Aa[\"{D@IlAJK`}\",[]]Aa[\"{BNAnAJK`}\",[]]Aa[\"{CBI`AJK`}\",[]]Aa[\"{CLHhAJK`}\",[]]Aa[\"{CBMnCBOl}\",[]]Aa[\"{DBBjAJK`}\",[]]Aa[\"{CLHhBFCh}\",[]]Aa[\"{AJJ`AJK`}\",[]]Bd[\"{{{CABb{CBGd}}}{{BLd{CBGd}}}}\",[]]A`[\"{BFKdHGn}\",[]]Aa[\"{BN@nBNAf}\",[]]Aa[\"{BNA`BNAf}\",[]]B`[\"{AJEb{{CABb{GOjc}}}{}}\",[\"T\"]]000000000000000000000Bg[\"{{{CABb{GOjCOHd}}}{{CABb{GOj}}}}\",[]]111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Ci[\"{{{CABb{GOjBFF`}}}{{CABb{GOjc}}}{}}\",[\"Deref::Target\"]]222222222222222222222222222Ci[\"{{{CABb{GOjCOHf}}}{{CABb{GOjc}}}{}}\",[\"Deref::Target\"]]3Bi[\"{{{CABb{DBCj}}AJEb}{{AJK`{CBJn}}}}\",[]]Bi[\"{{{CABb{D@Jn}}AJEb}{{AJK`{CBJn}}}}\",[]]Bi[\"{{{CABb{COKb}}AJEb}{{AJK`{CBJn}}}}\",[]]Bi[\"{{{CABb{DEGb}}AJEb}{{AJK`{CBJn}}}}\",[]]Bi[\"{{{CABb{BBHh}}AJEb}{{AJK`{CBJn}}}}\",[]]Bi[\"{{{CABb{BBHl}}AJEb}{{AJK`{CBJn}}}}\",[]]Be[\"{{{CABb{BNFj}}}{{`{BBGbHId}}}}\",[]]Be[\"{{{CABb{BNFl}}}{{`{BBGbHId}}}}\",[]]Aa[\"{D@GjAJEb}\",[]]Bh[\"{cBFI`{{COIb{}{{HK`{BFIf}}}}}}\",[\"T\"]]Bo[\"{cBFI`{{COIb{}{{HK`{{BLb{CLJj}}}}}}}}\",[\"T\"]]Bh[\"{cBFI`{{COIb{}{{HK`{CLJj}}}}}}\",[\"T\"]]Bh[\"{cBFIb{{COIb{}{{HK`{CLJl}}}}}}\",[\"T\"]]Bo[\"{cBFIb{{COIb{}{{HK`{{BLb{CLJl}}}}}}}}\",[\"T\"]]Bh[\"{cBFIb{{COIb{}{{HK`{BFId}}}}}}\",[\"T\"]]Cf[\"{cD@Kj{{COIb{}{{HK`{{BLd{{AJBb{BKh}}}}}}}}}}\",[\"T\"]]Aa[\"{BNDfAJK`}\",[]]0Aj[\"{{{CABb{COGj}}}IAl}\",[]]Aj[\"{{{CABb{COGl}}}IAl}\",[]]Be[\"{{{CABb{CBIb}}}{{AJK`{CBOl}}}}\",[]]Be[\"{{{CABb{AJMb}}}{{AJK`{CBOl}}}}\",[]]Be[\"{{{CABb{AJMb}}}{{AJK`{BFId}}}}\",[]]k[\"{{}}\",[]]A`[\"{BFJdHN`}\",[]]Ao[\"{CBEl{{AJLd{DHKlCBEl}}}}\",[]]Aa[\"{BMOfDHKf}\",[]]Aa[\"{DFDjD@Kf}\",[]]Bh[\"{COJfc{}}\",[\"IntoIterator::IntoIter\"]]Aa[\"{{}c{}}\",[\"I\"]]Bh[\"{CLJdc{}}\",[\"IntoIterator::IntoIter\"]]o[\"{HN`IAl}\",[]]Aj[\"{{{CABb{BFHf}}}IAl}\",[]]Aj[\"{{{CABb{BFEh}}}IAl}\",[]]2Aa[\"{DHInBNDd}\",[]]A`[\"{CBHlHGn}\",[]]0A`[\"{DB@jBOj}\",[]]Eb[\"{{{BNd{{CABb{GOjAJGb}}}}{CABb{GOjBBFh}}}{{HLl{{AJK`{c}}}}}{}}\",[\"Stream::Item\"]]Eb[\"{{{BNd{{CABb{GOjCOEj}}}}{CABb{GOjBBFh}}}{{HLl{{AJK`{c}}}}}{}}\",[\"Stream::Item\"]]Hb[\"{{{BNd{{CABb{GOj{D@Jh{c}}}}}}{CABb{GOjBBFh}}}{{HLl{{AJK`{e}}}}}{{AJMn{}{{HK`{{AJLd{AFDbCLM`}}}}}}AFJl}{}}\",[\"S\",\"Stream::Item\"]]Eh[\"{{{BNd{{CABb{GOjCBNd}}}}{CABb{GOjBBFh}}{CABb{GOjBBIj}}}{{HLl{{AJLd{ADDbAFEd}}}}}}\",[]]Eh[\"{{{CABb{GOjCBNd}}{CABb{GOjBBFh}}{CABb{GOj{AJBb{BKh}}}}}{{HLl{{AJLd{AJEbBNGd}}}}}}\",[]]Ed[\"{{{BNd{{CABb{GOjDBBn}}}}{CABb{GOjBBFh}}{CABb{GOjBBIj}}}{{HLl{{AJLf{ADDb}}}}}}\",[]]Af[\"{{BBEfBOj}BBEf}\",[]]Af[\"{{D@DhBOj}D@Dh}\",[]]A`[\"{DCLdBOj}\",[]]Be[\"{{{CABb{AJMb}}}{{AJK`{CBOl}}}}\",[]];Ak[\"{{{CABb{BNHd}}}BFI`}\",[]]Ak[\"{{{CABb{CBEl}}}CBGn}\",[]]Ca[\"{{{CABb{{CBG`{DCKn}}}}}{{AJLd{CBGnDGOj}}}}\",[]]Ca[\"{{{CABb{{CBG`{DCH`}}}}}{{AJLd{CBGnDGOj}}}}\",[]]Bc[\"{{{CABb{{CBG`{DFIj}}}}}CBGn}\",[]]Ak[\"{{{CABb{DAOf}}}CBGn}\",[]]Aj[\"{BMn{{AJLh{ADDb}}}}\",[]]Ak[\"{{DBAdc}AJK`AJHj}\",[\"F\"]]Aa[\"{D@JnBBFj}\",[]]0Aa[\"{COKbBBFj}\",[]]Aa[\"{BBHlBBFj}\",[]]Be[\"{{{CABb{COGd}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{D@Kf}}c}AJLdCBOj}\",[\"__S\"]]Bc[\"{{{CABb{BNFj}}c}AJLdCBOj}\",[\"S\"]]Bc[\"{{{CABb{BNHl}}c}AJLdCBOj}\",[\"S\"]]Bc[\"{{{CABb{BNIj}}c}AJLdCBOj}\",[\"S\"]]Be[\"{{{CABb{BFIf}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{CLJj}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{BNDf}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DBCj}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{D@Jn}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DCGn}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DEGb}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{AJMj}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{COGf}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{D@Kh}}c}AJLdCBOj}\",[\"__S\"]]Bc[\"{{{CABb{BNFl}}c}AJLdCBOj}\",[\"S\"]]Bc[\"{{{CABb{BNHn}}c}AJLdCBOj}\",[\"S\"]]Bc[\"{{{CABb{BNIl}}c}AJLdCBOj}\",[\"S\"]]Be[\"{{{CABb{BFIh}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{AJGl}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{CLKl}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{D@Il}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DBBj}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DCEl}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{BNAn}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DCLj}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{BFCh}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{CBI`}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{CLHh}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{CLJl}}c}AJLdCBOj}\",[\"__S\"]]Be[\"{{{CABb{DCLl}}c}AJLdCBOj}\",[\"__S\"]]Bl[\"{{{CABb{BFEh}}{BOl{{BOl{BKh}}}}}ADDb}\",[]]Bg[\"{{{CABb{{CBG`{c}}}}}AJEbDCGf}\",[\"T\"]]Cg[\"{{{CABb{DFCn}}}{{`{{AJMn{}{{HK`{DB@h}}}}AFJl}}}}\",[]]Aa[\"{CABbAJNf}\",[]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{CLMbBNCf}\",[]]Bm[\"{{{CABb{COGj}}}{{AJK`{{CABb{BFKh}}}}}}\",[]]Bd[\"{{{CABb{HKb}}}{{AJK`{BFKh}}}}\",[]]Bm[\"{{{CABb{COGl}}}{{AJK`{{CABb{BFKj}}}}}}\",[]]Co[\"{{{CABb{GOjCBOh}}{CABb{{AJBb{BKh}}}}}{{AJLd{ADDbCC@l}}}}\",[]]o[\"{{}CABb}\",[]]Bg[\"{{{CABb{{CBG`{c}}}}}BMOdDCGf}\",[\"T\"]]Af[\"{{DHMnIAl}DHMn}\",[]]Bi[\"{{{CABb{GOj}}}{{CABb{GOjc}}}{}}\",[\"T\"]]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{COKbBBFj}\",[]]Aa[\"{BBHlBBFj}\",[]]10::Aa[\"{DHInBNFf}\",[]]Bd[\"{{CABb{CABb{GOjc}}}ADDb{}}\",[\"T\"]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Ca[\"{{{CABb{GOj}}}{{AJGj{{CABb{GOjc}}}}}{}}\",[\"T\"]]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Be[\"{CABb{{AJGj{{CABb{c}}}}}{}}\",[\"T\"]]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B`[\"{{CABb{CABb{c}}}IAl{}}\",[\"K\"]]00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Aa[\"{DCFhDFLb}\",[]]Aa[\"{DEDjAJNl}\",[]]Aa[\"{AJKlAJNl}\",[]]Aa[\"{DCFhCBJl}\",[]]Aa[\"{DEFhBNBh}\",[]]Aa[\"{DGChBNBh}\",[]]Aa[\"{DGHjBNBh}\",[]]Aj[\"{{{BLd{AFEb}}}CLEb}\",[]]C`[\"{{{CABb{{AFLj{BKh}}}}}{{AJLd{BNFjDCIl}}}}\",[]]Bb[\"{{{CABb{{AFLj{BKh}}}}}BNHl}\",[]]Bb[\"{{{CABb{{AFLj{BKh}}}}}BNIj}\",[]]C`[\"{{{CABb{{AFLj{BKh}}}}}{{AJLd{BNFlDCIn}}}}\",[]]Bb[\"{{{CABb{{AFLj{BKh}}}}}BNHn}\",[]]Bb[\"{{{CABb{{AFLj{BKh}}}}}BNIl}\",[]]Bm[\"{{BNFjc}COGd{{COIb{}{{HK`{D@Kf}}}}}}\",[\"\"]]Ag[\"{{BNFjCOGj}COHd}\",[]]Bm[\"{{BNFlc}COGf{{COIb{}{{HK`{D@Kh}}}}}}\",[\"\"]]Ag[\"{{CBHbCOGl}COHf}\",[]]Be[\"{{{CABb{CBIb}}}{{AJK`{CBOl}}}}\",[]]Be[\"{{{CABb{AJMb}}}{{AJK`{CBOl}}}}\",[]]Bi[\"{CBNf{{`{{BFGd{}{{HK`{DFDj}}}}}}}}\",[]]A`[\"{AJNlHGn}\",[]]An[\"{{{CABb{COEb}}CBHb}IAl}\",[]]Ak[\"{{{CABb{BNB`}}}CBOl}\",[]]Be[\"{{{CABb{COEj}}}{{AJK`{CBOl}}}}\",[]]Dk[\"{{{CABb{CLFl}}cBFDl}{{AJLd{{`{{BFGd{}{{HK`{D@Kj}}}}}}BFDj}}}BFJh}\",[\"T\"]]Cm[\"{{{CABb{BFIn}}AJNf}{{AFCn{{AJLd{{BBEb{D@Kj}}BFDj}}}}}}\",[]]Dk[\"{{{CABb{CLFn}}cBFDl}{{AJLd{{`{{BFGd{}{{HK`{D@Kj}}}}}}BFDj}}}BFJh}\",[\"T\"]]A`[\"{BNEnHGn}\",[]]Aa[\"{DB@jCBOl}\",[]]A`[\"{DCGnBLb}\",[]]Aa[\"{BBEhBBEh}\",[]]Aa[\"{BNE`AJEb}\",[]]0Aa[\"{BNEbAJEb}\",[]]o[\"{BMnIAl}\",[]]Af[\"{{DHMnIAl}DHMn}\",[]]Aa[\"{DBCjBBFj}\",[]]m[\"{{}}\",[\"\"]]Ee[\"{{{BNd{{CABb{GOjAJGb}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbc}}}}}{}}\",[\"Sink::Error\"]]Ee[\"{{{BNd{{CABb{GOjCBE`}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbc}}}}}{}}\",[\"Sink::Error\"]]Gm[\"{{{BNd{{CABb{GOj{D@Jh{c}}}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbe}}}}}{{HNb{AFDb}{{AFDn{CLM`}}}}AFJl}{}}\",[\"S\",\"Sink::Error\"]]Di[\"{{{BNd{{CABb{GOjCBOh}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbAFEd}}}}}}\",[]]321Di[\"{{{BNd{{CABb{GOjDBBn}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbAFEd}}}}}}\",[]]432El[\"{{{BNd{{CABb{GOjCBOh}}}}{CABb{GOjBBFh}}{CABb{{AJBb{BKh}}}}}{{HLl{{AJLd{AJEbCC@l}}}}}}\",[]]El[\"{{{BNd{{CABb{GOjCBOh}}}}{CABb{GOjBBFh}}{CABb{{AJBb{BKh}}}}}{{HLl{{AJLd{AJEbAFEd}}}}}}\",[]]El[\"{{{BNd{{CABb{GOjDBBn}}}}{CABb{GOjBBFh}}{CABb{{AJBb{BKh}}}}}{{HLl{{AJLd{AJEbAFEd}}}}}}\",[]]?Aj[\"{{{CABb{BFCd}}}BKh}\",[]]Bc[\"{{{CABb{HKb}}}{{CABb{HFb}}}}\",[]]A`[\"{HNfCABb}\",[]]A`[\"{HNhCABb}\",[]]Ch[\"{{{CABb{GOjCBNd}}AJEb}{{AJLd{{AJK`{AFDd}}BNGd}}}}\",[]]Ch[\"{{{CABb{GOjDGCl}}AJEb}{{AJLd{{AJK`{AFDd}}BNGd}}}}\",[]]Db[\"{{{CABb{GOjCBNd}}{CABb{GOj{AJBb{BKh}}}}}{{AJLd{ADDbDBDd}}}}\",[]]Ag[\"{{BBEfBNHd}BBEf}\",[]]o[\"{{}CBDb}\",[]]o[\"{{}CBDd}\",[]]Ck[\"{{{CABb{COGd}}}{{`{{BFGd{}{{HK`{{CABb{BFIf}}}}}}}}}}\",[]]Ck[\"{{{CABb{COGj}}}{{`{{BFGd{}{{HK`{{CABb{BFIf}}}}}}}}}}\",[]]Ck[\"{{{CABb{COGf}}}{{`{{BFGd{}{{HK`{{CABb{BFIh}}}}}}}}}}\",[]]Ck[\"{{{CABb{COGl}}}{{`{{BFGd{}{{HK`{{CABb{BFId}}}}}}}}}}\",[]]Ag[\"{{BBEhBNHl}BBEh}\",[]]Ag[\"{{BBEfBNHl}BBEf}\",[]]Be[\"{{{CABb{BFEh}}}{{CABb{BNHl}}}}\",[]]Aa[\"{D@JnBBFj}\",[]]Da[\"{{{CABb{GOjc}}{AJK`{CLGl}}}{{AJLd{DHInAFGb}}}{DCEnDGIj}}\",[\"\"]]Dc[\"{{{BNd{{CABb{GOjAJGb}}}}DEE`}{{AJLd{ADDbc}}}{}}\",[\"Sink::Error\"]]Dc[\"{{{BNd{{CABb{GOjCBE`}}}}DEE`}{{AJLd{ADDbc}}}{}}\",[\"Sink::Error\"]]Fk[\"{{{BNd{{CABb{GOj{D@Jh{c}}}}}}DEHd}{{AJLd{ADDbe}}}{{HNb{AFDb}{{AFDn{CLM`}}}}AFJl}{}}\",[\"S\",\"Sink::Error\"]]Bo[\"{{{CABb{GOjCBMj}}BBGn}{{CABb{GOjCBMj}}}}\",[]]A`[\"{DBEhECj}\",[]]Be[\"{{{CABb{BFEh}}}{{CABb{COEh}}}}\",[]]Ai[\"{{}{{BNJd{ADDb}}}}\",[]]A`[\"{AFJhHGn}\",[]]Cd[\"{{{CABb{BFEh}}}{{`{{BBMd{}{{AFJn{COGd}}}}}}}}\",[]]Bm[\"{{COGdc}COGd{{COIb{}{{HK`{D@Kf}}}}}}\",[\"\"]]Bm[\"{{COGfc}COGf{{COIb{}{{HK`{D@Kh}}}}}}\",[\"\"]]Aa[\"{AJGlAJK`}\",[]]Bd[\"{{CABbBBIh}{{BCMb{GOjADDb}}}}\",[]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Bl[\"{{BFFj{BLb{COLb}}}{{AJLd{BMOfDCGd}}}}\",[]]A`[\"{CBHlHGn}\",[]]Ak[\"{CABb{{CABb{BFGb}}}}\",[]]00000Ak[\"{{{CABb{CLFl}}}ADDb}\",[]]Ak[\"{{{CABb{BFIn}}}ADDb}\",[]]Ak[\"{{{CABb{CLFn}}}ADDb}\",[]]Ch[\"{{{CABb{CBMl}}CBOl{CABb{HFb}}}{{AJLd{CBFhAFG`}}}}\",[]]A`[\"{BNEnHGj}\",[]]Aa[\"{BNAnAJNf}\",[]]A`[\"{BNAnHGl}\",[]]Cg[\"{{{CABb{GOjCBMj}}{AJK`{AJNf}}}{{CABb{GOjCBMj}}}}\",[]]Ba[\"{c{{AJLd{COGd}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{D@Kf}}}COFn}\",[\"__D\"]]Ao[\"{c{{AJLd{BNFj}}}COFn}\",[\"D\"]]Ao[\"{c{{AJLd{BNHl}}}COFn}\",[\"D\"]]Ao[\"{c{{AJLd{BNIj}}}COFn}\",[\"D\"]]Ba[\"{c{{AJLd{BFIf}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{CLJj}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{BNDf}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DBCj}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{D@Jn}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DCGn}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DEGb}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{AJMj}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{COGf}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{D@Kh}}}COFn}\",[\"__D\"]]Ao[\"{c{{AJLd{BNFl}}}COFn}\",[\"D\"]]Ao[\"{c{{AJLd{BNHn}}}COFn}\",[\"D\"]]Ao[\"{c{{AJLd{BNIl}}}COFn}\",[\"D\"]]Ba[\"{c{{AJLd{BFIh}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{AJGl}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{CLKl}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{D@Il}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DBBj}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DCEl}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{BNAn}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DCLj}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{BFCh}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{CBI`}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{CLHh}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{CLJl}}}COFn}\",[\"__D\"]]Ba[\"{c{{AJLd{DCLl}}}COFn}\",[\"__D\"]]Aa[\"{COKbBBFj}\",[]]Aa[\"{BBHlBBFj}\",[]]Aa[\"{BFC`CBGl}\",[]]Aj[\"{{{CABb{HKb}}}CBGn}\",[]]Aa[\"{COHdBNFj}\",[]]Aa[\"{BBGfCBGn}\",[]]Aa[\"{AFIbCBGn}\",[]]2Aa[\"{AJGnCBHb}\",[]]Aa[\"{COHfCBHb}\",[]]Ak[\"{{{CABb{DBCj}}}AJEb}\",[]]Ak[\"{{{CABb{D@Jn}}}AJEb}\",[]]Ak[\"{{{CABb{COKb}}}AJEb}\",[]]Ak[\"{{{CABb{DEGb}}}AJEb}\",[]]Ak[\"{{{CABb{BBHh}}}AJEb}\",[]]Ak[\"{{{CABb{BBHl}}}AJEb}\",[]]Ch[\"{{{CABb{DCIl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DBDl}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DFJn}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{CBLj}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{DHK`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFFn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBMf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BN@f}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DFCd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBOd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGA`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BN@`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCFd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGOj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@Fh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGHd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COFh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLEb}}{CABb{GOjBNBd}}}AJLb}\",[]]Ch[\"{{{CABb{D@Fb}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{D@Eh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Ch[\"{{{CABb{DHCh}}{CABb{GOjBNBd}}}{{AJLd{ADDbAFE`}}}}\",[]]Bj[\"{{{CABb{DCIn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBDn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DFK`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNId}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNGn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{COFj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNAl}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CC@`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCMj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DEFb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DCNj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFJb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DFIh}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNIf}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BNH`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGAn}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DGKb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLEd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHCb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DBB`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFGd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFGb}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{AFG`}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{BFDj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CLId}}{CABb{GOjBNBd}}}AJLb}\",[]]Cf[\"{{{CABb{{DBEb{c}}}}{CABb{GOjBNBd}}}AJLbCC@b}\",[\"E\"]]Bj[\"{{{CABb{D@Fd}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{D@El}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{DHCj}}{CABb{GOjBNBd}}}AJLb}\",[]]Bj[\"{{{CABb{CBLn}}{CABb{GOjBNBd}}}AJLb}\",[]]Af[\"{{DHMnHGj}DHMn}\",[]]o[\"{BMnHGj}\",[]]Ag[\"{{DHMnBFDl}DHMn}\",[]]Gh[\"{{{CABb{GOj{BBMd{}{{AFJn{c}}}}}}}{{DBBf{eg{BBMd{}{{AFJn{c}}}}}}}{AFDfn}{}{{BFHb{e}}AFDf}}\",[\"Watcher::Value\",\"T\",\"W\"]]k[\"{{}}\",[]]000000Bh[\"{BFFjc{}}\",[\"IntoFuture::IntoFuture\"]]111Aj[\"{{{CABb{BFCd}}}IAl}\",[]]Aj[\"{{{CABb{BFHf}}}IAl}\",[]]Aj[\"{{{CABb{AJLj}}}IAl}\",[]]Dk[\"{{{CABb{CLFl}}cBFDl}{{AJLd{{`{{BFGd{}{{HK`{AJIf}}}}}}BFDj}}}BFJh}\",[\"T\"]]Cm[\"{{{CABb{BFIn}}AJNf}{{AFCn{{AJLd{{BBEb{BFFl}}BFDj}}}}}}\",[]]Dk[\"{{{CABb{CLFn}}cBFDl}{{AJLd{{`{{BFGd{}{{HK`{AJIf}}}}}}BFDj}}}BFJh}\",[\"T\"]]2Cm[\"{{{CABb{BFIn}}AJNf}{{AFCn{{AJLd{{BBEb{BFFn}}BFDj}}}}}}\",[]]1A`[\"{CBHlHGn}\",[]]A`[\"{BMnAJEb}\",[]]Cc[\"{{{CABb{GOjCBGd}}BBGnHGnIAl{AJK`{HGn}}}ADDb}\",[]]0Ce[\"{{{CABb{DB@j}}{CABb{CBGn}}BFDl}{{AJLf{ADDb}}}}\",[]]Aa[\"{DFBbAJK`}\",[]]Ca[\"{{{CABb{COGd}}{CABb{COGd}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{D@Kf}}{CABb{D@Kf}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BNFj}}{CABb{BNFj}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BFIf}}{CABb{BFIf}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{CLJj}}{CABb{CLJj}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BFKh}}{CABb{BFKh}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{AJNl}}{CABb{AJNl}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{AJKd}}{CABb{AJKd}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{CBGf}}{CABb{CBGf}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{DB@d}}{CABb{DB@d}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{CLHj}}{CABb{CLHj}}}{{AJK`{BFHd}}}}\",[]]Bo[\"{{{CABb{HN`}}{CABb{HN`}}}{{AJK`{BFHd}}}}\",[]]Bo[\"{{{CABb{BLh}}{CABb{BLh}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BFJd}}{CABb{BFJd}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{COGf}}{CABb{COGf}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{D@Kh}}{CABb{D@Kh}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BNFl}}{CABb{BNFl}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BFIh}}{CABb{BFIh}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{CLJl}}{CABb{CLJl}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{DCLl}}{CABb{DCLl}}}{{AJK`{BFHd}}}}\",[]]Ca[\"{{{CABb{BFKj}}{CABb{BFKj}}}{{AJK`{BFHd}}}}\",[]]Aa[\"{D@JnBBFj}\",[]]Af[\"{{BBEhBOj}BBEh}\",[]]o[\"{{}CBMn}\",[]]Dk[\"{{{CABb{GOjCBNd}}{CABb{GOj{AJBb{AFDb}}}}}{{AJLd{{AJK`{AJEb}}BNGd}}}}\",[]]Cf[\"{{{CABb{GOjCBNd}}AJEb}{{AJLd{{BOl{BKh}}DBDf}}}}\",[]]Be[\"{{{CABb{BFHf}}}{{CABb{D@Kf}}}}\",[]]Ak[\"{{{CABb{BFFj}}}COHn}\",[]]Ak[\"{{{CABb{BMOf}}}COHn}\",[]]Bi[\"{{{CABb{BFEh}}CBGn}{{AJK`{CBNf}}}}\",[]]Ak[\"{{{CABb{BNCb}}}AJEb}\",[]]Af[\"{{DHMnHGn}DHMn}\",[]]Co[\"{{{CABb{GOjAJMb}}}{{CABb{GOj{DFAj{{AJLd{ADDbDCMj}}}}}}}}\",[]]o[\"{BMnHGn}\",[]]Aa[\"{DBCjBBFj}\",[]]Bn[\"{{{CABb{GOjDFJf}}HGj}{{CABb{GOjDFJf}}}}\",[]]Aj[\"{{DCLhc}DCLhBFJh}\",[\"\"]]C`[\"{{{CABb{GOjCBOh}}AFDb}{{AJLd{ADDbCC@l}}}}\",[]]Aa[\"{BBEnBBEn}\",[]]0Cl[\"{{DHInIAl{CABb{GOjc}}}{{AJLd{BNFfAFGb}}}{DCEnDGIj}}\",[\"\"]]Bl[\"{{{CABb{AJMb}}}{{AJK`{{BOl{DAO`}}}}}}\",[]]Ca[\"{{{CABb{{CBG`{c}}}}}{{AJK`{DCGd}}}DCGf}\",[\"T\"]]Ak[\"{{{CABb{COKl}}}BFDl}\",[]]A`[\"{CBHlHGn}\",[]]Aa[\"{BBHhBBFj}\",[]]Ag[\"{{DHGbCLFl}DHGb}\",[]]Ag[\"{{DGOfCLFl}DGOf}\",[]]Ag[\"{{DGJlCLFl}DGJl}\",[]]Ag[\"{{BBEfCLFl}BBEf}\",[]]Ca[\"{{{CABb{BFEh}}}{{AJLd{{CABb{CLFl}}D@Fh}}}}\",[]]Ak[\"{{{CABb{DB@j}}}CLFl}\",[]]Bj[\"{{{CABb{HFb}}c}AFFn{{HJh{BFBn}}}}\",[\"\"]]Be[\"{{{CABb{HFb}}{BLd{AFEb}}}DHK`}\",[]]Be[\"{{{CABb{HFb}}{BLd{AFEb}}}AFFn}\",[]]Ck[\"{{{CABb{BFEh}}BFIf{BLb{CLJj}}}{{AJK`{{BLb{CLJj}}}}}}\",[]]D`[\"{{{CABb{{BBMd{}{{AFJn{c}}}}}}}IAl{AFDfn}}\",[\"Watcher::Value\"]]Aj[\"{{{CABb{CLJd}}}IAl}\",[]]Bc[\"{{{CABb{HKb}}}{{AJK`{HGn}}}}\",[]]Aa[\"{CBGhAJK`}\",[]]A`[\"{BNEnHGn}\",[]]Aa[\"{COLdAJK`}\",[]]Dg[\"{{{CABb{DCLb}}BMOf}{{`{{AJHj{}{{AJKb{{AJLd{CBG`CLEb}}}}}}HMj}}}}\",[]]Bo[\"{{{CABb{DFId}}BMOf}{{BNd{{BLd{AJHj}}}}}}\",[]]Ei[\"{{{CABb{{CLEf{c}}}}BMOf}{{`{{AJHj{}{{AJKb{{AJLd{CBG`CLEb}}}}}}HMj}}}{DCLbAFDf}}\",[\"P\"]]Bg[\"{{CABbBMOf}{{BNd{{BLd{AJHj}}}}}}\",[]]A`[\"{CBHlHGn}\",[]]Aa[\"{D@JnBBFj}\",[]]Fh[\"{{{CABb{GOj{BBMd{}{{AFJn{c}}}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbCOG`}}}}}{AFDfn}}\",[\"Watcher::Value\"]]Db[\"{{{CABb{GOjCLJd}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbCOG`}}}}}}\",[]]An[\"{{DHMn{BLb{CLJh}}}DHMn}\",[]]Aa[\"{CBNjBFDl}\",[]]Ai[\"{{}{{CLJn{ADDb}}}}\",[]]Ch[\"{{{CABb{BFEh}}{CABb{BFIf}}}{{AJK`{{BLb{CLJj}}}}}}\",[]]Aa[\"{DEGbBBFj}\",[]]8Ck[\"{{{CABb{CLFl}}{CABb{BOj}}IAlBFDl}{{AJLd{AJIfBFDj}}}}\",[]]Ck[\"{{{CABb{CLFn}}{CABb{BOj}}IAlBFDl}{{AJLd{AJIfBFDj}}}}\",[]]Aa[\"{BNAfAJK`}\",[]]Bc[\"{{DHIlc}DHIl{{HJh{AJNf}}}}\",[\"\"]]Bl[\"{{{CABb{CBOh}}GMh}{{AJLd{ADDbCOF`}}}}\",[]]=Aa[\"{AFJhCLMb}\",[]]Ag[\"{{COGdCBOl}COGd}\",[]]Ag[\"{{COGfCBOl}COGf}\",[]]Dc[\"{{{CABb{GOjCBOh}}{CABb{GOj{AJBb{AFDb}}}}}{{AJLd{BBMfCC@l}}}}\",[]]o[\"{{}CABb}\",[]]0A`[\"{CBHlHGn}\",[]]Bd[\"{{{CABb{BFEh}}}{{BOl{CBOl}}}}\",[]]Cd[\"{{{CABb{D@D`}}{BLb{DB@b}}}{{AJLd{COEhAFEd}}}}\",[]]C`[\"{{{CABb{D@Db}}{BLb{DB@b}}}{{AJLf{COEh}}}}\",[]]o[\"{BMnHGn}\",[]]Aa[\"{CLMbBNCf}\",[]]Aa[\"{BNHdBBEf}\",[]]Bd[\"{{{CABb{HKb}}}{{CABb{COHd}}}}\",[]]Aa[\"{CBGhCOHd}\",[]]Ba[\"{{{BOl{{BLd{D@Cl}}}}}DHFl}\",[]]Cj[\"{{{CABb{DCGn}}}{{`{{BFGd{}{{HK`{{BLb{COJd}}}}}}}}}}\",[]]Cj[\"{{{CABb{COKd}}}{{`{{BFGd{}{{HK`{{BLb{COJd}}}}}}}}}}\",[]]Aa[\"{BBHhBBFj}\",[]]Ba[\"{{{CABb{GOjCBGd}}HGj}ADDb}\",[]]??Aa[\"{DBCjBBFj}\",[]]Cg[\"{{{CABb{{CBG`{c}}}}}{{AJK`{{BLd{BKn}}}}}DCGf}\",[\"T\"]]Ea[\"{{{CABb{GOjCBNd}}{CABb{GOjBBFh}}{CABb{GOjBBIj}}}{{HLl{{AJLd{ADDbBNGd}}}}}}\",[]]Di[\"{{{BNd{{CABb{GOjCBOh}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbAFEd}}}}}}\",[]]Di[\"{{{BNd{{CABb{GOjDBBn}}}}{CABb{GOjBBFh}}}{{HLl{{AJLd{ADDbAFEd}}}}}}\",[]]Bi[\"{{{CABb{GOjCLJf}}{AFLj{BKh}}}ADDb}\",[]]An[\"{{DHMn{CABb{HFb}}}DHMn}\",[]]Bg[\"{{{CABb{{CBG`{c}}}}}COK`DCGf}\",[\"T\"]]k[\"{{}}\",[]]Be[\"{{{CABb{DAOf}}}{{AJK`{BFHf}}}}\",[]]Ci[\"{{{CABb{{CBG`{c}}}}AFDb}{{AJLd{ADDbDFDb}}}DCGf}\",[\"T\"]]Af[\"{{DHMnIAl}DHMn}\",[]]Lm[\"{{{CABb{GOjAJHl}}{DCJl{cegi}}}{{BNd{{BLd{AJHj}}}}}{{BFGd{}{{HK`{{CABb{AJKj}}}}}}HMj}{{BFGd{}{{HK`{{CABb{AJKj}}}}}}HMj}{{BFGd{}{{HK`{{CABb{AJKj}}}}}}HMj}{{BFGd{}{{HK`{{CABb{AJKj}}}}}}HMj}}\",[\"\",\"\",\"\",\"\"]]Aa[\"{CBMnCOL`}\",[]]Aa[\"{BNJdCOL`}\",[]]Ai[\"{{}{{COLd{ADDb}}}}\",[]]An[\"{{DGCd{BLb{DFBn}}}DGCd}\",[]]Bj[\"{{{CABb{GOjCOGj}}{AJK`{BFKh}}}ADDb}\",[]]Bj[\"{{{CABb{GOjCOGl}}{AJK`{BFKj}}}ADDb}\",[]]Bb[\"{{{CABb{GOjBNAf}}AJEb}BNAf}\",[]]Cm[\"{c{{AJLd{BFI`DFJn}}}{{COIb{}{{HK`{{CABb{HFb}}}}}}}}\",[\"T\"]]Cm[\"{c{{AJLd{BFIbDFJl}}}{{COIb{}{{HK`{{CABb{HFb}}}}}}}}\",[\"T\"]]Dg[\"{{{BNd{{CABb{GOjc}}}}{CABb{GOjBBFh}}}{{HLl{{AJK`{AJLd}}}}}{}}\",[\"S\"]]00Ao[\"{CABb{{AJLd{AJNfDCN`}}}}\",[]]000000000000000000000000000000000000000000000000000000000000000000000000000000000Ao[\"{{COGj{BFCb{CBOl}}}COGj}\",[]]Ao[\"{{COHd{BFCb{CBOl}}}COHd}\",[]]Ao[\"{{COGl{BFCb{CBOl}}}COGl}\",[]]Ao[\"{{COHf{BFCb{CBOl}}}COHf}\",[]]Aa[\"{AJGnBFDl}\",[]]Aa[\"{D@JnBBFj}\",[]]Aj[\"{{BBEfc}BBEfDGGn}\",[\"\"]]Ca[\"{{{CABb{BFEh}}}{{AJLd{{CABb{DHFl}}D@Fh}}}}\",[]]Cg[\"{{{CABb{DFBn}}{CABb{{AJBb{BKh}}}}}{{BLd{BBE`}}}}\",[]]Bi[\"{{{CABb{CBGl}}BBIn}{{AJLh{AFDb}}}}\",[]]A`[\"{DBEhHGn}\",[]]Ef[\"{{{CABb{D@Fj}}{CABb{COGd}}{CABb{{AJBb{BKh}}}}}{{`{{AJHj{}{{AJKb{DGH`}}}}HMj}}}}\",[]]0Aa[\"{BNDfAJK`}\",[]]An[\"{{{CABb{GOjCOGj}}}ADDb}\",[]]An[\"{{{CABb{GOjCOGl}}}ADDb}\",[]]Bd[\"{{DEEjDFHjBMn}{{AJLh{CLEn}}}}\",[]]Ch[\"{{COGb{AJK`{BFId}}BMn}{{AJLh{{AJDn{BFEhCBF`}}}}}}\",[]]C`[\"{{CBOlDAO`BMn}{{AJLh{{AJDn{BFEdCBFh}}}}}}\",[]]A`[\"{DGChBOl}\",[]]C`[\"{{{CABb{COGj}}{CABb{CBDb}}}{{BOl{D@Kf}}}}\",[]]C`[\"{{{CABb{COGl}}{CABb{CBDd}}}{{BOl{D@Kd}}}}\",[]]Cd[\"{{{CABb{CLJh}}HN`CBOlCOFlBBGn}{{AJK`{CBMj}}}}\",[]]Cd[\"{{{CABb{DCLh}}HN`CBOlCOFlBBGn}{{AJK`{CBMj}}}}\",[]]Co[\"{{{CABb{CBGl}}{CABb{BBIn}}c}{{BNd{{BLd{AJHj}}}}}DCLn}\",[\"R\"]]Cb[\"{{{CABb{GOjCBEl}}}{{AJLd{{BLd{BKn}}DCGd}}}}\",[]]Cb[\"{{{CABb{GOjBMOf}}}{{AJLd{{BLd{BKn}}DCGd}}}}\",[]]Cg[\"{{{CABb{{CBG`{c}}}}}{{AJK`{{BLd{BKn}}}}}DCGf}\",[\"T\"]]A`[\"{CBHlBKh}\",[]]Ai[\"{{{CABb{HFb}}}IAl}\",[]]Aa[\"{CLJnCBOl}\",[]]Aj[\"{{{CABb{CBGd}}}HGn}\",[]]Aa[\"{CBNdDGCl}\",[]]Aj[\"{{{CABb{DCIl}}}IAl}\",[]]Aj[\"{{{CABb{DBDl}}}IAl}\",[]]Aj[\"{{{CABb{DFJn}}}IAl}\",[]]Aj[\"{{{CABb{CBLj}}}IAl}\",[]]Aj[\"{{{CABb{DHK`}}}IAl}\",[]]Aj[\"{{{CABb{AFFn}}}IAl}\",[]]Aj[\"{{{CABb{CBMf}}}IAl}\",[]]Aj[\"{{{CABb{BN@f}}}IAl}\",[]]Aj[\"{{{CABb{DFCd}}}IAl}\",[]]Aj[\"{{{CABb{CBOd}}}IAl}\",[]]Aj[\"{{{CABb{DGA`}}}IAl}\",[]]Aj[\"{{{CABb{BN@`}}}IAl}\",[]]Aj[\"{{{CABb{DCFd}}}IAl}\",[]]Aj[\"{{{CABb{DGOj}}}IAl}\",[]]Aj[\"{{{CABb{D@Fh}}}IAl}\",[]]Aj[\"{{{CABb{DGHd}}}IAl}\",[]]Aj[\"{{{CABb{COFh}}}IAl}\",[]]Aj[\"{{{CABb{CLEb}}}IAl}\",[]]Aj[\"{{{CABb{D@Fb}}}IAl}\",[]]Aj[\"{{{CABb{D@Eh}}}IAl}\",[]]Aj[\"{{{CABb{DHCh}}}IAl}\",[]]Aj[\"{{{CABb{DCIn}}}IAl}\",[]]Aj[\"{{{CABb{DBDn}}}IAl}\",[]]Aj[\"{{{CABb{DFK`}}}IAl}\",[]]Aj[\"{{{CABb{BNId}}}IAl}\",[]]Aj[\"{{{CABb{BNGn}}}IAl}\",[]]Aj[\"{{{CABb{COFj}}}IAl}\",[]]Aj[\"{{{CABb{BNAl}}}IAl}\",[]]Aj[\"{{{CABb{CC@`}}}IAl}\",[]]Aj[\"{{{CABb{DCMj}}}IAl}\",[]]Aj[\"{{{CABb{DEFb}}}IAl}\",[]]Aj[\"{{{CABb{DCNj}}}IAl}\",[]]Aj[\"{{{CABb{BFJb}}}IAl}\",[]]Aj[\"{{{CABb{DFIh}}}IAl}\",[]]Aj[\"{{{CABb{BNIf}}}IAl}\",[]]Aj[\"{{{CABb{BNH`}}}IAl}\",[]]Aj[\"{{{CABb{DGAn}}}IAl}\",[]]Aj[\"{{{CABb{DGKb}}}IAl}\",[]]Aj[\"{{{CABb{CLEd}}}IAl}\",[]]Aj[\"{{{CABb{DHCb}}}IAl}\",[]]Aj[\"{{{CABb{DBB`}}}IAl}\",[]]Aj[\"{{{CABb{AFGd}}}IAl}\",[]]Aj[\"{{{CABb{AFGb}}}IAl}\",[]]Aj[\"{{{CABb{AFG`}}}IAl}\",[]]Aj[\"{{{CABb{BFDj}}}IAl}\",[]]Aj[\"{{{CABb{CLId}}}IAl}\",[]]Bf[\"{{{CABb{{DBEb{c}}}}}IAlCC@b}\",[\"E\"]]Aj[\"{{{CABb{D@Fd}}}IAl}\",[]]Aj[\"{{{CABb{D@El}}}IAl}\",[]]Aj[\"{{{CABb{DHCj}}}IAl}\",[]]Aj[\"{{{CABb{CBLn}}}IAl}\",[]]Ch[\"{{{CABb{BFGf}}{CABb{{AJBb{BKh}}}}}{{AJLd{BNFf}}}}\",[]]Bn[\"{{{CABb{GOjDFJf}}HGj}{{CABb{GOjDFJf}}}}\",[]]Ak[\"{{{CABb{BFEh}}}ADDb}\",[]]A`[\"{CBHlHGn}\",[]]Aa[\"{DBCjBBFj}\",[]]Aa[\"{BBEfBBEf}\",[]]Aa[\"{DHLdAJNf}\",[]]Bn[\"{{DHMnc{CABb{HFb}}}DHMn{{AFCl{HKn}}}}\",[\"\"]]Aa[\"{BNJdCBOl}\",[]]o[\"{BMnIAl}\",[]]Ag[\"{{DHMnAJNl}DHMn}\",[]]Cd[\"{{{CABb{GOjCBNd}}}{{AJLd{{AJK`{AJNl}}CBNh}}}}\",[]]Cd[\"{{{CABb{GOjDGCl}}}{{AJLd{{AJK`{AJNl}}CBNh}}}}\",[]]Aa[\"{D@JnBBFj}\",[]]00:Ak[\"{BNB`{{AJLh{ADDb}}}}\",[]]Ak[\"{CBIb{{AJLh{ADDb}}}}\",[]]Bc[\"{{AJNlc}AJNl{{HJh{AJNl}}}}\",[\"\"]]Bc[\"{{AJKdc}AJKd{{HJh{AJKd}}}}\",[\"\"]]0Af[\"{{BFCdBKh}BFCd}\",[]]Ae[\"{{BFDlHGn}ECj}\",[]]Af[\"{{DHMnECh}DHMn}\",[]]Dk[\"{{{CABb{{COLn{}{{BLn{c}}}}}}}{{AJLd{CBOlc}}}AFEb}\",[\"ToSocketAddr::Err\"]]Bd[\"{{{CABb{COHd}}}{{BOl{AJNf}}}}\",[]]Bd[\"{{{CABb{COHf}}}{{BOl{AJNf}}}}\",[]]Aa[\"{AFJhBFDl}\",[]]Aa[\"{COKbBBFj}\",[]]Aa[\"{BBHlBBFj}\",[]]Aa[\"{DBCjBBFj}\",[]]Ag[\"{{COGdBFIf}COGd}\",[]]Ao[\"{{COGj{AJK`{BFIf}}}COGj}\",[]]Ao[\"{{COHd{AJK`{BFIf}}}COHd}\",[]]Ag[\"{{COGfBFIh}COGf}\",[]]Ao[\"{{COGl{AJK`{BFId}}}COGl}\",[]]Ao[\"{{COHf{AJK`{BFId}}}COHf}\",[]]Ao[\"{{COGj{AJK`{BFKh}}}COGj}\",[]]Ao[\"{{COHd{AJK`{BFKh}}}COHd}\",[]]Ao[\"{{COGl{AJK`{BFKj}}}COGl}\",[]]Ao[\"{{COHf{AJK`{BFKj}}}COHf}\",[]]o[\"{{}AJEb}\",[]]Aa[\"{D@JnBBFj}\",[]]Dc[\"{{{CABb{D@Fj}}{CABb{DAOf}}}{{`{{AJHj{}{{AJKb{DGNn}}}}HMj}}}}\",[]]0Ag[\"{{BBEfD@D`}BBEf}\",[]]Ba[\"{{CABb{BCMb{GOjBKh}}}ADDb}\",[]]000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Ak[\"{{{CABb{CLJf}}}BFDl}\",[]]Aa[\"{BN@nCBHb}\",[]]Aa[\"{DB@jAJNf}\",[]]Ck[\"{{AJNfc}{{AJLd{COHdCBLj}}}{{BFGd{}{{HK`{D@Kj}}}}}}\",[\"\"]]Ck[\"{{AJNfc}{{AJLd{COHfCBLn}}}{{BFGd{}{{HK`{D@Kj}}}}}}\",[\"\"]]Aa[\"{BNJdCBOl}\",[]]Aj[\"{{{CABb{BNEj}}}HGn}\",[]]Aa[\"{DCF`AJK`}\",[]]A`[\"{CBHlHGn}\",[]]0Ag[\"{{BBEfAJEb}BBEf}\",[]]Aa[\"{BNDfAJK`}\",[]]>Ag[\"{{BBEhBFDl}BBEh}\",[]]Ak[\"{AJM`{{AJLh{ADDb}}}}\",[]]Ak[\"{AJNf{{AJLf{DB@j}}}}\",[]]Dh[\"{{{CABb{BBJf}}{CABb{{AJK`{BFId}}}}{CABb{BMn}}}{{AJDn{COGbBFEh}}}}\",[]]Cl[\"{{{CABb{BBJf}}DAO`D@Jb{CABb{BMn}}}{{AJDn{CBOlBFEd}}}}\",[]]Ag[\"{{DGOfCBDb}DGOf}\",[]]Ag[\"{{BBEhCBDb}BBEh}\",[]]Ag[\"{{DHIlCBDb}DHIl}\",[]]Af[\"{{BFCdIAl}BFCd}\",[]]An[\"{{DGCd{BLb{CC@j}}}DGCd}\",[]]Bb[\"{{{CABb{GOjAFJh}}DBEh}ADDb}\",[]]Aa[\"{CLMbBNCf}\",[]]Aa[\"{CBOlCLFl}\",[]]Ak[\"{{BBEjCBOlCLFj}BBEj}\",[]]Aa[\"{CBOlCLFn}\",[]]Aj[\"{{{CABb{HFb}}}COJb}\",[]]o[\"{{}CABb}\",[]]Aa[\"{D@JnBBFj}\",[]]Aa[\"{DCF`CBKd}\",[]]Aa[\"{AJGnAJEb}\",[]]Ce[\"{{{CABb{BFJj}}ADD`CC@hBFDl}{{AJLd{ADDbDCMl}}}}\",[]]An[\"{{{CABb{GOjCOGj}}}ADDb}\",[]]An[\"{{{CABb{GOjCOGl}}}ADDb}\",[]]Cl[\"{{{CABb{{CBG`{c}}}}AJKd}{{AJK`{{BLd{CBGd}}}}}DCGf}\",[\"T\"]]A`[\"{CBHlHGn}\",[]]o[\"{{}CLJj}\",[]]00Ah[\"{{}{{BLb{DB@b}}}}\",[]]0Aa[\"{BBHhBBFj}\",[]]0Bi[\"{{{CABb{CBDf}}}{{AJLd{BFCjAFEh}}}}\",[]]Bh[\"{{{CABb{CBDf}}}{{AJLd{BMnAFEh}}}}\",[]]Bh[\"{{{CABb{CBDf}}}{{AJLd{BN`AFEh}}}}\",[]]Aj[\"{{{CABb{BFCd}}}IAl}\",[]]Aa[\"{CLHhAJK`}\",[]]Dk[\"{{{CABb{CLFl}}cBFDl}{{AJLd{{`{{BFGd{}{{HK`{AJIf}}}}}}BFDj}}}BFJh}\",[\"T\"]]Dk[\"{{{CABb{CLFn}}cBFDl}{{AJLd{{`{{BFGd{}{{HK`{AJIf}}}}}}BFDj}}}BFJh}\",[\"T\"]]Aa[\"{DBCjBBFj}\",[]]0Ao[\"{{DHMn{AJK`{CLHj}}}DHMn}\",[]]=?Aj[\"{{{CABb{BFFj}}}IAl}\",[]]Bn[\"{IAl{{AJLd{{AJDn{BFI`BFIfAJMb}}CC@`}}}}\",[]]Aa[\"{BBHhBBFj}\",[]]00Ag[\"{{DHMnAJNl}DHMn}\",[]]Bd[\"{{DAOd{BOl{{BOl{BKh}}}}}DAOd}\",[]]Ag[\"{{DAOdDGCb}DAOd}\",[]]o[\"{{}CABb}\",[]]000Aa[\"{BBEfBBEf}\",[]]Ga[\"{{{CABb{{CBG`{c}}}}{CABb{GOj{AJBb{BKh}}}}{CABb{{AJBb{BKh}}}}{CABb{{AJBb{BKh}}}}}{{AJLd{ADDbDHKd}}}DCGf}\",[\"T\"]]Fi[\"{{{CABb{DGIj}}c{CABb{{AJBb{BKh}}}}{AJK`{{CABb{{AJBb{BKh}}}}}}}{{AJK`{c}}}{{AFCj{{AJBb{BKh}}}}}}\",[\"T\"]]Fi[\"{{{CABb{DBBn}}c{CABb{{AJBb{BKh}}}}{AJK`{{CABb{{AJBb{BKh}}}}}}}{{AJK`{c}}}{{AFCj{{AJBb{BKh}}}}}}\",[\"T\"]]Bd[\"{{{CABb{BNDf}}}{{AJK`{IAl}}}}\",[]]A`[\"{CBHlHGn}\",[]]:Ch[\"{{{CABb{COHd}}{CABb{BNHl}}HGl}{{AJLd{COLfD@Fb}}}}\",[]]Ch[\"{{{CABb{COHf}}{CABb{BNHj}}HGl}{{AJLd{COLfD@Fd}}}}\",[]]Ag[\"{{BNKjDCEl}BNKj}\",[]]n[\"{{}HGj}\",[]]0:Bo[\"{{{CABb{GOjDFHd}}AJNl}{{CABb{GOjDFHd}}}}\",[]]Cb[\"{{D@Dhc}D@Dh{{A`{}{{AJKb{IAl}}}}HMjHNd}}\",[\"S\"]]Aa[\"{BBEnBBEn}\",[]]0Ch[\"{{{CABb{GOjBFCj}}{CABb{CBDf}}}{{AJLd{ADDbAFEh}}}}\",[]]Cg[\"{{{CABb{GOjBMn}}{CABb{CBDf}}}{{AJLd{ADDbAFEh}}}}\",[]]Cg[\"{{{CABb{GOjBN`}}{CABb{CBDf}}}{{AJLd{ADDbAFEh}}}}\",[]]o[\"{{}CABb}\",[]]Aa[\"{DBCjBBFj}\",[]]Bi[\"{{{CABb{COLf}}}{{AJLd{COHdCBLj}}}}\",[]]Bi[\"{{{CABb{COLf}}}{{AJLd{COHfCBLn}}}}\",[]]Af[\"{{DGCdHGn}DGCd}\",[]]Ag[\"{{DGCdBFDl}DGCd}\",[]]Be[\"{{{CABb{AJGl}}}{{AJLh{BBIf}}}}\",[]]Aa[\"{D@JnBBFj}\",[]]o[\"{{}AJNj}\",[]]Ag[\"{{DHMnAJEb}DHMn}\",[]]Aa[\"{BBHhBBFj}\",[]]A`[\"{CBHlHGn}\",[]]o[\"{{}AJEb}\",[]]o[\"{{}BFDl}\",[]]=6Aa[\"{COKbBBFj}\",[]]Aa[\"{BBHlBBFj}\",[]]10Bg[\"{{{CABb{{CBG`{c}}}}}AJEbDCGf}\",[\"T\"]]Fe[\"{{{CABb{CLFl}}cBFDl{CABb{{AJBb{HGn}}}}}{{AJLd{{`{{BFGd{}{{HK`{AJIf}}}}}}{DBEb{BFDj}}}}}BFJh}\",[\"\"]]Fe[\"{{{CABb{CLFn}}cBFDl{CABb{{AJBb{HGn}}}}}{{AJLd{{`{{BFGd{}{{HK`{AJIf}}}}}}{DBEb{BFDj}}}}}BFJh}\",[\"\"]]Ag[\"{{DHMnAJNl}DHMn}\",[]]o[\"{{}ADDb}\",[]]Bl[\"{{{CABb{BFEh}}{BOl{{BOl{BKh}}}}}DGCd}\",[]]Ao[\"{{DHMn{AJK`{AJEb}}}DHMn}\",[]]o[\"{{}COEh}\",[]]An[\"{{{CABb{GOjCBGd}}}ADDb}\",[]]0Ak[\"{AJGl{{AJLh{ADDb}}}}\",[]]Ag[\"{{BBEfBFKh}BBEf}\",[]]An[\"{{DHMn{BLb{DFB`}}}DHMn}\",[]]Ag[\"{{DHMnBFDl}DHMn}\",[]]?Bk[\"{{{CABb{{CBG`{c}}}}AJNl}ADDbDCGf}\",[\"T\"]]=o[\"{{}CABb}\",[]]00Aa[\"{BBEnBBEn}\",[]]Cd[\"{{{CABb{CLFl}}{CABb{HFb}}}{{AJLd{COHdCLId}}}}\",[]]Cd[\"{{{CABb{CLFn}}{CABb{HFb}}}{{AJLd{COHfCLId}}}}\",[]]Af[\"{{DHMnHGl}DHMn}\",[]]Af[\"{{DGCdHGn}DGCd}\",[]]6Ek[\"{{{CABb{CLFl}}{CABb{BNFj}}{CABb{HFb}}{CABb{{AJBb{HGn}}}}}{{AJLd{COHd{DBEb{CLId}}}}}}\",[]]Ek[\"{{{CABb{CLFn}}{CABb{CBHb}}{CABb{HFb}}{CABb{{AJBb{HGn}}}}}{{AJLd{COHf{DBEb{CLId}}}}}}\",[]]3Aa[\"{D@JnBBFj}\",[]]:Af[\"{{DHMnIAl}DHMn}\",[]]Bd[\"{{}{{AJDn{{BOl{DAO`}}COL`}}}}\",[]]Bg[\"{{{CABb{BFEh}}{AJK`{BFKh}}}ADDb}\",[]]Aa[\"{DGCfAJK`}\",[]]Af[\"{{DHMnBKh}DHMn}\",[]]Do[\"{{{CABb{CLFl}}{CABb{HFb}}{CABb{{AJBb{HGn}}}}}{{AJLd{COHd{DBEb{CLId}}}}}}\",[]]Do[\"{{{CABb{CLFn}}{CABb{HFb}}{CABb{{AJBb{HGn}}}}}{{AJLd{COHf{DBEb{CLId}}}}}}\",[]]") \ No newline at end of file diff --git a/pr/3958/docs/search.index/generic_inverted_index/9d6002b7ab62.js b/pr/3958/docs/search.index/generic_inverted_index/9d6002b7ab62.js deleted file mode 100644 index 563e0e7c5e..0000000000 --- a/pr/3958/docs/search.index/generic_inverted_index/9d6002b7ab62.js +++ /dev/null @@ -1 +0,0 @@ -rb_("RE1jADswAAABAADrAQMAyQf5AOcJ8ADbFwAAOzAAAAEAAGgDSABgBQEAYwUBAGcFAABpBQEAbAUCAHEFAABzBQUAegUBAIAFAACCBQAAhgUAAIgFAgCMBRUAowUCAKkFAQCsBQAArgUBALMFAAC1BQoAwgUAAMcFAgDLBQcA1AUCANoFAQDeBQAA4AUGAOkFBADvBQEA8gUBAPUFAAD3BRAACgYAAA4GAwATBgAAFQYAABgGAAAaBgMAHwYEACoGBgAyBgIANgYAADgGAAA6BgIAPgYeAF8GAABhBgEAZQYAAGgGAABxBhMAhgYBAIoGAACNBgAAkQYDAJcGAACZBgQAoAYBAKMGBACsBgIAsgYCALgGAQC7BgAAvgYAAMAGBADGBgEAyQYCAM0GAQCfDvAA1xOAAGAV+QDaFwAA3BcAAKEeAAA7MAAAAQAAOQMeAPMDAACwCwIAtAsDALkLCwDGCwQAzAt2AEUMGABfDBwAfQwXAJYMAQCUDQIAmA2OACgOZwCYDwAAmg8AAPoSAAD+EmIAWBQBAFsUAABdFAAAXxQNAG4UMQCjFBYAuxQJAMYUKwDzFAAA9RQBAPgUTQBHFRMAXBUDADswAAABAADIAhYABQQAAHIEAADKBQAAuQkAAMsLAABDDAEAfAwAAJUMAACfDAAAuw8AABIREABbFQAA2hYSAO4WsgCiFxYAuhcBAPwXAABcG/AAURy5ADQeHgDZHgAAXCAAADswAAABAAC8AR4AdQEAAOkDAAAKBAAADAQAAHEEAACvBgAAywgAALYJAADlCQEAxgwAAJoOAACZDwAAcxEAAP0SAABlEwMAvRMAAMcWAADGFwIAyhcAAAEYHgAhGAAA5xgAAOkY+QDqGYAAQx8AALEfAACkIAAAvSACAI4iAAB9IwAAOzAAAAEAABEBHgD6AwAAAwQAAIsFAABeDAAAWA0AAI8NAACTDwAAxw8BAJUQAABuEwEApRMAAPIUAAD0FAAA9xQAAM0WAAChFwAAuRcAAMUXAADJFwAAaxrwABkdAAAbHQAAYB0BABwfAAAmHwAAOiIAAEUiAACMIgEAnSMAAKkjAAA7MAAAAQAALQASABIEAADRBhIAlAkAAGgLAADUDAAAmw8JAJQQAABUEQAA+xIBAMwTAADLFwAAKh8AAKofAABwIAAAsCAAAE0iAAB5IgAAqyIAADowAAABAAAAAAAhABAAAACNA5cDvAO9A88DuAnUCX8LvgzJD7YQWhZbFlwWXRZeFl8WYBZhFsgWyRY0HVYdVx2QHrQfvh+/H8MgqyGsIfghFyJIIzowAAABAAAAAAANABAAAAAOA34DkQfJCMEJwgnDCcQJrAsnDaoQwRNtIMciOzAAAAEAAO8BDABgAPAAdgHwADsDAAB/AwEAhAMAAIcDAAAmDQAAxxMAAOcXAQBVHQAAGh8AAMAfAgA6MAAAAQAAAAAADwAQAAAAIxGZEiYdKB01HTYdOR06HT0dPh2oHqoeqx6tHgUiBiIEXwAAAPgDAACLEQAAPiIAAAEzHwAAAlgdAAA4HwAAOzAAAAEAAAcAAwAOIwMAMSMBAH4jAQABmR4AAAXpFwAANx0AADsdAAA/HQAAMCMAAAAB4wMAAAAAAAAAAAAAAAAAAbYfAABLbAAAADswAAABAAD5AA0AWBQBAFsUAABdFAAAXxQNAG4UMQCjFBYAuxQJAMYUKwDzFAAA9RQBAPgUTQBHFRMAXBUDAAAAAvoDAABeDAAAAlQRAAB5IgAAAb4MAAAAOzAAAAEAAOYBBgBgAPAAdgHwAH8DAQCEAwAAhwMAACYNAAAAAl8AAAD4AwAAAAFYHQAAAAGZHgAABOkXAAA3HQAAOx0AAD8dAAAAAeMDAAAAAAAAAAAAAAAAAAG2HwAAQ24AAAAAAAAAAAAAOzAAAAEAAOEBAgBgAPAAdgHwAAAAAAAAAZkeAAAAAAHjAwAAAAAAAAAAAAAAAAABth8AAENmAAAAAAAAAAAAADswAAABAADhAQIAYADwAHYB8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAG2HwAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/generic_inverted_index/d8b7331a81f8.js b/pr/3958/docs/search.index/generic_inverted_index/d8b7331a81f8.js new file mode 100644 index 0000000000..87cd2426e9 --- /dev/null +++ b/pr/3958/docs/search.index/generic_inverted_index/d8b7331a81f8.js @@ -0,0 +1 @@ +rb_("RUBjADswAAABAAD5AQMA/QcAASMK9wB4GAAAOzAAAAEAAIsDUACDBQAAhwUAAIkFAACLBQAAjQUAAI8FAQCSBQEAlQUAAJcFAACZBQcAogUBAKUFAACqBQAArAUAALAFAgC0BRYAzAUBAM8FAADSBQAA1AUBANcFAADZBQAA3QULAOsFAADwBQEA8wUIAP0FAwAEBgIACgYBAA0GBwAWBgEAGQYDACAGEAAzBgAANwYAADkGBAA/BgAAQgYBAEUGAwBKBgMATwYAAFUGBgBdBgIAYQYAAGMGAABlBgIAaQYeAIsGAgCRBgAAlwYAAJoGAACdBhIAsQYBALQGAAC5BgAAvAYDAMIGAADEBgQAygYAAM0GBQDXBgIA2wYAAN4GAQDjBgMA6gYAAOwGAwDxBgIA9QYDAPoGAAD9BgAA/Q73AFgUhwDvFQABdxgAAHkYAABsHwAA+iICAP8iAAABIwEABCMAADswAAABAABTAx4ACwQAAAAMAQADDAUACgwMABgMAwAdDHoAmgwYALQMHADSDBoA7gwAAOsNAQDuDZQAhA5pAP4PAAABEAAAdhMAAHoTZwDgFAEA5BQBAOcUEAD5FDAAKxUAAC4VFABEFQcATRUxAIAVAACCFQEAhRVNANQVFQDrFQMAOzAAAAEAANkCFgAdBAAAjwQAAPIFAAD1CQAAHAwAAJgMAQDRDAAA7QwAAPYMAAAiEAAAfhEQAOoVAABwFxUAhxezADwYGgBYGAAAmhgAABIc9wAOHbwA/h4eAKYfAAAxIQAAOzAAAAEAAMwBIAB+AQAAAAQAACIEAAAkBAAAkAQAANoGAAAGCQAA8gkAACEKAQAdDQAA+A4AAP0PAAD/DwEA5hEAAHkTAADmEwMAPhQAAF0XAABiGAAAZBgBAGcYAACfGB4AvxgAAIgZAACKGQABkhqHABIgAACEIAAAeiEAAJIhAgCAIwAAdSQAADswAAABAAAaAR8AEgQAABsEAACzBQAAswwAAK8NAADmDQAA+A8AAC8QAQD9EAAA7xMBACYUAAB/FQAAgRUAAIQVAABjFwAAOxgAAFcYAABjGAAAZhgAABob9wDZHQAA2x0AACMeAQDrHwAA9R8AAAYjAQAqIwAANSMAAH4jAQCVJAAAoSQAADswAAABAAAtABIAKwQAAP4GEgDQCQAAtQsAACsNAAACEAkA/hAAAMMRAAB3EwEATRQAAGgYAAD5HwAAfSAAAEYhAACGIQAAPSMAAGsjAACfIwAAOjAAAAEAAAAAACEAEAAAAKIDrAPSA9MD5gP0CRAKzQsVDTEQIRHwFvEW8hbzFvQW9Rb2FvcWXhdfF/QdGB4ZHlsfhyCRIJIgmCGIIoki2CIII0EkOjAAAAEAAAAAAA0AEAAAACIDkwPCBwQJ/Qn+Cf8JAAr8C38NExFCFEMhuyM7MAAAAQAA/QEMAGIA9wB/AfcAUAMAAJQDAQCZAwAAnAMAAH0NAABJFAAAhRgBABceAADpHwAAkyACADowAAABAAAAAAARABAAAAABBCUEjxETE+Yd6B31HfYd+R36Hf0d/h1zH3Ufdh94H+Yi5yIEYQAAABAEAAD+EQAALiMAAAEBIAAAAhoeAAAHIAAAOzAAAAEAAAcAAwAHJAMAKSQBAHYkAQABZB8AAAWHGAAA9x0AAPsdAAD/HQAAKCQAAAAB+gMAAAAAAAAAAAAAAAAAAYkgAABLbAAAADswAAABAAAAAQ0A4BQBAOQUAQDnFBAA+RQwACsVAAAuFRQARBUHAE0VMQCAFQAAghUBAIUVTQDUFRUA6xUDAAAAAhIEAACzDAAAAsMRAABrIwAAARUNAAAAOzAAAAEAAPQBBgBiAPcAfwH3AJQDAQCZAwAAnAMAAH0NAAAAAmEAAAAQBAAAAAEaHgAAAAFkHwAABIcYAAD3HQAA+x0AAP8dAAAAAfoDAAAAAAAAAAAAAAAAAAGJIAAAQ24AAAAAAAAAAAAAOzAAAAEAAO8BAgBiAPcAfwH3AAAAAAAAAWQfAAAAAAH6AwAAAAAAAAAAAAAAAAABiSAAAENmAAAAAAAAAAAAADswAAABAADvAQIAYgD3AH8B9wAAAAAAAAAAAAAAAAAAAAAAAAAAAAGJIAAA") \ No newline at end of file diff --git a/pr/3958/docs/search.index/name/5689c3fef586.js b/pr/3958/docs/search.index/name/5689c3fef586.js deleted file mode 100644 index 5ef070b83a..0000000000 --- a/pr/3958/docs/search.index/name/5689c3fef586.js +++ /dev/null @@ -1 +0,0 @@ -rd_("as00b()b->bBibEqbFnbIdbIo00bIp0bN0bOrb[]b_000beq000000000000000000000000000000000000000000000000000000000000000000bid0000000bor0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000brtbu8cAckcAndcAnycAppcArccBoxcBufcDircDns0cErr0cKey0cMAX0cMapcNotcOpt0cOrdcPincQadcS2ncTcpcTls000cUdp0cUnicUrlcVeccaddcand000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cbufccmp00000000000000000000cdht00cdircdns00000000cecncf32cf64cfmt000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cget000cgotci32ci64ciosckey000clen000000clogcmapcmincmutcnew0000000000000000000000000000000000000000cnotcnowcrtt00cruncs2n0cstrctagctls0cttl0ctyp0cu16cu32cu64curl00000dALPN0dArgsdCopydDatadDenydDial0dDropdFromdHashdHttp0dIntodIroh00dItem0dKeysdMetadNAMEdName0dPathdPing00000dPolldPong00dReaddRecv0dSend00dSidedSinkdSyncdUser00000dUtf80000dVZipdZEROdacksdaddr000dalpn00000dbind00dbooldbulkdcall0dcertdcode0dconndcwndddata00ddrop0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dfrom0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dhash000000000000000000dhttp0000dinit0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dinto000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dipv4dipv6diroh00diter00dloaddmaindmdns0dmeta0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dname000000000dnextdopendpeek0dpingdpoll000000000dport000dprod0dqlog0dquic00000dread0drr_adsealdsenddsentdside0dsign0dsize00dstop0dttfbdu128dunitdurls0dvzip000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eAlloweAsMuteAsRefeBoxed0eByteseChunkeCloneeCloseeDebugeDerefeError0000000000000000000eFlush0eHttps00eLocalePlaineProto0eQuinn0000eRelay00eReset0eSerDe0eSizedeSmarteStatseTupleeUnpineValue0eWriteeaddrs0000ealpnseapply0earrayebuild00000000ebytes00ecertsecleareclone00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eclose000ederef000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eempty000eframe0ehooks0ehttpseindexeis_ip00elabel00epaths00epkarr0eprint0equinn0erelay0ereset000eretryerr_nsesliceespawn0000esplitestate00estats0000000estore0etitleetokenetupleeusageeusizeevalueewrite0fAccept0000fAccessfAckEcnfActivefBorrowfBufMutfClient000fClosed0fCompatfConfig0fCryptofCustom0fDecode0fFuturefHandlefHasherfHealth00fIpAddrfLENGTH000fLimitsfLoaderfManual00fNoAlpn0fOpenBifOptionfOutputfPathIdfPolicyfPresetfRecordfReject00fResult000fRouterfRustlsfServer00fSharedfSimplefSource0fStream0000fStringfTypeIdfVarInt0fVerify0faccept0000000faccessfas_dyn00000000000000000000000000000000000000000000000000fas_ref000fas_std00000000000000000000000000000000000000000000000000fborrow00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fchunks00fclient000000fclosed00fcommon0fcompat000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fconfig00fcreatefcrypto000fcustom00fdecode0000fencode0000fextend0ffinishfgroups0fheaderfignorefinsert00fkeylogflimitsfmemory0fn0_dns00foffsetfon_ack0fonlinefpacketfpresetfprotos0fpublic0freason0000frefusefrejectfrelays0freloadfremove0fserver000000fsocket0fsource000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fstatus0fstream00fto_z3200fudp_rx0fudp_tx0fudp_v4fudp_v6fupdate0fvarintfverify0fwindowgAeadKeygBoxIter0gBuilder00gClientsgCommandgConnect000gContextgCountergDefault00gDisplaygElapsedgExpired0gFromRefgFromStrgInstantgIoSlicegKeyPairgMaxDatagMetrics000gNextFutgOpenUnigPaddinggPathAckgPathBufgPrivategReadBufgRequest0gResolve00gRuntimegServicegSockets0gStaginggStopped0gTimeout0000000gToOwnedgTooLonggTryFromgTryIntogUnknowngUpgrade00gWatchergWrittengaccepts0gbuilder000000000gclients00gcommand00gcompare0000000000000000gconnect0gdecrypt0gdefault0000000000000000000000000000000000000000000000000000gdomainsgenabledgencrypt0ghas_udpgis_0rtt0gmax_lengmetrics00000000000gmin_mtugon_sent0gopen_bigoriginsgpointergpresets0gproblemgpublish000000greportsgresolve00000000000grr_aaaagrun_s2ngstaging0gstoppedgstreams000000gtag_lengtesting0gtimeoutgto_infogtry_forgtype_id000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gupdatedhAcceptBihAcceptedhAnyErrorhAppStatehBTreeSethBindOptshBytesMuthCertModehCommandshDatagramhDerefMuthDisabled000hDnsError0hDurationhDynClonehEncoding0hEndpoint00hErrorRefhEveryonehHandlers0hHttpSend0hInactivehIncoming0hIpv4AddrhIpv6AddrhIrohAttrhIterablehIteratorhKeyCachehMAX_SIZEhNO_ERRORhNamedApp0hNewTokenhNullablehOrderinghPathInfohProtocol00hRejectedhRelayMap0hRelayUrl00hRemoteId0hResolverhRunError0hStreamIdhTimedOuthToStringhTokenLoghTooLargehTooSmall0hTxtAttrshUdpStatshUserData00hZ32Errorhas_bytes0hcontains0hcontentshdata_dir0hdatagramhdefaults000hdisabled0hdurationhendpoint00hexpectedhframe_rxhframe_txhfrom_env0hfrom_err00hfrom_ref00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000hfrom_str0000000hfrom_u32hfrom_u64hfrom_z3200hgenerate0hgot_ping0hgroup_id0hhttp_urlhintervalhinto_anyhinto_std00000000000000000000000000000000000000000000000000hip_addrs000his_alivehis_empty00000his_relay00hlifetimehlocal_iphmainlinehmax_datahnew_pinghopen_unihpriorityhprotocol0hregisterhresolverhrun_irohhshutdown00000000000hssthreshhtimeouts0hto_bytes000hto_owned00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000htry_from00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000htry_into000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000htry_poll0000000huse_ipv6iAcceptUniiAcceptingiAcmeStateiAddrParse0iAlpnError0iAsyncReadiBindError0iBorrowMutiCompatExtiCryptoRngiDatagrams0000iDecodableiDialError0iDnsConfigiDnsServeriEncodableiFormatteriFrameType0iHandshake000iHeaderKeyiHeaderMapiHistogramiJoinError00iLocalAddr0iMaxPathIdiMechanismiNetReportiNoAddress0iNoResults0iNumLabels0000iPacketKeyiPartialEqiPathStatsiPointableiPolicyExtiPublicKey0000iQuicSpawn0iReadError0iRecordSetiRecvError0000iRelayMode0iReloadingiResolvingiSecretKey00iSendError000iSerializeiSignature0iTcpStreamiTickFlush0iTlsConfig0iTryFutureiTryStreamiUtf8ErroriWatchRecv0iWebsocket000iZoneStoreiaccept_biiadd_addrs0iadd_boxediadvertiseiassembleribind_addr00000ibootstrapicert_modeiclient_rxiclone_boxidatagrams00ideref_mut000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ifield_ref00000ifmt_short0iframe_lenifrom_iter000000iglobal_v4iglobal_v6ihandshake0ihas_addrs0ihttp_addr0ihttps_urliin_memoryiinitiatoriinto_0rtt0iinto_addriinto_iter00iiroh_baseiis_clientiis_closed0iis_serverikey_cacheimechanisminew_tokenipath_acksipkarr_urlipoll_next00ipoll_read00iproxy_url00iquic_addrireach_outireferenceirelay_map0irelay_urliremote_id0000irun_quinnirun_untilisend_ipv4isend_ipv6isent_pong0iserialize000000000000000000000000000000iset_alpnsistable_idisubscribeito_string000000000000000000000000000000000000000000000000000000000000000000000000000000000000000itransportittfb_histiuser_data00iwrite_alljArgMatchesjAsyncWritejCertConfig0jClientAuthjClientSinkjComparablejConnecting0000jConnection0000000000jControllerjDirectAddrjDiscovered0jDnsHandlerjEndpointId0000jEquivalent0jFrameStatsjHeaderNamejHttpConfigjHttpServerjInfallible00jIntoFuturejInvalidKey000jInvalidUrl0jMAX_LENGTH0jMaybeFramejMetricItemjNoResponse0jNonZeroU32jNotAllowed0jPROVENANCEjPacketSend0jParseError0000000jPartialOrdjPathAckEcnjPkarrError0jPortmappedjQlogConfigjQuicClientjQuicConfigjRELAY_PATHjRecordTypejRecvStreamjRemoteInfojResetErrorjRestarting00jRestrictedjRetryError0jSelfSignedjSendStreamjSerializerjSocketAddrjSpawnError0jStackErrorjStatusCodejSubcommandjSystemTimejTimeSourcejWriteErrorjWriteFrame0jaccept_unijallow_spinjborrow_mut000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jbytes_recv0jbytes_sent0jchunk_sizejchunk_timejclient_keyjclone_into00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcompat_mut000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcompat_ref000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcongestionjconnection00jequivalent00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jerror_code00jframe_type000jfrom_boxedjfrom_bytes00000jfrom_parts000jhttps_addr0jinto_addrsjinto_innerjiroh_benchjiroh_relayjis_allowedjlocal_addr0jlookup_txt00jlost_bytesjn0_watcherjnameserverjnet_reportjno_publishjnum_labels00jonly_relayjpad_to_mtujpcp_probesjpersistentjpoll_close00jpoll_flush0000jpoll_ready00jpoll_write00jportmapperjprefix_lenjprovenance00jread_chunk0jread_exactjrelay_modejrelay_urls000jremote_mapjsecret_key00jsend_relayjserversidejstart_send00jstart_timejtest_utils0jthroughputjtls_configjtotal_sizejwatch_addrjwith_addrs0jzone_storekAcceptError000kAccessLimitkCallMeMaybe0kClientHellokClientStatskCloseReasonkCryptoErrorkDataBlockedkDecodeErrorkDeserializekDnsProtocolkDnsResolver0kEmptyPacket000kHandleFrame0kHeaderValuekHttpPayload0kHttpRequest0kHttpServicekHttpsConfigkIdleTimeoutkLetsEncrypt00kLookupError0kMissingHost0kNoLocalAddr000kPathAbandonkPathWatcherkPingTrackerkQlogFactorykRelayConfig00kResetStreamkResolveBoth0kSelfConnect0kStopSendingkStoreConfigkStreamError000000000kStreamStatskUnavailable0kUnspecifiedk__clone_box00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000kaccept_withkadd_addresskas_iterable00000kclear_cache00kcreate_connkcurrent_mtukdefault_soakdefault_ttlkdescriptionkdeserialize000000000000000000000000000000kdisconnects0kdns_handlerkendpoint_id00000kfield_count00000kfmt_message00000000000000000000000000000000000000000000000000khttp_serverkinitial_mtu0kinitial_rttkinitializedkinto_future0000000000kis_requiredkis_selectedkis_shutdownklookup_ipv400klookup_ipv600kmax_path_idkmax_streamskon_end_acks0kon_endpointkpacing_ratekpartial_cmp00000000000000000000kpaths_relaykpkarr_relaykquic_configkread_chunkskread_to_endkrecv_streamkremote_addrkremote_info0ksample_sizeksend_streamksend_windowktask_handlekupload_sizekupnp_probeskupper_boundkwith_prefixkwrite_chunklAccessConfiglAckFrequencylCertifiedKeylClientConfiglClientStreamlClosedStream00lConnectError0000lConnectionIdlDeserializerlDisconnectedlEndpointAddr00lEndpointData00lEndpointGone0lEndpointInfo00lFromIteratorlImmediateAcklIntoIterablelIntoIteratorlInvalidFrame00lLookupFailed0lManualAccept0lMemoryLookuplMetricsGrouplPathInfoListlPathResponselPathsBlockedlProxyConnect0lReadDatagramlRelayMetrics0lRelayService0lResolveErrorlRttEstimatorlSendDatagramlServerConfig00lSignedPacketlStoppedErrorlTlsHandshake0lToSocketAddrlaugment_args0lauthorize_iflcertificateslclose_reasonlconservativeldata_blockedldns_requestsldns_resolver00000lfrom_err_anylfrom_err_box0linsert_relaylis_connected0llast_updated0llost_packetslmetrics_addrlon_accepting000lpath_abandonlpath_watcherlpaths_directlping_trackerlpoll_updated0lqlog_factorylreconnect_inlrelay_configlremove_relaylreports_fulllreset_streamlresolve_host0lsegment_sizelservice_namelset_prioritylstop_sendinglstream_statslwith_ip_addr0lwrite_chunksmAddressLookup0000mAlreadyClosedmCidsExhausted0mClientBuildermCloneToUninitmDecodingError00000000mEncodingError000mEndpointError0mEndpointHooksmEndpointIdExt0mFinishedEarlymForwardPacket000mFrameTooLarge0mHandleDropped0mHandshakeDonemINVALID_TOKENmIROH_TXT_NAME0mInvalidLength000mInvalidPrefix0mLocallyClosedmMaxStreamDatamMaxStreamsUnimMetricsConfigmPathChallengemPkarrResolvermPrivateKeyDermQad4LocalPortmQlogFileGroupmRelayedStreammRemoveAddressmRouterBuildermSocketMetricsmTaskCancelled0mTransportAddr00mTxtRecordDatamUnexpectedEnd0000mZeroRttStatusmack_frequencymbound_socketsmdownload_sizemduration_histmempty_buildermendpoint_addrmendpoint_info00000mfrom_servicesmgroups_cloned0mhttp_requestsmimmediate_ackminto_incomingmmax_ack_delaymobserved_addrmon_mtu_updatempath_responsempaths_blockedmpcp_availablempeer_identitympoll_read_bufmpoll_shutdown0mpong_receivedmqlog_from_envmrate_limitingmread_datagrammrelay_latencymselected_pathmsend_datagrammsend_fairnessmsend_responsemserver_config00mset_token_keymset_user_data0mtake_segmentsmtry_from_iter0mtry_poll_next00mtry_to_string000000000000000000000000000000000000000000000000000000000000000000000000000000000mwith_ip_addrs000mwrite_timeoutnAddIpv4AddressnAddIpv6AddressnAddrParseErrornAttrFromString0000nBufferNotEmpty0nCertificateDernCommandFactorynConnectOptionsnConnectionInfonConnectionLost0000nDirectAddrTypenDiscoveryEvent0nDnsPkarrServernEndpointClosed0000nFrameTypeError00000nFromArgMatchesnINTERNAL_ERRORnInitializedFutnInvalidDNSNamenMainlineConfignMaxStreamsBidinMaybeTlsStreamnNO_VIABLE_PATHnPayloadTooLong0nPkarrPublishernPortmapMetricsnPrefixLenErrornPublicKeyErrornReachOutAtIpv4nReachOutAtIpv6nReadExactErrornReadToEndErrornRequestHandlernSignatureError00nSimpleDnsErrornStaggeredErrornTlsHeaderParse0nTransferResultnTransportError0nactor_tick_msgnaddress_lookup0000naead_from_hkdfnanswer_requestnavg_chunk_sizenbefore_connect0ncaptive_portalnclear_ip_addrs0nclient_handlernconnect_client0nexpected_typesnfor_connection0nhandle_requestnhandshake_data00nhandshake_donenhas_subcommandnhttp_bind_addrninitial_windowninto_unorderednis_transparent00000000000000000000000000000000000000000000000000nkey_from_slicenminimum_changennetwork_changenpath_challengenprobes_startednproxy_from_envnproxy_hostnamenqlog_from_pathnquic_bind_addrnread_unorderednreceive_windownreceived_reset0nrecv_data_ipv4nrecv_data_ipv6nrecv_datagramsnremote_addressnremove_addressnrun_until_done0nsaturating_add0nsaturating_subnset_prefix_lennthroughput_bpsntime_thresholdnto_socket_addrnto_txt_strings0ntotal_durationnunknown_frames0nupnp_availablenwith_relay_url00000nwith_user_data000oBindTcpListener0oBindTlsListener0oBootstrapOptionoBytesStreamSinkoClientRateLimitoConnectingError0oConnectionClose0oConnectionError00000oConnectionStateoConnectionStatsoDowncastUpgrade0oEndpointMetricsoIncomingZeroRttoInvalidRelayUrl000oInvalidResponse0oInvalidTxtEntry000oKeyParsingError0000oLocallyRejected000oMAX_PACKET_SIZE0oMessageResponseoMetricsGroupSetoNewConnectionIdoNoUriConfiguredoNotAnIrohRecord0000oOutgoingZeroRttoPathCidsBlockedoProtocolHandleroProxyInvalidUrl0oQlogFileFactoryoRateLimitConfigoRelayQuicConfigoResponseHandleroServeConnection0oServerChallengeoSignedChallengeoSupervisorError0oTokenReuseErroroTransportConfigoTryReserveErroroUnexpectedFrame0oVersionMismatchoWriteFrameError0oZeroRttRejected000oactor_tick_mainoafter_handshake0oclone_to_uninit00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000odefault_timeoutodst_endpoint_idoendpoint_originofrom_txt_lookup0ohttps_bind_addrointegrity_limitoiroh_dns_serveromax_burst_bytesomax_stream_dataomax_streams_uniomax_tls_ticketsopreferred_relayorecv_data_relayorepublish_delayorun_until_errororun_with_originoserver_endpoint0oset_is_requiredoset_time_sourceostream_finishedothroughput_histowith_nameserver00owith_provenanceA`ApplicationClose0A`CleanupDropGuardA`ClientToRelayMsg0A`ConnectionClosedA`DhtAddressLookupA`DisallowedHeaderA`DnsAddressLookupA`EndpointSelectorA`EndpointStoppingA`FINAL_SIZE_ERRORA`HandleFrameError0A`HandshakeFailure0A`InvalidFrameType0A`InvalidPublicKey0A`KEY_UPDATE_ERRORA`NetReportMetricsA`ObservedIpv4AddrA`ObservedIpv6AddrA`PathInfoListIterA`PathStatusBackupA`PkarrRelayClientA`QuicConnectErrorA`RELAY_PROBE_PATHA`RelayToClientMsg0A`ServerDeniedAuth0A`ServerDeniesAuthA`StreamTerminated0A`ToStringFallibleA`TryFromPrimitiveA`UnexpectedFormat0000A`UnknownFrameType0A`UnknownHandshake0A`actor_tick_otherA`bytes_per_secondA`channel_capacityA`check_and_insertA`clear_relay_urls0A`congestion_stateA`connection_closeA`default_ap_relayA`default_eu_relay0A`dns_lookup_errorA`dns_requests_udpA`from_arg_matches00A`iroh_quinn_protoA`is_default_routeA`letsencrypt_prodA`lookup_ipv4_ipv60A`mapping_attemptsA`mapping_failuresA`max_idle_timeoutA`max_streams_bidiA`num_conns_closedA`num_conns_directA`num_conns_openedA`packet_thresholdA`run_relay_serverA`set_max_incomingA`to_endpoint_addr00A`transport_config00A`with_nameserversA`write_all_chunksAaAPPLICATION_ERRORAaAP_RELAY_HOSTNAMEAaAbortOnDropHandleAaApplicationClosedAaCannotResolveHostAaControllerFactoryAaControllerMetricsAaDEFAULT_HTTP_PORT0AaDEFAULT_PKARR_TTLAaEU_RELAY_HOSTNAME0AaHandshakeTokenKeyAaIntoAddressLookupAaInvalidServerNameAaInvalidSocketAddr0AaInvalidTargetPort0AaLetsEncryptAccept0AaMdnsAddressLookupAaReloadingResolverAaSendDatagramErrorAaSignedKeyMaterialAaStreamDataBlockedAaStreamsBlockedUniAaTransportAddrInfoAaUnsupportedByPeerAaUnsupportedSchemeAaaccept_conn_burstAaaccept_conn_limitAaactor_link_changeAaadd_endpoint_infoAacollect_and_printAacongestion_eventsAacongestion_windowAaconnect_with_optsAadefault_relay_map0Aaget_endpoint_infoAaget_signed_packetAahandle_connectionAais_write_vectoredAamax_datagram_sizeAanew_connection_idAapath_cids_blockedAarelay_home_changeAasend_packets_recv0Aasend_packets_sent0Aaset_endpoint_infoAawith_dns_resolverAbAEAD_LIMIT_REACHEDAbAckFrequencyConfigAbCLIENT_AUTH_HEADERAbCONNECTION_REFUSEDAbConnectionSelectorAbCreateQuicEndpoint0AbDEFAULT_HTTPS_PORT0AbDynProtocolHandlerAbFLOW_CONTROL_ERRORAbForwardPacketErrorAbHandshakeCompletedAbInvalidEncodingZ32000AbInvalidHeaderValueAbMtuDiscoveryConfigAbNET_REPORT_TIMEOUTAbPROTOCOL_VIOLATIONAbRelayUrlParseError00AbResolvesServerCertAbRetireConnectionIdAbSTREAM_LIMIT_ERRORAbSTREAM_STATE_ERRORAbServerConfirmsAuthAbStreamsBlockedBidiAbTransportAddrUsageAbTransportErrorCodeAbUnsupportedVersion0Abactor_tick_re_stunAbcommand_for_update00Abcrypto_buffer_sizeAbdefault_relay_modeAbdns_lookup_successAbdns_requests_httpsAbfrom_endpoint_infoAbfrom_u64_uncheckedAbholepunch_attemptsAbinto_endpoint_addr00Abkey_cache_capacity0Ablocal_port_updatesAbn0_dns_pkarr_relayAbother_packets_recv0Abother_packets_sent0Abpath_status_backupAbpkarr_publish_noopAbrecv_gro_datagramsAbremote_endpoint_idAbrepublish_intervalAbsend_datagram_waitAbset_receive_windowAbtry_from_primitiveAbunique_client_keys0Abupnp_probes_failedAbwith_start_instantAcALPN_QUIC_ADDR_DISCAcAuthenticationError0AcCreateNetmonMonitor0AcDecodeInvalidLength000AcInvalidBucketConfigAcInvalidWebsocketUrl0AcNoServiceConfigured0AcPathNewConnectionIdAcPathStatusAvailableAcQuicTransportConfig0AcServerConfigBuilderAcTransportParametersAcUnexpectedFrameType0AcUnorderedRecvStreamAcaugment_subcommandsAcbind_addr_with_optsAcblack_hole_cooldownAcclear_ip_transportsAcdns_lookup_notfoundAcforce_staging_infraAchandshake_completed0Achttp_requests_errorAcinto_address_lookup000000000000Ackeep_alive_intervalAcletsencrypt_contactAclost_plpmtud_probesAcon_congestion_eventAcpoll_write_vectoredAcsent_plpmtud_probesAcstream_data_blockedAcstream_updates_onlyAcstreams_blocked_uniAcupdate_direct_addrsAdBeforeConnectOutcomeAdConnectWithOptsError0AdDEFAULT_METRICS_PORT0AdDeserializationError0AdDuplicateDefaultAddr0AdExceedsMaxPacketSize000AdExportKeyingMaterialAdFRAME_ENCODING_ERRORAdFailedBuildingPacket000AdInvalidRemoteAddressAdInvalidTlsServername0AdPkarrResolverBuilderAdSERVER_WRITE_TIMEOUTAdServeConnectionError0AdVarIntBoundsExceededAdack_frequency_configAdblack_holes_detectedAdclear_address_lookupAdfrom_arg_matches_mut00Adhandle_client_stream0Admtu_discovery_configAdpkarr_publish_updateAdpkarr_put_rate_limitAdremove_endpoint_infoAdreordering_thresholdAdretire_connection_idAdsend_packets_dropped0Adset_is_default_routeAdset_transport_configAdstreams_blocked_bidiAdtransport_parametersAdupdate_endpoint_dataAdupnp_gateway_updatedAdwith_system_defaultsAeAfterHandshakeOutcome0AeClientToRelayDatagramAeNoDefaultClientConfigAePATH_UNSTABLE_OR_POORAePkarrPublisherBuilderAeRelayToClientDatagramAeRemoteEndpointIdErrorAeTryFromPrimitiveErrorAeValidationTokenConfigAeconfidentiality_limitAedefault_na_east_relay0Aedefault_na_west_relayAedns_and_pkarr_serversAehttp_requests_successAelookup_endpoint_by_id0Aelookup_ipv4_staggered0Aelookup_ipv6_staggered0Aeother_packets_dropped0Aepath_status_availableAerun_relay_server_withAestore_packets_expiredAestore_packets_removedAestore_packets_updatedAestream_receive_windowAewith_additional_alpnsAewith_transport_configAfCRYPTO_BUFFER_EXCEEDEDAfConnectionHandlerError0AfIntoAddressLookupError0AfInvalidTransportConfig0AfMaxLengthExceededError0AfNA_EAST_RELAY_HOSTNAME0AfNA_WEST_RELAY_HOSTNAMEAfNoRelayServicesEnabled0AfPathRetireConnectionIdAfProxyInvalidTargetPort0AfRELAY_PROTOCOL_VERSIONAfSignedPacketBuildErrorAfclear_relay_transportsAfexport_keying_material00Afmapping_varies_by_destAfpath_new_connection_idAfstore_packets_insertedAfto_pkarr_signed_packet0Afwith_mainline_fallbackAgAcmeEventStreamFinished0AgClientAuthHeaderInvalid0AgConcurrentAddressLookupAgDEFAULT_RELAY_QUIC_PORT0AgDnsAddressLookupBuilderAgMissingRemoteEndpointId0AgN0_DNS_PKARR_RELAY_PRODAgSignedPacketVerifyErrorAgUnexpectedUpgradeStatus0Agack_eliciting_thresholdAgaddress_family_selectorAgaugment_args_for_update0Agupdate_from_arg_matches00AhAPPLICATION_ABANDON_PATHAhENV_FORCE_STAGING_RELAYSAhInternalConsistencyError000AhMdnsAddressLookupBuilderAhSuccessfulAuthenticationAhexternal_address_updatedAhfrom_pkarr_signed_packet0Ahinclude_direct_addressesAhremote_address_validatedAhset_incoming_buffer_sizeAhset_retry_token_lifetimeAhsigned_packet_store_pathAhtransport_ip_paths_addedAiCONNECTION_ID_LIMIT_ERRORAiExportKeyingMaterialErrorAiIncomingZeroRttConnection0AiNO_CID_AVAILABLE_FOR_PATHAiOutgoingZeroRttConnection0AiProxyConnectInvalidStatus0AiProxyInvalidTlsServername0AiQUIC_ADDR_DISC_CLOSE_CODEAiRateLimitingMisconfigured0AiTRANSPORT_PARAMETER_ERRORAidatagram_send_buffer_sizeAihttp_requests_duration_msAiinsecure_skip_cert_verifyAipath_retire_connection_idAjClientToRelayDatagramBatchAjDEFAULT_KEY_CACHE_CAPACITYAjDEFAULT_REPUBLISH_INTERVALAjN0_DNS_PKARR_RELAY_STAGINGAjQuicTransportConfigBuilderAjRelayToClientDatagramBatchAjactor_tick_portmap_changedAjbytes_rx_ratelimited_total0Ajconns_rx_ratelimited_total0Ajdatagram_send_buffer_spaceAjlookup_ipv4_ipv6_staggered0Ajmax_concurrent_uni_streamsAjtransport_ip_paths_removedAkN0_DNS_ENDPOINT_ORIGIN_PROD00AkPATH_RESOURCE_LIMIT_REACHEDAkPER_CLIENT_SEND_QUEUE_DEPTHAkQUIC_ADDR_DISC_CLOSE_REASONAkenable_segmentation_offloadAkmapping_varies_by_dest_ipv4Akmapping_varies_by_dest_ipv6Akmax_concurrent_bidi_streamsAkset_validation_token_configAktransport_relay_paths_addedAkupdate_from_arg_matches_mut00AlDEFAULT_CERT_RELOAD_INTERVALAlconfigure_tracing_subscriberAlcreate_server_config_builderAldatagram_receive_buffer_sizeAlmake_dangerous_client_configAlon_spurious_congestion_event0Alrun_with_config_until_ctrl_cAluser_data_for_address_lookupAmcongestion_controller_factoryAmdefault_path_max_idle_timeoutAmsend_observed_address_reportsAmset_max_concurrent_bi_streamsAmtransport_relay_paths_removedAnInvalidProtocolMessageEncoding0AnN0_DNS_ENDPOINT_ORIGIN_STAGING00Anaugment_subcommands_for_updateAnlookup_endpoint_by_domain_name0Anmax_concurrent_multipath_pathsAnset_incoming_buffer_size_totalAnset_max_concurrent_uni_streamsAoinsecure_skip_relay_cert_verifyAolookup_endpoint_by_id_staggered0Aopersistent_congestion_thresholdB`actor_tick_direct_addr_heartbeatB`default_path_keep_alive_intervalB`receive_observed_address_reportsB`self_signed_tls_certs_and_configB`set_user_data_for_address_lookupBbmax_remote_nat_traversal_addressesBfset_max_remote_nat_traversal_addressesBhlookup_endpoint_by_domain_name_staggered0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/name/6b0c6e7c34cc.js b/pr/3958/docs/search.index/name/6b0c6e7c34cc.js new file mode 100644 index 0000000000..531a2bea7a --- /dev/null +++ b/pr/3958/docs/search.index/name/6b0c6e7c34cc.js @@ -0,0 +1 @@ +rd_("as00b()b->bBibEqbFnbIdbIo00bIp00bN0bOrb[]b_000beq0000000000000000000000000000000000000000000000000000000000000000000bid0000000bor00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000brtbu8cAckcAndcAnycAppcArccBoxcBufcDircDns0cErr0cKey0cMAX0cMapcNotcOpt0cOrdcPincQadcS2ncTcpcTls000cUdp0cUnicUrlcVeccaddcand0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cbufccmp00000000000000000000cdht00cdircdns00000000cecncf32cf64cfmt0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cget000cgotci32ci64ciosckey000clen000000clogcmapcmincmutcnew000000000000000000000000000000000000000000cnotcnowcrtt00cruncs2n0cstrctagctls00000cttl0ctyp0cu16cu32cu64curl000000dALPN0dArgsdCopydDatadDenydDial0dDropdFromdHashdHttp0dIntodIroh00dItem0dKeysdMetadNAMEdName0dPathdPing00000dPolldPong00dReaddRecv0dSend00dSidedSinkdSyncdUser00000dUtf80000dVZipdZEROdacksdaddr000dalpn00000dbind00dbooldbulkdcall0dcertdcode0dconndcwndddata00ddrop00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dfrom000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dhash000000000000000000dhttp0000dinit00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dinto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dipv4dipv6diroh00diter00dloaddmaindmdns0dmeta00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dname000000000dnextdopendpeek0dpingdpoll000000000dport000dprod0dqlog0dquic00000dread0drr_adsealdsenddsentdside0dsign0dsize00dstop0dttfbdu128dunitdurls0dvzip0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eAlloweAsMuteAsRefeBoxed0eByteseChunkeCloneeCloseeDebugeDerefeError0000000000000000000eFlush0eHttps00eLocalePlaineProto0eQuinn0000eRelay0000eReset0eSerDe0eSizedeSmarteStatseTupleeUnpineValue0eWriteeaddrs0000ealpnseapply0000earrayebuild000000000ebytes00ecertsecleareclone000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eclose000ederef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eempty000eframe0ehooks0ehttpseindexeis_ip00elabel00epaths00epkarr0eprint0equinn0erelay0ereset000eretryerr_nsesliceespawn0000esplitestate00estats0000000estore0etitleetokenetupleeusageeusizeevalueewrite0fAccept0000fAccessfAckEcnfActivefBorrowfBufMutfClient000fClosed0fCompatfConfig0fCryptofCustom0fDecode0fFuturefHandlefHasherfHealth00fIpAddrfLENGTH000fLimitsfLoaderfManual00fNoAlpn0fOpenBifOptionfOutputfPathIdfPolicyfPresetfRecordfReject00fResult000fRouterfRustlsfServer00fSharedfSimplefSource0fStream0000fStringfTypeIdfVarInt0fVerify0faccept0000000faccessfas_dyn00000000000000000000000000000000000000000000000000fas_ref000fas_std00000000000000000000000000000000000000000000000000fborrow000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fchunks00fclient000000fclosed00fcommon0fcompat0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fconfig00fcreatefcrypto000fcustom0000fdecode0000fencode0000fextend0ffinishfgroups0fheaderfignorefinsert00fkeylogflimitsfmemory0fn0_dns00foffsetfon_ack0fonlinefpacketfpreset0fprotos0fpublic0freason0000frefusefrejectfrelays0freloadfremove0fserver000000fsocket0fsource0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fstatus0fstream00fsystem0fto_z3200fudp_rx0fudp_tx0fudp_v4fudp_v6fupdate0fvarintfverify0fwindowgAeadKeygBoxIter0gBuilder00gClientsgCommandgConnect000gContextgCountergDefault00gDisplaygElapsedgExpired0gFromRefgFromStrgInstantgIoSlicegKeyPairgMaxDatagMetrics000gNextFutgOpenUnigPaddinggPathAckgPathBufgPrivategReadBufgRequest0gResolve00gRuntimegServicegSockets0gStaginggStopped0gTimeout0000000gToOwnedgTooLonggTryFromgTryIntogUnknowngUpgrade00gWatchergWrittengaccepts0gbuilder0000000000gclients00gcommand00gcompare0000000000000000gconnect0gdecrypt0gdefault000000000000000000000000000000000000000000000000000000000gdomainsgenabledgencrypt0ghas_udpgip_only0gis_0rtt0gmax_lengmetrics00000000000gmin_mtugon_sent0gopen_bigoriginsgpointergpresets0gproblemgpublish000000greportsgresolve00000000000grr_aaaagrun_s2ngstaging0gstoppedgstreams000000gtag_lengtesting0gtimeoutgto_infogtry_forgtype_id0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gupdatedhAcceptBihAcceptedhAnyErrorhAppStatehBTreeSethBindOptshBytesMuthCertModehCommandshDatagramhDerefMuthDisabled000hDnsError0hDurationhDynClonehEncoding0hEndpoint00hErrorRefhEveryonehHandlers0hHttpSend0hInactivehIncoming0hIpv4AddrhIpv6AddrhIrohAttrhIterablehIteratorhKeyCachehMAX_SIZEhNO_ERRORhNamedApp0hNewTokenhNullablehOrderinghPathInfohProtocol00hRejectedhRelayMap0hRelayUrl00hRemoteId0hResolverhRunError0hStreamIdhTimedOuthToStringhTokenLoghTooLargehTooSmall0hTxtAttrshUdpStatshUserData00hZ32Errorhas_bytes0hcontains0hcontentshdata_dir0hdatagramhdefaults000hdisabled0hdurationhembedded0hendpoint00hexpectedhframe_rxhframe_txhfrom_env0hfrom_err00hfrom_ref0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000hfrom_str0000000hfrom_u32hfrom_u64hfrom_z3200hgenerate0hgot_ping0hgroup_id0hhttp_urlhintervalhinto_anyhinto_std00000000000000000000000000000000000000000000000000hip_addrs000his_alivehis_empty00000his_relay00hlifetimehlocal_iphmainlinehmax_datahnew_pinghopen_unihpriorityhprotocol0hregisterhresolverhrun_irohhshutdown00000000000hssthreshhtimeouts0hto_bytes000hto_owned000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000htry_from000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000htry_into0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000htry_poll0000000huse_ipv6iAcceptUniiAcceptingiAcmeStateiAddrParse0iAlpnError0iAsyncReadiBindError0iBorrowMutiCompatExtiCryptoRngiDatagrams0000iDecodableiDialError0iDnsConfigiDnsServeriEncodableiFormatteriFrameType0iHandshake000iHeaderKeyiHeaderMapiHistogramiJoinError00iLocalAddr0iMaxPathIdiMechanismiNetReportiNoAddress0iNoResults0iNumLabels0000iPacketKeyiPartialEqiPathStatsiPointableiPolicyExtiPublicKey0000iQuicSpawn0iReadError0iRecordSetiRecvError0000iRelayMode0iReloadingiResolvingiSecretKey00iSendError000iSerializeiSignature0iTcpStreamiTickFlush0iTlsConfig0iTryFutureiTryStreamiUtf8ErroriWatchRecv0iWebsocket000iZoneStoreiaccept_biiadd_addrs0iadd_boxediadvertiseiassembleribind_addr00000ibootstrapicert_modeiclient_rxiclone_boxidatagrams00ideref_mut0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ifield_ref00000ifmt_short0iframe_lenifrom_iter000000iglobal_v4iglobal_v6ihandshake0ihas_addrs0ihttp_addr0ihttps_urliin_memoryiinitiatoriinto_0rtt0iinto_addriinto_iter00iiroh_baseiis_clientiis_closed0iis_serverikey_cacheimechanisminew_tokeninoq_protoipath_acksipkarr_urlipoll_next00ipoll_read00iproxy_url00iquic_addrireach_outireferenceirelay_map0irelay_urliremote_id0000irun_quinnirun_untilisend_ipv4isend_ipv6isent_pong0iserialize000000000000000000000000000000iset_alpnsistable_idisubscribeito_string000000000000000000000000000000000000000000000000000000000000000000000000000000000000000itransportittfb_histiuser_data00iwrite_alljAddrFilter00jArgMatchesjAsyncWritejCertConfig0jClientAuthjClientSinkjComparablejConnecting0000jConnection0000000000jControllerjDirectAddrjDiscovered0jDnsHandlerjEndpointId0000jEquivalent0jFrameStatsjHeaderNamejHttpConfigjHttpServerjInfallible00jIntoFuturejInvalidKey000jInvalidUrl0jMAX_LENGTH0jMaybeFramejMetricItemjNoResponse0jNonZeroU32jNotAllowed0jPROVENANCEjPacketSend0jParseError0000000jPartialOrdjPathAckEcnjPkarrError0jPortmappedjQlogConfigjQuicClientjQuicConfigjRELAY_PATHjRecordTypejRecvStreamjRemoteInfojResetErrorjRestarting00jRestrictedjRetryError0jSelfSignedjSendStreamjSerializerjSocketAddrjSpawnError0jStackErrorjStatusCodejSubcommandjSystemTimejTimeSourcejWriteErrorjWriteFrame0jaccept_unijallow_spinjborrow_mut0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jbytes_recv0jbytes_sent0jchunk_sizejchunk_timejclient_keyjclone_into000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcompat_mut0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcompat_ref0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcongestionjconnection00jequivalent00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jerror_code00jframe_type000jfrom_boxedjfrom_bytes00000jfrom_parts000jhttps_addr0jinto_addrsjinto_innerjiroh_benchjiroh_relayjis_allowedjlocal_addr0jlookup_txt00jlost_bytesjn0_watcherjnameserverjnet_reportjno_publishjnum_labels00jonly_relayjpad_to_mtujpcp_probesjpersistentjpoll_close00jpoll_flush0000jpoll_ready00jpoll_write00jportmapperjprefix_lenjprovenance00jread_chunk0jread_exactjrelay_modejrelay_only0jrelay_urls000jremote_mapjsecret_key00jsend_relayjserversidejstart_send00jstart_timejtest_utils0jthroughputjtls_config0jtotal_sizejwatch_addrjwith_addrs0jzone_storekAcceptError000kAccessLimitkCallMeMaybe0kClientHellokClientStatskCloseReasonkCryptoErrorkDataBlockedkDecodeErrorkDeserializekDnsProtocolkDnsResolver0kEmptyPacket000kHandleFrame0kHeaderValuekHttpPayload0kHttpRequest0kHttpServicekHttpsConfigkIdleTimeoutkLetsEncrypt00kLookupError0kMissingHost0kNoLocalAddr000kPathAbandonkPathWatcherkPingTrackerkQlogFactorykRelayConfig00kResetStreamkResolveBoth0kSelfConnect0kStopSendingkStoreConfigkStreamError000000000kStreamStatskUnavailable0kUnspecifiedk__clone_box000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000kaccept_withkadd_addresskas_iterable00000kclear_cache00kcreate_connkcurrent_mtukdefault_soakdefault_ttlkdescriptionkdeserialize000000000000000000000000000000kdisconnects0kdns_handlerkendpoint_id000000kfield_count00000kfmt_message00000000000000000000000000000000000000000000000000khttp_serverkinitial_mtu0kinitial_rttkinitializedkinto_future0000000000kis_requiredkis_selectedkis_shutdownklookup_ipv400klookup_ipv600kmax_path_idkmax_streamskon_end_acks0kon_endpointkpacing_ratekpartial_cmp00000000000000000000kpaths_relaykpkarr_relaykquic_configkread_chunkskread_to_endkrecv_streamkremote_addr00kremote_info0ksample_sizeksend_streamksend_windowktask_handlekupload_sizekupnp_probeskupper_boundkwith_prefixkwrite_chunklAccessConfiglAckFrequencylCertifiedKeylClientConfiglClientStreamlClosedStream00lConnectError0000lConnectionIdlDeserializerlDisconnectedlEndpointAddr00lEndpointData00lEndpointGone0lEndpointInfo00lFromIteratorlImmediateAcklIncomingAddr0lIntoIterablelIntoIteratorlInvalidFrame00lLookupFailed0lManualAccept0lMemoryLookuplMetricsGrouplPathInfoListlPathResponselPathsBlockedlProxyConnect0lReadDatagramlRelayMetrics0lRelayService0lResolveErrorlRttEstimatorlSendDatagramlServerConfig00lSignedPacketlStoppedErrorlTlsHandshake0lToSocketAddrlaugment_args0lauthorize_iflcertificateslclose_reasonlconservativeldata_blockedldns_requestsldns_resolver00000lfrom_err_anylfrom_err_box0linsert_relaylis_connected0llast_updated0llost_packetslmetrics_addrlon_accepting000lpath_abandonlpath_watcherlpaths_directlping_trackerlpoll_updated0lqlog_factorylreconnect_inlrelay_configlremove_relaylreports_fulllreset_streamlresolve_host0lsegment_sizelservice_namelset_prioritylstop_sendinglstream_statslwith_ip_addr0lwrite_chunksmAddressLookup0000mAlreadyClosedmCaRootsConfig0mCidsExhausted0mClientBuildermCloneToUninitmDecodingError00000000mEncodingError000mEndpointError0mEndpointHooksmEndpointIdExt0mFinishedEarlymForwardPacket000mFrameTooLarge0mHandleDropped0mHandshakeDonemINVALID_TOKENmIROH_TXT_NAME0mInvalidLength000mInvalidPrefix0mLocallyClosedmMaxStreamDatamMaxStreamsUnimMetricsConfigmPathChallengemPkarrResolvermPrivateKeyDermQad4LocalPortmQlogFileGroupmRelayedStreammRemoveAddressmRouterBuildermSocketMetricsmTaskCancelled0mTransportAddr00mTxtRecordDatamUnexpectedEnd0000mZeroRttStatusmack_frequencymbound_socketsmclient_config0mdownload_sizemduration_histmempty_buildermendpoint_addrmendpoint_info00000mfrom_servicesmgroups_cloned0mhttp_requestsmimmediate_ackminto_incomingmmax_ack_delaymobserved_addrmon_mtu_updatempath_responsempaths_blockedmpcp_availablempeer_identitympoll_read_bufmpoll_shutdown0mpong_receivedmqlog_from_envmrate_limitingmread_datagrammrelay_latencymselected_pathmsend_datagrammsend_fairnessmsend_responsemserver_config00mset_token_keymset_user_data0mtake_segmentsmtry_from_iter0mtry_poll_next00mtry_to_string000000000000000000000000000000000000000000000000000000000000000000000000000000000mwith_ip_addrs000mwrite_timeoutnAddIpv4AddressnAddIpv6AddressnAddrParseErrornAttrFromString0000nBufferNotEmpty0nCertificateDernCommandFactorynConnectOptionsnConnectionInfonConnectionLost0000nCryptoProvidernDirectAddrTypenDiscoveryEvent0nDnsPkarrServernEndpointClosed0000nFrameTypeError00000nFromArgMatchesnINTERNAL_ERRORnInitializedFutnInvalidDNSNamenMainlineConfignMaxStreamsBidinMaybeTlsStreamnN0DisableRelaynNO_VIABLE_PATHnPayloadTooLong0nPkarrPublishernPortmapMetricsnPrefixLenErrornPublicKeyErrornReachOutAtIpv4nReachOutAtIpv6nReadExactErrornReadToEndErrornRequestHandlernSignatureError00nSimpleDnsErrornStaggeredErrornTlsHeaderParse0nTransferResultnTransportError0nactor_tick_msgnaddress_lookup000naead_from_hkdfnanswer_requestnavg_chunk_sizenbefore_connect0ncaptive_portalnclear_ip_addrs0nclient_handlernconnect_client0nexpected_typesnfiltered_addrs0nfor_connection0nhandle_requestnhandshake_data00nhandshake_donenhas_subcommandnhttp_bind_addrninitial_windowninto_unorderednis_transparent00000000000000000000000000000000000000000000000000nkey_from_slicenminimum_changennetwork_changenpath_challengenprobes_startednproxy_from_envnproxy_hostnamenqlog_from_pathnquic_bind_addrnread_unorderednreceive_windownreceived_reset0nrecv_data_ipv4nrecv_data_ipv6nrecv_datagramsnremove_addressnrun_until_done0nsaturating_add0nsaturating_subnset_prefix_lennthroughput_bpsntime_thresholdnto_socket_addrnto_txt_strings0ntotal_durationnunknown_frames0nupnp_availablenwith_relay_url00000nwith_user_data000oBindTcpListener0oBindTlsListener0oBootstrapOptionoBytesStreamSinkoClientRateLimitoConnectingError0oConnectionClose0oConnectionError00000oConnectionStateoConnectionStatsoDowncastUpgrade0oEndpointMetricsoIncomingZeroRttoInvalidRelayUrl000oInvalidResponse0oInvalidTxtEntry000oKeyParsingError0000oLocallyRejected000oMAX_PACKET_SIZE0oMessageResponseoMetricsGroupSetoNewConnectionIdoNoUriConfiguredoNotAnIrohRecord0000oOutgoingZeroRttoPathCidsBlockedoProtocolHandleroProxyInvalidUrl0oQlogFileFactoryoRateLimitConfigoRelayQuicConfigoResponseHandleroServeConnection0oServerChallengeoSignedChallengeoSupervisorError0oTokenReuseErroroTransportConfigoTryReserveErroroUnexpectedFrame0oVersionMismatchoWriteFrameError0oZeroRttRejected000oactor_tick_mainoafter_handshake0oca_roots_configoclone_to_uninit000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000odefault_timeoutodst_endpoint_idoendpoint_originofrom_txt_lookup0ohttps_bind_addrointegrity_limitoiroh_dns_serveromax_burst_bytesomax_stream_dataomax_streams_uniomax_tls_ticketsopreferred_relayorecv_data_relayorepublish_delayorun_until_errororun_with_originoserver_endpoint0oset_addr_filter00oset_is_requiredoset_time_sourceostream_finishedothroughput_histowith_nameserver00owith_provenanceA`ApplicationClose0A`CleanupDropGuardA`ClientToRelayMsg0A`ConnectionClosedA`DhtAddressLookupA`DisallowedHeaderA`DnsAddressLookupA`EndpointSelectorA`EndpointStoppingA`FINAL_SIZE_ERRORA`HandleFrameError0A`HandshakeFailure0A`InvalidFrameType0A`InvalidPublicKey0A`KEY_UPDATE_ERRORA`NetReportMetricsA`ObservedIpv4AddrA`ObservedIpv6AddrA`PathInfoListIterA`PathStatusBackupA`PkarrRelayClientA`QuicConnectErrorA`RELAY_PROBE_PATHA`RelayToClientMsg0A`ServerDeniedAuth0A`ServerDeniesAuthA`StreamTerminated0A`ToStringFallibleA`TryFromPrimitiveA`UnexpectedFormat0000A`UnknownFrameType0A`UnknownHandshake0A`actor_tick_otherA`bytes_per_secondA`channel_capacityA`check_and_insertA`clear_relay_urls0A`congestion_stateA`connection_closeA`default_ap_relayA`default_eu_relay0A`default_provider0A`dns_lookup_errorA`dns_requests_udpA`from_arg_matches00A`is_default_routeA`letsencrypt_prodA`lookup_ipv4_ipv60A`mapping_attemptsA`mapping_failuresA`max_idle_timeoutA`max_streams_bidiA`num_conns_closedA`num_conns_directA`num_conns_openedA`packet_thresholdA`run_relay_serverA`set_dns_resolverA`set_max_incomingA`to_endpoint_addr00A`transport_config00A`with_addr_filter000000000000A`with_extra_roots0A`with_nameserversA`write_all_chunksAaAPPLICATION_ERRORAaAP_RELAY_HOSTNAMEAaAbortOnDropHandleAaApplicationClosedAaCannotResolveHostAaControllerFactoryAaControllerMetricsAaDEFAULT_HTTP_PORT0AaDEFAULT_PKARR_TTLAaEU_RELAY_HOSTNAME0AaHandshakeTokenKeyAaInvalidServerNameAaInvalidSocketAddr0AaInvalidTargetPort0AaLetsEncryptAccept0AaMdnsAddressLookupAaReloadingResolverAaSendDatagramErrorAaSignedKeyMaterialAaStreamDataBlockedAaStreamsBlockedUniAaTransportAddrInfoAaUnsupportedByPeerAaUnsupportedSchemeAaaccept_conn_burstAaaccept_conn_limitAaactor_link_changeAaadd_endpoint_infoAacollect_and_printAacongestion_eventsAacongestion_windowAaconnect_with_optsAadefault_relay_map0Aaget_endpoint_infoAaget_signed_packetAahandle_connectionAais_write_vectoredAamax_datagram_sizeAanew_connection_idAapath_cids_blockedAarelay_home_changeAasend_packets_recv0Aasend_packets_sent0Aaset_endpoint_infoAatls_client_config0AbAEAD_LIMIT_REACHEDAbAckFrequencyConfigAbCLIENT_AUTH_HEADERAbCONNECTION_REFUSEDAbConnectionSelectorAbCreateQuicEndpoint0AbDEFAULT_HTTPS_PORT0AbDynProtocolHandlerAbFLOW_CONTROL_ERRORAbForwardPacketErrorAbHandshakeCompletedAbInvalidEncodingZ32000AbInvalidHeaderValueAbMtuDiscoveryConfigAbNET_REPORT_TIMEOUTAbPROTOCOL_VIOLATIONAbRelayUrlParseError00AbResolvesServerCertAbRetireConnectionIdAbSTREAM_LIMIT_ERRORAbSTREAM_STATE_ERRORAbServerCertVerifierAbServerConfirmsAuthAbStreamsBlockedBidiAbTransportAddrUsageAbTransportErrorCodeAbUnsupportedVersion0Abactor_tick_re_stunAbcommand_for_update00Abcrypto_buffer_sizeAbdefault_relay_modeAbdns_lookup_successAbdns_requests_httpsAbfrom_endpoint_infoAbfrom_u64_uncheckedAbholepunch_attemptsAbinto_endpoint_addr00Abkey_cache_capacity0Ablocal_port_updatesAbn0_dns_pkarr_relayAbother_packets_recv0Abother_packets_sent0Abpath_status_backupAbpkarr_publish_noopAbrecv_gro_datagramsAbremote_endpoint_idAbrepublish_intervalAbsend_datagram_waitAbset_receive_windowAbtry_from_primitiveAbunique_client_keys0Abupnp_probes_failedAbwith_start_instantAcALPN_QUIC_ADDR_DISCAcAuthenticationError0AcCreateNetmonMonitor0AcDecodeInvalidLength000AcInvalidBucketConfigAcInvalidCaRootConfig0AcInvalidWebsocketUrl0AcNoServiceConfigured0AcPathNewConnectionIdAcPathStatusAvailableAcQuicTransportConfig0AcServerConfigBuilderAcTransportParametersAcUnexpectedFrameType0AcUnorderedRecvStreamAcaugment_subcommandsAcbind_addr_with_optsAcblack_hole_cooldownAcclear_ip_transportsAcdns_lookup_notfoundAcforce_staging_infraAchandshake_completed0Achttp_requests_errorAcinto_address_lookup000000000000Ackeep_alive_intervalAcletsencrypt_contactAclost_plpmtud_probesAcon_congestion_eventAcpoll_write_vectoredAcsent_plpmtud_probesAcstream_data_blockedAcstream_updates_onlyAcstreams_blocked_uniAcupdate_direct_addrsAdAddressLookupBuilderAdBeforeConnectOutcomeAdConnectWithOptsError0AdDEFAULT_METRICS_PORT0AdDeserializationError0AdDuplicateDefaultAddr0AdExceedsMaxPacketSize000AdExportKeyingMaterialAdFRAME_ENCODING_ERRORAdFailedBuildingPacket000AdInvalidRemoteAddressAdInvalidTlsServername0AdPkarrResolverBuilderAdSERVER_WRITE_TIMEOUTAdServeConnectionError0AdVarIntBoundsExceededAdack_frequency_configAdblack_holes_detectedAdclear_address_lookupAdfrom_arg_matches_mut00Adhandle_client_stream0Adinsecure_skip_verify0Admtu_discovery_configAdpkarr_publish_updateAdpkarr_put_rate_limitAdremove_endpoint_infoAdreordering_thresholdAdretire_connection_idAdsend_packets_dropped0Adserver_cert_verifier0Adset_is_default_routeAdset_transport_configAdstreams_blocked_bidiAdtransport_parametersAdupdate_endpoint_dataAdupnp_gateway_updatedAdwith_system_defaultsAeAfterHandshakeOutcome0AeClientToRelayDatagramAeNoDefaultClientConfigAePATH_UNSTABLE_OR_POORAePkarrPublisherBuilderAeRelayToClientDatagramAeRemoteEndpointIdErrorAeTryFromPrimitiveErrorAeValidationTokenConfigAeconfidentiality_limitAedefault_na_east_relay0Aedefault_na_west_relayAedns_and_pkarr_serversAehttp_requests_successAelookup_endpoint_by_id0Aelookup_ipv4_staggered0Aelookup_ipv6_staggered0Aeother_packets_dropped0Aepath_status_availableAeremote_addr_validatedAerun_relay_server_withAestore_packets_expiredAestore_packets_removedAestore_packets_updatedAestream_receive_windowAewith_additional_alpnsAewith_transport_configAfCRYPTO_BUFFER_EXCEEDEDAfConnectionHandlerError0AfInvalidTransportConfig0AfMaxLengthExceededError0AfNA_EAST_RELAY_HOSTNAME0AfNA_WEST_RELAY_HOSTNAMEAfNoRelayServicesEnabled0AfPathRetireConnectionIdAfProxyInvalidTargetPort0AfRELAY_PROTOCOL_VERSIONAfSignedPacketBuildErrorAfclear_relay_transportsAfexport_keying_material00Afmapping_varies_by_destAfpath_new_connection_idAfstore_packets_insertedAfto_pkarr_signed_packet0Afwith_mainline_fallbackAgAcmeEventStreamFinished0AgClientAuthHeaderInvalid0AgConcurrentAddressLookupAgDEFAULT_RELAY_QUIC_PORT0AgDnsAddressLookupBuilderAgMissingRemoteEndpointId0AgN0_DNS_PKARR_RELAY_PRODAgPkarrRelayClientBuilderAgSignedPacketVerifyErrorAgUnexpectedUpgradeStatus0Agack_eliciting_thresholdAgaddress_family_selectorAgaugment_args_for_update0Agupdate_from_arg_matches00AhAPPLICATION_ABANDON_PATHAhENV_FORCE_STAGING_RELAYSAhInternalConsistencyError000AhMdnsAddressLookupBuilderAhSuccessfulAuthenticationAhexternal_address_updatedAhfrom_pkarr_signed_packet0Ahset_incoming_buffer_sizeAhset_retry_token_lifetimeAhsigned_packet_store_pathAhtransport_ip_paths_addedAiAddressLookupBuilderError0AiCONNECTION_ID_LIMIT_ERRORAiExportKeyingMaterialErrorAiIncomingZeroRttConnection0AiNO_CID_AVAILABLE_FOR_PATHAiOutgoingZeroRttConnection0AiProxyConnectInvalidStatus0AiProxyInvalidTlsServername0AiQUIC_ADDR_DISC_CLOSE_CODEAiRateLimitingMisconfigured0AiTRANSPORT_PARAMETER_ERRORAidatagram_send_buffer_sizeAihttp_requests_duration_msAipath_retire_connection_idAjClientToRelayDatagramBatchAjDEFAULT_KEY_CACHE_CAPACITYAjDEFAULT_REPUBLISH_INTERVALAjN0_DNS_PKARR_RELAY_STAGINGAjQuicTransportConfigBuilderAjRelayToClientDatagramBatchAjactor_tick_portmap_changedAjbytes_rx_ratelimited_total0Ajconns_rx_ratelimited_total0Ajdatagram_send_buffer_spaceAjlookup_ipv4_ipv6_staggered0Ajmax_concurrent_uni_streamsAjtransport_ip_paths_removedAkN0_DNS_ENDPOINT_ORIGIN_PROD00AkPATH_RESOURCE_LIMIT_REACHEDAkPER_CLIENT_SEND_QUEUE_DEPTHAkQUIC_ADDR_DISC_CLOSE_REASONAkenable_segmentation_offloadAkmapping_varies_by_dest_ipv4Akmapping_varies_by_dest_ipv6Akmax_concurrent_bidi_streamsAkset_validation_token_configAktransport_relay_paths_addedAkupdate_from_arg_matches_mut00AlDEFAULT_CERT_RELOAD_INTERVALAlconfigure_tracing_subscriberAlcreate_server_config_builderAldatagram_receive_buffer_sizeAlmake_dangerous_client_configAlon_spurious_congestion_event0Alrun_with_config_until_ctrl_cAluser_data_for_address_lookupAmcongestion_controller_factoryAmdefault_path_max_idle_timeoutAmsend_observed_address_reportsAmset_max_concurrent_bi_streamsAmtransport_relay_paths_removedAnInvalidProtocolMessageEncoding0AnN0_DNS_ENDPOINT_ORIGIN_STAGING00Anaugment_subcommands_for_updateAnlookup_endpoint_by_domain_name0Anmax_concurrent_multipath_pathsAnset_incoming_buffer_size_totalAnset_max_concurrent_uni_streamsAolookup_endpoint_by_id_staggered0Aopersistent_congestion_thresholdB`actor_tick_direct_addr_heartbeatB`default_path_keep_alive_intervalB`receive_observed_address_reportsB`self_signed_tls_certs_and_configB`set_user_data_for_address_lookupBbmax_remote_nat_traversal_addressesBfset_max_remote_nat_traversal_addressesBhlookup_endpoint_by_domain_name_staggered0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/normalizedName/1bda9924d91d.js b/pr/3958/docs/search.index/normalizedName/1bda9924d91d.js new file mode 100644 index 0000000000..a3441e8d3c --- /dev/null +++ b/pr/3958/docs/search.index/normalizedName/1bda9924d91d.js @@ -0,0 +1 @@ +rd_("as00b()b->bbibeqbfnbidbio00bip00bn0borb[]a0008888888888888888888888888888888888888888888888888888888888888888888866666666222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222brtbu8cackcandcanycappcarccboxcbufcdircdns0cerr0ckey0cmax0cmapcnotcopt0cordcpincqadcs2nctcpctls000cudp0cunicurlcveccaddcand0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cbufccmp00000000000000000000cdht00cdircdns00000000cecncf32cf64cfmt0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cget000cgotci32ci64ciosckey000clen000000clogcmapcmincmutcnew000000000000000000000000000000000000000000cnotcnowcrtt00cruncs2n0cstrctagctls00000cttl0ctyp0cu16cu32cu64curl000000dalpn0dargsdcopyddataddenyddial0ddropdfromdhashdhttp0dintodiroh00ditem0dkeysdmetadname00dpathdping00000dpolldpong00dreaddrecv0dsend00dsidedsinkdsyncduser00000dutf80000dvzipdzerodacksdaddr000dalpn00000dbind00dbooldbulkdcall0dcertdcode0dconndcwndddata00ddrop00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dfrom000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dhash000000000000000000dhttp0000dinit00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dinto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dipv4dipv6diroh00diter00dloaddmaindmdns0dmeta00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dname000000000dnextdopendpeek0dpingdpoll000000000dport000dprod0dqlog0dquic00000dread0crradsealdsenddsentdside0dsign0dsize00dstop0dttfbdu128dunitdurls0dvzip0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ealloweasmuteasrefeboxed0ebytesechunkecloneecloseedebugederefeerror0000000000000000000eflush0ehttps00elocaleplaineproto0equinn0000erelay0000ereset0eserde0esizedesmartestatsetupleeunpinevalue0ewriteeaddrs0000ealpnseapply0000earrayebuild000000000ebytes00ecertsecleareclone000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eclose000ederef0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eempty000eframe0ehooks0ehttpseindexdisip00elabel00epaths00epkarr0eprint0equinn0erelay0ereset000eretrydrrnsesliceespawn0000esplitestate00estats0000000estore0etitleetokenetupleeusageeusizeevalueewrite0faccept0000faccessfackecnfactivefborrowfbufmutfclient000fclosed0fcompatfconfig0fcryptofcustom0fdecode0ffuturefhandlefhasherfhealth00fipaddrflength000flimitsfloaderfmanual00fnoalpn0fopenbifoptionfoutputfpathidfpolicyfpresetfrecordfreject00fresult000frouterfrustlsfserver00fsharedfsimplefsource0fstream0000fstringftypeidfvarint0fverify0faccept0000000faccesseasdyn00000000000000000000000000000000000000000000000000easref000easstd00000000000000000000000000000000000000000000000000fborrow000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fchunks00fclient000000fclosed00fcommon0fcompat0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fconfig00fcreatefcrypto000fcustom0000fdecode0000fencode0000fextend0ffinishfgroups0fheaderfignorefinsert00fkeylogflimitsfmemory0en0dns00foffseteonack0fonlinefpacketfpreset0fprotos0fpublic0freason0000frefusefrejectfrelays0freloadfremove0fserver000000fsocket0fsource0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fstatus0fstream00fsystem0etoz3200eudprx0eudptx0eudpv4eudpv6fupdate0fvarintfverify0fwindowgaeadkeygboxiter0gbuilder00gclientsgcommandgconnect000gcontextgcountergdefault00gdisplaygelapsedgexpired0gfromrefgfromstrginstantgioslicegkeypairgmaxdatagmetrics000gnextfutgopenunigpaddinggpathackgpathbufgprivategreadbufgrequest0gresolve00gruntimegservicegsockets0gstaginggstopped0gtimeout0000000gtoownedgtoolonggtryfromgtryintogunknowngupgrade00gwatchergwrittengaccepts0gbuilder0000000000gclients00gcommand00gcompare0000000000000000gconnect0gdecrypt0gdefault000000000000000000000000000000000000000000000000000000000gdomainsgenabledgencrypt0fhasudpfiponly0fis0rtt0fmaxlengmetrics00000000000fminmtufonsent0fopenbigoriginsgpointergpresets0gproblemgpublish000000greportsgresolve00000000000frraaaafruns2ngstaging0gstoppedgstreams000000ftaglengtesting0gtimeoutftoinfoftryforftypeid0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gupdatedhacceptbihacceptedhanyerrorhappstatehbtreesethbindoptshbytesmuthcertmodehcommandshdatagramhderefmuthdisabled000hdnserror0hdurationhdynclonehencoding0hendpoint00herrorrefheveryonehhandlers0hhttpsend0hinactivehincoming0hipv4addrhipv6addrhirohattrhiterablehiteratorhkeycachegmaxsizegnoerrorhnamedapp0hnewtokenhnullablehorderinghpathinfohprotocol00hrejectedhrelaymap0hrelayurl00hremoteid0hresolverhrunerror0hstreamidhtimedouthtostringhtokenloghtoolargehtoosmall0htxtattrshudpstatshuserdata00hz32errorgasbytes0hcontains0hcontentsgdatadir0hdatagramhdefaults000hdisabled0hdurationhembedded0hendpoint00hexpectedgframerxgframetxgfromenv0gfromerr00gfromref0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gfromstr0000000gfromu32gfromu64gfromz3200hgenerate0ggotping0ggroupid0ghttpurlhintervalgintoanygintostd00000000000000000000000000000000000000000000000000gipaddrs000gisalivegisempty00000gisrelay00hlifetimeglocaliphmainlinegmaxdatagnewpinggopenunihpriorityhprotocol0hregisterhresolvergrunirohhshutdown00000000000hssthreshhtimeouts0gtobytes000gtoowned000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gtryfrom000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gtryinto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gtrypoll0000000guseipv6iacceptuniiacceptingiacmestateiaddrparse0ialpnerror0iasyncreadibinderror0iborrowmuticompatexticryptorngidatagrams0000idecodableidialerror0idnsconfigidnsserveriencodableiformatteriframetype0ihandshake000iheaderkeyiheadermapihistogramijoinerror00ilocaladdr0imaxpathidimechanisminetreportinoaddress0inoresults0inumlabels0000ipacketkeyipartialeqipathstatsipointableipolicyextipublickey0000iquicspawn0ireaderror0irecordsetirecverror0000irelaymode0ireloadingiresolvingisecretkey00isenderror000iserializeisignature0itcpstreamitickflush0itlsconfig0itryfutureitrystreamiutf8erroriwatchrecv0iwebsocket000izonestorehacceptbihaddaddrs0haddboxediadvertiseiassemblerhbindaddr00000ibootstraphcertmodehclientrxhcloneboxidatagrams00hderefmut0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000hfieldref00000hfmtshort0hframelenhfromiter000000hglobalv4hglobalv6ihandshake0hhasaddrs0hhttpaddr0hhttpsurlhinmemoryiinitiatorhinto0rtt0hintoaddrhintoiter00hirohbasehisclienthisclosed0hisserverhkeycacheimechanismhnewtokenhnoqprotohpathackshpkarrurlhpollnext00hpollread00hproxyurl00hquicaddrhreachoutireferencehrelaymap0hrelayurlhremoteid0000hrunquinnhrununtilhsendipv4hsendipv6hsentpong0iserialize000000000000000000000000000000hsetalpnshstableidisubscribehtostring000000000000000000000000000000000000000000000000000000000000000000000000000000000000000itransporthttfbhisthuserdata00hwritealljaddrfilter00jargmatchesjasyncwritejcertconfig0jclientauthjclientsinkjcomparablejconnecting0000jconnection0000000000jcontrollerjdirectaddrjdiscovered0jdnshandlerjendpointid0000jequivalent0jframestatsjheadernamejhttpconfigjhttpserverjinfallible00jintofuturejinvalidkey000jinvalidurl0imaxlength0jmaybeframejmetricitemjnoresponse0jnonzerou32jnotallowed0jprovenancejpacketsend0jparseerror0000000jpartialordjpathackecnjpkarrerror0jportmappedjqlogconfigjquicclientjquicconfigirelaypathjrecordtypejrecvstreamjremoteinfojreseterrorjrestarting00jrestrictedjretryerror0jselfsignedjsendstreamjserializerjsocketaddrjspawnerror0jstackerrorjstatuscodejsubcommandjsystemtimejtimesourcejwriteerrorjwriteframe0iacceptuniiallowspiniborrowmut0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ibytesrecv0ibytessent0ichunksizeichunktimeiclientkeyicloneinto000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000icompatmut0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000icompatref0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcongestionjconnection00jequivalent00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ierrorcode00iframetype000ifromboxedifrombytes00000ifromparts000ihttpsaddr0iintoaddrsiintoinneriirohbenchiirohrelayiisallowedilocaladdr0ilookuptxt00ilostbytesin0watcherjnameserverinetreportinopublishinumlabels00ionlyrelayhpadtomtuipcpprobesjpersistentipollclose00ipollflush0000ipollready00ipollwrite00jportmapperiprefixlenjprovenance00ireadchunk0ireadexactirelaymodeirelayonly0irelayurls000iremotemapisecretkey00isendrelayjserversideistartsend00istarttimeitestutils0jthroughputitlsconfig0itotalsizeiwatchaddriwithaddrs0izonestorekaccepterror000kaccesslimitkcallmemaybe0kclienthellokclientstatskclosereasonkcryptoerrorkdatablockedkdecodeerrorkdeserializekdnsprotocolkdnsresolver0kemptypacket000khandleframe0kheadervaluekhttppayload0khttprequest0khttpservicekhttpsconfigkidletimeoutkletsencrypt00klookuperror0kmissinghost0knolocaladdr000kpathabandonkpathwatcherkpingtrackerkqlogfactorykrelayconfig00kresetstreamkresolveboth0kselfconnect0kstopsendingkstoreconfigkstreamerror000000000kstreamstatskunavailable0kunspecifiedhclonebox000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jacceptwithjaddaddressjasiterable00000jclearcache00jcreateconnjcurrentmtujdefaultsoajdefaultttlkdescriptionkdeserialize000000000000000000000000000000kdisconnects0jdnshandlerjendpointid000000jfieldcount00000jfmtmessage00000000000000000000000000000000000000000000000000jhttpserverjinitialmtu0jinitialrttkinitializedjintofuture0000000000jisrequiredjisselectedjisshutdownjlookupipv400jlookupipv600imaxpathidjmaxstreamsionendacks0jonendpointjpacingratejpartialcmp00000000000000000000jpathsrelayjpkarrrelayjquicconfigjreadchunksireadtoendjrecvstreamjremoteaddr00jremoteinfo0jsamplesizejsendstreamjsendwindowjtaskhandlejuploadsizejupnpprobesjupperboundjwithprefixjwritechunklaccessconfiglackfrequencylcertifiedkeylclientconfiglclientstreamlclosedstream00lconnecterror0000lconnectionidldeserializerldisconnectedlendpointaddr00lendpointdata00lendpointgone0lendpointinfo00lfromiteratorlimmediateacklincomingaddr0lintoiterablelintoiteratorlinvalidframe00llookupfailed0lmanualaccept0lmemorylookuplmetricsgrouplpathinfolistlpathresponselpathsblockedlproxyconnect0lreaddatagramlrelaymetrics0lrelayservice0lresolveerrorlrttestimatorlsenddatagramlserverconfig00lsignedpacketlstoppederrorltlshandshake0ltosocketaddrkaugmentargs0kauthorizeiflcertificateskclosereasonlconservativekdatablockedkdnsrequestskdnsresolver00000jfromerranyjfromerrbox0kinsertrelaykisconnected0klastupdated0klostpacketskmetricsaddrkonaccepting000kpathabandonkpathwatcherkpathsdirectkpingtrackerkpollupdated0kqlogfactorykreconnectinkrelayconfigkremoverelaykreportsfullkresetstreamkresolvehost0ksegmentsizekservicenameksetprioritykstopsendingkstreamstatsjwithipaddr0kwritechunksmaddresslookup0000malreadyclosedmcarootsconfig0mcidsexhausted0mclientbuildermclonetouninitmdecodingerror00000000mencodingerror000mendpointerror0mendpointhooksmendpointidext0mfinishedearlymforwardpacket000mframetoolarge0mhandledropped0mhandshakedonelinvalidtokenkirohtxtname0minvalidlength000minvalidprefix0mlocallyclosedmmaxstreamdatammaxstreamsunimmetricsconfigmpathchallengempkarrresolvermprivatekeydermqad4localportmqlogfilegroupmrelayedstreammremoveaddressmrouterbuildermsocketmetricsmtaskcancelled0mtransportaddr00mtxtrecorddatamunexpectedend0000mzerorttstatuslackfrequencylboundsocketslclientconfig0ldownloadsizeldurationhistlemptybuilderlendpointaddrlendpointinfo00000lfromserviceslgroupscloned0lhttprequestslimmediateacklintoincomingkmaxackdelaylobservedaddrkonmtuupdatelpathresponselpathsblockedlpcpavailablelpeeridentitykpollreadbuflpollshutdown0lpongreceivedkqlogfromenvlratelimitinglreaddatagramlrelaylatencylselectedpathlsenddatagramlsendfairnesslsendresponselserverconfig00ksettokenkeyksetuserdata0ltakesegmentsktryfromiter0ktrypollnext00ktrytostring000000000000000000000000000000000000000000000000000000000000000000000000000000000kwithipaddrs000lwritetimeoutnaddipv4addressnaddipv6addressnaddrparseerrornattrfromstring0000nbuffernotempty0ncertificatederncommandfactorynconnectoptionsnconnectioninfonconnectionlost0000ncryptoproviderndirectaddrtypendiscoveryevent0ndnspkarrservernendpointclosed0000nframetypeerror00000nfromargmatchesminternalerrorninitializedfutninvaliddnsnamenmainlineconfignmaxstreamsbidinmaybetlsstreamnn0disablerelaylnoviablepathnpayloadtoolong0npkarrpublishernportmapmetricsnprefixlenerrornpublickeyerrornreachoutatipv4nreachoutatipv6nreadexacterrornreadtoenderrornrequesthandlernsignatureerror00nsimplednserrornstaggerederrorntlsheaderparse0ntransferresultntransporterror0lactortickmsgmaddresslookup000laeadfromhkdfmanswerrequestlavgchunksizembeforeconnect0mcaptiveportallclearipaddrs0mclienthandlermconnectclient0mexpectedtypesmfilteredaddrs0mforconnection0mhandlerequestmhandshakedata00mhandshakedonemhassubcommandlhttpbindaddrminitialwindowmintounorderedmistransparent00000000000000000000000000000000000000000000000000lkeyfromslicemminimumchangemnetworkchangempathchallengemprobesstartedlproxyfromenvmproxyhostnamelqlogfrompathlquicbindaddrmreadunorderedmreceivewindowmreceivedreset0lrecvdataipv4lrecvdataipv6mrecvdatagramsmremoveaddresslrununtildone0msaturatingadd0msaturatingsublsetprefixlenmthroughputbpsmtimethresholdltosocketaddrltotxtstrings0mtotaldurationmunknownframes0mupnpavailablelwithrelayurl00000lwithuserdata000obindtcplistener0obindtlslistener0obootstrapoptionobytesstreamsinkoclientratelimitoconnectingerror0oconnectionclose0oconnectionerror00000oconnectionstateoconnectionstatsodowncastupgrade0oendpointmetricsoincomingzerorttoinvalidrelayurl000oinvalidresponse0oinvalidtxtentry000okeyparsingerror0000olocallyrejected000mmaxpacketsize0omessageresponseometricsgroupsetonewconnectionidonouriconfiguredonotanirohrecord0000ooutgoingzerorttopathcidsblockedoprotocolhandleroproxyinvalidurl0oqlogfilefactoryoratelimitconfigorelayquicconfigoresponsehandleroserveconnection0oserverchallengeosignedchallengeosupervisorerror0otokenreuseerrorotransportconfigotryreserveerrorounexpectedframe0oversionmismatchowriteframeerror0ozerorttrejected000mactortickmainnafterhandshake0mcarootsconfigmclonetouninit000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ndefaulttimeoutmdstendpointidnendpointoriginmfromtxtlookup0mhttpsbindaddrnintegritylimitmirohdnsservermmaxburstbytesmmaxstreamdatammaxstreamsunimmaxtlsticketsnpreferredrelaymrecvdatarelaynrepublishdelaymrununtilerrormrunwithoriginnserverendpoint0msetaddrfilter00msetisrequiredmsettimesourcenstreamfinishednthroughputhistnwithnameserver00nwithprovenanceA`applicationclose0A`cleanupdropguardA`clienttorelaymsg0A`connectionclosedA`dhtaddresslookupA`disallowedheaderA`dnsaddresslookupA`endpointselectorA`endpointstoppingnfinalsizeerrorA`handleframeerror0A`handshakefailure0A`invalidframetype0A`invalidpublickey0nkeyupdateerrorA`netreportmetricsA`observedipv4addrA`observedipv6addrA`pathinfolistiterA`pathstatusbackupA`pkarrrelayclientA`quicconnecterrornrelayprobepathA`relaytoclientmsg0A`serverdeniedauth0A`serverdeniesauthA`streamterminated0A`tostringfallibleA`tryfromprimitiveA`unexpectedformat0000A`unknownframetype0A`unknownhandshake0nactortickothernbytespersecondochannelcapacityncheckandinsertnclearrelayurls0ocongestionstateoconnectionclosendefaultaprelayndefaulteurelay0odefaultprovider0ndnslookuperrorndnsrequestsudpnfromargmatches00nisdefaultrouteoletsencryptprodnlookupipv4ipv60omappingattemptsomappingfailuresnmaxidletimeoutnmaxstreamsbidinnumconnsclosednnumconnsdirectnnumconnsopenedopacketthresholdnrunrelayservernsetdnsresolvernsetmaxincomingntoendpointaddr00otransportconfig00nwithaddrfilter000000000000nwithextraroots0owithnameserversnwriteallchunksA`applicationerroroaprelayhostnameAaabortondrophandleAaapplicationclosedAacannotresolvehostAacontrollerfactoryAacontrollermetricsodefaulthttpport0odefaultpkarrttloeurelayhostname0AahandshaketokenkeyAainvalidservernameAainvalidsocketaddr0Aainvalidtargetport0Aaletsencryptaccept0AamdnsaddresslookupAareloadingresolverAasenddatagramerrorAasignedkeymaterialAastreamdatablockedAastreamsblockeduniAatransportaddrinfoAaunsupportedbypeerAaunsupportedschemeoacceptconnburstoacceptconnlimitoactorlinkchangeoaddendpointinfoocollectandprintA`congestioneventsA`congestionwindowoconnectwithoptsodefaultrelaymap0ogetendpointinfoogetsignedpacketA`handleconnectionoiswritevectoredomaxdatagramsizeonewconnectionidopathcidsblockedorelayhomechangeosendpacketsrecv0osendpacketssent0osetendpointinfootlsclientconfig0A`aeadlimitreachedAbackfrequencyconfigA`clientauthheaderAaconnectionrefusedAbconnectionselectorAbcreatequicendpoint0A`defaulthttpsport0AbdynprotocolhandlerA`flowcontrolerrorAbforwardpacketerrorAbhandshakecompletedAbinvalidencodingz32000AbinvalidheadervalueAbmtudiscoveryconfigA`netreporttimeoutAaprotocolviolationAbrelayurlparseerror00AbresolvesservercertAbretireconnectionidA`streamlimiterrorA`streamstateerrorAbservercertverifierAbserverconfirmsauthAbstreamsblockedbidiAbtransportaddrusageAbtransporterrorcodeAbunsupportedversion0oactortickrestunA`commandforupdate00A`cryptobuffersizeA`defaultrelaymodeA`dnslookupsuccessA`dnsrequestshttpsA`fromendpointinfoA`fromu64uncheckedAaholepunchattemptsA`intoendpointaddr00A`keycachecapacity0A`localportupdateson0dnspkarrrelayA`otherpacketsrecv0A`otherpacketssent0A`pathstatusbackupA`pkarrpublishnoopA`recvgrodatagramsA`remoteendpointidAarepublishintervalA`senddatagramwaitA`setreceivewindowA`tryfromprimitiveA`uniqueclientkeys0A`upnpprobesfailedA`withstartinstantA`alpnquicaddrdiscAcauthenticationerror0Accreatenetmonmonitor0Acdecodeinvalidlength000AcinvalidbucketconfigAcinvalidcarootconfig0Acinvalidwebsocketurl0Acnoserviceconfigured0AcpathnewconnectionidAcpathstatusavailableAcquictransportconfig0AcserverconfigbuilderActransportparametersAcunexpectedframetype0AcunorderedrecvstreamAbaugmentsubcommandsA`bindaddrwithoptsAablackholecooldownAacleariptransportsAadnslookupnotfoundAaforcestaginginfraAbhandshakecompleted0AahttprequestserrorAaintoaddresslookup000000000000AakeepaliveintervalAbletsencryptcontactAalostplpmtudprobesAaoncongestioneventAapollwritevectoredAasentplpmtudprobesAastreamdatablockedAastreamupdatesonlyAastreamsblockeduniAaupdatedirectaddrsAdaddresslookupbuilderAdbeforeconnectoutcomeAdconnectwithoptserror0Abdefaultmetricsport0Addeserializationerror0Adduplicatedefaultaddr0Adexceedsmaxpacketsize000AdexportkeyingmaterialAbframeencodingerrorAdfailedbuildingpacket000AdinvalidremoteaddressAdinvalidtlsservername0AdpkarrresolverbuilderAbserverwritetimeoutAdserveconnectionerror0AdvarintboundsexceededAbackfrequencyconfigAbblackholesdetectedAbclearaddresslookupAafromargmatchesmut00Abhandleclientstream0Abinsecureskipverify0AbmtudiscoveryconfigAbpkarrpublishupdateAapkarrputratelimitAbremoveendpointinfoAcreorderingthresholdAbretireconnectionidAbsendpacketsdropped0Abservercertverifier0AasetisdefaultrouteAbsettransportconfigAbstreamsblockedbidiActransportparametersAbupdateendpointdataAbupnpgatewayupdatedAbwithsystemdefaultsAeafterhandshakeoutcome0AeclienttorelaydatagramAenodefaultclientconfigAbpathunstableorpoorAepkarrpublisherbuilderAerelaytoclientdatagramAeremoteendpointiderrorAetryfromprimitiveerrorAevalidationtokenconfigAdconfidentialitylimitAbdefaultnaeastrelay0AbdefaultnawestrelayAbdnsandpkarrserversAchttprequestssuccessAblookupendpointbyid0Aclookupipv4staggered0Aclookupipv6staggered0Acotherpacketsdropped0AcpathstatusavailableAcremoteaddrvalidatedAbrunrelayserverwithAcstorepacketsexpiredAcstorepacketsremovedAcstorepacketsupdatedAcstreamreceivewindowAcwithadditionalalpnsAcwithtransportconfigAdcryptobufferexceededAfconnectionhandlererror0Afinvalidtransportconfig0Afmaxlengthexceedederror0Acnaeastrelayhostname0AcnawestrelayhostnameAfnorelayservicesenabled0AfpathretireconnectionidAfproxyinvalidtargetport0AdrelayprotocolversionAfsignedpacketbuilderrorAdclearrelaytransportsAdexportkeyingmaterial00AcmappingvariesbydestAcpathnewconnectionidAdstorepacketsinsertedActopkarrsignedpacket0AdwithmainlinefallbackAgacmeeventstreamfinished0Agclientauthheaderinvalid0AgconcurrentaddresslookupAddefaultrelayquicport0AgdnsaddresslookupbuilderAgmissingremoteendpointid0Acn0dnspkarrrelayprodAgpkarrrelayclientbuilderAgsignedpacketverifyerrorAgunexpectedupgradestatus0AeackelicitingthresholdAeaddressfamilyselectorAdaugmentargsforupdate0Adupdatefromargmatches00AfapplicationabandonpathAeenvforcestagingrelaysAhinternalconsistencyerror000AhmdnsaddresslookupbuilderAhsuccessfulauthenticationAfexternaladdressupdatedAefrompkarrsignedpacket0AesetincomingbuffersizeAesetretrytokenlifetimeAesignedpacketstorepathAetransportippathsaddedAiaddresslookupbuildererror0AfconnectionidlimiterrorAiexportkeyingmaterialerrorAiincomingzerorttconnection0AenocidavailableforpathAioutgoingzerorttconnection0Aiproxyconnectinvalidstatus0Aiproxyinvalidtlsservername0AequicaddrdiscclosecodeAiratelimitingmisconfigured0AgtransportparametererrorAfdatagramsendbuffersizeAfhttprequestsdurationmsAfpathretireconnectionidAjclienttorelaydatagrambatchAgdefaultkeycachecapacityAhdefaultrepublishintervalAfn0dnspkarrrelaystagingAjquictransportconfigbuilderAjrelaytoclientdatagrambatchAgactortickportmapchangedAgbytesrxratelimitedtotal0Agconnsrxratelimitedtotal0AgdatagramsendbufferspaceAglookupipv4ipv6staggered0AgmaxconcurrentunistreamsAgtransportippathsremovedAgn0dnsendpointoriginprod00AhpathresourcelimitreachedAgperclientsendqueuedepthAgquicaddrdiscclosereasonAienablesegmentationoffloadAgmappingvariesbydestipv4Agmappingvariesbydestipv6AhmaxconcurrentbidistreamsAhsetvalidationtokenconfigAhtransportrelaypathsaddedAgupdatefromargmatchesmut00AidefaultcertreloadintervalAjconfiguretracingsubscriberAicreateserverconfigbuilderAidatagramreceivebuffersizeAimakedangerousclientconfigAionspuriouscongestionevent0AgrunwithconfiguntilctrlcAhuserdataforaddresslookupAkcongestioncontrollerfactoryAidefaultpathmaxidletimeoutAjsendobservedaddressreportsAisetmaxconcurrentbistreamsAjtransportrelaypathsremovedAninvalidprotocolmessageencoding0Ajn0dnsendpointoriginstaging00AkaugmentsubcommandsforupdateAjlookupendpointbydomainname0AkmaxconcurrentmultipathpathsAjsetincomingbuffersizetotalAjsetmaxconcurrentunistreamsAklookupendpointbyidstaggered0AmpersistentcongestionthresholdAlactortickdirectaddrheartbeatAldefaultpathkeepaliveintervalAmreceiveobservedaddressreportsAkselfsignedtlscertsandconfigAksetuserdataforaddresslookupAnmaxremotenattraversaladdressesBasetmaxremotenattraversaladdressesBclookupendpointbydomainnamestaggered0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/normalizedName/d8ecb0cc3133.js b/pr/3958/docs/search.index/normalizedName/d8ecb0cc3133.js deleted file mode 100644 index 174e73082e..0000000000 --- a/pr/3958/docs/search.index/normalizedName/d8ecb0cc3133.js +++ /dev/null @@ -1 +0,0 @@ -rd_("as00b()b->bbibeqbfnbidbio00bip0bn0borb[]a00088888888888888888888888888888888888888888888888888888888888888888886666666622222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222brtbu8cackcandcanycappcarccboxcbufcdircdns0cerr0ckey0cmax0cmapcnotcopt0cordcpincqadcs2nctcpctls000cudp0cunicurlcveccaddcand000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cbufccmp00000000000000000000cdht00cdircdns00000000cecncf32cf64cfmt000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cget000cgotci32ci64ciosckey000clen000000clogcmapcmincmutcnew0000000000000000000000000000000000000000cnotcnowcrtt00cruncs2n0cstrctagctls0cttl0ctyp0cu16cu32cu64curl00000dalpn0dargsdcopyddataddenyddial0ddropdfromdhashdhttp0dintodiroh00ditem0dkeysdmetadname00dpathdping00000dpolldpong00dreaddrecv0dsend00dsidedsinkdsyncduser00000dutf80000dvzipdzerodacksdaddr000dalpn00000dbind00dbooldbulkdcall0dcertdcode0dconndcwndddata00ddrop0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dfrom0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dhash000000000000000000dhttp0000dinit0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dinto000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dipv4dipv6diroh00diter00dloaddmaindmdns0dmeta0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dname000000000dnextdopendpeek0dpingdpoll000000000dport000dprod0dqlog0dquic00000dread0crradsealdsenddsentdside0dsign0dsize00dstop0dttfbdu128dunitdurls0dvzip000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ealloweasmuteasrefeboxed0ebytesechunkecloneecloseedebugederefeerror0000000000000000000eflush0ehttps00elocaleplaineproto0equinn0000erelay00ereset0eserde0esizedesmartestatsetupleeunpinevalue0ewriteeaddrs0000ealpnseapply0earrayebuild00000000ebytes00ecertsecleareclone00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eclose000ederef000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eempty000eframe0ehooks0ehttpseindexdisip00elabel00epaths00epkarr0eprint0equinn0erelay0ereset000eretrydrrnsesliceespawn0000esplitestate00estats0000000estore0etitleetokenetupleeusageeusizeevalueewrite0faccept0000faccessfackecnfactivefborrowfbufmutfclient000fclosed0fcompatfconfig0fcryptofcustom0fdecode0ffuturefhandlefhasherfhealth00fipaddrflength000flimitsfloaderfmanual00fnoalpn0fopenbifoptionfoutputfpathidfpolicyfpresetfrecordfreject00fresult000frouterfrustlsfserver00fsharedfsimplefsource0fstream0000fstringftypeidfvarint0fverify0faccept0000000faccesseasdyn00000000000000000000000000000000000000000000000000easref000easstd00000000000000000000000000000000000000000000000000fborrow00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fchunks00fclient000000fclosed00fcommon0fcompat000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fconfig00fcreatefcrypto000fcustom00fdecode0000fencode0000fextend0ffinishfgroups0fheaderfignorefinsert00fkeylogflimitsfmemory0en0dns00foffseteonack0fonlinefpacketfpresetfprotos0fpublic0freason0000frefusefrejectfrelays0freloadfremove0fserver000000fsocket0fsource000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fstatus0fstream00etoz3200eudprx0eudptx0eudpv4eudpv6fupdate0fvarintfverify0fwindowgaeadkeygboxiter0gbuilder00gclientsgcommandgconnect000gcontextgcountergdefault00gdisplaygelapsedgexpired0gfromrefgfromstrginstantgioslicegkeypairgmaxdatagmetrics000gnextfutgopenunigpaddinggpathackgpathbufgprivategreadbufgrequest0gresolve00gruntimegservicegsockets0gstaginggstopped0gtimeout0000000gtoownedgtoolonggtryfromgtryintogunknowngupgrade00gwatchergwrittengaccepts0gbuilder000000000gclients00gcommand00gcompare0000000000000000gconnect0gdecrypt0gdefault0000000000000000000000000000000000000000000000000000gdomainsgenabledgencrypt0fhasudpfis0rtt0fmaxlengmetrics00000000000fminmtufonsent0fopenbigoriginsgpointergpresets0gproblemgpublish000000greportsgresolve00000000000frraaaafruns2ngstaging0gstoppedgstreams000000ftaglengtesting0gtimeoutftoinfoftryforftypeid000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gupdatedhacceptbihacceptedhanyerrorhappstatehbtreesethbindoptshbytesmuthcertmodehcommandshdatagramhderefmuthdisabled000hdnserror0hdurationhdynclonehencoding0hendpoint00herrorrefheveryonehhandlers0hhttpsend0hinactivehincoming0hipv4addrhipv6addrhirohattrhiterablehiteratorhkeycachegmaxsizegnoerrorhnamedapp0hnewtokenhnullablehorderinghpathinfohprotocol00hrejectedhrelaymap0hrelayurl00hremoteid0hresolverhrunerror0hstreamidhtimedouthtostringhtokenloghtoolargehtoosmall0htxtattrshudpstatshuserdata00hz32errorgasbytes0hcontains0hcontentsgdatadir0hdatagramhdefaults000hdisabled0hdurationhendpoint00hexpectedgframerxgframetxgfromenv0gfromerr00gfromref00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gfromstr0000000gfromu32gfromu64gfromz3200hgenerate0ggotping0ggroupid0ghttpurlhintervalgintoanygintostd00000000000000000000000000000000000000000000000000gipaddrs000gisalivegisempty00000gisrelay00hlifetimeglocaliphmainlinegmaxdatagnewpinggopenunihpriorityhprotocol0hregisterhresolvergrunirohhshutdown00000000000hssthreshhtimeouts0gtobytes000gtoowned00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gtryfrom00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gtryinto000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000gtrypoll0000000guseipv6iacceptuniiacceptingiacmestateiaddrparse0ialpnerror0iasyncreadibinderror0iborrowmuticompatexticryptorngidatagrams0000idecodableidialerror0idnsconfigidnsserveriencodableiformatteriframetype0ihandshake000iheaderkeyiheadermapihistogramijoinerror00ilocaladdr0imaxpathidimechanisminetreportinoaddress0inoresults0inumlabels0000ipacketkeyipartialeqipathstatsipointableipolicyextipublickey0000iquicspawn0ireaderror0irecordsetirecverror0000irelaymode0ireloadingiresolvingisecretkey00isenderror000iserializeisignature0itcpstreamitickflush0itlsconfig0itryfutureitrystreamiutf8erroriwatchrecv0iwebsocket000izonestorehacceptbihaddaddrs0haddboxediadvertiseiassemblerhbindaddr00000ibootstraphcertmodehclientrxhcloneboxidatagrams00hderefmut000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000hfieldref00000hfmtshort0hframelenhfromiter000000hglobalv4hglobalv6ihandshake0hhasaddrs0hhttpaddr0hhttpsurlhinmemoryiinitiatorhinto0rtt0hintoaddrhintoiter00hirohbasehisclienthisclosed0hisserverhkeycacheimechanismhnewtokenhpathackshpkarrurlhpollnext00hpollread00hproxyurl00hquicaddrhreachoutireferencehrelaymap0hrelayurlhremoteid0000hrunquinnhrununtilhsendipv4hsendipv6hsentpong0iserialize000000000000000000000000000000hsetalpnshstableidisubscribehtostring000000000000000000000000000000000000000000000000000000000000000000000000000000000000000itransporthttfbhisthuserdata00hwritealljargmatchesjasyncwritejcertconfig0jclientauthjclientsinkjcomparablejconnecting0000jconnection0000000000jcontrollerjdirectaddrjdiscovered0jdnshandlerjendpointid0000jequivalent0jframestatsjheadernamejhttpconfigjhttpserverjinfallible00jintofuturejinvalidkey000jinvalidurl0imaxlength0jmaybeframejmetricitemjnoresponse0jnonzerou32jnotallowed0jprovenancejpacketsend0jparseerror0000000jpartialordjpathackecnjpkarrerror0jportmappedjqlogconfigjquicclientjquicconfigirelaypathjrecordtypejrecvstreamjremoteinfojreseterrorjrestarting00jrestrictedjretryerror0jselfsignedjsendstreamjserializerjsocketaddrjspawnerror0jstackerrorjstatuscodejsubcommandjsystemtimejtimesourcejwriteerrorjwriteframe0iacceptuniiallowspiniborrowmut000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ibytesrecv0ibytessent0ichunksizeichunktimeiclientkeyicloneinto00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000icompatmut000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000icompatref000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jcongestionjconnection00jequivalent00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ierrorcode00iframetype000ifromboxedifrombytes00000ifromparts000ihttpsaddr0iintoaddrsiintoinneriirohbenchiirohrelayiisallowedilocaladdr0ilookuptxt00ilostbytesin0watcherjnameserverinetreportinopublishinumlabels00ionlyrelayhpadtomtuipcpprobesjpersistentipollclose00ipollflush0000ipollready00ipollwrite00jportmapperiprefixlenjprovenance00ireadchunk0ireadexactirelaymodeirelayurls000iremotemapisecretkey00isendrelayjserversideistartsend00istarttimeitestutils0jthroughputitlsconfigitotalsizeiwatchaddriwithaddrs0izonestorekaccepterror000kaccesslimitkcallmemaybe0kclienthellokclientstatskclosereasonkcryptoerrorkdatablockedkdecodeerrorkdeserializekdnsprotocolkdnsresolver0kemptypacket000khandleframe0kheadervaluekhttppayload0khttprequest0khttpservicekhttpsconfigkidletimeoutkletsencrypt00klookuperror0kmissinghost0knolocaladdr000kpathabandonkpathwatcherkpingtrackerkqlogfactorykrelayconfig00kresetstreamkresolveboth0kselfconnect0kstopsendingkstoreconfigkstreamerror000000000kstreamstatskunavailable0kunspecifiedhclonebox00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000jacceptwithjaddaddressjasiterable00000jclearcache00jcreateconnjcurrentmtujdefaultsoajdefaultttlkdescriptionkdeserialize000000000000000000000000000000kdisconnects0jdnshandlerjendpointid00000jfieldcount00000jfmtmessage00000000000000000000000000000000000000000000000000jhttpserverjinitialmtu0jinitialrttkinitializedjintofuture0000000000jisrequiredjisselectedjisshutdownjlookupipv400jlookupipv600imaxpathidjmaxstreamsionendacks0jonendpointjpacingratejpartialcmp00000000000000000000jpathsrelayjpkarrrelayjquicconfigjreadchunksireadtoendjrecvstreamjremoteaddrjremoteinfo0jsamplesizejsendstreamjsendwindowjtaskhandlejuploadsizejupnpprobesjupperboundjwithprefixjwritechunklaccessconfiglackfrequencylcertifiedkeylclientconfiglclientstreamlclosedstream00lconnecterror0000lconnectionidldeserializerldisconnectedlendpointaddr00lendpointdata00lendpointgone0lendpointinfo00lfromiteratorlimmediateacklintoiterablelintoiteratorlinvalidframe00llookupfailed0lmanualaccept0lmemorylookuplmetricsgrouplpathinfolistlpathresponselpathsblockedlproxyconnect0lreaddatagramlrelaymetrics0lrelayservice0lresolveerrorlrttestimatorlsenddatagramlserverconfig00lsignedpacketlstoppederrorltlshandshake0ltosocketaddrkaugmentargs0kauthorizeiflcertificateskclosereasonlconservativekdatablockedkdnsrequestskdnsresolver00000jfromerranyjfromerrbox0kinsertrelaykisconnected0klastupdated0klostpacketskmetricsaddrkonaccepting000kpathabandonkpathwatcherkpathsdirectkpingtrackerkpollupdated0kqlogfactorykreconnectinkrelayconfigkremoverelaykreportsfullkresetstreamkresolvehost0ksegmentsizekservicenameksetprioritykstopsendingkstreamstatsjwithipaddr0kwritechunksmaddresslookup0000malreadyclosedmcidsexhausted0mclientbuildermclonetouninitmdecodingerror00000000mencodingerror000mendpointerror0mendpointhooksmendpointidext0mfinishedearlymforwardpacket000mframetoolarge0mhandledropped0mhandshakedonelinvalidtokenkirohtxtname0minvalidlength000minvalidprefix0mlocallyclosedmmaxstreamdatammaxstreamsunimmetricsconfigmpathchallengempkarrresolvermprivatekeydermqad4localportmqlogfilegroupmrelayedstreammremoveaddressmrouterbuildermsocketmetricsmtaskcancelled0mtransportaddr00mtxtrecorddatamunexpectedend0000mzerorttstatuslackfrequencylboundsocketsldownloadsizeldurationhistlemptybuilderlendpointaddrlendpointinfo00000lfromserviceslgroupscloned0lhttprequestslimmediateacklintoincomingkmaxackdelaylobservedaddrkonmtuupdatelpathresponselpathsblockedlpcpavailablelpeeridentitykpollreadbuflpollshutdown0lpongreceivedkqlogfromenvlratelimitinglreaddatagramlrelaylatencylselectedpathlsenddatagramlsendfairnesslsendresponselserverconfig00ksettokenkeyksetuserdata0ltakesegmentsktryfromiter0ktrypollnext00ktrytostring000000000000000000000000000000000000000000000000000000000000000000000000000000000kwithipaddrs000lwritetimeoutnaddipv4addressnaddipv6addressnaddrparseerrornattrfromstring0000nbuffernotempty0ncertificatederncommandfactorynconnectoptionsnconnectioninfonconnectionlost0000ndirectaddrtypendiscoveryevent0ndnspkarrservernendpointclosed0000nframetypeerror00000nfromargmatchesminternalerrorninitializedfutninvaliddnsnamenmainlineconfignmaxstreamsbidinmaybetlsstreamlnoviablepathnpayloadtoolong0npkarrpublishernportmapmetricsnprefixlenerrornpublickeyerrornreachoutatipv4nreachoutatipv6nreadexacterrornreadtoenderrornrequesthandlernsignatureerror00nsimplednserrornstaggerederrorntlsheaderparse0ntransferresultntransporterror0lactortickmsgmaddresslookup0000laeadfromhkdfmanswerrequestlavgchunksizembeforeconnect0mcaptiveportallclearipaddrs0mclienthandlermconnectclient0mexpectedtypesmforconnection0mhandlerequestmhandshakedata00mhandshakedonemhassubcommandlhttpbindaddrminitialwindowmintounorderedmistransparent00000000000000000000000000000000000000000000000000lkeyfromslicemminimumchangemnetworkchangempathchallengemprobesstartedlproxyfromenvmproxyhostnamelqlogfrompathlquicbindaddrmreadunorderedmreceivewindowmreceivedreset0lrecvdataipv4lrecvdataipv6mrecvdatagramsmremoteaddressmremoveaddresslrununtildone0msaturatingadd0msaturatingsublsetprefixlenmthroughputbpsmtimethresholdltosocketaddrltotxtstrings0mtotaldurationmunknownframes0mupnpavailablelwithrelayurl00000lwithuserdata000obindtcplistener0obindtlslistener0obootstrapoptionobytesstreamsinkoclientratelimitoconnectingerror0oconnectionclose0oconnectionerror00000oconnectionstateoconnectionstatsodowncastupgrade0oendpointmetricsoincomingzerorttoinvalidrelayurl000oinvalidresponse0oinvalidtxtentry000okeyparsingerror0000olocallyrejected000mmaxpacketsize0omessageresponseometricsgroupsetonewconnectionidonouriconfiguredonotanirohrecord0000ooutgoingzerorttopathcidsblockedoprotocolhandleroproxyinvalidurl0oqlogfilefactoryoratelimitconfigorelayquicconfigoresponsehandleroserveconnection0oserverchallengeosignedchallengeosupervisorerror0otokenreuseerrorotransportconfigotryreserveerrorounexpectedframe0oversionmismatchowriteframeerror0ozerorttrejected000mactortickmainnafterhandshake0mclonetouninit00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ndefaulttimeoutmdstendpointidnendpointoriginmfromtxtlookup0mhttpsbindaddrnintegritylimitmirohdnsservermmaxburstbytesmmaxstreamdatammaxstreamsunimmaxtlsticketsnpreferredrelaymrecvdatarelaynrepublishdelaymrununtilerrormrunwithoriginnserverendpoint0msetisrequiredmsettimesourcenstreamfinishednthroughputhistnwithnameserver00nwithprovenanceA`applicationclose0A`cleanupdropguardA`clienttorelaymsg0A`connectionclosedA`dhtaddresslookupA`disallowedheaderA`dnsaddresslookupA`endpointselectorA`endpointstoppingnfinalsizeerrorA`handleframeerror0A`handshakefailure0A`invalidframetype0A`invalidpublickey0nkeyupdateerrorA`netreportmetricsA`observedipv4addrA`observedipv6addrA`pathinfolistiterA`pathstatusbackupA`pkarrrelayclientA`quicconnecterrornrelayprobepathA`relaytoclientmsg0A`serverdeniedauth0A`serverdeniesauthA`streamterminated0A`tostringfallibleA`tryfromprimitiveA`unexpectedformat0000A`unknownframetype0A`unknownhandshake0nactortickothernbytespersecondochannelcapacityncheckandinsertnclearrelayurls0ocongestionstateoconnectionclosendefaultaprelayndefaulteurelay0ndnslookuperrorndnsrequestsudpnfromargmatches00nirohquinnprotonisdefaultrouteoletsencryptprodnlookupipv4ipv60omappingattemptsomappingfailuresnmaxidletimeoutnmaxstreamsbidinnumconnsclosednnumconnsdirectnnumconnsopenedopacketthresholdnrunrelayservernsetmaxincomingntoendpointaddr00otransportconfig00owithnameserversnwriteallchunksA`applicationerroroaprelayhostnameAaabortondrophandleAaapplicationclosedAacannotresolvehostAacontrollerfactoryAacontrollermetricsodefaulthttpport0odefaultpkarrttloeurelayhostname0AahandshaketokenkeyAaintoaddresslookupAainvalidservernameAainvalidsocketaddr0Aainvalidtargetport0Aaletsencryptaccept0AamdnsaddresslookupAareloadingresolverAasenddatagramerrorAasignedkeymaterialAastreamdatablockedAastreamsblockeduniAatransportaddrinfoAaunsupportedbypeerAaunsupportedschemeoacceptconnburstoacceptconnlimitoactorlinkchangeoaddendpointinfoocollectandprintA`congestioneventsA`congestionwindowoconnectwithoptsodefaultrelaymap0ogetendpointinfoogetsignedpacketA`handleconnectionoiswritevectoredomaxdatagramsizeonewconnectionidopathcidsblockedorelayhomechangeosendpacketsrecv0osendpacketssent0osetendpointinfoowithdnsresolverA`aeadlimitreachedAbackfrequencyconfigA`clientauthheaderAaconnectionrefusedAbconnectionselectorAbcreatequicendpoint0A`defaulthttpsport0AbdynprotocolhandlerA`flowcontrolerrorAbforwardpacketerrorAbhandshakecompletedAbinvalidencodingz32000AbinvalidheadervalueAbmtudiscoveryconfigA`netreporttimeoutAaprotocolviolationAbrelayurlparseerror00AbresolvesservercertAbretireconnectionidA`streamlimiterrorA`streamstateerrorAbserverconfirmsauthAbstreamsblockedbidiAbtransportaddrusageAbtransporterrorcodeAbunsupportedversion0oactortickrestunA`commandforupdate00A`cryptobuffersizeA`defaultrelaymodeA`dnslookupsuccessA`dnsrequestshttpsA`fromendpointinfoA`fromu64uncheckedAaholepunchattemptsA`intoendpointaddr00A`keycachecapacity0A`localportupdateson0dnspkarrrelayA`otherpacketsrecv0A`otherpacketssent0A`pathstatusbackupA`pkarrpublishnoopA`recvgrodatagramsA`remoteendpointidAarepublishintervalA`senddatagramwaitA`setreceivewindowA`tryfromprimitiveA`uniqueclientkeys0A`upnpprobesfailedA`withstartinstantA`alpnquicaddrdiscAcauthenticationerror0Accreatenetmonmonitor0Acdecodeinvalidlength000AcinvalidbucketconfigAcinvalidwebsocketurl0Acnoserviceconfigured0AcpathnewconnectionidAcpathstatusavailableAcquictransportconfig0AcserverconfigbuilderActransportparametersAcunexpectedframetype0AcunorderedrecvstreamAbaugmentsubcommandsA`bindaddrwithoptsAablackholecooldownAacleariptransportsAadnslookupnotfoundAaforcestaginginfraAbhandshakecompleted0AahttprequestserrorAaintoaddresslookup000000000000AakeepaliveintervalAbletsencryptcontactAalostplpmtudprobesAaoncongestioneventAapollwritevectoredAasentplpmtudprobesAastreamdatablockedAastreamupdatesonlyAastreamsblockeduniAaupdatedirectaddrsAdbeforeconnectoutcomeAdconnectwithoptserror0Abdefaultmetricsport0Addeserializationerror0Adduplicatedefaultaddr0Adexceedsmaxpacketsize000AdexportkeyingmaterialAbframeencodingerrorAdfailedbuildingpacket000AdinvalidremoteaddressAdinvalidtlsservername0AdpkarrresolverbuilderAbserverwritetimeoutAdserveconnectionerror0AdvarintboundsexceededAbackfrequencyconfigAbblackholesdetectedAbclearaddresslookupAafromargmatchesmut00Abhandleclientstream0AbmtudiscoveryconfigAbpkarrpublishupdateAapkarrputratelimitAbremoveendpointinfoAcreorderingthresholdAbretireconnectionidAbsendpacketsdropped0AasetisdefaultrouteAbsettransportconfigAbstreamsblockedbidiActransportparametersAbupdateendpointdataAbupnpgatewayupdatedAbwithsystemdefaultsAeafterhandshakeoutcome0AeclienttorelaydatagramAenodefaultclientconfigAbpathunstableorpoorAepkarrpublisherbuilderAerelaytoclientdatagramAeremoteendpointiderrorAetryfromprimitiveerrorAevalidationtokenconfigAdconfidentialitylimitAbdefaultnaeastrelay0AbdefaultnawestrelayAbdnsandpkarrserversAchttprequestssuccessAblookupendpointbyid0Aclookupipv4staggered0Aclookupipv6staggered0Acotherpacketsdropped0AcpathstatusavailableAbrunrelayserverwithAcstorepacketsexpiredAcstorepacketsremovedAcstorepacketsupdatedAcstreamreceivewindowAcwithadditionalalpnsAcwithtransportconfigAdcryptobufferexceededAfconnectionhandlererror0Afintoaddresslookuperror0Afinvalidtransportconfig0Afmaxlengthexceedederror0Acnaeastrelayhostname0AcnawestrelayhostnameAfnorelayservicesenabled0AfpathretireconnectionidAfproxyinvalidtargetport0AdrelayprotocolversionAfsignedpacketbuilderrorAdclearrelaytransportsAdexportkeyingmaterial00AcmappingvariesbydestAcpathnewconnectionidAdstorepacketsinsertedActopkarrsignedpacket0AdwithmainlinefallbackAgacmeeventstreamfinished0Agclientauthheaderinvalid0AgconcurrentaddresslookupAddefaultrelayquicport0AgdnsaddresslookupbuilderAgmissingremoteendpointid0Acn0dnspkarrrelayprodAgsignedpacketverifyerrorAgunexpectedupgradestatus0AeackelicitingthresholdAeaddressfamilyselectorAdaugmentargsforupdate0Adupdatefromargmatches00AfapplicationabandonpathAeenvforcestagingrelaysAhinternalconsistencyerror000AhmdnsaddresslookupbuilderAhsuccessfulauthenticationAfexternaladdressupdatedAefrompkarrsignedpacket0AfincludedirectaddressesAfremoteaddressvalidatedAesetincomingbuffersizeAesetretrytokenlifetimeAesignedpacketstorepathAetransportippathsaddedAfconnectionidlimiterrorAiexportkeyingmaterialerrorAiincomingzerorttconnection0AenocidavailableforpathAioutgoingzerorttconnection0Aiproxyconnectinvalidstatus0Aiproxyinvalidtlsservername0AequicaddrdiscclosecodeAiratelimitingmisconfigured0AgtransportparametererrorAfdatagramsendbuffersizeAfhttprequestsdurationmsAfinsecureskipcertverifyAfpathretireconnectionidAjclienttorelaydatagrambatchAgdefaultkeycachecapacityAhdefaultrepublishintervalAfn0dnspkarrrelaystagingAjquictransportconfigbuilderAjrelaytoclientdatagrambatchAgactortickportmapchangedAgbytesrxratelimitedtotal0Agconnsrxratelimitedtotal0AgdatagramsendbufferspaceAglookupipv4ipv6staggered0AgmaxconcurrentunistreamsAgtransportippathsremovedAgn0dnsendpointoriginprod00AhpathresourcelimitreachedAgperclientsendqueuedepthAgquicaddrdiscclosereasonAienablesegmentationoffloadAgmappingvariesbydestipv4Agmappingvariesbydestipv6AhmaxconcurrentbidistreamsAhsetvalidationtokenconfigAhtransportrelaypathsaddedAgupdatefromargmatchesmut00AidefaultcertreloadintervalAjconfiguretracingsubscriberAicreateserverconfigbuilderAidatagramreceivebuffersizeAimakedangerousclientconfigAionspuriouscongestionevent0AgrunwithconfiguntilctrlcAhuserdataforaddresslookupAkcongestioncontrollerfactoryAidefaultpathmaxidletimeoutAjsendobservedaddressreportsAisetmaxconcurrentbistreamsAjtransportrelaypathsremovedAninvalidprotocolmessageencoding0Ajn0dnsendpointoriginstaging00AkaugmentsubcommandsforupdateAjlookupendpointbydomainname0AkmaxconcurrentmultipathpathsAjsetincomingbuffersizetotalAjsetmaxconcurrentunistreamsAkinsecureskiprelaycertverifyAklookupendpointbyidstaggered0AmpersistentcongestionthresholdAlactortickdirectaddrheartbeatAldefaultpathkeepaliveintervalAmreceiveobservedaddressreportsAkselfsignedtlscertsandconfigAksetuserdataforaddresslookupAnmaxremotenattraversaladdressesBasetmaxremotenattraversaladdressesBclookupendpointbydomainnamestaggered0") \ No newline at end of file diff --git a/pr/3958/docs/search.index/path/1bb756fc7225.js b/pr/3958/docs/search.index/path/1bb756fc7225.js new file mode 100644 index 0000000000..65a44ca531 --- /dev/null +++ b/pr/3958/docs/search.index/path/1bb756fc7225.js @@ -0,0 +1 @@ +rd_("f[1,\"\"]0Al[10,\"core::cmp\",\"core::cmp\"]Al[10,\"core::ops\",\"core::ops\"]Ce[5,\"clap_builder::util::id\",\"clap_builder::util::id\"]Bd[15,\"iroh_relay::client::DialError\"]Cg[5,\"iroh::endpoint::presets\",\"iroh::endpoint::presets\"]Eg[5,\"tower_http::follow_redirect::policy::or\",\"tower_http::follow_redirect::policy::or\"]66Ei[5,\"tower_http::follow_redirect::policy::and\",\"tower_http::follow_redirect::policy::and\"]A`[10,\"core::any\"]Ao[5,\"alloc::sync\",\"alloc::sync\"]Ba[5,\"alloc::boxed\",\"alloc::boxed\"]Cb[10,\"bytes::buf::buf_impl\",\"bytes::buf::buf_impl\"]Ad[6,\"iroh::endpoint\"]8g[17,\"\"]Am[5,\"n0_watcher\",\"n0_watcher\"]Ae[10,\"core::ops::bit\"]Am[5,\"iroh_bench\",\"iroh_bench\"]Bg[5,\"iroh_bench::s2n\",\"iroh_bench::s2n\"]A`[10,\"core::cmp\"]Ak[5,\"core::pin\",\"core::pin\"]Bg[15,\"iroh_relay::client::ConnectError\"]o[5,\"url\",\"url\"]Am[5,\"alloc::vec\",\"alloc::vec\"]Ba[2,\"iroh::address_lookup::pkarr\"]j[2,\"iroh\"]Aj[2,\"iroh::address_lookup\"]A`[2,\"iroh_relay\"]Ae[2,\"iroh_dns_server\"]f[1,\"\"]000o[2,\"iroh_base\"]f[0,\"\"]A`[2,\"iroh_bench\"]375Ak[2,\"iroh_dns_server::http\"]444Ak[10,\"clap_builder::derive\"]Bb[10,\"core::marker\",\"core::marker\"]>Af[10,\"core::ops::drop\"]Ad[10,\"core::convert\"]Aa[10,\"core::hash\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]2g[17,\"\"]Ca[5,\"iroh::address_lookup\",\"iroh::address_lookup\"]Ad[5,\"iroh::endpoint\"]Be[5,\"n0_error::meta\",\"n0_error::meta\"]Cc[5,\"reqwest::dns::resolve\",\"reqwest::dns::resolve\"]Dg[5,\"hickory_proto::rr::domain::name\",\"hickory_proto::rr::domain::name\"]Ak[5,\"std::path\",\"std::path\"]Am[15,\"iroh::endpoint::Source\"]Bi[6,\"core::task::poll\",\"core::task::poll\"]Cc[15,\"iroh_relay::server::client::HandleFrameError\"]>0Ad[6,\"iroh::endpoint\"]Ac[10,\"futures_sink\"]Bb[10,\"core::marker\",\"core::marker\"]Bb[15,\"iroh::address_lookup::Error\"]Cf[15,\"iroh::address_lookup::AddressLookupBuilderError\"]Bb[15,\"iroh::protocol::AcceptError\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Ah[10,\"ppv_lite86::types\"]Ad[2,\"iroh::endpoint\"]f[1,\"\"]f[3,\"\"]Ah[2,\"iroh_relay::client\"]A`[2,\"iroh_relay\"]Ae[2,\"iroh_dns_server\"]A`[2,\"iroh_bench\"]4Aj[2,\"iroh::address_lookup\"]Ad[2,\"iroh::defaults\"]Af[2,\"iroh::test_utils\"]Ag[2,\"noq_proto::config\"]:6Bd[2,\"noq_proto::connection::streams\"]::Bd[10,\"core::convert\",\"core::convert\"]Ad[10,\"core::convert\"]Ca[8,\"futures_lite::future\",\"futures_lite::future\"]Ca[8,\"futures_lite::stream\",\"futures_lite::stream\"]Ba[5,\"bytes::bytes\",\"bytes::bytes\"]Ad[5,\"iroh::endpoint\"]Ab[10,\"core::clone\"]Bi[6,\"noq_proto::frame\",\"noq_proto::frame\"]A`[10,\"core::fmt\"]Ag[10,\"core::ops::deref\"]g[17,\"\"]Ak[5,\"core::fmt\",\"core::fmt\"]Ab[10,\"core::error\"]Be[5,\"std::io::error\",\"std::io::error\"]Aj[2,\"iroh::address_lookup\"]Ba[8,\"clap_builder\",\"clap_builder\"]Bi[5,\"signature::error\",\"signature::error\"]Af[2,\"iroh_relay::quic\"]Bc[2,\"iroh_relay::protos::handshake\"]Ao[2,\"iroh_relay::protos::relay\"]Ba[5,\"hyper::error\",\"hyper::error\"]Dg[6,\"noq_proto::transport_parameters\",\"noq_proto::transport_parameters\"]Be[5,\"reqwest::error\",\"reqwest::error\"]Bg[6,\"postcard::error\",\"postcard::error\"]Cg[6,\"tokio_websockets::error\",\"tokio_websockets::error\"]Bi[6,\"netwatch::netmon\",\"netwatch::netmon\"]Ca[6,\"iroh::address_lookup\",\"iroh::address_lookup\"]Bi[6,\"iroh_relay::quic\",\"iroh_relay::quic\"]Dc[6,\"iroh_relay::protos::handshake\",\"iroh_relay::protos::handshake\"]Ck[6,\"iroh_relay::protos::relay\",\"iroh_relay::protos::relay\"]Bk[15,\"iroh_relay::server::client::RunError\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]Bm[15,\"iroh_relay::server::streams::RecvError\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Bc[15,\"iroh::endpoint::IncomingAddr\"]Bg[15,\"iroh_relay::protos::relay::Error\"]Bb[10,\"core::marker\",\"core::marker\"]Bk[5,\"iroh_bench::stats\",\"iroh_bench::stats\"]Am[5,\"n0_watcher\",\"n0_watcher\"]2g[17,\"\"]Ah[10,\"std::io\",\"std::io\"]f[1,\"\"]o[2,\"noq_proto\"]Ad[2,\"iroh::endpoint\"]Ak[2,\"noq_proto::connection\"]Aj[2,\"iroh::address_lookup\"]A`[2,\"iroh_bench\"]Ah[2,\"iroh_relay::protos\"]6Ae[2,\"iroh_dns_server\"]240677Cn[15,\"iroh_relay::server::http_server::ConnectionHandlerError\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]Ac[10,\"core::borrow\"]C`[10,\"bytes::buf::buf_mut\",\"bytes::buf::buf_mut\"]Bc[5,\"pkarr::client\",\"pkarr::client\"]Bm[5,\"iroh_relay::client\",\"iroh_relay::client\"]Cm[5,\"iroh_relay::server::client\",\"iroh_relay::server::client\"]Bd[15,\"iroh::endpoint::EndpointError\"]Ba[5,\"async_compat\",\"async_compat\"]Cg[5,\"iroh_dns_server::config\",\"iroh_dns_server::config\"]3Cb[10,\"core::future::future\",\"core::future::future\"]Ca[5,\"iroh_dns_server::dns\",\"iroh_dns_server::dns\"]An[10,\"core::hash\",\"core::hash\"]Cb[15,\"iroh_relay::protos::relay::RelayToClientMsg\"]Bm[6,\"core::net::ip_addr\",\"core::net::ip_addr\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Bh[10,\"reloadable_core\",\"reloadable_core\"]Be[15,\"iroh_relay::server::CertConfig\"]Bj[15,\"iroh::endpoint::AuthenticationError\"]Ad[5,\"iroh::endpoint\"]Ba[6,\"core::option\",\"core::option\"]g[17,\"\"]2E`[10,\"tower_http::follow_redirect::policy\",\"tower_http::follow_redirect::policy\"]Ch[10,\"iroh::endpoint::presets\",\"iroh::endpoint::presets\"]Co[5,\"hickory_proto::rr::resource\",\"hickory_proto::rr::resource\"]Bl[15,\"iroh::endpoint::AfterHandshakeOutcome\"]Ak[8,\"core::fmt\",\"core::fmt\"]Ba[6,\"core::result\",\"core::result\"]Be[8,\"std::io::error\",\"std::io::error\"]Ai[8,\"n0_error\",\"n0_error\"]Be[5,\"iroh::protocol\",\"iroh::protocol\"]Cg[5,\"iroh_dns_server::server\",\"iroh_dns_server::server\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Ad[2,\"iroh::endpoint\"]Bo[6,\"iroh::endpoint\",\"iroh::socket::remote_map\"]Cb[15,\"iroh_relay::server::client::WriteFrameError\"]Ak[10,\"futures_core::stream\"]Am[5,\"n0_watcher\",\"n0_watcher\"]Bc[5,\"alloc::string\",\"alloc::string\"]Ak[5,\"core::any\",\"core::any\"]Bk[5,\"noq_proto::varint\",\"noq_proto::varint\"]Ad[5,\"iroh::endpoint\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]A`[2,\"iroh_relay\"]Ah[2,\"iroh_relay::server\"]Ah[2,\"iroh_relay::protos\"]o[2,\"noq_proto\"]Ae[2,\"iroh_dns_server\"]1Aj[2,\"iroh::address_lookup\"]551j[2,\"iroh\"]3Ae[10,\"iroh::endpoint\"]Bg[8,\"iroh_relay::dns\",\"iroh_relay::dns\"]Be[5,\"iroh::endpoint\",\"iroh::endpoint\"]Di[5,\"iroh::address_lookup::pkarr::dht\",\"iroh::address_lookup::pkarr::dht\"]Bg[5,\"iroh_relay::dns\",\"iroh_relay::dns\"]Co[5,\"iroh_relay::server::clients\",\"iroh_relay::server::clients\"]De[5,\"clap_builder::builder::command\",\"clap_builder::builder::command\"]Bc[15,\"iroh::endpoint::ConnectError\"]An[15,\"iroh_relay::quic::Error\"]Bi[5,\"core::task::wake\",\"core::task::wake\"]Cc[5,\"iroh_metrics::metrics\",\"iroh_metrics::metrics\"]Ad[10,\"core::default\"]A`[10,\"core::fmt\"]Bm[5,\"tokio::time::error\",\"tokio::time::error\"]Ca[15,\"iroh::address_lookup::mdns::DiscoveryEvent\"]Bc[10,\"axum_core::extract::from_ref\"]Ah[10,\"core::str::traits\"]Ak[5,\"std::time\",\"std::time\"]Ag[5,\"std::io\",\"std::io\"]Bk[5,\"noq_proto::crypto\",\"noq_proto::crypto\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Ci[5,\"iroh_dns_server::metrics\",\"iroh_dns_server::metrics\"]Cf[5,\"iroh_relay::server\",\"iroh_relay::server::metrics\"]Am[5,\"n0_watcher\",\"n0_watcher\"]Ad[5,\"iroh::endpoint\"]Ak[5,\"std::path\",\"std::path\"]Bk[5,\"dyn_clone::sealed\",\"dyn_clone::sealed\"]Bo[5,\"tokio::io::read_buf\",\"tokio::io::read_buf\"]Bc[5,\"http::request\",\"http::request\"]Eg[5,\"hickory_server::server::request_handler\",\"hickory_server::server::request_handler\"]B`[15,\"iroh_relay::dns::DnsError\"]Al[10,\"reqwest::dns::resolve\"]Cg[5,\"tokio::runtime::runtime\",\"tokio::runtime::runtime\"]An[10,\"hyper::service::service\"]B`[15,\"iroh::endpoint::BindError\"]Bi[5,\"noq::send_stream\",\"noq::send_stream\"]Bd[15,\"iroh_relay::client::DialError\"]Cb[15,\"iroh_relay::server::client::WriteFrameError\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]8Ad[10,\"alloc::borrow\"]Ad[10,\"core::convert\"]0Bg[15,\"iroh_relay::client::ConnectError\"]k[10,\"iroh\"]Ad[5,\"iroh::endpoint\"]Ah[2,\"iroh_relay::server\"]j[2,\"iroh\"]1Ae[2,\"iroh_dns_server\"]f[1,\"\"]Ad[2,\"iroh::endpoint\"]Ad[2,\"iroh::defaults\"]5Ah[2,\"iroh_relay::protos\"]Ak[2,\"noq_proto::connection\"]78Bc[5,\"n0_error::any\",\"n0_error::any\"]Ce[5,\"iroh_dns_server::state\",\"iroh_dns_server::state\"]De[5,\"alloc::collections::btree::set\",\"alloc::collections::btree::set\"]Bk[5,\"iroh::endpoint\",\"iroh::endpoint::bind\"]Bi[5,\"bytes::bytes_mut\",\"bytes::bytes_mut\"]Ch[6,\"iroh_dns_server::http\",\"iroh_dns_server::http::tls\"]Am[6,\"iroh_bench\",\"iroh_bench\"]Ag[10,\"core::ops::deref\"]Ae[2,\"iroh_relay::dns\"]Bg[6,\"iroh_relay::dns\",\"iroh_relay::dns\"]Am[5,\"core::time\",\"core::time\"]A`[10,\"dyn_clone\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]Bc[5,\"noq::endpoint\",\"noq::endpoint\"]Be[5,\"iroh::endpoint\",\"iroh::endpoint\"]Bg[6,\"n0_error::error\",\"n0_error::error\"]Dg[5,\"iroh_relay::server::http_server\",\"iroh_relay::server::http_server\"]4Cc[5,\"hyper::body::incoming\",\"hyper::body::incoming\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bm[5,\"core::net::ip_addr\",\"core::net::ip_addr\"]0Ck[6,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]Am[10,\"iroh_metrics::iterable\"]Db[10,\"core::iter::traits::iterator\",\"core::iter::traits::iterator\"]Bh[6,\"iroh_relay\",\"iroh_relay::key_cache\"]Am[15,\"iroh::endpoint::Source\"]An[10,\"n0_watcher\",\"n0_watcher\"]Ak[6,\"core::cmp\",\"core::cmp\"]Dk[5,\"iroh::endpoint\",\"iroh::socket::remote_map::remote_state::path_watcher\"]Bd[15,\"iroh_relay::client::RecvError\"]j[5,\"iroh\"]Bh[5,\"iroh_relay\",\"iroh_relay::relay_map\"]Ca[5,\"iroh_base::relay_url\",\"iroh_base::relay_url\"]2Bf[5,\"iroh_base\",\"iroh_base::relay_url\"]Bj[15,\"iroh::endpoint::AuthenticationError\"]Bh[10,\"iroh_relay::dns\",\"iroh_relay::dns\"]B`[2,\"iroh_relay::server::client\"]Cm[6,\"iroh_relay::server::client\",\"iroh_relay::server::client\"]Ad[5,\"iroh::endpoint\"]Ad[10,\"alloc::string\"]Ae[10,\"iroh::endpoint\"]Bg[15,\"iroh_relay::protos::relay::Error\"]Ck[5,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]4Aj[5,\"iroh::address_lookup\"]1o[6,\"z32\",\"z32\"]j[2,\"iroh\"]A`[2,\"iroh_relay\"]11Ah[2,\"iroh_relay::server\"]Aj[2,\"iroh_relay::defaults\"]:Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Ci[5,\"tokio_rustls_acme::state\",\"tokio_rustls_acme::state\"]Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]Ad[2,\"iroh::endpoint\"]Ca[6,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Al[10,\"tokio::io::async_read\"]2Bc[6,\"iroh::endpoint\",\"iroh::socket\"]Ac[10,\"core::borrow\"]Ac[10,\"async_compat\"]Al[10,\"rand_core\",\"rand_core\"]Cb[15,\"iroh_relay::protos::relay::ClientToRelayMsg\"]Cb[15,\"iroh_relay::protos::relay::RelayToClientMsg\"]Ck[5,\"iroh_relay::protos::relay\",\"iroh_relay::protos::relay\"]Ah[10,\"noq_proto::coding\"]Ah[2,\"iroh_relay::client\"]Bm[6,\"iroh_relay::client\",\"iroh_relay::client\"]Ca[5,\"iroh_dns_server::dns\",\"iroh_dns_server::dns\"]03Ak[5,\"core::fmt\",\"core::fmt\"]Ad[6,\"iroh::endpoint\"]Cm[6,\"iroh_relay::protos::common\",\"iroh_relay::protos::common\"]Bg[15,\"iroh_relay::client::ConnectError\"]Cc[15,\"iroh_relay::server::http_server::AcceptError\"]Ae[10,\"iroh::endpoint\"]Bk[5,\"http::header::map\",\"http::header::map\"]Ba[5,\"hdrhistogram\",\"hdrhistogram\"]Co[5,\"tokio::runtime::task::error\",\"tokio::runtime::task::error\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Be[15,\"iroh_relay::server::SpawnError\"]Dc[6,\"iroh_relay::protos::handshake\",\"iroh_relay::protos::handshake\"]j[5,\"iroh\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Bb[15,\"iroh::address_lookup::Error\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"];A`[10,\"core::cmp\"]Ad[5,\"iroh::endpoint\"]An[10,\"crossbeam_epoch::atomic\"]Bj[10,\"tower_http::follow_redirect::policy\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]Be[5,\"iroh_base::key\",\"iroh_base::key\"]:B`[5,\"iroh_base\",\"iroh_base::key\"]=Ad[6,\"iroh::endpoint\"]Ck[5,\"hickory_proto::rr::rr_set\",\"hickory_proto::rr::rr_set\"]Ck[5,\"tokio::sync::watch::error\",\"tokio::sync::watch::error\"]Ah[2,\"iroh_relay::client\"]Ba[2,\"iroh_relay::server::streams\"]Cc[6,\"iroh_relay::client\",\"iroh_relay::client::conn\"]Co[6,\"iroh_relay::server::streams\",\"iroh_relay::server::streams\"]Be[6,\"iroh::endpoint\",\"iroh::endpoint\"]Cc[8,\"reqwest::dns::resolve\",\"reqwest::dns::resolve\"]:j[5,\"iroh\"]:6543Af[10,\"serde_core::ser\"]1;Cg[5,\"tokio::net::tcp::stream\",\"tokio::net::tcp::stream\"]Bk[15,\"iroh_relay::server::client::RunError\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Dg[5,\"iroh_relay::server::http_server\",\"iroh_relay::server::http_server\"]Ak[10,\"futures_core::future\"]Ak[10,\"futures_core::stream\"]Bi[5,\"core::str::error\",\"core::str::error\"]An[15,\"iroh_relay::quic::Error\"]Bg[15,\"iroh_relay::client::ConnectError\"]Bk[15,\"iroh_relay::protos::handshake::Error\"]Bn[5,\"iroh_dns_server\",\"iroh_dns_server::store\"]Ak[2,\"noq_proto::connection\"]Ah[2,\"iroh_relay::protos\"]f[3,\"\"]A`[2,\"iroh_relay\"]1f[1,\"\"]1o[2,\"iroh_base\"]Ag[2,\"noq_proto::config\"]Aj[5,\"iroh::address_lookup\"]Ck[5,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]Em[5,\"clap_builder::parser::matches::arg_matches\",\"clap_builder::parser::matches::arg_matches\"]Am[10,\"tokio::io::async_write\"]Ah[2,\"iroh_relay::server\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]Bm[5,\"iroh_relay::client\",\"iroh_relay::client\"]Aa[10,\"equivalent\"]Bc[15,\"iroh::endpoint::ConnectError\"]Bb[15,\"iroh::protocol::AcceptError\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Am[15,\"iroh::endpoint::Source\"]Cm[5,\"iroh::endpoint::connection\",\"iroh::endpoint::connection\"]43An[15,\"iroh_relay::quic::Error\"]Bg[5,\"noq::connection\",\"noq::connection\"]4Ae[10,\"iroh::endpoint\"]Bc[5,\"iroh::endpoint\",\"iroh::socket\"]Ca[15,\"iroh::address_lookup::mdns::DiscoveryEvent\"]Ca[5,\"iroh_dns_server::dns\",\"iroh_dns_server::dns\"]Ak[8,\"iroh\",\"iroh_base::key\"]B`[8,\"iroh_base\",\"iroh_base::key\"]Be[8,\"iroh_base::key\",\"iroh_base::key\"]A`[10,\"hashbrown\"]?Ad[5,\"iroh::endpoint\"]Bm[5,\"http::header::name\",\"http::header::name\"]Cc[5,\"iroh_dns_server::http\",\"iroh_dns_server::http\"]0Bc[6,\"core::convert\",\"core::convert\"]Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]B`[10,\"core::future::into_future\"]Bi[15,\"iroh::endpoint_info::DecodingError\"]Bo[15,\"iroh_relay::endpoint_info::DecodingError\"]Bd[15,\"iroh_relay::client::DialError\"]Bi[6,\"noq_proto::frame\",\"noq_proto::frame\"]Bm[5,\"iroh_metrics::base\",\"iroh_metrics::base\"]B`[15,\"iroh_relay::dns::DnsError\"]Bm[8,\"core::num::nonzero\",\"core::num::nonzero\"]Bb[15,\"iroh::protocol::AcceptError\"]Bk[15,\"iroh_relay::server::client::RunError\"]Aj[2,\"iroh::address_lookup\"]Ao[6,\"url::parser\",\"url::parser\"]Bc[15,\"iroh_relay::dns::LookupError\"]Ao[2,\"iroh_relay::endpoint_info\"]Aj[6,\"iroh::address_lookup\"]Ck[6,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]A`[10,\"core::cmp\"]Ba[2,\"iroh::address_lookup::pkarr\"]Co[6,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]Ad[5,\"iroh::endpoint\"]Bi[5,\"iroh_relay::quic\",\"iroh_relay::quic\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]De[6,\"hickory_proto::rr::record_type\",\"hickory_proto::rr::record_type\"]3Dj[5,\"iroh::endpoint\",\"iroh::socket::remote_map::remote_state::remote_info\"]Ad[6,\"iroh::endpoint\"]Cb[15,\"iroh_relay::protos::relay::RelayToClientMsg\"]Bc[5,\"noq::incoming\",\"noq::incoming\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]8Bh[10,\"serde_core::ser\",\"serde_core::ser\"]Ce[6,\"core::net::socket_addr\",\"core::net::socket_addr\"]Ah[2,\"iroh_relay::server\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]Af[10,\"n0_error::error\"]Ba[5,\"http::status\",\"http::status\"]Ak[10,\"clap_builder::derive\"]Ak[5,\"std::time\",\"std::time\"]Ae[10,\"iroh::endpoint\"]Bl[10,\"iroh::endpoint\",\"iroh::endpoint::bind\"]Bl[2,\"iroh::socket::remote_map::remote_state\"]A`[2,\"iroh_relay\"]Am[15,\"iroh::endpoint::Source\"]B`[15,\"iroh::endpoint::BindError\"]Cb[10,\"iroh::address_lookup\",\"iroh::address_lookup\"]o[5,\"iroh::tls\"]Bg[5,\"iroh_relay::tls\",\"iroh_relay::tls\"]Bm[5,\"iroh_relay::client\",\"iroh_relay::client\"]Ab[10,\"core::clone\"]Bg[15,\"iroh::address_lookup::ParseError\"]Ai[2,\"iroh::endpoint_info\"]Ao[2,\"iroh_relay::endpoint_info\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Ai[6,\"iroh::endpoint_info\"]Ck[6,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]4310Ad[2,\"iroh::endpoint\"]Be[6,\"iroh::endpoint\",\"iroh::endpoint\"]Bm[10,\"iroh::endpoint\",\"iroh::endpoint::hooks\"]Aj[10,\"iroh::endpoint_info\"]Cl[10,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]Cc[15,\"iroh_relay::server::client::HandleFrameError\"]Bk[15,\"iroh_relay::server::client::RunError\"]Bg[15,\"iroh_relay::protos::relay::Error\"]1Bi[15,\"iroh::endpoint_info::DecodingError\"]Bo[15,\"iroh_relay::endpoint_info::DecodingError\"]Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]Cg[5,\"iroh_dns_server::config\",\"iroh_dns_server::config\"]Co[5,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]Bi[6,\"rustls_pki_types\",\"rustls_pki_types\"]Bo[5,\"iroh::test_utils\",\"iroh::test_utils::qlog\"]Co[5,\"iroh_relay::server::streams\",\"iroh_relay::server::streams\"]Be[5,\"iroh::protocol\",\"iroh::protocol\"]Ac[5,\"iroh::metrics\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Ci[6,\"iroh_base::endpoint_addr\",\"iroh_base::endpoint_addr\"]j[6,\"iroh\"]Bj[6,\"iroh_base\",\"iroh_base::endpoint_addr\"]Bg[5,\"iroh_relay::dns\",\"iroh_relay::dns\"]Ca[15,\"iroh_relay::protos::common::FrameTypeError\"]Bk[15,\"iroh_relay::protos::handshake::Error\"]Bk[5,\"noq_proto::coding\",\"noq_proto::coding\"]Ca[6,\"iroh::endpoint\",\"iroh::endpoint::connection\"]o[2,\"iroh_base\"]j[2,\"iroh\"]A`[2,\"iroh_relay\"]Ak[2,\"iroh_dns_server::http\"]Bk[5,\"core::net::parser\",\"core::net::parser\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Cn[15,\"iroh_relay::server::http_server::ConnectionHandlerError\"]Bi[5,\"rustls_pki_types\",\"rustls_pki_types\"]Ak[10,\"clap_builder::derive\"]Be[5,\"iroh::endpoint\",\"iroh::endpoint\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Be[5,\"rustls::crypto\",\"rustls::crypto\"]Bc[6,\"iroh::endpoint\",\"iroh::socket\"]B`[2,\"iroh::address_lookup::mdns\"]Cm[6,\"iroh::address_lookup::mdns\",\"iroh::address_lookup::mdns\"]D`[5,\"iroh::test_utils\",\"iroh::test_utils::dns_and_pkarr_servers\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Cf[15,\"iroh::address_lookup::AddressLookupBuilderError\"]8B`[2,\"iroh_relay::protos::common\"]Bk[15,\"iroh_relay::protos::handshake::Error\"]Bg[15,\"iroh_relay::protos::relay::Error\"]Cm[6,\"iroh_relay::protos::common\",\"iroh_relay::protos::common\"]=Am[5,\"n0_watcher\",\"n0_watcher\"]Cg[5,\"iroh_dns_server::config\",\"iroh_dns_server::config\"]Co[6,\"iroh_relay::server::streams\",\"iroh_relay::server::streams\"]Cg[5,\"iroh::endpoint::presets\",\"iroh::endpoint::presets\"]Bo[15,\"iroh_relay::protos::streams::StreamError\"]Co[5,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]Ac[5,\"iroh::metrics\"]Ba[5,\"ipnet::ipnet\",\"ipnet::ipnet\"]Ao[6,\"pkarr::keys\",\"pkarr::keys\"]Ad[6,\"iroh::endpoint\"]0Bn[10,\"hickory_server::server::request_handler\"]Cc[8,\"ed25519_dalek::errors\",\"ed25519_dalek::errors\"]j[5,\"iroh\"]B`[5,\"iroh_base\",\"iroh_base::key\"]Da[6,\"simple_dns::simple_dns_error\",\"simple_dns::simple_dns_error\"]Bg[5,\"iroh_relay::dns\",\"iroh_relay::dns\"]Be[15,\"iroh_relay::server::SpawnError\"]Bk[5,\"iroh_bench::stats\",\"iroh_bench::stats\"]Ad[5,\"iroh::endpoint\"]j[2,\"iroh\"]33Cg[6,\"iroh_dns_server::config\",\"iroh_dns_server::config\"]D`[10,\"iroh_relay::protos::streams\",\"iroh_relay::protos::streams\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Ad[2,\"iroh::endpoint\"]Ca[6,\"iroh::endpoint\",\"iroh::endpoint::connection\"]6B`[15,\"iroh::endpoint::AlpnError\"]Bf[15,\"iroh::endpoint::ConnectingError\"]Cc[6,\"noq_proto::connection\",\"noq_proto::connection\"]Ad[6,\"iroh::endpoint\"]Cb[10,\"iroh::endpoint\",\"iroh::endpoint::connection\"];Cn[15,\"iroh_relay::server::http_server::ConnectionHandlerError\"]Bc[5,\"iroh::metrics\",\"iroh::metrics\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]Bg[15,\"iroh_relay::client::ConnectError\"]B`[15,\"iroh_relay::dns::DnsError\"]Bi[15,\"iroh::endpoint_info::EncodingError\"]Bo[15,\"iroh_relay::endpoint_info::EncodingError\"]j[2,\"iroh\"]o[2,\"iroh_base\"]Be[6,\"iroh_base::key\",\"iroh_base::key\"]j[6,\"iroh\"]B`[6,\"iroh_base\",\"iroh_base::key\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Bf[15,\"iroh::endpoint::ConnectingError\"]Eo[5,\"hickory_server::authority::message_response\",\"hickory_server::authority::message_response\"]Ai[10,\"iroh_metrics::base\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bf[10,\"iroh::protocol\",\"iroh::protocol\"]Bd[15,\"iroh_relay::client::DialError\"]Ad[5,\"iroh::endpoint\"]Db[6,\"iroh_dns_server::http\",\"iroh_dns_server::http::rate_limiting\"]Bh[5,\"iroh_relay\",\"iroh_relay::relay_map\"]Bo[10,\"hickory_server::server::response_handler\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]Ah[2,\"iroh_relay::server\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]6Da[5,\"noq_proto::config::transport\",\"noq_proto::config::transport\"]Bm[5,\"alloc::collections\",\"alloc::collections\"]Bg[15,\"iroh_relay::protos::relay::Error\"]B`[2,\"iroh_relay::server::client\"]Cm[6,\"iroh_relay::server::client\",\"iroh_relay::server::client\"]f[3,\"\"]Co[5,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]Be[2,\"iroh_relay::server::http_server\"]Dg[6,\"iroh_relay::server::http_server\",\"iroh_relay::server::http_server\"]=o[2,\"noq_proto\"]Ad[2,\"iroh::endpoint\"]<4Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Ai[5,\"num_enum\",\"num_enum\"]Ad[5,\"iroh::endpoint\"]Af[2,\"iroh::test_utils\"]76B`[15,\"iroh::endpoint::BindError\"]Ai[5,\"iroh::endpoint_info\"]Ck[5,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Bd[15,\"iroh_relay::client::DialError\"]Ca[6,\"pkarr::signed_packet\",\"pkarr::signed_packet\"]2Bk[15,\"iroh_relay::protos::handshake::Error\"]Ca[5,\"iroh::address_lookup\",\"iroh::address_lookup\"]Ck[5,\"iroh::address_lookup::dns\",\"iroh::address_lookup::dns\"]Bb[15,\"iroh::protocol::AcceptError\"]Co[5,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]5Bg[15,\"iroh_relay::client::ConnectError\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Bf[15,\"iroh::endpoint::ConnectingError\"]Cm[5,\"iroh::address_lookup::mdns\",\"iroh::address_lookup::mdns\"]Dc[5,\"iroh_relay::protos::handshake\",\"iroh_relay::protos::handshake\"]Aj[2,\"iroh::address_lookup\"]Ca[6,\"iroh::address_lookup\",\"iroh::address_lookup\"]Ad[5,\"iroh::endpoint\"]Ca[8,\"iroh::endpoint\",\"iroh::endpoint::connection\"]0??Cc[15,\"iroh_relay::server::http_server::AcceptError\"]Bk[5,\"iroh::endpoint\",\"iroh::endpoint::quic\"]Bg[15,\"iroh_relay::protos::relay::Error\"]") \ No newline at end of file diff --git a/pr/3958/docs/search.index/path/ccab7b306eed.js b/pr/3958/docs/search.index/path/ccab7b306eed.js deleted file mode 100644 index 0e06a938eb..0000000000 --- a/pr/3958/docs/search.index/path/ccab7b306eed.js +++ /dev/null @@ -1 +0,0 @@ -rd_("f[1,\"\"]0Al[10,\"core::cmp\",\"core::cmp\"]Al[10,\"core::ops\",\"core::ops\"]Ce[5,\"clap_builder::util::id\",\"clap_builder::util::id\"]Bd[15,\"iroh_relay::client::DialError\"]Cg[5,\"iroh::endpoint::presets\",\"iroh::endpoint::presets\"]Eg[5,\"tower_http::follow_redirect::policy::or\",\"tower_http::follow_redirect::policy::or\"]66Ei[5,\"tower_http::follow_redirect::policy::and\",\"tower_http::follow_redirect::policy::and\"]A`[10,\"core::any\"]Ao[5,\"alloc::sync\",\"alloc::sync\"]Ba[5,\"alloc::boxed\",\"alloc::boxed\"]Cb[10,\"bytes::buf::buf_impl\",\"bytes::buf::buf_impl\"]Ad[6,\"iroh::endpoint\"]8g[17,\"\"]Am[5,\"n0_watcher\",\"n0_watcher\"]Ae[10,\"core::ops::bit\"]Am[5,\"iroh_bench\",\"iroh_bench\"]Bg[5,\"iroh_bench::s2n\",\"iroh_bench::s2n\"]A`[10,\"core::cmp\"]Ak[5,\"core::pin\",\"core::pin\"]Bg[15,\"iroh_relay::client::ConnectError\"]o[5,\"url\",\"url\"]Am[5,\"alloc::vec\",\"alloc::vec\"]Ba[2,\"iroh::address_lookup::pkarr\"]j[2,\"iroh\"]Aj[2,\"iroh::address_lookup\"]A`[2,\"iroh_relay\"]Ae[2,\"iroh_dns_server\"]f[1,\"\"]000o[2,\"iroh_base\"]f[0,\"\"]A`[2,\"iroh_bench\"]3Ak[2,\"iroh_dns_server::http\"]444Ak[10,\"clap_builder::derive\"]Bb[10,\"core::marker\",\"core::marker\"]>Af[10,\"core::ops::drop\"]Ad[10,\"core::convert\"]Aa[10,\"core::hash\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]2g[17,\"\"]Ca[5,\"iroh::address_lookup\",\"iroh::address_lookup\"]Ad[5,\"iroh::endpoint\"]Be[5,\"n0_error::meta\",\"n0_error::meta\"]Cc[5,\"reqwest::dns::resolve\",\"reqwest::dns::resolve\"]Dg[5,\"hickory_proto::rr::domain::name\",\"hickory_proto::rr::domain::name\"]Ak[5,\"std::path\",\"std::path\"]Am[15,\"iroh::endpoint::Source\"]Bi[6,\"core::task::poll\",\"core::task::poll\"]Cc[15,\"iroh_relay::server::client::HandleFrameError\"]>0Ad[6,\"iroh::endpoint\"]Ac[10,\"futures_sink\"]Bb[10,\"core::marker\",\"core::marker\"]Bb[15,\"iroh::address_lookup::Error\"]Cc[15,\"iroh::address_lookup::IntoAddressLookupError\"]Bb[15,\"iroh::protocol::AcceptError\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Ah[10,\"ppv_lite86::types\"]Ad[2,\"iroh::endpoint\"]f[1,\"\"]f[3,\"\"]Ah[2,\"iroh_relay::client\"]A`[2,\"iroh_relay\"]Ae[2,\"iroh_dns_server\"]A`[2,\"iroh_bench\"]4Aj[2,\"iroh::address_lookup\"]Ad[2,\"iroh::defaults\"]Af[2,\"iroh::test_utils\"]An[2,\"iroh_quinn_proto::config\"]:6Bk[2,\"iroh_quinn_proto::connection::streams\"]::Bd[10,\"core::convert\",\"core::convert\"]Ad[10,\"core::convert\"]Ca[8,\"futures_lite::future\",\"futures_lite::future\"]Ca[8,\"futures_lite::stream\",\"futures_lite::stream\"]Ba[5,\"bytes::bytes\",\"bytes::bytes\"]Ad[5,\"iroh::endpoint\"]Ab[10,\"core::clone\"]Cg[6,\"iroh_quinn_proto::frame\",\"iroh_quinn_proto::frame\"]A`[10,\"core::fmt\"]Ag[10,\"core::ops::deref\"]g[17,\"\"]Ak[5,\"core::fmt\",\"core::fmt\"]Ab[10,\"core::error\"]Be[5,\"std::io::error\",\"std::io::error\"]Aj[2,\"iroh::address_lookup\"]Ba[8,\"clap_builder\",\"clap_builder\"]Bi[5,\"signature::error\",\"signature::error\"]Af[2,\"iroh_relay::quic\"]Bc[2,\"iroh_relay::protos::handshake\"]Ao[2,\"iroh_relay::protos::relay\"]Ba[5,\"hyper::error\",\"hyper::error\"]Ee[6,\"iroh_quinn_proto::transport_parameters\",\"iroh_quinn_proto::transport_parameters\"]Be[5,\"reqwest::error\",\"reqwest::error\"]Bg[6,\"postcard::error\",\"postcard::error\"]Cg[6,\"tokio_websockets::error\",\"tokio_websockets::error\"]Bi[6,\"netwatch::netmon\",\"netwatch::netmon\"]Ca[6,\"iroh::address_lookup\",\"iroh::address_lookup\"]Bi[6,\"iroh_relay::quic\",\"iroh_relay::quic\"]Dc[6,\"iroh_relay::protos::handshake\",\"iroh_relay::protos::handshake\"]Ck[6,\"iroh_relay::protos::relay\",\"iroh_relay::protos::relay\"]Bk[15,\"iroh_relay::server::client::RunError\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]Bm[15,\"iroh_relay::server::streams::RecvError\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Bg[15,\"iroh_relay::protos::relay::Error\"]Bb[10,\"core::marker\",\"core::marker\"]Bk[5,\"iroh_bench::stats\",\"iroh_bench::stats\"]Am[5,\"n0_watcher\",\"n0_watcher\"]2g[17,\"\"]Ah[10,\"std::io\",\"std::io\"]f[1,\"\"]Af[2,\"iroh_quinn_proto\"]Ad[2,\"iroh::endpoint\"]Bb[2,\"iroh_quinn_proto::connection\"]Aj[2,\"iroh::address_lookup\"]A`[2,\"iroh_bench\"]Ah[2,\"iroh_relay::protos\"]6Ae[2,\"iroh_dns_server\"]240677Cn[15,\"iroh_relay::server::http_server::ConnectionHandlerError\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]Ac[10,\"core::borrow\"]C`[10,\"bytes::buf::buf_mut\",\"bytes::buf::buf_mut\"]Bc[5,\"pkarr::client\",\"pkarr::client\"]Bm[5,\"iroh_relay::client\",\"iroh_relay::client\"]Cm[5,\"iroh_relay::server::client\",\"iroh_relay::server::client\"]Bd[15,\"iroh::endpoint::EndpointError\"]Ba[5,\"async_compat\",\"async_compat\"]Cg[5,\"iroh_dns_server::config\",\"iroh_dns_server::config\"]3Cb[10,\"core::future::future\",\"core::future::future\"]Ca[5,\"iroh_dns_server::dns\",\"iroh_dns_server::dns\"]An[10,\"core::hash\",\"core::hash\"]Cb[15,\"iroh_relay::protos::relay::RelayToClientMsg\"]Bm[6,\"core::net::ip_addr\",\"core::net::ip_addr\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Bh[10,\"reloadable_core\",\"reloadable_core\"]Be[15,\"iroh_relay::server::CertConfig\"]Bj[15,\"iroh::endpoint::AuthenticationError\"]Ad[5,\"iroh::endpoint\"]Ba[6,\"core::option\",\"core::option\"]g[17,\"\"]2E`[10,\"tower_http::follow_redirect::policy\",\"tower_http::follow_redirect::policy\"]Ch[10,\"iroh::endpoint::presets\",\"iroh::endpoint::presets\"]Co[5,\"hickory_proto::rr::resource\",\"hickory_proto::rr::resource\"]Bl[15,\"iroh::endpoint::AfterHandshakeOutcome\"]Ak[8,\"core::fmt\",\"core::fmt\"]Ba[6,\"core::result\",\"core::result\"]Be[8,\"std::io::error\",\"std::io::error\"]Ai[8,\"n0_error\",\"n0_error\"]Be[5,\"iroh::protocol\",\"iroh::protocol\"]Cg[5,\"iroh_dns_server::server\",\"iroh_dns_server::server\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Ad[2,\"iroh::endpoint\"]Bo[6,\"iroh::endpoint\",\"iroh::socket::remote_map\"]Cb[15,\"iroh_relay::server::client::WriteFrameError\"]Ak[10,\"futures_core::stream\"]Am[5,\"n0_watcher\",\"n0_watcher\"]Bc[5,\"alloc::string\",\"alloc::string\"]Ak[5,\"core::any\",\"core::any\"]Ci[5,\"iroh_quinn_proto::varint\",\"iroh_quinn_proto::varint\"]Ad[5,\"iroh::endpoint\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]A`[2,\"iroh_relay\"]Ah[2,\"iroh_relay::server\"]Ah[2,\"iroh_relay::protos\"]Af[2,\"iroh_quinn_proto\"]Ae[2,\"iroh_dns_server\"]1Aj[2,\"iroh::address_lookup\"]551j[2,\"iroh\"]3Ae[10,\"iroh::endpoint\"]Bg[8,\"iroh_relay::dns\",\"iroh_relay::dns\"]Be[5,\"iroh::endpoint\",\"iroh::endpoint\"]Di[5,\"iroh::address_lookup::pkarr::dht\",\"iroh::address_lookup::pkarr::dht\"]Bg[5,\"iroh_relay::dns\",\"iroh_relay::dns\"]Co[5,\"iroh_relay::server::clients\",\"iroh_relay::server::clients\"]De[5,\"clap_builder::builder::command\",\"clap_builder::builder::command\"]Bc[15,\"iroh::endpoint::ConnectError\"]An[15,\"iroh_relay::quic::Error\"]Bi[5,\"core::task::wake\",\"core::task::wake\"]Cc[5,\"iroh_metrics::metrics\",\"iroh_metrics::metrics\"]Ad[10,\"core::default\"]A`[10,\"core::fmt\"]Bm[5,\"tokio::time::error\",\"tokio::time::error\"]Ca[15,\"iroh::address_lookup::mdns::DiscoveryEvent\"]Bc[10,\"axum_core::extract::from_ref\"]Ah[10,\"core::str::traits\"]Ak[5,\"std::time\",\"std::time\"]Ag[5,\"std::io\",\"std::io\"]Ci[5,\"iroh_quinn_proto::crypto\",\"iroh_quinn_proto::crypto\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Ci[5,\"iroh_dns_server::metrics\",\"iroh_dns_server::metrics\"]Cf[5,\"iroh_relay::server\",\"iroh_relay::server::metrics\"]Am[5,\"n0_watcher\",\"n0_watcher\"]Ad[5,\"iroh::endpoint\"]Ak[5,\"std::path\",\"std::path\"]Bk[5,\"dyn_clone::sealed\",\"dyn_clone::sealed\"]Bo[5,\"tokio::io::read_buf\",\"tokio::io::read_buf\"]Bc[5,\"http::request\",\"http::request\"]Eg[5,\"hickory_server::server::request_handler\",\"hickory_server::server::request_handler\"]B`[15,\"iroh_relay::dns::DnsError\"]Al[10,\"reqwest::dns::resolve\"]Cg[5,\"tokio::runtime::runtime\",\"tokio::runtime::runtime\"]An[10,\"hyper::service::service\"]B`[15,\"iroh::endpoint::BindError\"]Cg[5,\"iroh_quinn::send_stream\",\"iroh_quinn::send_stream\"]Bd[15,\"iroh_relay::client::DialError\"]Cb[15,\"iroh_relay::server::client::WriteFrameError\"]Cl[15,\"iroh_relay::server::http_server::ServeConnectionError\"]8Ad[10,\"alloc::borrow\"]Ad[10,\"core::convert\"]0Bg[15,\"iroh_relay::client::ConnectError\"]k[10,\"iroh\"]Ad[5,\"iroh::endpoint\"]Ah[2,\"iroh_relay::server\"]j[2,\"iroh\"]1Ae[2,\"iroh_dns_server\"]f[1,\"\"]Ad[2,\"iroh::endpoint\"]Ad[2,\"iroh::defaults\"]5Ah[2,\"iroh_relay::protos\"]Bb[2,\"iroh_quinn_proto::connection\"]78Bc[5,\"n0_error::any\",\"n0_error::any\"]Ce[5,\"iroh_dns_server::state\",\"iroh_dns_server::state\"]De[5,\"alloc::collections::btree::set\",\"alloc::collections::btree::set\"]Bk[5,\"iroh::endpoint\",\"iroh::endpoint::bind\"]Bi[5,\"bytes::bytes_mut\",\"bytes::bytes_mut\"]Ch[6,\"iroh_dns_server::http\",\"iroh_dns_server::http::tls\"]Am[6,\"iroh_bench\",\"iroh_bench\"]Ag[10,\"core::ops::deref\"]Ae[2,\"iroh_relay::dns\"]Bg[6,\"iroh_relay::dns\",\"iroh_relay::dns\"]Am[5,\"core::time\",\"core::time\"]A`[10,\"dyn_clone\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]Ca[5,\"iroh_quinn::endpoint\",\"iroh_quinn::endpoint\"]Be[5,\"iroh::endpoint\",\"iroh::endpoint\"]Bg[6,\"n0_error::error\",\"n0_error::error\"]Dg[5,\"iroh_relay::server::http_server\",\"iroh_relay::server::http_server\"]4Cc[5,\"hyper::body::incoming\",\"hyper::body::incoming\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bm[5,\"core::net::ip_addr\",\"core::net::ip_addr\"]0Ck[6,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]Am[10,\"iroh_metrics::iterable\"]Db[10,\"core::iter::traits::iterator\",\"core::iter::traits::iterator\"]Bh[6,\"iroh_relay\",\"iroh_relay::key_cache\"]Am[15,\"iroh::endpoint::Source\"]An[10,\"n0_watcher\",\"n0_watcher\"]Ak[6,\"core::cmp\",\"core::cmp\"]Dk[5,\"iroh::endpoint\",\"iroh::socket::remote_map::remote_state::path_watcher\"]Bd[15,\"iroh_relay::client::RecvError\"]j[5,\"iroh\"]Bh[5,\"iroh_relay\",\"iroh_relay::relay_map\"]Ca[5,\"iroh_base::relay_url\",\"iroh_base::relay_url\"]2Bf[5,\"iroh_base\",\"iroh_base::relay_url\"]Bj[15,\"iroh::endpoint::AuthenticationError\"]Bh[10,\"iroh_relay::dns\",\"iroh_relay::dns\"]B`[2,\"iroh_relay::server::client\"]Cm[6,\"iroh_relay::server::client\",\"iroh_relay::server::client\"]Ad[5,\"iroh::endpoint\"]Ad[10,\"alloc::string\"]Ae[10,\"iroh::endpoint\"]Bg[15,\"iroh_relay::protos::relay::Error\"]Ck[5,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]4Aj[5,\"iroh::address_lookup\"]1o[6,\"z32\",\"z32\"]j[2,\"iroh\"]A`[2,\"iroh_relay\"]11Ah[2,\"iroh_relay::server\"]Aj[2,\"iroh_relay::defaults\"]:Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Ci[5,\"tokio_rustls_acme::state\",\"tokio_rustls_acme::state\"]Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]Ad[2,\"iroh::endpoint\"]Ca[6,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Al[10,\"tokio::io::async_read\"]2Bc[6,\"iroh::endpoint\",\"iroh::socket\"]Ac[10,\"core::borrow\"]Ac[10,\"async_compat\"]Al[10,\"rand_core\",\"rand_core\"]Cb[15,\"iroh_relay::protos::relay::ClientToRelayMsg\"]Cb[15,\"iroh_relay::protos::relay::RelayToClientMsg\"]Ck[5,\"iroh_relay::protos::relay\",\"iroh_relay::protos::relay\"]Ao[10,\"iroh_quinn_proto::coding\"]Ah[2,\"iroh_relay::client\"]Bm[6,\"iroh_relay::client\",\"iroh_relay::client\"]Ca[5,\"iroh_dns_server::dns\",\"iroh_dns_server::dns\"]03Ak[5,\"core::fmt\",\"core::fmt\"]Ad[6,\"iroh::endpoint\"]Cm[6,\"iroh_relay::protos::common\",\"iroh_relay::protos::common\"]Bg[15,\"iroh_relay::client::ConnectError\"]Cc[15,\"iroh_relay::server::http_server::AcceptError\"]Ae[10,\"iroh::endpoint\"]Bk[5,\"http::header::map\",\"http::header::map\"]Ba[5,\"hdrhistogram\",\"hdrhistogram\"]Co[5,\"tokio::runtime::task::error\",\"tokio::runtime::task::error\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Be[15,\"iroh_relay::server::SpawnError\"]Dc[6,\"iroh_relay::protos::handshake\",\"iroh_relay::protos::handshake\"]j[5,\"iroh\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Bb[15,\"iroh::address_lookup::Error\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"];A`[10,\"core::cmp\"]Ad[5,\"iroh::endpoint\"]An[10,\"crossbeam_epoch::atomic\"]Bj[10,\"tower_http::follow_redirect::policy\"]Bn[15,\"iroh::address_lookup::pkarr::PkarrError\"]Be[5,\"iroh_base::key\",\"iroh_base::key\"]:B`[5,\"iroh_base\",\"iroh_base::key\"]=Ad[6,\"iroh::endpoint\"]Ck[5,\"hickory_proto::rr::rr_set\",\"hickory_proto::rr::rr_set\"]Ck[5,\"tokio::sync::watch::error\",\"tokio::sync::watch::error\"]Ah[2,\"iroh_relay::client\"]Ba[2,\"iroh_relay::server::streams\"]Cc[6,\"iroh_relay::client\",\"iroh_relay::client::conn\"]Co[6,\"iroh_relay::server::streams\",\"iroh_relay::server::streams\"]Be[6,\"iroh::endpoint\",\"iroh::endpoint\"]Cc[8,\"reqwest::dns::resolve\",\"reqwest::dns::resolve\"]:j[5,\"iroh\"]:6543Af[10,\"serde_core::ser\"]1;Cg[5,\"tokio::net::tcp::stream\",\"tokio::net::tcp::stream\"]Bk[15,\"iroh_relay::server::client::RunError\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]Dg[5,\"iroh_relay::server::http_server\",\"iroh_relay::server::http_server\"]Ak[10,\"futures_core::future\"]Ak[10,\"futures_core::stream\"]Bi[5,\"core::str::error\",\"core::str::error\"]An[15,\"iroh_relay::quic::Error\"]Bg[15,\"iroh_relay::client::ConnectError\"]Bk[15,\"iroh_relay::protos::handshake::Error\"]Bn[5,\"iroh_dns_server\",\"iroh_dns_server::store\"]Bb[2,\"iroh_quinn_proto::connection\"]Ah[2,\"iroh_relay::protos\"]f[3,\"\"]A`[2,\"iroh_relay\"]f[1,\"\"]1o[2,\"iroh_base\"]An[2,\"iroh_quinn_proto::config\"]Em[5,\"clap_builder::parser::matches::arg_matches\",\"clap_builder::parser::matches::arg_matches\"]Am[10,\"tokio::io::async_write\"]Ah[2,\"iroh_relay::server\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]Bm[5,\"iroh_relay::client\",\"iroh_relay::client\"]Aa[10,\"equivalent\"]Bc[15,\"iroh::endpoint::ConnectError\"]Bb[15,\"iroh::protocol::AcceptError\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Am[15,\"iroh::endpoint::Source\"]Cm[5,\"iroh::endpoint::connection\",\"iroh::endpoint::connection\"]43An[15,\"iroh_relay::quic::Error\"]Ce[5,\"iroh_quinn::connection\",\"iroh_quinn::connection\"]4Ae[10,\"iroh::endpoint\"]Bc[5,\"iroh::endpoint\",\"iroh::socket\"]Ca[15,\"iroh::address_lookup::mdns::DiscoveryEvent\"]Ca[5,\"iroh_dns_server::dns\",\"iroh_dns_server::dns\"]Ak[8,\"iroh\",\"iroh_base::key\"]B`[8,\"iroh_base\",\"iroh_base::key\"]Be[8,\"iroh_base::key\",\"iroh_base::key\"]A`[10,\"hashbrown\"]?Ad[5,\"iroh::endpoint\"]Bm[5,\"http::header::name\",\"http::header::name\"]Cc[5,\"iroh_dns_server::http\",\"iroh_dns_server::http\"]0Bc[6,\"core::convert\",\"core::convert\"]Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]B`[10,\"core::future::into_future\"]Bi[15,\"iroh::endpoint_info::DecodingError\"]Bo[15,\"iroh_relay::endpoint_info::DecodingError\"]Bd[15,\"iroh_relay::client::DialError\"]Cg[6,\"iroh_quinn_proto::frame\",\"iroh_quinn_proto::frame\"]Bm[5,\"iroh_metrics::base\",\"iroh_metrics::base\"]B`[15,\"iroh_relay::dns::DnsError\"]Bm[8,\"core::num::nonzero\",\"core::num::nonzero\"]Bb[15,\"iroh::protocol::AcceptError\"]Bk[15,\"iroh_relay::server::client::RunError\"]Aj[2,\"iroh::address_lookup\"]Ao[6,\"url::parser\",\"url::parser\"]Bc[15,\"iroh_relay::dns::LookupError\"]Ao[2,\"iroh_relay::endpoint_info\"]Aj[6,\"iroh::address_lookup\"]Ck[6,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]A`[10,\"core::cmp\"]Ba[2,\"iroh::address_lookup::pkarr\"]Co[6,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]Ad[5,\"iroh::endpoint\"]Bi[5,\"iroh_relay::quic\",\"iroh_relay::quic\"]Bm[5,\"iroh_relay::server\",\"iroh_relay::server\"]De[6,\"hickory_proto::rr::record_type\",\"hickory_proto::rr::record_type\"]3Dj[5,\"iroh::endpoint\",\"iroh::socket::remote_map::remote_state::remote_info\"]Ad[6,\"iroh::endpoint\"]Cb[15,\"iroh_relay::protos::relay::RelayToClientMsg\"]Ca[5,\"iroh_quinn::incoming\",\"iroh_quinn::incoming\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]8Bh[10,\"serde_core::ser\",\"serde_core::ser\"]Ce[6,\"core::net::socket_addr\",\"core::net::socket_addr\"]Ah[2,\"iroh_relay::server\"]Bm[6,\"iroh_relay::server\",\"iroh_relay::server\"]Af[10,\"n0_error::error\"]Ba[5,\"http::status\",\"http::status\"]Ak[10,\"clap_builder::derive\"]Ak[5,\"std::time\",\"std::time\"]Ae[10,\"iroh::endpoint\"]Bl[10,\"iroh::endpoint\",\"iroh::endpoint::bind\"]Bl[2,\"iroh::socket::remote_map::remote_state\"]A`[2,\"iroh_relay\"]Am[15,\"iroh::endpoint::Source\"]B`[15,\"iroh::endpoint::BindError\"]Cb[10,\"iroh::address_lookup\",\"iroh::address_lookup\"]Bm[5,\"iroh_relay::client\",\"iroh_relay::client\"]Ab[10,\"core::clone\"]Bg[15,\"iroh::address_lookup::ParseError\"]Ai[2,\"iroh::endpoint_info\"]Ao[2,\"iroh_relay::endpoint_info\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Ai[6,\"iroh::endpoint_info\"]Ck[6,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]4310Ad[2,\"iroh::endpoint\"]Be[6,\"iroh::endpoint\",\"iroh::endpoint\"]Bm[10,\"iroh::endpoint\",\"iroh::endpoint::hooks\"]Aj[10,\"iroh::endpoint_info\"]Cl[10,\"iroh_relay::endpoint_info\",\"iroh_relay::endpoint_info\"]Cc[15,\"iroh_relay::server::client::HandleFrameError\"]Bk[15,\"iroh_relay::server::client::RunError\"]Bg[15,\"iroh_relay::protos::relay::Error\"]1Bi[15,\"iroh::endpoint_info::DecodingError\"]Bo[15,\"iroh_relay::endpoint_info::DecodingError\"]Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]Cg[5,\"iroh_dns_server::config\",\"iroh_dns_server::config\"]Co[5,\"iroh::address_lookup::pkarr\",\"iroh::address_lookup::pkarr\"]Bi[6,\"rustls_pki_types\",\"rustls_pki_types\"]Bo[5,\"iroh::test_utils\",\"iroh::test_utils::qlog\"]Co[5,\"iroh_relay::server::streams\",\"iroh_relay::server::streams\"]Be[5,\"iroh::protocol\",\"iroh::protocol\"]Ac[5,\"iroh::metrics\"]Bj[15,\"iroh_relay::server::SupervisorError\"]Ci[6,\"iroh_base::endpoint_addr\",\"iroh_base::endpoint_addr\"]j[6,\"iroh\"]Bj[6,\"iroh_base\",\"iroh_base::endpoint_addr\"]Bg[5,\"iroh_relay::dns\",\"iroh_relay::dns\"]Ca[15,\"iroh_relay::protos::common::FrameTypeError\"]Bk[15,\"iroh_relay::protos::handshake::Error\"]Ci[5,\"iroh_quinn_proto::coding\",\"iroh_quinn_proto::coding\"]Ca[6,\"iroh::endpoint\",\"iroh::endpoint::connection\"]o[2,\"iroh_base\"]j[2,\"iroh\"]A`[2,\"iroh_relay\"]Ak[2,\"iroh_dns_server::http\"]Bk[5,\"core::net::parser\",\"core::net::parser\"]Bg[15,\"iroh::address_lookup::ParseError\"]Bl[15,\"iroh_relay::endpoint_info::ParseError\"]Cn[15,\"iroh_relay::server::http_server::ConnectionHandlerError\"]Bi[5,\"rustls_pki_types\",\"rustls_pki_types\"]Ak[10,\"clap_builder::derive\"]Be[5,\"iroh::endpoint\",\"iroh::endpoint\"]Ca[5,\"iroh::endpoint\",\"iroh::endpoint::connection\"]Bc[6,\"iroh::endpoint\",\"iroh::socket\"]B`[2,\"iroh::address_lookup::mdns\"]Cm[6,\"iroh::address_lookup::mdns\",\"iroh::address_lookup::mdns\"]D`[5,\"iroh::test_utils\",\"iroh::test_utils::dns_and_pkarr_servers\"]Bk[15,\"iroh::endpoint::ConnectWithOptsError\"]Cc[15,\"iroh::address_lookup::IntoAddressLookupError\"]7B`[2,\"iroh_relay::protos::common\"]Bk[15,\"iroh_relay::protos::handshake::Error\"]Bg[15,\"iroh_relay::protos::relay::Error\"]Cm[6,\"iroh_relay::protos::common\",\"iroh_relay::protos::common\"]Al[15,\"iroh::KeyParsingError\"]Ba[15,\"iroh_base::KeyParsingError\"]Co[5,\"iroh_relay::server::streams\",\"iroh_relay::server::streams\"]Bg[15,\"iroh_relay::client::ConnectError\"]Bb[15,\"iroh::address_lookup::Error\"]Ca[5,\"iroh::endpoint::quic\",\"iroh::endpoint::quic\"]Bk[5,\"iroh::endpoint\",\"iroh::endpoint::quic\"]0>Bk[15,\"iroh_relay::protos::handshake::Error\"]?Bl[6,\"iroh::endpoint\",\"iroh::endpoint::hooks\"]:Be[6,\"iroh::endpoint\",\"iroh::endpoint\"]2Bh[15,\"iroh::endpoint::InvalidSocketAddr\"]Bd[15,\"iroh_relay::client::SendError\"]Bm[15,\"iroh_relay::server::streams::SendError\"]An[10,\"iroh_relay\",\"iroh_relay\"]Bi[15,\"iroh::endpoint_info::EncodingError\"]Bo[15,\"iroh_relay::endpoint_info::EncodingError\"]address_lookup.rs - source

    iroh/
    address_lookup.rs

    1//! Lookup the address of an Endpoint ID.
    +address_lookup.rs - source

    iroh/
    address_lookup.rs

    1//! Lookup the address of an Endpoint ID.
     2//!
     3//! To connect to an iroh endpoint a [`EndpointAddr`] is needed, which may contain a
     4//! [`RelayUrl`] or one or more *direct addresses* in addition to the [`EndpointId`].
    @@ -20,722 +20,722 @@
     20//! The [`Builder::address_lookup`] method is used to add an address lookup mechanism to an
     21//! [`Endpoint`].
     22//!
    -23//! Some generally useful Address Lookup implementations are provided:
    -24//!
    -25//! - [`MemoryLookup`] which allows application to add and remove out-of-band addressing
    -26//!   information.
    -27//!
    -28//! - The [`address_lookup::DnsAddressLookup`] which performs lookups via the standard DNS systems.  To publish
    -29//!   to this DNS server a [`PkarrPublisher`] is needed.  [Number 0] runs a public instance
    -30//!   of a [`PkarrPublisher`] with attached DNS server which is globally available and a
    -31//!   reliable default choice.
    +23//! Each address lookup service receives the full set of transport addresses when publishing,
    +24//! but may only publish a subset of them based on its own constraints.
    +25//!
    +26//! To control which addresses are published to a particular service, you can supply an
    +27//! [`AddrFilter`] when configuring it via [`AddressLookupBuilder::with_addr_filter`].  The filter
    +28//! receives the full set of addresses and returns an ordered [`Vec`], allowing you to both
    +29//! remove addresses you don't want published and prioritize the ones you do Each service
    +30//! may apply additional filtering on top based on its own constraints, but will not publish
    +31//! addresses outside of what the filter returns.  See each service's documentation for details.
     32//!
    -33//! - The [`PkarrResolver`] which can perform lookups from designated [pkarr relay servers]
    -34//!   using HTTP.
    -35//!
    -36//! - [`address_lookup::MdnsAddressLookup`]: mdns::MdnsAddressLookup which uses the crate `swarm-discovery`, an
    -37//!   opinionated mDNS implementation, to discover endpoints on the local network.
    -38//!
    -39//! - The [`address_lookup::DhtAddressLookup`] also uses the [`pkarr`] system but can also publish and lookup
    -40//!   records to/from the Mainline DHT. It requires enabling the `address-lookup-pkarr-dht` feature.
    -41//!
    -42//! To use multiple Address Lookup'ssimultaneously you can call [`Builder::address_lookup`].
    -43//! This will use [`ConcurrentAddressLookup`] under the hood, which performs lookups to all
    -44//! Address Lookupsystems at the same time.
    +33//! Some generally useful Address Lookup implementations are provided:
    +34//!
    +35//! - [`MemoryLookup`] which allows application to add and remove out-of-band addressing
    +36//!   information.
    +37//!
    +38//! - The [`address_lookup::DnsAddressLookup`] which performs lookups via the standard DNS systems.  To publish
    +39//!   to this DNS server a [`PkarrPublisher`] is needed.  [Number 0] runs a public instance
    +40//!   of a [`PkarrPublisher`] with attached DNS server which is globally available and a
    +41//!   reliable default choice.
    +42//!
    +43//! - The [`PkarrResolver`] which can perform lookups from designated [pkarr relay servers]
    +44//!   using HTTP.
     45//!
    -46//! [`Builder::address_lookup`] takes any type that implements [`IntoAddressLookup`]. You can
    -47//! implement that trait on a builder struct if your Address Lookup needs information
    -48//! from the endpoint it is mounted on. After endpoint construction, your Address Lookup
    -49//! is built by calling [`IntoAddressLookup::into_address_lookup`], passing the finished [`Endpoint`] to your
    -50//! builder.
    +46//! - [`address_lookup::MdnsAddressLookup`]: mdns::MdnsAddressLookup which uses the crate `swarm-discovery`, an
    +47//!   opinionated mDNS implementation, to discover endpoints on the local network.
    +48//!
    +49//! - The [`address_lookup::DhtAddressLookup`] also uses the [`pkarr`] system but can also publish and lookup
    +50//!   records to/from the Mainline DHT. It requires enabling the `address-lookup-pkarr-dht` feature.
     51//!
    -52//! If your Address Lookupdoes not need any information from its endpoint, you can
    -53//! pass the Address Lookupservice directly to [`Builder::address_lookup`]: All types that
    -54//! implement [`AddressLookup`] also have a blanket implementation of [`IntoAddressLookup`].
    +52//! To use multiple Address Lookup'ssimultaneously you can call [`Builder::address_lookup`].
    +53//! This will use [`ConcurrentAddressLookup`] under the hood, which performs lookups to all
    +54//! Address Lookupsystems at the same time.
     55//!
    -56//! # Examples
    -57//!
    -58//! A very common setup is to enable DNS Address Lookup, which needs to be done in two parts as a
    -59//! [`PkarrPublisher`] and [`address_lookup::DnsAddressLookup`]:
    -60//!
    -61//! ```no_run
    -62//! use iroh::{
    -63//!     Endpoint, SecretKey,
    -64//!     address_lookup::{self, PkarrPublisher},
    -65//!     endpoint::RelayMode,
    -66//! };
    +56//! [`Builder::address_lookup`] takes any type that implements [`AddressLookupBuilder`]. You can
    +57//! implement that trait on a builder struct if your Address Lookup needs information
    +58//! from the endpoint it is mounted on. After endpoint construction, your Address Lookup
    +59//! is built by calling [`AddressLookupBuilder::into_address_lookup`], passing the finished [`Endpoint`] to your
    +60//! builder.
    +61//!
    +62//! If your Address Lookupdoes not need any information from its endpoint, you can
    +63//! pass the Address Lookupservice directly to [`Builder::address_lookup`]: All types that
    +64//! implement [`AddressLookup`] also have a blanket implementation of [`AddressLookupBuilder`].
    +65//!
    +66//! # Examples
     67//!
    -68//! # async fn wrapper() -> n0_error::Result<()> {
    -69//! let ep = Endpoint::empty_builder(RelayMode::Default)
    -70//!     .address_lookup(PkarrPublisher::n0_dns())
    -71//!     .address_lookup(address_lookup::DnsAddressLookup::n0_dns())
    -72//!     .bind()
    -73//!     .await?;
    -74//! # Ok(())
    -75//! # }
    -76//! ```
    +68//! A very common setup is to enable DNS Address Lookup, which needs to be done in two parts as a
    +69//! [`PkarrPublisher`] and [`address_lookup::DnsAddressLookup`]:
    +70//!
    +71//! ```no_run
    +72//! use iroh::{
    +73//!     Endpoint, SecretKey,
    +74//!     address_lookup::{self, PkarrPublisher},
    +75//!     endpoint::RelayMode,
    +76//! };
     77//!
    -78//! To also enable [`address_lookup::MdnsAddressLookup`] it can be added as another service.
    -79//!
    -80//! ```no_run
    -81//! #[cfg(feature = "address-lookup-mdns")]
    -82//! # {
    -83//! # use iroh::{
    -84//! #    address_lookup::{self, PkarrPublisher},
    -85//! #    endpoint::RelayMode,
    -86//! #    Endpoint, SecretKey,
    -87//! # };
    -88//! #
    -89//! # async fn wrapper() -> n0_error::Result<()> {
    -90//! let ep = Endpoint::empty_builder(RelayMode::Default)
    -91//!     .address_lookup(PkarrPublisher::n0_dns())
    -92//!     .address_lookup(address_lookup::DnsAddressLookup::n0_dns())
    -93//!     .address_lookup(address_lookup::MdnsAddressLookup::builder())
    -94//!     .bind()
    -95//!     .await?;
    -96//! # Ok(())
    -97//! # }
    -98//! # }
    -99//! ```
    -100//!
    -101//! [`EndpointAddr`]: iroh_base::EndpointAddr
    -102//! [`RelayUrl`]: crate::RelayUrl
    -103//! [`Builder::address_lookup`]: crate::endpoint::Builder::address_lookup
    -104//! [`address_lookup::DnsAddressLookup`]: crate::address_lookup::DnsAddressLookup
    -105//! [Number 0]: https://n0.computer
    -106//! [`PkarrResolver`]: pkarr::PkarrResolver
    -107//! [`PkarrPublisher`]: pkarr::PkarrPublisher
    -108//! [`address_lookup::DhtAddressLookup`]: crate::address_lookup::DhtAddressLookup
    -109//! [pkarr relay servers]: https://pkarr.org/#servers
    -110//! [`address_lookup::MdnsAddressLookup`]: crate::address_lookup::MdnsAddressLookup
    -111//! [`MemoryLookup`]: memory::MemoryLookup
    -112
    -113use std::sync::{Arc, RwLock};
    -114
    -115use iroh_base::{EndpointAddr, EndpointId};
    -116use n0_error::{AnyError, e, stack_error};
    -117use n0_future::boxed::BoxStream;
    -118
    -119pub use crate::endpoint_info::{EndpointData, EndpointInfo, ParseError, UserData};
    -120use crate::{Endpoint, endpoint::EndpointError};
    -121
    -122#[cfg(not(wasm_browser))]
    -123pub mod dns;
    -124#[cfg(feature = "address-lookup-mdns")]
    -125pub mod mdns;
    -126pub mod memory;
    -127pub mod pkarr;
    -128
    -129#[cfg(not(wasm_browser))]
    -130pub use dns::*;
    -131#[cfg(feature = "address-lookup-mdns")]
    -132pub use mdns::*;
    -133pub use memory::*;
    -134#[cfg(feature = "address-lookup-pkarr-dht")]
    -135pub use pkarr::dht::*;
    -136pub use pkarr::*;
    -137
    -138/// Trait for structs that can be converted into [`AddressLookup`]s.
    -139///
    -140/// This trait is implemented on builders for Address Lookup's. Any type that implements this
    -141/// trait can be added as a Address Lookup in [`Builder::address_lookup`].
    -142///
    -143/// Any type that implements [`AddressLookup`] also implements [`IntoAddressLookup`].
    -144///
    -145/// Iroh uses this trait to allow configuring the set of address lookup services on
    -146/// the endpoint builder, while also providing them access to information about the
    -147/// endpoint to [`IntoAddressLookup::into_address_lookup`].
    -148///
    -149/// [`Builder::address_lookup`]: crate::endpoint::Builder::address_lookup
    -150pub trait IntoAddressLookup: Send + Sync + std::fmt::Debug + 'static {
    -151    /// Turns this AddressLookup builder into a ready-to-use Address Lookup.
    -152    ///
    -153    /// If an error is returned, building the endpoint will fail with this error.
    -154    fn into_address_lookup(
    -155        self,
    -156        endpoint: &Endpoint,
    -157    ) -> Result<impl AddressLookup, IntoAddressLookupError>;
    -158}
    -159
    -160/// Blanket no-op impl of `IntoAddressLookup` for `T: AddressLookup`.
    -161impl<T: AddressLookup> IntoAddressLookup for T {
    -162    fn into_address_lookup(
    -163        self,
    -164        _endpoint: &Endpoint,
    -165    ) -> Result<impl AddressLookup, IntoAddressLookupError> {
    -166        Ok(self)
    -167    }
    -168}
    +78//! # async fn wrapper() -> n0_error::Result<()> {
    +79//! let ep = Endpoint::empty_builder(RelayMode::Default)
    +80//!     .address_lookup(PkarrPublisher::n0_dns())
    +81//!     .address_lookup(address_lookup::DnsAddressLookup::n0_dns())
    +82//!     .bind()
    +83//!     .await?;
    +84//! # Ok(())
    +85//! # }
    +86//! ```
    +87//!
    +88//! To also enable [`address_lookup::MdnsAddressLookup`] it can be added as another service.
    +89//!
    +90//! ```no_run
    +91//! #[cfg(feature = "address-lookup-mdns")]
    +92//! # {
    +93//! # use iroh::{
    +94//! #    address_lookup::{self, PkarrPublisher},
    +95//! #    endpoint::RelayMode,
    +96//! #    Endpoint, SecretKey,
    +97//! # };
    +98//! #
    +99//! # async fn wrapper() -> n0_error::Result<()> {
    +100//! let ep = Endpoint::empty_builder(RelayMode::Default)
    +101//!     .address_lookup(PkarrPublisher::n0_dns())
    +102//!     .address_lookup(address_lookup::DnsAddressLookup::n0_dns())
    +103//!     .address_lookup(address_lookup::MdnsAddressLookup::builder())
    +104//!     .bind()
    +105//!     .await?;
    +106//! # Ok(())
    +107//! # }
    +108//! # }
    +109//! ```
    +110//!
    +111//! [`EndpointAddr`]: iroh_base::EndpointAddr
    +112//! [`RelayUrl`]: crate::RelayUrl
    +113//! [`Builder::address_lookup`]: crate::endpoint::Builder::address_lookup
    +114//! [`address_lookup::DnsAddressLookup`]: crate::address_lookup::DnsAddressLookup
    +115//! [Number 0]: https://n0.computer
    +116//! [`PkarrResolver`]: pkarr::PkarrResolver
    +117//! [`PkarrPublisher`]: pkarr::PkarrPublisher
    +118//! [`address_lookup::DhtAddressLookup`]: crate::address_lookup::DhtAddressLookup
    +119//! [pkarr relay servers]: https://pkarr.org/#servers
    +120//! [`address_lookup::MdnsAddressLookup`]: crate::address_lookup::MdnsAddressLookup
    +121//! [`MemoryLookup`]: memory::MemoryLookup
    +122
    +123use std::sync::{Arc, RwLock};
    +124
    +125use iroh_base::{EndpointAddr, EndpointId};
    +126pub use iroh_relay::endpoint_info::AddrFilter;
    +127use n0_error::{AnyError, e, stack_error};
    +128use n0_future::boxed::BoxStream;
    +129
    +130pub use crate::endpoint_info::{EndpointData, EndpointInfo, ParseError, UserData};
    +131use crate::{Endpoint, endpoint::EndpointError};
    +132
    +133#[cfg(not(wasm_browser))]
    +134pub mod dns;
    +135#[cfg(feature = "address-lookup-mdns")]
    +136pub mod mdns;
    +137pub mod memory;
    +138pub mod pkarr;
    +139
    +140#[cfg(not(wasm_browser))]
    +141pub use dns::*;
    +142#[cfg(feature = "address-lookup-mdns")]
    +143pub use mdns::*;
    +144pub use memory::*;
    +145#[cfg(feature = "address-lookup-pkarr-dht")]
    +146pub use pkarr::dht::*;
    +147pub use pkarr::*;
    +148
    +149/// Trait for structs that can be converted into [`AddressLookup`]s.
    +150///
    +151/// This trait is implemented on builders for Address Lookup's. Any type that implements this
    +152/// trait can be added as a Address Lookup in [`Builder::address_lookup`].
    +153///
    +154/// Any type that implements [`AddressLookup`] also implements [`AddressLookupBuilder`].
    +155///
    +156/// Iroh uses this trait to allow configuring the set of address lookup services on
    +157/// the endpoint builder, while also providing them access to information about the
    +158/// endpoint to [`AddressLookupBuilder::into_address_lookup`].
    +159///
    +160/// [`Builder::address_lookup`]: crate::endpoint::Builder::address_lookup
    +161pub trait AddressLookupBuilder: Send + Sync + std::fmt::Debug + 'static {
    +162    /// Turns this AddressLookup builder into a ready-to-use Address Lookup.
    +163    ///
    +164    /// If an error is returned, building the endpoint will fail with this error.
    +165    fn into_address_lookup(
    +166        self,
    +167        endpoint: &Endpoint,
    +168    ) -> Result<impl AddressLookup, AddressLookupBuilderError>;
     169
    -170/// Non-public dyn-compatible version of [`IntoAddressLookup`], used in [`crate::endpoint::Builder`].
    -171pub(crate) trait DynIntoAddressLookup: Send + Sync + std::fmt::Debug + 'static {
    -172    /// See [`IntoAddressLookup::into_address_lookup`]
    -173    fn into_address_lookup(
    -174        self: Box<Self>,
    -175        endpoint: &Endpoint,
    -176    ) -> Result<Box<dyn AddressLookup>, IntoAddressLookupError>;
    -177}
    -178
    -179impl<T: IntoAddressLookup> DynIntoAddressLookup for T {
    -180    fn into_address_lookup(
    -181        self: Box<Self>,
    -182        endpoint: &Endpoint,
    -183    ) -> Result<Box<dyn AddressLookup>, IntoAddressLookupError> {
    -184        let addr_lookup: Box<dyn AddressLookup> =
    -185            Box::new(IntoAddressLookup::into_address_lookup(*self, endpoint)?);
    -186        Ok(addr_lookup)
    -187    }
    -188}
    +170    /// Sets a filter to control which addresses are published by this service
    +171    ///           
    +172    /// The filter receives the full set of transport addresses and returns them
    +173    /// as an ordered [`Vec`], allowing both filtering (by omitting addresses) and
    +174    /// prioritization (by controlling output order). The service may apply
    +175    /// additional filtering on top based on its own constraints.
    +176    fn with_addr_filter(self, filter: AddrFilter) -> Self
    +177    where
    +178        Self: Sized;
    +179}
    +180
    +181/// Blanket no-op impl of `AddressLookupBuilder` for `T: AddressLookup`.
    +182impl<T: AddressLookup> AddressLookupBuilder for T {
    +183    fn into_address_lookup(
    +184        self,
    +185        _endpoint: &Endpoint,
    +186    ) -> Result<impl AddressLookup, AddressLookupBuilderError> {
    +187        Ok(self)
    +188    }
     189
    -190/// [`IntoAddressLookup`] errors
    -191#[allow(missing_docs)]
    -192#[stack_error(derive, add_meta, from_sources, std_sources)]
    -193#[non_exhaustive]
    -194pub enum IntoAddressLookupError {
    -195    #[error("Service '{provenance}' error")]
    -196    User {
    -197        provenance: &'static str,
    -198        source: AnyError,
    -199    },
    -200    #[error(transparent)]
    -201    EndpointClosed { source: EndpointError },
    -202}
    -203
    -204impl IntoAddressLookupError {
    -205    /// Creates a new user error from an arbitrary error type.
    -206    pub fn from_err<T: std::error::Error + Send + Sync + 'static>(
    -207        provenance: &'static str,
    -208        source: T,
    -209    ) -> Self {
    -210        e!(IntoAddressLookupError::User {
    -211            provenance,
    -212            source: AnyError::from_std(source)
    -213        })
    -214    }
    -215
    -216    /// Creates a new user error from an arbitrary boxed error type.
    -217    pub fn from_err_box(
    -218        provenance: &'static str,
    -219        source: Box<dyn std::error::Error + Send + Sync + 'static>,
    -220    ) -> Self {
    -221        e!(IntoAddressLookupError::User {
    -222            provenance,
    -223            source: AnyError::from_std_box(source)
    -224        })
    -225    }
    -226}
    -227
    -228/// [`AddressLookup`] errors
    -229#[allow(missing_docs)]
    -230#[stack_error(derive, add_meta)]
    -231#[non_exhaustive]
    -232#[derive(Clone)]
    -233pub enum Error {
    -234    #[error("No address lookup configured")]
    -235    NoServiceConfigured,
    -236    #[error("Address lookup produced no results")]
    -237    NoResults,
    -238    #[error("Service '{provenance}' error")]
    -239    User {
    -240        provenance: &'static str,
    -241        source: Arc<AnyError>,
    -242    },
    -243}
    -244
    -245impl Error {
    -246    /// Creates a new user error from an arbitrary error type.
    -247    #[track_caller]
    -248    pub fn from_err<T: std::error::Error + Send + Sync + 'static>(
    -249        provenance: &'static str,
    -250        source: T,
    -251    ) -> Self {
    -252        Self::from_err_any(provenance, AnyError::from_std(source))
    +190    fn with_addr_filter(self, _filter: AddrFilter) -> Self
    +191    where
    +192        Self: Sized,
    +193    {
    +194        self
    +195    }
    +196}
    +197
    +198/// Non-public dyn-compatible version of [`AddressLookupBuilder`], used in [`crate::endpoint::Builder`].
    +199pub(crate) trait DynAddressLookupBuilder: Send + Sync + std::fmt::Debug + 'static {
    +200    /// See [`AddressLookupBuilder::into_address_lookup`]
    +201    fn into_address_lookup(
    +202        self: Box<Self>,
    +203        endpoint: &Endpoint,
    +204    ) -> Result<Box<dyn AddressLookup>, AddressLookupBuilderError>;
    +205}
    +206
    +207impl<T: AddressLookupBuilder> DynAddressLookupBuilder for T {
    +208    fn into_address_lookup(
    +209        self: Box<Self>,
    +210        endpoint: &Endpoint,
    +211    ) -> Result<Box<dyn AddressLookup>, AddressLookupBuilderError> {
    +212        let addr_lookup: Box<dyn AddressLookup> =
    +213            Box::new(AddressLookupBuilder::into_address_lookup(*self, endpoint)?);
    +214        Ok(addr_lookup)
    +215    }
    +216}
    +217
    +218/// [`AddressLookupBuilder`] errors
    +219#[allow(missing_docs)]
    +220#[stack_error(derive, add_meta, from_sources, std_sources)]
    +221#[non_exhaustive]
    +222pub enum AddressLookupBuilderError {
    +223    #[error("Service '{provenance}' error")]
    +224    User {
    +225        provenance: &'static str,
    +226        source: AnyError,
    +227    },
    +228    #[error(transparent)]
    +229    EndpointClosed { source: EndpointError },
    +230}
    +231
    +232impl AddressLookupBuilderError {
    +233    /// Creates a new user error from an arbitrary error type.
    +234    pub fn from_err<T: std::error::Error + Send + Sync + 'static>(
    +235        provenance: &'static str,
    +236        source: T,
    +237    ) -> Self {
    +238        e!(AddressLookupBuilderError::User {
    +239            provenance,
    +240            source: AnyError::from_std(source)
    +241        })
    +242    }
    +243
    +244    /// Creates a new user error from an arbitrary boxed error type.
    +245    pub fn from_err_box(
    +246        provenance: &'static str,
    +247        source: Box<dyn std::error::Error + Send + Sync + 'static>,
    +248    ) -> Self {
    +249        e!(AddressLookupBuilderError::User {
    +250            provenance,
    +251            source: AnyError::from_std_box(source)
    +252        })
     253    }
    -254
    -255    /// Creates a new user error from an arbitrary boxed error type.
    -256    #[track_caller]
    -257    pub fn from_err_box(
    -258        provenance: &'static str,
    -259        source: Box<dyn std::error::Error + Send + Sync + 'static>,
    -260    ) -> Self {
    -261        Self::from_err_any(provenance, AnyError::from_std_box(source))
    -262    }
    -263
    -264    /// Creates a new user error from an arbitrary error type that can be converted into [`AnyError`].
    -265    #[track_caller]
    -266    pub fn from_err_any(provenance: &'static str, source: impl Into<AnyError>) -> Self {
    -267        e!(Error::User {
    -268            provenance,
    -269            source: Arc::new(source.into())
    -270        })
    -271    }
    -272}
    -273
    -274/// AddressLookup system for [`super::Endpoint`].
    -275///
    -276/// This trait defines publishing and resolving addressing information for a [`EndpointId`].
    -277/// This enables connecting to other endpoints with only knowing the [`EndpointId`], by using this
    -278/// [`AddressLookup`] system to look up the actual addressing information.  It is common for
    -279/// implementations to require each endpoint to publish their own information before it can be
    -280/// looked up by other endpoints.
    -281///
    -282/// The published addressing information can include both a [`RelayUrl`] and/or direct
    -283/// addresses. See [`EndpointData`] for details.
    -284///
    -285/// To allow for Address Lookup, the [`super::Endpoint`] will call `publish` whenever
    -286/// Address Lookup information changes. If an Address Lookup mechanism requires a periodic
    -287/// refresh, it should start its own task.
    -288///
    -289/// [`RelayUrl`]: crate::RelayUrl
    -290pub trait AddressLookup: std::fmt::Debug + Send + Sync + 'static {
    -291    /// Publishes the given [`EndpointData`] to the Address Lookup mechanism.
    -292    ///
    -293    /// This is fire and forget, since the [`Endpoint`] can not wait for successful
    -294    /// publishing. If publishing is async, the implementation should start it's own task.
    -295    ///
    -296    /// This will be called from a tokio task, so it is safe to spawn new tasks.
    -297    /// These tasks will be run on the runtime of the [`super::Endpoint`].
    -298    fn publish(&self, _data: &EndpointData) {}
    -299
    -300    /// Resolves the [`Item`] for the given [`EndpointId`].
    -301    ///
    -302    /// Once the returned [`BoxStream`] is dropped, the service should stop any pending
    -303    /// work.
    -304    fn resolve(&self, _endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    -305        None
    -306    }
    -307}
    -308
    -309impl<T: AddressLookup> AddressLookup for Arc<T> {
    -310    fn publish(&self, data: &EndpointData) {
    -311        self.as_ref().publish(data);
    -312    }
    -313
    -314    fn resolve(&self, endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    -315        self.as_ref().resolve(endpoint_id)
    -316    }
    -317}
    -318
    -319/// Address lookup results from [`AddressLookup`]s.
    -320///
    -321/// This is the item in the streams returned from [`AddressLookup::resolve`].
    -322/// It contains the [`EndpointData`] about the resolved endpoint addresses,
    -323/// and some additional metadata about the address lookup system.
    -324///
    -325/// This struct derefs to [`EndpointData`], so you can access the methods from [`EndpointData`]
    -326/// directly from [`Item`].
    -327#[derive(Debug, Clone, Eq, PartialEq)]
    -328pub struct Item {
    -329    /// The endpoint info for the endpoint, as discovered by the the Address Lookup.
    -330    endpoint_info: EndpointInfo,
    -331    /// A static string to identify the Address Lookup source.
    -332    ///
    -333    /// Should be uniform per Address Lookup.
    -334    provenance: &'static str,
    -335    /// Optional timestamp when this endpoint address info was last updated.
    -336    ///
    -337    /// Must be microseconds since the unix epoch.
    -338    // TODO(ramfox): this is currently unused. As we develop more `AddressLookup`s, we may discover that we do not need this. It is only truly relevant when comparing `relay_urls`, since we can attempt to dial any number of socket addresses, but expect each endpoint to have one "home relay" that we will attempt to contact them on. This means we would need some way to determine which relay url to choose between, if more than one relay url is reported.
    -339    last_updated: Option<u64>,
    -340}
    +254}
    +255
    +256/// [`AddressLookup`] errors
    +257#[allow(missing_docs)]
    +258#[stack_error(derive, add_meta)]
    +259#[non_exhaustive]
    +260#[derive(Clone)]
    +261pub enum Error {
    +262    #[error("No address lookup configured")]
    +263    NoServiceConfigured,
    +264    #[error("Address lookup produced no results")]
    +265    NoResults,
    +266    #[error("Service '{provenance}' error")]
    +267    User {
    +268        provenance: &'static str,
    +269        source: Arc<AnyError>,
    +270    },
    +271}
    +272
    +273impl Error {
    +274    /// Creates a new user error from an arbitrary error type.
    +275    #[track_caller]
    +276    pub fn from_err<T: std::error::Error + Send + Sync + 'static>(
    +277        provenance: &'static str,
    +278        source: T,
    +279    ) -> Self {
    +280        Self::from_err_any(provenance, AnyError::from_std(source))
    +281    }
    +282
    +283    /// Creates a new user error from an arbitrary boxed error type.
    +284    #[track_caller]
    +285    pub fn from_err_box(
    +286        provenance: &'static str,
    +287        source: Box<dyn std::error::Error + Send + Sync + 'static>,
    +288    ) -> Self {
    +289        Self::from_err_any(provenance, AnyError::from_std_box(source))
    +290    }
    +291
    +292    /// Creates a new user error from an arbitrary error type that can be converted into [`AnyError`].
    +293    #[track_caller]
    +294    pub fn from_err_any(provenance: &'static str, source: impl Into<AnyError>) -> Self {
    +295        e!(Error::User {
    +296            provenance,
    +297            source: Arc::new(source.into())
    +298        })
    +299    }
    +300}
    +301
    +302/// AddressLookup system for [`super::Endpoint`].
    +303///
    +304/// This trait defines publishing and resolving addressing information for a [`EndpointId`].
    +305/// This enables connecting to other endpoints with only knowing the [`EndpointId`], by using this
    +306/// [`AddressLookup`] system to look up the actual addressing information.  It is common for
    +307/// implementations to require each endpoint to publish their own information before it can be
    +308/// looked up by other endpoints.
    +309///
    +310/// The published addressing information can include both a [`RelayUrl`] and/or direct
    +311/// addresses. See [`EndpointData`] for details.
    +312///
    +313/// To allow for Address Lookup, the [`super::Endpoint`] will call `publish` whenever
    +314/// Address Lookup information changes. If an Address Lookup mechanism requires a periodic
    +315/// refresh, it should start its own task.
    +316///
    +317/// [`RelayUrl`]: crate::RelayUrl
    +318pub trait AddressLookup: std::fmt::Debug + Send + Sync + 'static {
    +319    /// Publishes the given [`EndpointData`] to the Address Lookup mechanism.
    +320    ///
    +321    /// This is fire and forget, since the [`Endpoint`] can not wait for successful
    +322    /// publishing. If publishing is async, the implementation should start it's own task.
    +323    ///
    +324    /// This will be called from a tokio task, so it is safe to spawn new tasks.
    +325    /// These tasks will be run on the runtime of the [`super::Endpoint`].
    +326    fn publish(&self, _data: &EndpointData) {}
    +327
    +328    /// Resolves the [`Item`] for the given [`EndpointId`].
    +329    ///
    +330    /// Once the returned [`BoxStream`] is dropped, the service should stop any pending
    +331    /// work.
    +332    fn resolve(&self, _endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    +333        None
    +334    }
    +335}
    +336
    +337impl<T: AddressLookup> AddressLookup for Arc<T> {
    +338    fn publish(&self, data: &EndpointData) {
    +339        self.as_ref().publish(data);
    +340    }
     341
    -342impl Item {
    -343    /// Creates a new [`Item`] from a [`EndpointInfo`].
    -344    pub fn new(
    -345        endpoint_info: EndpointInfo,
    -346        provenance: &'static str,
    -347        last_updated: Option<u64>,
    -348    ) -> Self {
    -349        Self {
    -350            endpoint_info,
    -351            provenance,
    -352            last_updated,
    -353        }
    -354    }
    -355
    -356    /// Returns the endpoint id of the discovered endpoint.
    -357    pub fn endpoint_id(&self) -> EndpointId {
    -358        self.endpoint_info.endpoint_id
    -359    }
    -360
    -361    /// Returns the [`EndpointInfo`] for the discovered endpoint.
    -362    pub fn endpoint_info(&self) -> &EndpointInfo {
    -363        &self.endpoint_info
    -364    }
    -365
    -366    /// Returns the provenance of this Address Lookup item.
    -367    ///
    -368    /// The provenance is a static string which identifies the Address Lookup service that produced
    -369    /// this item.
    -370    pub fn provenance(&self) -> &'static str {
    -371        self.provenance
    -372    }
    -373
    -374    /// Returns the optional timestamp when this endpoint info was last updated.
    -375    ///
    -376    /// The value is microseconds since the unix epoch.
    -377    pub fn last_updated(&self) -> Option<u64> {
    -378        self.last_updated
    -379    }
    -380
    -381    /// Converts into a [`EndpointAddr`] by cloning the needed fields.
    -382    pub fn to_endpoint_addr(&self) -> EndpointAddr {
    -383        self.endpoint_info.to_endpoint_addr()
    -384    }
    -385
    -386    /// Converts into a [`EndpointAddr`] without cloning.
    -387    pub fn into_endpoint_addr(self) -> EndpointAddr {
    -388        self.endpoint_info.into_endpoint_addr()
    -389    }
    -390
    -391    /// Returns any user-defined data.
    -392    pub fn user_data(&self) -> Option<UserData> {
    -393        self.endpoint_info().data.user_data().cloned()
    -394    }
    -395}
    -396
    -397impl std::ops::Deref for Item {
    -398    type Target = EndpointData;
    -399    fn deref(&self) -> &Self::Target {
    -400        &self.endpoint_info.data
    -401    }
    -402}
    -403
    -404impl From<Item> for EndpointInfo {
    -405    fn from(item: Item) -> Self {
    -406        item.endpoint_info
    +342    fn resolve(&self, endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    +343        self.as_ref().resolve(endpoint_id)
    +344    }
    +345}
    +346
    +347/// Address lookup results from [`AddressLookup`]s.
    +348///
    +349/// This is the item in the streams returned from [`AddressLookup::resolve`].
    +350/// It contains the [`EndpointData`] about the resolved endpoint addresses,
    +351/// and some additional metadata about the address lookup system.
    +352///
    +353/// This struct derefs to [`EndpointData`], so you can access the methods from [`EndpointData`]
    +354/// directly from [`Item`].
    +355#[derive(Debug, Clone, Eq, PartialEq)]
    +356pub struct Item {
    +357    /// The endpoint info for the endpoint, as discovered by the the Address Lookup.
    +358    endpoint_info: EndpointInfo,
    +359    /// A static string to identify the Address Lookup source.
    +360    ///
    +361    /// Should be uniform per Address Lookup.
    +362    provenance: &'static str,
    +363    /// Optional timestamp when this endpoint address info was last updated.
    +364    ///
    +365    /// Must be microseconds since the unix epoch.
    +366    // TODO(ramfox): this is currently unused. As we develop more `AddressLookup`s, we may discover that we do not need this. It is only truly relevant when comparing `relay_urls`, since we can attempt to dial any number of socket addresses, but expect each endpoint to have one "home relay" that we will attempt to contact them on. This means we would need some way to determine which relay url to choose between, if more than one relay url is reported.
    +367    last_updated: Option<u64>,
    +368}
    +369
    +370impl Item {
    +371    /// Creates a new [`Item`] from a [`EndpointInfo`].
    +372    pub fn new(
    +373        endpoint_info: EndpointInfo,
    +374        provenance: &'static str,
    +375        last_updated: Option<u64>,
    +376    ) -> Self {
    +377        Self {
    +378            endpoint_info,
    +379            provenance,
    +380            last_updated,
    +381        }
    +382    }
    +383
    +384    /// Returns the endpoint id of the discovered endpoint.
    +385    pub fn endpoint_id(&self) -> EndpointId {
    +386        self.endpoint_info.endpoint_id
    +387    }
    +388
    +389    /// Returns the [`EndpointInfo`] for the discovered endpoint.
    +390    pub fn endpoint_info(&self) -> &EndpointInfo {
    +391        &self.endpoint_info
    +392    }
    +393
    +394    /// Returns the provenance of this Address Lookup item.
    +395    ///
    +396    /// The provenance is a static string which identifies the Address Lookup service that produced
    +397    /// this item.
    +398    pub fn provenance(&self) -> &'static str {
    +399        self.provenance
    +400    }
    +401
    +402    /// Returns the optional timestamp when this endpoint info was last updated.
    +403    ///
    +404    /// The value is microseconds since the unix epoch.
    +405    pub fn last_updated(&self) -> Option<u64> {
    +406        self.last_updated
     407    }
    -408}
    -409
    -410/// An Address Lookup service that combines multiple Address Lookup sources.
    -411///
    -412/// The Address Lookup will resolve concurrently.
    -413#[derive(Debug, Default, Clone)]
    -414pub struct ConcurrentAddressLookup {
    -415    services: Arc<RwLock<Vec<Box<dyn AddressLookup>>>>,
    -416    /// The data last published, used to publish when adding a new service.
    -417    last_data: Arc<RwLock<Option<EndpointData>>>,
    -418}
    -419
    -420impl ConcurrentAddressLookup {
    -421    /// Creates an empty [`ConcurrentAddressLookup`].
    -422    pub fn empty() -> Self {
    -423        Self::default()
    -424    }
    -425
    -426    /// Creates a new [`ConcurrentAddressLookup`].
    -427    pub fn from_services(services: Vec<Box<dyn AddressLookup>>) -> Self {
    -428        Self {
    -429            services: Arc::new(RwLock::new(services)),
    -430            last_data: Default::default(),
    -431        }
    -432    }
    -433
    -434    /// Adds an [`AddressLookup`] service.
    -435    ///
    -436    /// If there is historical Address Lookup data, it will be published immediately on this service.
    -437    pub fn add(&self, service: impl AddressLookup + 'static) {
    -438        self.add_boxed(Box::new(service))
    -439    }
    -440
    -441    /// Adds an already `Box`ed [`AddressLookup`] service.
    -442    ///
    -443    /// If there is historical Address Lookup data, it will be published immediately on this service.
    -444    pub fn add_boxed(&self, service: Box<dyn AddressLookup>) {
    -445        {
    -446            let data = self.last_data.read().expect("poisoned");
    -447            if let Some(data) = &*data {
    -448                service.publish(data)
    -449            }
    -450        }
    -451        self.services.write().expect("poisoned").push(service);
    +408
    +409    /// Converts into a [`EndpointAddr`] by cloning the needed fields.
    +410    pub fn to_endpoint_addr(&self) -> EndpointAddr {
    +411        self.endpoint_info.to_endpoint_addr()
    +412    }
    +413
    +414    /// Converts into a [`EndpointAddr`] without cloning.
    +415    pub fn into_endpoint_addr(self) -> EndpointAddr {
    +416        self.endpoint_info.into_endpoint_addr()
    +417    }
    +418
    +419    /// Returns any user-defined data.
    +420    pub fn user_data(&self) -> Option<UserData> {
    +421        self.endpoint_info().data.user_data().cloned()
    +422    }
    +423}
    +424
    +425impl std::ops::Deref for Item {
    +426    type Target = EndpointData;
    +427    fn deref(&self) -> &Self::Target {
    +428        &self.endpoint_info.data
    +429    }
    +430}
    +431
    +432impl From<Item> for EndpointInfo {
    +433    fn from(item: Item) -> Self {
    +434        item.endpoint_info
    +435    }
    +436}
    +437
    +438/// An Address Lookup service that combines multiple Address Lookup sources.
    +439///
    +440/// The Address Lookup will resolve concurrently.
    +441#[derive(Debug, Default, Clone)]
    +442pub struct ConcurrentAddressLookup {
    +443    services: Arc<RwLock<Vec<Box<dyn AddressLookup>>>>,
    +444    /// The data last published, used to publish when adding a new service.
    +445    last_data: Arc<RwLock<Option<EndpointData>>>,
    +446}
    +447
    +448impl ConcurrentAddressLookup {
    +449    /// Creates an empty [`ConcurrentAddressLookup`].
    +450    pub fn empty() -> Self {
    +451        Self::default()
     452    }
     453
    -454    /// Are there any services configured?
    -455    pub fn is_empty(&self) -> bool {
    -456        self.services.read().expect("poisoned").is_empty()
    -457    }
    -458
    -459    /// Returns the number of services configured.
    -460    pub fn len(&self) -> usize {
    -461        self.services.read().expect("poisoned").len()
    -462    }
    -463
    -464    /// Removes all configured services.
    -465    pub fn clear(&self) {
    -466        let mut services = self.services.write().expect("poisoned");
    -467        services.clear();
    -468    }
    -469}
    -470
    -471impl<T> From<T> for ConcurrentAddressLookup
    -472where
    -473    T: IntoIterator<Item = Box<dyn AddressLookup>>,
    -474{
    -475    fn from(iter: T) -> Self {
    -476        let services = iter.into_iter().collect::<Vec<_>>();
    -477        Self {
    -478            services: Arc::new(RwLock::new(services)),
    -479            last_data: Default::default(),
    -480        }
    -481    }
    -482}
    -483
    -484impl AddressLookup for ConcurrentAddressLookup {
    -485    fn publish(&self, data: &EndpointData) {
    -486        let services = self.services.read().expect("poisoned");
    -487        for service in &*services {
    -488            service.publish(data);
    -489        }
    -490
    -491        self.last_data
    -492            .write()
    -493            .expect("poisoned")
    -494            .replace(data.clone());
    -495    }
    -496
    -497    fn resolve(&self, endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    -498        let services = self.services.read().expect("poisoned");
    -499        let streams = services
    -500            .iter()
    -501            .filter_map(|service| service.resolve(endpoint_id));
    -502
    -503        let streams = n0_future::MergeBounded::from_iter(streams);
    -504        Some(Box::pin(streams))
    -505    }
    -506}
    -507
    -508#[cfg(test)]
    -509mod tests {
    -510    use std::{
    -511        collections::HashMap,
    -512        net::SocketAddr,
    -513        sync::{Arc, Mutex},
    -514        time::{Duration, SystemTime},
    -515    };
    -516
    -517    use iroh_base::{EndpointAddr, SecretKey, TransportAddr};
    -518    use n0_error::{AnyError, Result, StackResultExt};
    -519    use n0_future::{StreamExt, time};
    -520    use n0_tracing_test::traced_test;
    -521    use rand::{CryptoRng, Rng, SeedableRng};
    -522    use tokio_util::task::AbortOnDropHandle;
    -523
    -524    use super::*;
    -525    use crate::{
    -526        Endpoint, RelayMode,
    -527        endpoint::{ConnectOptions, IdleTimeout, QuicTransportConfig},
    -528    };
    -529
    -530    type InfoStore = HashMap<EndpointId, (EndpointData, u64)>;
    -531
    -532    #[derive(Debug, Clone, Default)]
    -533    struct TestAddressLookupShared {
    -534        endpoints: Arc<Mutex<InfoStore>>,
    -535    }
    -536
    -537    impl TestAddressLookupShared {
    -538        pub fn create_address_lookup(&self, endpoint_id: EndpointId) -> TestAddressLookup {
    -539            TestAddressLookup {
    -540                endpoint_id,
    -541                shared: self.clone(),
    -542                publish: true,
    -543                resolve_wrong: false,
    -544                delay: Duration::from_millis(200),
    -545            }
    -546        }
    -547
    -548        pub fn create_lying_address_lookup(&self, endpoint_id: EndpointId) -> TestAddressLookup {
    -549            TestAddressLookup {
    -550                endpoint_id,
    -551                shared: self.clone(),
    -552                publish: false,
    -553                resolve_wrong: true,
    -554                delay: Duration::from_millis(100),
    -555            }
    -556        }
    -557    }
    -558
    -559    #[derive(Debug)]
    -560    struct TestAddressLookup {
    -561        endpoint_id: EndpointId,
    -562        shared: TestAddressLookupShared,
    -563        publish: bool,
    -564        resolve_wrong: bool,
    -565        delay: Duration,
    -566    }
    -567
    -568    impl AddressLookup for TestAddressLookup {
    -569        fn publish(&self, data: &EndpointData) {
    -570            if !self.publish {
    -571                return;
    -572            }
    -573            let now = system_time_now();
    -574            self.shared
    -575                .endpoints
    -576                .lock()
    -577                .unwrap()
    -578                .insert(self.endpoint_id, (data.clone(), now));
    -579        }
    -580
    -581        fn resolve(&self, endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    -582            let addr_info = if self.resolve_wrong {
    -583                let ts = system_time_now() - 100_000;
    -584                let port: u16 = rand::rng().random_range(10_000..20_000);
    -585                // "240.0.0.0/4" is reserved and unreachable
    -586                let addr: SocketAddr = format!("240.0.0.1:{port}").parse().unwrap();
    -587                let data = EndpointData::new([TransportAddr::Ip(addr)]);
    -588                Some((data, ts))
    -589            } else {
    -590                self.shared
    -591                    .endpoints
    -592                    .lock()
    -593                    .unwrap()
    -594                    .get(&endpoint_id)
    -595                    .cloned()
    -596            };
    -597            let stream = match addr_info {
    -598                Some((data, ts)) => {
    -599                    let item = Item::new(
    -600                        EndpointInfo::from_parts(endpoint_id, data),
    -601                        "test-addr-lookup",
    -602                        Some(ts),
    -603                    );
    -604                    let delay = self.delay;
    -605                    let fut = async move {
    -606                        time::sleep(delay).await;
    -607                        tracing::debug!("resolve: {} = {item:?}", endpoint_id.fmt_short());
    -608                        Ok(item)
    -609                    };
    -610                    n0_future::stream::once_future(fut).boxed()
    -611                }
    -612                None => n0_future::stream::empty().boxed(),
    -613            };
    -614            Some(stream)
    -615        }
    -616    }
    -617
    -618    #[derive(Debug, Clone)]
    -619    struct EmptyAddressLookup;
    -620
    -621    impl AddressLookup for EmptyAddressLookup {
    -622        fn publish(&self, _data: &EndpointData) {}
    -623
    -624        fn resolve(&self, _endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    -625            Some(n0_future::stream::empty().boxed())
    -626        }
    -627    }
    -628
    -629    const TEST_ALPN: &[u8] = b"n0/iroh/test";
    -630
    -631    /// This is a smoke test for our Address Lookupmechanism.
    -632    #[tokio::test]
    -633    #[traced_test]
    -634    async fn address_lookup_simple_shared() -> Result {
    -635        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -636
    -637        let eir_shared = TestAddressLookupShared::default();
    -638        let (ep1, _guard1) =
    -639            new_endpoint(&mut rng, |ep| eir_shared.create_address_lookup(ep.id())).await;
    -640
    -641        let (ep2, _guard2) =
    -642            new_endpoint(&mut rng, |ep| eir_shared.create_address_lookup(ep.id())).await;
    -643        let ep1_addr = EndpointAddr::new(ep1.id());
    -644        let _conn = ep2.connect(ep1_addr, TEST_ALPN).await?;
    -645        Ok(())
    -646    }
    -647
    -648    /// This is a smoke test to ensure a Address Lookup can be
    -649    /// `Arc`-d, and Address Lookup will still work
    -650    #[tokio::test]
    -651    #[traced_test]
    -652    async fn address_lookup_simple_shared_with_arc() -> Result {
    -653        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -654        let address_lookup_shared = TestAddressLookupShared::default();
    -655        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    -656            Arc::new(address_lookup_shared.create_address_lookup(ep.id()))
    -657        })
    -658        .await;
    -659
    -660        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    -661            Arc::new(address_lookup_shared.create_address_lookup(ep.id()))
    -662        })
    -663        .await;
    -664        let ep1_addr = EndpointAddr::new(ep1.id());
    -665        let _conn = ep2.connect(ep1_addr, TEST_ALPN).await?;
    -666        Ok(())
    -667    }
    +454    /// Creates a new [`ConcurrentAddressLookup`].
    +455    pub fn from_services(services: Vec<Box<dyn AddressLookup>>) -> Self {
    +456        Self {
    +457            services: Arc::new(RwLock::new(services)),
    +458            last_data: Default::default(),
    +459        }
    +460    }
    +461
    +462    /// Adds an [`AddressLookup`] service.
    +463    ///
    +464    /// If there is historical Address Lookup data, it will be published immediately on this service.
    +465    pub fn add(&self, service: impl AddressLookup + 'static) {
    +466        self.add_boxed(Box::new(service))
    +467    }
    +468
    +469    /// Adds an already `Box`ed [`AddressLookup`] service.
    +470    ///
    +471    /// If there is historical Address Lookup data, it will be published immediately on this service.
    +472    pub fn add_boxed(&self, service: Box<dyn AddressLookup>) {
    +473        {
    +474            let data = self.last_data.read().expect("poisoned");
    +475            if let Some(data) = &*data {
    +476                service.publish(data)
    +477            }
    +478        }
    +479        self.services.write().expect("poisoned").push(service);
    +480    }
    +481
    +482    /// Are there any services configured?
    +483    pub fn is_empty(&self) -> bool {
    +484        self.services.read().expect("poisoned").is_empty()
    +485    }
    +486
    +487    /// Returns the number of services configured.
    +488    pub fn len(&self) -> usize {
    +489        self.services.read().expect("poisoned").len()
    +490    }
    +491
    +492    /// Removes all configured services.
    +493    pub fn clear(&self) {
    +494        let mut services = self.services.write().expect("poisoned");
    +495        services.clear();
    +496    }
    +497}
    +498
    +499impl<T> From<T> for ConcurrentAddressLookup
    +500where
    +501    T: IntoIterator<Item = Box<dyn AddressLookup>>,
    +502{
    +503    fn from(iter: T) -> Self {
    +504        let services = iter.into_iter().collect::<Vec<_>>();
    +505        Self {
    +506            services: Arc::new(RwLock::new(services)),
    +507            last_data: Default::default(),
    +508        }
    +509    }
    +510}
    +511
    +512impl AddressLookup for ConcurrentAddressLookup {
    +513    fn publish(&self, data: &EndpointData) {
    +514        let services = self.services.read().expect("poisoned");
    +515        for service in &*services {
    +516            service.publish(data);
    +517        }
    +518
    +519        self.last_data
    +520            .write()
    +521            .expect("poisoned")
    +522            .replace(data.clone());
    +523    }
    +524
    +525    fn resolve(&self, endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    +526        let services = self.services.read().expect("poisoned");
    +527        let streams = services
    +528            .iter()
    +529            .filter_map(|service| service.resolve(endpoint_id));
    +530
    +531        let streams = n0_future::MergeBounded::from_iter(streams);
    +532        Some(Box::pin(streams))
    +533    }
    +534}
    +535
    +536#[cfg(test)]
    +537mod tests {
    +538    use std::{
    +539        collections::HashMap,
    +540        net::SocketAddr,
    +541        sync::{Arc, Mutex},
    +542        time::{Duration, SystemTime},
    +543    };
    +544
    +545    use iroh_base::{EndpointAddr, SecretKey, TransportAddr};
    +546    use n0_error::{AnyError, Result, StackResultExt};
    +547    use n0_future::{StreamExt, time};
    +548    use n0_tracing_test::traced_test;
    +549    use rand::{CryptoRng, Rng, SeedableRng};
    +550    use tokio_util::task::AbortOnDropHandle;
    +551
    +552    use super::*;
    +553    use crate::{
    +554        Endpoint, RelayMode,
    +555        endpoint::{ConnectOptions, IdleTimeout, QuicTransportConfig},
    +556    };
    +557
    +558    type InfoStore = HashMap<EndpointId, (EndpointData, u64)>;
    +559
    +560    #[derive(Debug, Clone, Default)]
    +561    struct TestAddressLookupShared {
    +562        endpoints: Arc<Mutex<InfoStore>>,
    +563    }
    +564
    +565    impl TestAddressLookupShared {
    +566        pub fn create_address_lookup(&self, endpoint_id: EndpointId) -> TestAddressLookup {
    +567            TestAddressLookup {
    +568                endpoint_id,
    +569                shared: self.clone(),
    +570                publish: true,
    +571                resolve_wrong: false,
    +572                delay: Duration::from_millis(200),
    +573            }
    +574        }
    +575
    +576        pub fn create_lying_address_lookup(&self, endpoint_id: EndpointId) -> TestAddressLookup {
    +577            TestAddressLookup {
    +578                endpoint_id,
    +579                shared: self.clone(),
    +580                publish: false,
    +581                resolve_wrong: true,
    +582                delay: Duration::from_millis(100),
    +583            }
    +584        }
    +585    }
    +586
    +587    #[derive(Debug)]
    +588    struct TestAddressLookup {
    +589        endpoint_id: EndpointId,
    +590        shared: TestAddressLookupShared,
    +591        publish: bool,
    +592        resolve_wrong: bool,
    +593        delay: Duration,
    +594    }
    +595
    +596    impl AddressLookup for TestAddressLookup {
    +597        fn publish(&self, data: &EndpointData) {
    +598            if !self.publish {
    +599                return;
    +600            }
    +601            let now = system_time_now();
    +602            self.shared
    +603                .endpoints
    +604                .lock()
    +605                .unwrap()
    +606                .insert(self.endpoint_id, (data.clone(), now));
    +607        }
    +608
    +609        fn resolve(&self, endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    +610            let addr_info = if self.resolve_wrong {
    +611                let ts = system_time_now() - 100_000;
    +612                let port: u16 = rand::rng().random_range(10_000..20_000);
    +613                // "240.0.0.0/4" is reserved and unreachable
    +614                let addr: SocketAddr = format!("240.0.0.1:{port}").parse().unwrap();
    +615                let data = EndpointData::new([TransportAddr::Ip(addr)]);
    +616                Some((data, ts))
    +617            } else {
    +618                self.shared
    +619                    .endpoints
    +620                    .lock()
    +621                    .unwrap()
    +622                    .get(&endpoint_id)
    +623                    .cloned()
    +624            };
    +625            let stream = match addr_info {
    +626                Some((data, ts)) => {
    +627                    let item = Item::new(
    +628                        EndpointInfo::from_parts(endpoint_id, data),
    +629                        "test-addr-lookup",
    +630                        Some(ts),
    +631                    );
    +632                    let delay = self.delay;
    +633                    let fut = async move {
    +634                        time::sleep(delay).await;
    +635                        tracing::debug!("resolve: {} = {item:?}", endpoint_id.fmt_short());
    +636                        Ok(item)
    +637                    };
    +638                    n0_future::stream::once_future(fut).boxed()
    +639                }
    +640                None => n0_future::stream::empty().boxed(),
    +641            };
    +642            Some(stream)
    +643        }
    +644    }
    +645
    +646    #[derive(Debug, Clone)]
    +647    struct EmptyAddressLookup;
    +648
    +649    impl AddressLookup for EmptyAddressLookup {
    +650        fn publish(&self, _data: &EndpointData) {}
    +651
    +652        fn resolve(&self, _endpoint_id: EndpointId) -> Option<BoxStream<Result<Item, Error>>> {
    +653            Some(n0_future::stream::empty().boxed())
    +654        }
    +655    }
    +656
    +657    const TEST_ALPN: &[u8] = b"n0/iroh/test";
    +658
    +659    /// This is a smoke test for our Address Lookupmechanism.
    +660    #[tokio::test]
    +661    #[traced_test]
    +662    async fn address_lookup_simple_shared() -> Result {
    +663        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +664
    +665        let eir_shared = TestAddressLookupShared::default();
    +666        let (ep1, _guard1) =
    +667            new_endpoint(&mut rng, |ep| eir_shared.create_address_lookup(ep.id())).await;
     668
    -669    /// This test adds an empty Address Lookupwhich provides no addresses.
    -670    #[tokio::test]
    -671    #[traced_test]
    -672    async fn address_lookup_combined_with_empty_and_right() -> Result {
    -673        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -674        let address_lookup_shared = TestAddressLookupShared::default();
    -675        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    -676            address_lookup_shared.create_address_lookup(ep.id())
    -677        })
    -678        .await;
    -679        let (ep2, _guard2) = new_endpoint_add(&mut rng, |ep| {
    -680            let addr_lookup1 = EmptyAddressLookup;
    -681            let addr_lookup2 = address_lookup_shared.create_address_lookup(ep.id());
    -682            ep.address_lookup()
    -683                .expect("endpoint is still open")
    -684                .add(addr_lookup1);
    -685            ep.address_lookup()
    -686                .expect("endpoint is still open")
    -687                .add(addr_lookup2);
    -688        })
    -689        .await;
    -690
    -691        let ep1_addr = EndpointAddr::new(ep1.id());
    -692
    -693        assert_eq!(
    -694            ep2.address_lookup().expect("endpoint is still open").len(),
    -695            2
    -696        );
    -697        let _conn = ep2
    -698            .connect(ep1_addr, TEST_ALPN)
    -699            .await
    -700            .context("connecting")?;
    -701        Ok(())
    -702    }
    -703
    -704    /// This test adds a "lying" address_lookup service which provides a wrong address.
    -705    /// This is to make sure that as long as one of the services returns a working address, we
    -706    /// will connect successfully.
    -707    #[tokio::test]
    -708    #[traced_test]
    -709    async fn address_lookup_combined_with_empty_and_wrong() -> Result {
    -710        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -711        let address_lookup_shared = TestAddressLookupShared::default();
    -712        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    -713            address_lookup_shared.create_address_lookup(ep.id())
    -714        })
    -715        .await;
    -716
    -717        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    -718            let address_lookup1 = EmptyAddressLookup;
    -719            let address_lookup2 = address_lookup_shared.create_lying_address_lookup(ep.id());
    -720            let address_lookup3 = address_lookup_shared.create_address_lookup(ep.id());
    -721            let address_lookup = ConcurrentAddressLookup::empty();
    -722            address_lookup.add(address_lookup1);
    -723            address_lookup.add(address_lookup2);
    -724            address_lookup.add(address_lookup3);
    -725            address_lookup
    -726        })
    -727        .await;
    -728
    -729        let _conn = ep2.connect(ep1.id(), TEST_ALPN).await?;
    -730        Ok(())
    -731    }
    -732
    -733    /// This test only has the "lying" address lookup system. It is here to make sure that this actually fails.
    -734    #[tokio::test]
    -735    #[traced_test]
    -736    async fn address_lookup_combined_wrong_only() -> Result {
    -737        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -738
    +669        let (ep2, _guard2) =
    +670            new_endpoint(&mut rng, |ep| eir_shared.create_address_lookup(ep.id())).await;
    +671        let ep1_addr = EndpointAddr::new(ep1.id());
    +672        let _conn = ep2.connect(ep1_addr, TEST_ALPN).await?;
    +673        Ok(())
    +674    }
    +675
    +676    /// This is a smoke test to ensure a Address Lookup can be
    +677    /// `Arc`-d, and Address Lookup will still work
    +678    #[tokio::test]
    +679    #[traced_test]
    +680    async fn address_lookup_simple_shared_with_arc() -> Result {
    +681        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +682        let address_lookup_shared = TestAddressLookupShared::default();
    +683        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    +684            Arc::new(address_lookup_shared.create_address_lookup(ep.id()))
    +685        })
    +686        .await;
    +687
    +688        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    +689            Arc::new(address_lookup_shared.create_address_lookup(ep.id()))
    +690        })
    +691        .await;
    +692        let ep1_addr = EndpointAddr::new(ep1.id());
    +693        let _conn = ep2.connect(ep1_addr, TEST_ALPN).await?;
    +694        Ok(())
    +695    }
    +696
    +697    /// This test adds an empty Address Lookupwhich provides no addresses.
    +698    #[tokio::test]
    +699    #[traced_test]
    +700    async fn address_lookup_combined_with_empty_and_right() -> Result {
    +701        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +702        let address_lookup_shared = TestAddressLookupShared::default();
    +703        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    +704            address_lookup_shared.create_address_lookup(ep.id())
    +705        })
    +706        .await;
    +707        let (ep2, _guard2) = new_endpoint_add(&mut rng, |ep| {
    +708            let addr_lookup1 = EmptyAddressLookup;
    +709            let addr_lookup2 = address_lookup_shared.create_address_lookup(ep.id());
    +710            ep.address_lookup()
    +711                .expect("endpoint is still open")
    +712                .add(addr_lookup1);
    +713            ep.address_lookup()
    +714                .expect("endpoint is still open")
    +715                .add(addr_lookup2);
    +716        })
    +717        .await;
    +718
    +719        let ep1_addr = EndpointAddr::new(ep1.id());
    +720
    +721        assert_eq!(
    +722            ep2.address_lookup().expect("endpoint is still open").len(),
    +723            2
    +724        );
    +725        let _conn = ep2
    +726            .connect(ep1_addr, TEST_ALPN)
    +727            .await
    +728            .context("connecting")?;
    +729        Ok(())
    +730    }
    +731
    +732    /// This test adds a "lying" address_lookup service which provides a wrong address.
    +733    /// This is to make sure that as long as one of the services returns a working address, we
    +734    /// will connect successfully.
    +735    #[tokio::test]
    +736    #[traced_test]
    +737    async fn address_lookup_combined_with_empty_and_wrong() -> Result {
    +738        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
     739        let address_lookup_shared = TestAddressLookupShared::default();
     740        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
     741            address_lookup_shared.create_address_lookup(ep.id())
    @@ -743,254 +743,288 @@
     743        .await;
     744
     745        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    -746            let address_lookup1 = address_lookup_shared.create_lying_address_lookup(ep.id());
    -747            ConcurrentAddressLookup::from_services(vec![Box::new(address_lookup1)])
    -748        })
    -749        .await;
    -750
    -751        // 10x faster test via a 3s idle timeout instead of the 30s default
    -752        let cfg = QuicTransportConfig::builder()
    -753            .keep_alive_interval(Duration::from_secs(1))
    -754            .max_idle_timeout(Some(IdleTimeout::try_from(Duration::from_secs(3)).unwrap()))
    -755            .build();
    -756        let opts = ConnectOptions::new().with_transport_config(cfg);
    -757
    -758        let res = ep2
    -759            .connect_with_opts(ep1.id(), TEST_ALPN, opts)
    -760            .await? // -> Connecting works
    -761            .await; // -> Connection is expected to fail
    -762        assert!(res.is_err());
    -763        Ok(())
    -764    }
    -765
    -766    /// This test first adds a wrong address manually (e.g. from an outdated&endpoint_id ticket).
    -767    /// Connect should still succeed because the address lookup service service will be invoked (after a delay).
    -768    #[tokio::test]
    -769    #[traced_test]
    -770    async fn address_lookup_with_wrong_existing_addr() -> Result {
    -771        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +746            let address_lookup1 = EmptyAddressLookup;
    +747            let address_lookup2 = address_lookup_shared.create_lying_address_lookup(ep.id());
    +748            let address_lookup3 = address_lookup_shared.create_address_lookup(ep.id());
    +749            let address_lookup = ConcurrentAddressLookup::empty();
    +750            address_lookup.add(address_lookup1);
    +751            address_lookup.add(address_lookup2);
    +752            address_lookup.add(address_lookup3);
    +753            address_lookup
    +754        })
    +755        .await;
    +756
    +757        let _conn = ep2.connect(ep1.id(), TEST_ALPN).await?;
    +758        Ok(())
    +759    }
    +760
    +761    /// This test only has the "lying" address lookup system. It is here to make sure that this actually fails.
    +762    #[tokio::test]
    +763    #[traced_test]
    +764    async fn address_lookup_combined_wrong_only() -> Result {
    +765        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +766
    +767        let address_lookup_shared = TestAddressLookupShared::default();
    +768        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    +769            address_lookup_shared.create_address_lookup(ep.id())
    +770        })
    +771        .await;
     772
    -773        let address_lookup_shared = TestAddressLookupShared::default();
    -774        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    -775            address_lookup_shared.create_address_lookup(ep.id())
    +773        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    +774            let address_lookup1 = address_lookup_shared.create_lying_address_lookup(ep.id());
    +775            ConcurrentAddressLookup::from_services(vec![Box::new(address_lookup1)])
     776        })
     777        .await;
    -778        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    -779            address_lookup_shared.create_address_lookup(ep.id())
    -780        })
    -781        .await;
    -782
    -783        let ep1_wrong_addr = EndpointAddr::from_parts(
    -784            ep1.id(),
    -785            [TransportAddr::Ip("240.0.0.1:1000".parse().unwrap())],
    -786        );
    -787        let _conn = ep2.connect(ep1_wrong_addr, TEST_ALPN).await?;
    -788        Ok(())
    -789    }
    -790
    -791    async fn new_endpoint<R: CryptoRng, D: AddressLookup + 'static, F: FnOnce(&Endpoint) -> D>(
    -792        rng: &mut R,
    -793        create_address_lookup: F,
    -794    ) -> (Endpoint, AbortOnDropHandle<Result<()>>) {
    -795        new_endpoint_add(rng, |ep| {
    -796            let address_lookup = create_address_lookup(ep);
    -797            ep.address_lookup()
    -798                .expect("endpoint is still open")
    -799                .add(address_lookup);
    -800        })
    -801        .await
    -802    }
    -803
    -804    async fn new_endpoint_add<R: CryptoRng, F: FnOnce(&Endpoint)>(
    -805        rng: &mut R,
    -806        add_address_lookup: F,
    -807    ) -> (Endpoint, AbortOnDropHandle<Result<()>>) {
    -808        let secret = SecretKey::generate(rng);
    -809
    -810        let ep = Endpoint::empty_builder(RelayMode::Disabled)
    -811            .secret_key(secret)
    -812            .alpns(vec![TEST_ALPN.to_vec()])
    -813            .bind()
    -814            .await
    -815            .unwrap();
    -816        add_address_lookup(&ep);
    -817
    -818        let handle = tokio::spawn({
    -819            let ep = ep.clone();
    -820            async move {
    -821                // Keep connections alive until the task is dropped.
    -822                let mut connections = Vec::new();
    -823                // we skip accept() errors, they can be caused by retransmits
    -824                while let Some(accepting) = ep.accept().await.and_then(|inc| inc.accept().ok()) {
    -825                    // Just accept incoming connections, but don't do anything with them.
    -826                    let conn = accepting.await.context("accepting")?;
    -827                    connections.push(conn);
    -828                }
    -829
    -830                Ok::<_, AnyError>(())
    -831            }
    -832        });
    -833
    -834        (ep, AbortOnDropHandle::new(handle))
    -835    }
    -836
    -837    fn system_time_now() -> u64 {
    -838        SystemTime::now()
    -839            .duration_since(SystemTime::UNIX_EPOCH)
    -840            .expect("time drift")
    -841            .as_micros() as u64
    -842    }
    -843}
    -844
    -845/// This module contains end-to-end tests for DNS address lookup service.
    -846///
    -847/// The tests run a minimal test DNS server to resolve against, and a minimal pkarr relay to
    -848/// publish to. The DNS and pkarr servers share their state.
    -849#[cfg(test)]
    -850mod test_dns_pkarr {
    -851    use iroh_base::{EndpointAddr, SecretKey, TransportAddr};
    -852    use iroh_relay::{RelayMap, endpoint_info::UserData};
    -853    use n0_error::{AnyError, Result, StackResultExt};
    -854    use n0_future::time::Duration;
    -855    use n0_tracing_test::traced_test;
    -856    use rand::{CryptoRng, SeedableRng};
    -857    use tokio_util::task::AbortOnDropHandle;
    -858
    -859    use crate::{
    -860        Endpoint, RelayMode,
    -861        address_lookup::{EndpointData, PkarrPublisher},
    -862        dns::DnsResolver,
    -863        endpoint_info::EndpointInfo,
    -864        test_utils::{
    -865            DnsPkarrServer, dns_server::run_dns_server, pkarr_dns_state::State, run_relay_server,
    -866        },
    -867    };
    -868
    -869    const PUBLISH_TIMEOUT: Duration = Duration::from_secs(10);
    -870
    -871    #[tokio::test]
    -872    #[traced_test]
    -873    async fn dns_resolve() -> Result<()> {
    -874        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -875        let origin = "testdns.example".to_string();
    -876        let state = State::new(origin.clone());
    -877        let (nameserver, _dns_drop_guard) = run_dns_server(state.clone())
    -878            .await
    -879            .context("Running DNS server")?;
    -880
    -881        let secret_key = SecretKey::generate(&mut rng);
    -882        let endpoint_info = EndpointInfo::new(secret_key.public())
    -883            .with_relay_url(Some("https://relay.example".parse().unwrap()));
    -884        let signed_packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?;
    -885        state
    -886            .upsert(signed_packet)
    -887            .context("update and insert signed packet")?;
    -888
    -889        let resolver = DnsResolver::with_nameserver(nameserver);
    -890        let resolved = resolver
    -891            .lookup_endpoint_by_id(&endpoint_info.endpoint_id, &origin)
    -892            .await?;
    -893
    -894        assert_eq!(resolved, endpoint_info);
    -895
    -896        Ok(())
    -897    }
    -898
    -899    #[tokio::test]
    -900    #[traced_test]
    -901    async fn pkarr_publish_dns_resolve() -> Result<()> {
    -902        let origin = "testdns.example".to_string();
    -903        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -904
    -905        let dns_pkarr_server = DnsPkarrServer::run_with_origin(origin.clone())
    -906            .await
    -907            .context("DnsPkarrServer")?;
    -908
    -909        let secret_key = SecretKey::generate(&mut rng);
    -910        let endpoint_id = secret_key.public();
    -911
    -912        let relay_url = Some(TransportAddr::Relay(
    -913            "https://relay.example".parse().unwrap(),
    -914        ));
    -915
    -916        let resolver = DnsResolver::with_nameserver(dns_pkarr_server.nameserver);
    -917        let publisher =
    -918            PkarrPublisher::builder(dns_pkarr_server.pkarr_url.clone()).build(secret_key);
    -919        let user_data: UserData = "foobar".parse().unwrap();
    -920        let data = EndpointData::new(relay_url.clone()).with_user_data(Some(user_data.clone()));
    -921        // does not block, update happens in background task
    -922        publisher.update_endpoint_data(&data);
    -923        // wait until our shared state received the update from pkarr publishing
    -924        dns_pkarr_server
    -925            .on_endpoint(&endpoint_id, PUBLISH_TIMEOUT)
    -926            .await
    -927            .context("wait for on endpoint update")?;
    -928        let resolved = resolver
    -929            .lookup_endpoint_by_id(&endpoint_id, &origin)
    -930            .await?;
    -931        println!("resolved {resolved:?}");
    -932
    -933        let expected_addr = EndpointAddr::from_parts(endpoint_id, relay_url);
    -934
    -935        assert_eq!(resolved.to_endpoint_addr(), expected_addr);
    -936        assert_eq!(resolved.user_data(), Some(&user_data));
    -937        Ok(())
    -938    }
    -939
    -940    const TEST_ALPN: &[u8] = b"TEST";
    -941
    -942    #[tokio::test]
    -943    #[traced_test]
    -944    async fn pkarr_publish_dns_address_lookup() -> Result<()> {
    -945        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    -946
    -947        let dns_pkarr_server = DnsPkarrServer::run().await.context("DnsPkarrServer run")?;
    -948        let (relay_map, _relay_url, _relay_guard) = run_relay_server().await?;
    -949
    -950        let (ep1, _guard1) =
    -951            ep_with_address_lookup(&mut rng, &relay_map, &dns_pkarr_server).await?;
    -952        let (ep2, _guard2) =
    -953            ep_with_address_lookup(&mut rng, &relay_map, &dns_pkarr_server).await?;
    -954
    -955        // wait until our shared state received the update from pkarr publishing
    -956        dns_pkarr_server
    -957            .on_endpoint(&ep1.id(), PUBLISH_TIMEOUT)
    -958            .await
    -959            .context("wait for on endpoint update")?;
    -960
    -961        // we connect only by endpoint id!
    -962        let _conn = ep2.connect(ep1.id(), TEST_ALPN).await?;
    -963        Ok(())
    -964    }
    -965
    -966    async fn ep_with_address_lookup<R: CryptoRng + ?Sized>(
    -967        rng: &mut R,
    -968        relay_map: &RelayMap,
    -969        dns_pkarr_server: &DnsPkarrServer,
    -970    ) -> Result<(Endpoint, AbortOnDropHandle<Result<()>>)> {
    -971        let secret_key = SecretKey::generate(rng);
    -972        let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone()))
    -973            .insecure_skip_relay_cert_verify(true)
    -974            .secret_key(secret_key.clone())
    -975            .alpns(vec![TEST_ALPN.to_vec()])
    -976            .dns_resolver(dns_pkarr_server.dns_resolver())
    -977            .address_lookup(dns_pkarr_server.address_lookup(secret_key))
    -978            .bind()
    -979            .await?;
    -980
    -981        let handle = tokio::spawn({
    -982            let ep = ep.clone();
    -983            async move {
    -984                // we skip accept() errors, they can be caused by retransmits
    -985                while let Some(accepting) = ep.accept().await.and_then(|inc| inc.accept().ok()) {
    -986                    let _conn = accepting.await.context("accepting")?;
    -987                    // Just accept incoming connections, but don't do anything with them.
    -988                }
    +778
    +779        // 10x faster test via a 3s idle timeout instead of the 30s default
    +780        let cfg = QuicTransportConfig::builder()
    +781            .keep_alive_interval(Duration::from_secs(1))
    +782            .max_idle_timeout(Some(IdleTimeout::try_from(Duration::from_secs(3)).unwrap()))
    +783            .build();
    +784        let opts = ConnectOptions::new().with_transport_config(cfg);
    +785
    +786        let res = ep2
    +787            .connect_with_opts(ep1.id(), TEST_ALPN, opts)
    +788            .await? // -> Connecting works
    +789            .await; // -> Connection is expected to fail
    +790        assert!(res.is_err());
    +791        Ok(())
    +792    }
    +793
    +794    /// This test first adds a wrong address manually (e.g. from an outdated&endpoint_id ticket).
    +795    /// Connect should still succeed because the address lookup service service will be invoked (after a delay).
    +796    #[tokio::test]
    +797    #[traced_test]
    +798    async fn address_lookup_with_wrong_existing_addr() -> Result {
    +799        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +800
    +801        let address_lookup_shared = TestAddressLookupShared::default();
    +802        let (ep1, _guard1) = new_endpoint(&mut rng, |ep| {
    +803            address_lookup_shared.create_address_lookup(ep.id())
    +804        })
    +805        .await;
    +806        let (ep2, _guard2) = new_endpoint(&mut rng, |ep| {
    +807            address_lookup_shared.create_address_lookup(ep.id())
    +808        })
    +809        .await;
    +810
    +811        let ep1_wrong_addr = EndpointAddr::from_parts(
    +812            ep1.id(),
    +813            [TransportAddr::Ip("240.0.0.1:1000".parse().unwrap())],
    +814        );
    +815        let _conn = ep2.connect(ep1_wrong_addr, TEST_ALPN).await?;
    +816        Ok(())
    +817    }
    +818
    +819    async fn new_endpoint<R: CryptoRng, D: AddressLookup + 'static, F: FnOnce(&Endpoint) -> D>(
    +820        rng: &mut R,
    +821        create_address_lookup: F,
    +822    ) -> (Endpoint, AbortOnDropHandle<Result<()>>) {
    +823        new_endpoint_add(rng, |ep| {
    +824            let address_lookup = create_address_lookup(ep);
    +825            ep.address_lookup()
    +826                .expect("endpoint is still open")
    +827                .add(address_lookup);
    +828        })
    +829        .await
    +830    }
    +831
    +832    async fn new_endpoint_add<R: CryptoRng, F: FnOnce(&Endpoint)>(
    +833        rng: &mut R,
    +834        add_address_lookup: F,
    +835    ) -> (Endpoint, AbortOnDropHandle<Result<()>>) {
    +836        let secret = SecretKey::generate(rng);
    +837
    +838        let ep = Endpoint::empty_builder(RelayMode::Disabled)
    +839            .secret_key(secret)
    +840            .alpns(vec![TEST_ALPN.to_vec()])
    +841            .bind()
    +842            .await
    +843            .unwrap();
    +844        add_address_lookup(&ep);
    +845
    +846        let handle = tokio::spawn({
    +847            let ep = ep.clone();
    +848            async move {
    +849                // Keep connections alive until the task is dropped.
    +850                let mut connections = Vec::new();
    +851                // we skip accept() errors, they can be caused by retransmits
    +852                while let Some(accepting) = ep.accept().await.and_then(|inc| inc.accept().ok()) {
    +853                    // Just accept incoming connections, but don't do anything with them.
    +854                    let conn = accepting.await.context("accepting")?;
    +855                    connections.push(conn);
    +856                }
    +857
    +858                Ok::<_, AnyError>(())
    +859            }
    +860        });
    +861
    +862        (ep, AbortOnDropHandle::new(handle))
    +863    }
    +864
    +865    fn system_time_now() -> u64 {
    +866        SystemTime::now()
    +867            .duration_since(SystemTime::UNIX_EPOCH)
    +868            .expect("time drift")
    +869            .as_micros() as u64
    +870    }
    +871}
    +872
    +873/// This module contains end-to-end tests for DNS address lookup service.
    +874///
    +875/// The tests run a minimal test DNS server to resolve against, and a minimal pkarr relay to
    +876/// publish to. The DNS and pkarr servers share their state.
    +877#[cfg(test)]
    +878mod test_dns_pkarr {
    +879    use iroh_base::{EndpointAddr, SecretKey, TransportAddr};
    +880    use iroh_relay::{
    +881        RelayMap,
    +882        endpoint_info::UserData,
    +883        tls::{CaRootsConfig, default_provider},
    +884    };
    +885    use n0_error::{AnyError, Result, StackResultExt};
    +886    use n0_future::time::Duration;
    +887    use n0_tracing_test::traced_test;
    +888    use rand::{CryptoRng, SeedableRng};
    +889    use tokio_util::task::AbortOnDropHandle;
    +890
    +891    use crate::{
    +892        Endpoint, RelayMode,
    +893        address_lookup::{EndpointData, PkarrPublisher},
    +894        dns::DnsResolver,
    +895        endpoint_info::EndpointInfo,
    +896        test_utils::{
    +897            DnsPkarrServer, dns_server::run_dns_server, pkarr_dns_state::State, run_relay_server,
    +898        },
    +899    };
    +900
    +901    const PUBLISH_TIMEOUT: Duration = Duration::from_secs(10);
    +902
    +903    #[tokio::test]
    +904    #[traced_test]
    +905    async fn dns_resolve() -> Result<()> {
    +906        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +907        let origin = "testdns.example".to_string();
    +908        let state = State::new(origin.clone());
    +909        let (nameserver, _dns_drop_guard) = run_dns_server(state.clone())
    +910            .await
    +911            .context("Running DNS server")?;
    +912
    +913        let secret_key = SecretKey::generate(&mut rng);
    +914        let endpoint_info = EndpointInfo::new(secret_key.public())
    +915            .with_relay_url(Some("https://relay.example".parse().unwrap()));
    +916        let signed_packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?;
    +917        state
    +918            .upsert(signed_packet)
    +919            .context("update and insert signed packet")?;
    +920
    +921        let resolver = DnsResolver::with_nameserver(nameserver);
    +922        let resolved = resolver
    +923            .lookup_endpoint_by_id(&endpoint_info.endpoint_id, &origin)
    +924            .await?;
    +925
    +926        assert_eq!(resolved, endpoint_info);
    +927
    +928        Ok(())
    +929    }
    +930
    +931    #[tokio::test]
    +932    #[traced_test]
    +933    async fn pkarr_publish_dns_resolve() -> Result<()> {
    +934        let origin = "testdns.example".to_string();
    +935        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +936
    +937        let dns_pkarr_server = DnsPkarrServer::run_with_origin(origin.clone())
    +938            .await
    +939            .context("DnsPkarrServer")?;
    +940
    +941        let secret_key = SecretKey::generate(&mut rng);
    +942        let endpoint_id = secret_key.public();
    +943
    +944        let relay_url = Some(TransportAddr::Relay(
    +945            "https://relay.example".parse().unwrap(),
    +946        ));
    +947
    +948        let tls_config = CaRootsConfig::insecure_skip_verify()
    +949            .client_config(default_provider())
    +950            .expect("infallible");
    +951        let resolver = DnsResolver::with_nameserver(dns_pkarr_server.nameserver);
    +952        let publisher = PkarrPublisher::builder(dns_pkarr_server.pkarr_url.clone())
    +953            .build(secret_key, tls_config);
    +954        let user_data: UserData = "foobar".parse().unwrap();
    +955        let data = EndpointData::new(relay_url.clone()).with_user_data(Some(user_data.clone()));
    +956        // does not block, update happens in background task
    +957        publisher.update_endpoint_data(&data);
    +958        // wait until our shared state received the update from pkarr publishing
    +959        dns_pkarr_server
    +960            .on_endpoint(&endpoint_id, PUBLISH_TIMEOUT)
    +961            .await
    +962            .context("wait for on endpoint update")?;
    +963        let resolved = resolver
    +964            .lookup_endpoint_by_id(&endpoint_id, &origin)
    +965            .await?;
    +966        println!("resolved {resolved:?}");
    +967
    +968        let expected_addr = EndpointAddr::from_parts(endpoint_id, relay_url);
    +969
    +970        assert_eq!(resolved.to_endpoint_addr(), expected_addr);
    +971        assert_eq!(resolved.user_data(), Some(&user_data));
    +972        Ok(())
    +973    }
    +974
    +975    const TEST_ALPN: &[u8] = b"TEST";
    +976
    +977    #[tokio::test]
    +978    #[traced_test]
    +979    async fn pkarr_publish_dns_address_lookup() -> Result<()> {
    +980        let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64);
    +981
    +982        let dns_pkarr_server = DnsPkarrServer::run().await.context("DnsPkarrServer run")?;
    +983        let (relay_map, _relay_url, _relay_guard) = run_relay_server().await?;
    +984
    +985        let (ep1, _guard1) =
    +986            ep_with_address_lookup(&mut rng, &relay_map, &dns_pkarr_server).await?;
    +987        let (ep2, _guard2) =
    +988            ep_with_address_lookup(&mut rng, &relay_map, &dns_pkarr_server).await?;
     989
    -990                Ok::<_, AnyError>(())
    -991            }
    -992        });
    -993
    -994        Ok((ep, AbortOnDropHandle::new(handle)))
    -995    }
    -996}
    \ No newline at end of file +990 // wait until our shared state received the update from pkarr publishing +991 dns_pkarr_server +992 .on_endpoint(&ep1.id(), PUBLISH_TIMEOUT) +993 .await +994 .context("wait for on endpoint update")?; +995 +996 // we connect only by endpoint id! +997 let _conn = ep2.connect(ep1.id(), TEST_ALPN).await?; +998 Ok(()) +999 } +1000 +1001 async fn ep_with_address_lookup<R: CryptoRng + ?Sized>( +1002 rng: &mut R, +1003 relay_map: &RelayMap, +1004 dns_pkarr_server: &DnsPkarrServer, +1005 ) -> Result<(Endpoint, AbortOnDropHandle<Result<()>>)> { +1006 let secret_key = SecretKey::generate(rng); +1007 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1008 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1009 .secret_key(secret_key.clone()) +1010 .alpns(vec![TEST_ALPN.to_vec()]) +1011 .preset(dns_pkarr_server.preset()) +1012 .bind() +1013 .await?; +1014 +1015 let handle = tokio::spawn({ +1016 let ep = ep.clone(); +1017 async move { +1018 // we skip accept() errors, they can be caused by retransmits +1019 while let Some(accepting) = ep.accept().await.and_then(|inc| inc.accept().ok()) { +1020 let _conn = accepting.await.context("accepting")?; +1021 // Just accept incoming connections, but don't do anything with them. +1022 } +1023 +1024 Ok::<_, AnyError>(()) +1025 } +1026 }); +1027 +1028 Ok((ep, AbortOnDropHandle::new(handle))) +1029 } +1030}
    \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/address_lookup/dns.rs.html b/pr/3958/docs/src/iroh/address_lookup/dns.rs.html index 37da60823e..a4d80e2db7 100644 --- a/pr/3958/docs/src/iroh/address_lookup/dns.rs.html +++ b/pr/3958/docs/src/iroh/address_lookup/dns.rs.html @@ -8,8 +8,8 @@ 8use crate::{ 9 Endpoint, 10 address_lookup::{ -11 AddressLookup, Error as AddressLookupError, IntoAddressLookup, IntoAddressLookupError, -12 Item as AddressLookupItem, +11 AddrFilter, AddressLookup, AddressLookupBuilder, AddressLookupBuilderError, +12 Error as AddressLookupError, Item as AddressLookupItem, 13 }, 14 endpoint::force_staging_infra, 15}; @@ -69,7 +69,7 @@ 69} 70 71impl DnsAddressLookup { -72 /// Creates a [`DnsAddressLookupBuilder`] that implements [`IntoAddressLookup`]. +72 /// Creates a [`DnsAddressLookupBuilder`] that implements [`AddressLookupBuilder`]. 73 pub fn builder(origin_domain: String) -> DnsAddressLookupBuilder { 74 DnsAddressLookupBuilder { 75 origin_domain, @@ -95,33 +95,40 @@ 95 } 96} 97 -98impl IntoAddressLookup for DnsAddressLookupBuilder { +98impl AddressLookupBuilder for DnsAddressLookupBuilder { 99 fn into_address_lookup( 100 mut self, 101 endpoint: &Endpoint, -102 ) -> Result<impl AddressLookup, IntoAddressLookupError> { +102 ) -> Result<impl AddressLookup, AddressLookupBuilderError> { 103 if self.dns_resolver.is_none() { 104 self.dns_resolver = Some(endpoint.dns_resolver()?.clone()); 105 } 106 Ok(self.build()) 107 } -108} -109 -110impl AddressLookup for DnsAddressLookup { -111 fn resolve( -112 &self, -113 endpoint_id: EndpointId, -114 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { -115 let resolver = self.dns_resolver.clone(); -116 let origin_domain = self.origin_domain.clone(); -117 let fut = async move { -118 let endpoint_info = resolver -119 .lookup_endpoint_by_id_staggered(&endpoint_id, &origin_domain, DNS_STAGGERING_MS) -120 .await -121 .map_err(|e| AddressLookupError::from_err_any("dns", e))?; -122 Ok(AddressLookupItem::new(endpoint_info, "dns", None)) -123 }; -124 let stream = n0_future::stream::once_future(fut); -125 Some(Box::pin(stream)) -126 } -127}

    \ No newline at end of file +108 +109 fn with_addr_filter(self, _filter: AddrFilter) -> Self +110 where +111 Self: Sized, +112 { +113 self +114 } +115} +116 +117impl AddressLookup for DnsAddressLookup { +118 fn resolve( +119 &self, +120 endpoint_id: EndpointId, +121 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { +122 let resolver = self.dns_resolver.clone(); +123 let origin_domain = self.origin_domain.clone(); +124 let fut = async move { +125 let endpoint_info = resolver +126 .lookup_endpoint_by_id_staggered(&endpoint_id, &origin_domain, DNS_STAGGERING_MS) +127 .await +128 .map_err(|e| AddressLookupError::from_err_any("dns", e))?; +129 Ok(AddressLookupItem::new(endpoint_info, "dns", None)) +130 }; +131 let stream = n0_future::stream::once_future(fut); +132 Some(Box::pin(stream)) +133 } +134}
    \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/address_lookup/mdns.rs.html b/pr/3958/docs/src/iroh/address_lookup/mdns.rs.html index c598566e5d..f0f997fa98 100644 --- a/pr/3958/docs/src/iroh/address_lookup/mdns.rs.html +++ b/pr/3958/docs/src/iroh/address_lookup/mdns.rs.html @@ -5,836 +5,943 @@ 5//! 6//! When [`MdnsAddressLookup`] is enabled, it's possible to get a list of the locally discovered endpoints by filtering a list of `RemoteInfo`s. 7//! -8//! ```no_run -9//! use std::time::Duration; +8//! In order to get a list of locally discovered addresses, you must call `MdnsAddressLookup::subscribe` to subscribe +9//! to a stream of discovered addresses. 10//! -11//! use iroh::{ -12//! RelayMode, SecretKey, -13//! address_lookup::{DiscoveryEvent, MdnsAddressLookup}, -14//! endpoint::{Endpoint, Source}, -15//! }; -16//! use n0_future::StreamExt; -17//! -18//! #[tokio::main] -19//! async fn main() { -20//! let recent = Duration::from_secs(600); // 10 minutes in seconds -21//! let endpoint = Endpoint::empty_builder(RelayMode::Disabled) -22//! .bind() -23//! .await -24//! .unwrap(); -25//! -26//! // Register the Address Lookupwith the endpoint -27//! let mdns = MdnsAddressLookup::builder().build(endpoint.id()).unwrap(); -28//! endpoint.address_lookup().unwrap().add(mdns.clone()); -29//! -30//! // Subscribe to the mdns discovery events -31//! let mut events = mdns.subscribe().await; -32//! while let Some(event) = events.next().await { -33//! match event { -34//! DiscoveryEvent::Discovered { endpoint_info, .. } => { -35//! println!("MDNS discovered: {:?}", endpoint_info); -36//! } -37//! DiscoveryEvent::Expired { endpoint_id } => { -38//! println!("MDNS expired: {endpoint_id}"); +11//! ```no_run +12//! use std::time::Duration; +13//! +14//! use iroh::{ +15//! RelayMode, SecretKey, +16//! address_lookup::{DiscoveryEvent, MdnsAddressLookup}, +17//! endpoint::{Endpoint, Source}, +18//! }; +19//! use n0_future::StreamExt; +20//! +21//! #[tokio::main] +22//! async fn main() { +23//! let recent = Duration::from_secs(600); // 10 minutes in seconds +24//! let endpoint = Endpoint::empty_builder(RelayMode::Disabled) +25//! .bind() +26//! .await +27//! .unwrap(); +28//! +29//! // Register the Address Lookupwith the endpoint +30//! let mdns = MdnsAddressLookup::builder().build(endpoint.id()).unwrap(); +31//! endpoint.address_lookup().unwrap().add(mdns.clone()); +32//! +33//! // Subscribe to the mdns discovery events +34//! let mut events = mdns.subscribe().await; +35//! while let Some(event) = events.next().await { +36//! match event { +37//! DiscoveryEvent::Discovered { endpoint_info, .. } => { +38//! println!("MDNS discovered: {:?}", endpoint_info); 39//! } -40//! } -41//! } -42//! } -43//! ``` -44use std::{ -45 collections::{BTreeSet, HashMap}, -46 net::{IpAddr, SocketAddr}, -47 str::FromStr, -48 sync::Arc, -49}; -50 -51use iroh_base::{EndpointId, PublicKey}; -52use n0_future::{ -53 Stream, -54 boxed::BoxStream, -55 task::{self, AbortOnDropHandle, JoinSet}, -56 time::{self, Duration}, -57}; -58use n0_watcher::{Watchable, Watcher as _}; -59use swarm_discovery::{Discoverer, DropGuard, IpClass, Peer}; -60use tokio::sync::mpsc::{self, error::TrySendError}; -61use tracing::{Instrument, debug, error, info_span, trace, warn}; -62 -63use super::IntoAddressLookup; -64use crate::{ -65 Endpoint, -66 address_lookup::{ -67 AddressLookup, EndpointData, EndpointInfo, Error as AddressLookupError, -68 IntoAddressLookupError, Item as AddressLookupItem, -69 }, -70}; -71 -72/// The n0 local service name -73const N0_SERVICE_NAME: &str = "irohv1"; -74 -75/// Name of this address lookup service. -76/// -77/// Used as the `provenance` field in [`AddressLookupItem`]s. -78/// -79/// Used in the [`crate::endpoint::Source::AddressLookup`] enum variant as the `name`. -80pub const NAME: &str = "mdns"; -81 -82/// The key of the attribute under which the `UserData` is stored in -83/// the TXT record supported by swarm-discovery. -84const USER_DATA_ATTRIBUTE: &str = "user-data"; -85 -86/// How long we will wait before we stop attempting to resolve an endpoint ID to an address -87const LOOKUP_DURATION: Duration = Duration::from_secs(10); -88 -89/// Address Lookup using `swarm-discovery`, a variation on mdns -90#[derive(Debug, Clone)] -91pub struct MdnsAddressLookup { -92 #[allow(dead_code)] -93 handle: Arc<AbortOnDropHandle<()>>, -94 sender: mpsc::Sender<Message>, -95 advertise: bool, -96 /// When `local_addrs` changes, we re-publish our info. -97 local_addrs: Watchable<Option<EndpointData>>, -98} -99 -100#[derive(Debug)] -101enum Message { -102 Discovered(String, Peer), -103 Resolve( -104 EndpointId, -105 mpsc::Sender<Result<AddressLookupItem, AddressLookupError>>, -106 ), -107 Timeout(EndpointId, usize), -108 Subscribe(mpsc::Sender<DiscoveryEvent>), -109} -110 -111/// Manages the list of subscribers that are subscribed to this Address Lookup. -112#[derive(Debug)] -113struct Subscribers(Vec<mpsc::Sender<DiscoveryEvent>>); -114 -115impl Subscribers { -116 fn new() -> Self { -117 Self(vec![]) -118 } -119 -120 /// Add the subscriber to the list of subscribers -121 fn push(&mut self, subscriber: mpsc::Sender<DiscoveryEvent>) { -122 self.0.push(subscriber); -123 } -124 -125 /// Sends the `endpoint_id` and `item` to each subscriber. -126 /// -127 /// Cleans up any subscribers that have been dropped. -128 fn send(&mut self, item: DiscoveryEvent) { -129 let mut clean_up = vec![]; -130 for (i, subscriber) in self.0.iter().enumerate() { -131 // assume subscriber was dropped -132 if let Err(err) = subscriber.try_send(item.clone()) { -133 match err { -134 TrySendError::Full(_) => { -135 warn!(?item, idx = i, "mdns subscriber is blocked, dropping item") -136 } -137 TrySendError::Closed(_) => clean_up.push(i), -138 } -139 } -140 } -141 for i in clean_up.into_iter().rev() { -142 self.0.swap_remove(i); -143 } -144 } -145} -146 -147/// Builder for [`MdnsAddressLookup`]. -148#[derive(Debug)] -149pub struct MdnsAddressLookupBuilder { -150 advertise: bool, -151 service_name: String, -152} -153 -154impl MdnsAddressLookupBuilder { -155 /// Creates a new [`MdnsAddressLookupBuilder`] with default settings. -156 fn new() -> Self { -157 Self { -158 advertise: true, -159 service_name: N0_SERVICE_NAME.to_string(), -160 } -161 } -162 -163 /// Sets whether this endpoint should advertise its presence. -164 /// -165 /// Default is true. -166 pub fn advertise(mut self, advertise: bool) -> Self { -167 self.advertise = advertise; -168 self -169 } +40//! DiscoveryEvent::Expired { endpoint_id } => { +41//! println!("MDNS expired: {endpoint_id}"); +42//! } +43//! } +44//! } +45//! } +46//! ``` +47//! +48//! ## Filtering +49//! +50//! By default, [`MdnsAddressLookup`] will attempt to publish all addresses it receives: +51//! direct IP addresses and up to one [`RelayUrl`]. The following constraints apply regardless +52//! of any user-supplied filter: +53//! +54//! - Only the first [`RelayUrl`] in the address set is published. +55//! - A [`RelayUrl`] longer than 249 bytes is silently dropped. +56//! +57//! You can supply an [`AddrFilter`] via [`MdnsAddressLookupBuilder::with_addr_filter`] to +58//! control which addresses are published and in what order. The filter is applied before the +59//! constraints above, so for example you can use it to exclude relay URLs entirely or to +60//! prioritize certain addresses. +61//! +62//! [`AddrFilter`]: crate::address_lookup::AddrFilter +63//! [`RelayUrl`]: iroh_base::RelayUrl +64use std::{ +65 collections::{BTreeSet, HashMap}, +66 net::{IpAddr, SocketAddr}, +67 str::FromStr, +68 sync::Arc, +69}; +70 +71use iroh_base::{EndpointId, PublicKey}; +72use n0_future::{ +73 Stream, +74 boxed::BoxStream, +75 task::{self, AbortOnDropHandle, JoinSet}, +76 time::{self, Duration}, +77}; +78use n0_watcher::{Watchable, Watcher as _}; +79use swarm_discovery::{Discoverer, DropGuard, IpClass, Peer}; +80use tokio::sync::mpsc::{self, error::TrySendError}; +81use tracing::{Instrument, debug, error, info_span, trace, warn}; +82 +83use super::AddressLookupBuilder; +84use crate::{ +85 Endpoint, +86 address_lookup::{ +87 AddrFilter, AddressLookup, AddressLookupBuilderError, EndpointData, EndpointInfo, +88 Error as AddressLookupError, Item as AddressLookupItem, +89 }, +90}; +91 +92/// The n0 local service name. +93const N0_SERVICE_NAME: &str = "irohv1"; +94 +95/// Name of this address lookup service. +96/// +97/// Used as the `provenance` field in [`AddressLookupItem`]s. +98/// +99/// Used in the [`crate::endpoint::Source::AddressLookup`] enum variant as the `name`. +100pub const NAME: &str = "mdns"; +101 +102/// The key of the attribute under which the `UserData` is stored in +103/// the TXT record supported by swarm-discovery. +104const USER_DATA_ATTRIBUTE: &str = "user-data"; +105 +106/// How long we will wait before we stop attempting to resolve an endpoint ID to an address. +107const LOOKUP_DURATION: Duration = Duration::from_secs(10); +108 +109/// The key of the attribute under which the `RelayUrl` is stored in +110/// the TXT record supported by swarm-discovery. +111const RELAY_URL_ATTRIBUTE: &str = "relay"; +112 +113/// Address Lookup using `swarm-discovery`, a variation on mdns. +114#[derive(Debug, Clone)] +115pub struct MdnsAddressLookup { +116 #[allow(dead_code)] +117 handle: Arc<AbortOnDropHandle<()>>, +118 sender: mpsc::Sender<Message>, +119 advertise: bool, +120 /// When `local_addrs` changes, we re-publish our info. +121 local_addrs: Watchable<Option<EndpointData>>, +122} +123 +124#[derive(Debug)] +125enum Message { +126 Discovered(String, Peer), +127 Resolve( +128 EndpointId, +129 mpsc::Sender<Result<AddressLookupItem, AddressLookupError>>, +130 ), +131 Timeout(EndpointId, usize), +132 Subscribe(mpsc::Sender<DiscoveryEvent>), +133} +134 +135/// Manages the list of subscribers that are subscribed to this Address Lookup. +136#[derive(Debug)] +137struct Subscribers(Vec<mpsc::Sender<DiscoveryEvent>>); +138 +139impl Subscribers { +140 fn new() -> Self { +141 Self(vec![]) +142 } +143 +144 /// Add the subscriber to the list of subscribers. +145 fn push(&mut self, subscriber: mpsc::Sender<DiscoveryEvent>) { +146 self.0.push(subscriber); +147 } +148 +149 /// Sends the `endpoint_id` and `item` to each subscriber. +150 /// +151 /// Cleans up any subscribers that have been dropped. +152 fn send(&mut self, item: DiscoveryEvent) { +153 let mut clean_up = vec![]; +154 for (i, subscriber) in self.0.iter().enumerate() { +155 // assume subscriber was dropped +156 if let Err(err) = subscriber.try_send(item.clone()) { +157 match err { +158 TrySendError::Full(_) => { +159 warn!(?item, idx = i, "mdns subscriber is blocked, dropping item") +160 } +161 TrySendError::Closed(_) => clean_up.push(i), +162 } +163 } +164 } +165 for i in clean_up.into_iter().rev() { +166 self.0.swap_remove(i); +167 } +168 } +169} 170 -171 /// Sets a custom service name. -172 /// -173 /// The default is `irohv1`, which will show up on a record in the -174 /// following form, for example: -175 /// `7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._irohv1._udp.local` -176 /// -177 /// Any custom service name will take the form, for example: -178 /// `7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._{service_name}._udp.local` -179 pub fn service_name(mut self, service_name: impl Into<String>) -> Self { -180 self.service_name = service_name.into(); -181 self -182 } -183 -184 /// Builds an [`MdnsAddressLookup`] instance with the configured settings. -185 /// -186 /// # Errors -187 /// Returns an error if the network does not allow ipv4 OR ipv6. -188 /// -189 /// # Panics -190 /// This relies on [`tokio::runtime::Handle::current`] and will panic if called outside of the context of a tokio runtime. -191 pub fn build( -192 self, -193 endpoint_id: EndpointId, -194 ) -> Result<MdnsAddressLookup, IntoAddressLookupError> { -195 MdnsAddressLookup::new(endpoint_id, self.advertise, self.service_name) -196 } -197} -198 -199impl Default for MdnsAddressLookupBuilder { -200 fn default() -> Self { -201 Self::new() -202 } -203} -204 -205impl IntoAddressLookup for MdnsAddressLookupBuilder { -206 fn into_address_lookup( -207 self, -208 endpoint: &Endpoint, -209 ) -> Result<impl AddressLookup, IntoAddressLookupError> { -210 self.build(endpoint.id()) -211 } -212} -213 -214/// An event emitted from the [`MdnsAddressLookup`] service. -215#[derive(Debug, Clone, Eq, PartialEq)] -216pub enum DiscoveryEvent { -217 /// A peer was discovered or it's information was updated. -218 Discovered { -219 /// The endpoint info for the endpoint, as discovered. -220 endpoint_info: EndpointInfo, -221 /// Optional timestamp when this endpoint address info was last updated. -222 last_updated: Option<u64>, -223 }, -224 /// A peer was expired due to being inactive, unreachable, or otherwise -225 /// unavailable. -226 Expired { -227 /// The id of the endpoint that expired. -228 endpoint_id: EndpointId, -229 }, -230} -231 -232impl MdnsAddressLookup { -233 /// Returns a [`MdnsAddressLookupBuilder`] that implements [`Into`]. -234 pub fn builder() -> MdnsAddressLookupBuilder { -235 MdnsAddressLookupBuilder::default() -236 } -237 -238 /// Create a new [`MdnsAddressLookup`] Service. -239 /// -240 /// This starts a [`Discoverer`] that broadcasts your addresses (if advertise is set to true) -241 /// and receives addresses from other endpoints in your local network. -242 /// -243 /// # Errors -244 /// Returns an error if the network does not allow ipv4 OR ipv6. -245 /// -246 /// # Panics -247 /// This relies on [`tokio::runtime::Handle::current`] and will panic if called outside of the context of a tokio runtime. -248 fn new( -249 endpoint_id: EndpointId, -250 advertise: bool, -251 service_name: String, -252 ) -> Result<Self, IntoAddressLookupError> { -253 debug!("Creating new Mdns service"); -254 let (send, mut recv) = mpsc::channel(64); -255 let task_sender = send.clone(); -256 let rt = tokio::runtime::Handle::current(); -257 let address_lookup = MdnsAddressLookup::spawn_discoverer( -258 endpoint_id, -259 advertise, -260 task_sender.clone(), -261 BTreeSet::new(), -262 service_name, -263 &rt, -264 )?; -265 -266 let local_addrs: Watchable<Option<EndpointData>> = Watchable::default(); -267 let mut addrs_change = local_addrs.watch(); -268 let address_lookup_fut = async move { -269 let mut endpoint_addrs: HashMap<PublicKey, Peer> = HashMap::default(); -270 let mut subscribers = Subscribers::new(); -271 let mut last_id = 0; -272 let mut senders: HashMap< -273 PublicKey, -274 HashMap<usize, mpsc::Sender<Result<AddressLookupItem, AddressLookupError>>>, -275 > = HashMap::default(); -276 let mut timeouts = JoinSet::new(); -277 loop { -278 trace!(?endpoint_addrs, "Mdns Service loop tick"); -279 let msg = tokio::select! { -280 msg = recv.recv() => { -281 msg -282 } -283 Ok(Some(data)) = addrs_change.updated() => { -284 tracing::trace!(?data, "Mdns address changed"); -285 address_lookup.remove_all(); -286 let addrs = -287 MdnsAddressLookup::socketaddrs_to_addrs(data.ip_addrs()); -288 for addr in addrs { -289 address_lookup.add(addr.0, addr.1) -290 } -291 if let Some(user_data) = data.user_data() -292 && let Err(err) = address_lookup.set_txt_attribute(USER_DATA_ATTRIBUTE.to_string(), Some(user_data.to_string())) { -293 warn!("Failed to set the user-defined data in mdns: {err:?}"); -294 } -295 continue; -296 } -297 }; -298 let msg = match msg { -299 None => { -300 error!("Mdns channel closed"); -301 error!("closing Mdns"); -302 timeouts.abort_all(); -303 address_lookup.remove_all(); -304 return; -305 } -306 Some(msg) => msg, -307 }; -308 match msg { -309 Message::Discovered(discovered_endpoint_id, peer_info) => { -310 trace!( -311 ?discovered_endpoint_id, -312 ?peer_info, -313 "Mdns Message::Discovered" -314 ); -315 let discovered_endpoint_id = -316 match PublicKey::from_str(&discovered_endpoint_id) { -317 Ok(endpoint_id) => endpoint_id, -318 Err(e) => { -319 warn!( -320 discovered_endpoint_id, -321 "couldn't parse endpoint_id from mdns Address Lookup: {e:?}" -322 ); -323 continue; -324 } -325 }; -326 -327 if discovered_endpoint_id == endpoint_id { -328 continue; -329 } -330 -331 if peer_info.is_expiry() { -332 trace!( -333 ?discovered_endpoint_id, -334 "removing endpoint from Mdns address book" -335 ); -336 endpoint_addrs.remove(&discovered_endpoint_id); -337 subscribers.send(DiscoveryEvent::Expired { -338 endpoint_id: discovered_endpoint_id, -339 }); -340 continue; +171/// Builder for [`MdnsAddressLookup`]. +172#[derive(Debug)] +173pub struct MdnsAddressLookupBuilder { +174 advertise: bool, +175 service_name: String, +176 filter: AddrFilter, +177} +178 +179impl MdnsAddressLookupBuilder { +180 /// Creates a new [`MdnsAddressLookupBuilder`] with default settings. +181 fn new() -> Self { +182 Self { +183 advertise: true, +184 service_name: N0_SERVICE_NAME.to_string(), +185 filter: AddrFilter::default(), +186 } +187 } +188 +189 /// Sets whether this endpoint should advertise its presence. +190 /// +191 /// Default is true. +192 pub fn advertise(mut self, advertise: bool) -> Self { +193 self.advertise = advertise; +194 self +195 } +196 +197 /// Sets a custom service name. +198 /// +199 /// The default is `irohv1`, which will show up on a record in the +200 /// following form, for example: +201 /// `7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._irohv1._udp.local` +202 /// +203 /// Any custom service name will take the form, for example: +204 /// `7rutqynuzu65fcdgoerbt4uoh3p62wuto2mp56x3uvhitqzssxga._{service_name}._udp.local` +205 pub fn service_name(mut self, service_name: impl Into<String>) -> Self { +206 self.service_name = service_name.into(); +207 self +208 } +209 +210 /// Sets a filter to control which addresses are published by this service. +211 pub fn set_addr_filter(mut self, filter: AddrFilter) -> Self { +212 self.filter = filter; +213 self +214 } +215 +216 /// Builds an [`MdnsAddressLookup`] instance with the configured settings. +217 /// +218 /// # Errors +219 /// Returns an error if the network does not allow ipv4 OR ipv6. +220 /// +221 /// # Panics +222 /// This relies on [`tokio::runtime::Handle::current`] and will panic if called outside of the context of a tokio runtime. +223 pub fn build( +224 self, +225 endpoint_id: EndpointId, +226 ) -> Result<MdnsAddressLookup, AddressLookupBuilderError> { +227 MdnsAddressLookup::new(endpoint_id, self.advertise, self.service_name, self.filter) +228 } +229} +230 +231impl Default for MdnsAddressLookupBuilder { +232 fn default() -> Self { +233 Self::new() +234 } +235} +236 +237impl AddressLookupBuilder for MdnsAddressLookupBuilder { +238 fn into_address_lookup( +239 self, +240 endpoint: &Endpoint, +241 ) -> Result<impl AddressLookup, AddressLookupBuilderError> { +242 self.build(endpoint.id()) +243 } +244 +245 fn with_addr_filter(self, filter: AddrFilter) -> Self { +246 self.set_addr_filter(filter) +247 } +248} +249 +250/// An event emitted from the [`MdnsAddressLookup`] service. +251#[derive(Debug, Clone, Eq, PartialEq)] +252pub enum DiscoveryEvent { +253 /// A peer was discovered or it's information was updated. +254 Discovered { +255 /// The endpoint info for the endpoint, as discovered. +256 endpoint_info: EndpointInfo, +257 /// Optional timestamp when this endpoint address info was last updated. +258 last_updated: Option<u64>, +259 }, +260 /// A peer was expired due to being inactive, unreachable, or otherwise +261 /// unavailable. +262 Expired { +263 /// The id of the endpoint that expired. +264 endpoint_id: EndpointId, +265 }, +266} +267 +268impl MdnsAddressLookup { +269 /// Returns a [`MdnsAddressLookupBuilder`] that implements [`Into`]. +270 pub fn builder() -> MdnsAddressLookupBuilder { +271 MdnsAddressLookupBuilder::default() +272 } +273 +274 /// Create a new [`MdnsAddressLookup`] Service. +275 /// +276 /// This starts a [`Discoverer`] that broadcasts your addresses (if advertise is set to true) +277 /// and receives addresses from other endpoints in your local network. +278 /// +279 /// # Errors +280 /// Returns an error if the network does not allow ipv4 OR ipv6. +281 /// +282 /// # Panics +283 /// This relies on [`tokio::runtime::Handle::current`] and will panic if called outside of the context of a tokio runtime. +284 fn new( +285 endpoint_id: EndpointId, +286 advertise: bool, +287 service_name: String, +288 filter: AddrFilter, +289 ) -> Result<Self, AddressLookupBuilderError> { +290 debug!("Creating new Mdns service"); +291 let (send, mut recv) = mpsc::channel(64); +292 let task_sender = send.clone(); +293 let rt = tokio::runtime::Handle::current(); +294 let address_lookup = MdnsAddressLookup::spawn_discoverer( +295 endpoint_id, +296 advertise, +297 task_sender.clone(), +298 BTreeSet::new(), +299 service_name, +300 &rt, +301 )?; +302 +303 let local_addrs: Watchable<Option<EndpointData>> = Watchable::default(); +304 let mut addrs_change = local_addrs.watch(); +305 let address_lookup_fut = async move { +306 let mut endpoint_addrs: HashMap<PublicKey, Peer> = HashMap::default(); +307 let mut subscribers = Subscribers::new(); +308 let mut last_id = 0; +309 let mut senders: HashMap< +310 PublicKey, +311 HashMap<usize, mpsc::Sender<Result<AddressLookupItem, AddressLookupError>>>, +312 > = HashMap::default(); +313 let mut timeouts = JoinSet::new(); +314 loop { +315 trace!(?endpoint_addrs, "Mdns Service loop tick"); +316 let msg = tokio::select! { +317 msg = recv.recv() => { +318 msg +319 } +320 Ok(Some(data)) = addrs_change.updated() => { +321 tracing::trace!(?data, "Mdns address changed"); +322 address_lookup.remove_all(); +323 +324 // apply user-supplied filter +325 let addrs = data.filtered_addrs(&filter); +326 debug!(addrs = ?addrs, "Applied address filter"); +327 let data = EndpointData::new(addrs).with_user_data(data.user_data().cloned()); +328 +329 let addrs = +330 MdnsAddressLookup::socketaddrs_to_addrs(data.ip_addrs()); +331 for addr in addrs { +332 address_lookup.add(addr.0, addr.1) +333 } +334 if let Some(relay) = data.relay_urls().next() +335 && let Err(err) = address_lookup.set_txt_attribute(RELAY_URL_ATTRIBUTE.to_string(), Some(relay.to_string())) { +336 warn!("Failed to set the relay url in mDNS: {err:?}"); +337 } +338 if let Some(user_data) = data.user_data() +339 && let Err(err) = address_lookup.set_txt_attribute(USER_DATA_ATTRIBUTE.to_string(), Some(user_data.to_string())) { +340 warn!("Failed to set the user-defined data in mDNS: {err:?}"); 341 } -342 -343 let entry = endpoint_addrs.entry(discovered_endpoint_id); -344 if let std::collections::hash_map::Entry::Occupied(ref entry) = entry -345 && entry.get() == &peer_info -346 { -347 // this is a republish we already know about -348 continue; -349 } -350 -351 debug!( -352 ?discovered_endpoint_id, -353 ?peer_info, -354 "adding endpoint to Mdns address book" -355 ); -356 -357 let mut resolved = false; -358 let item = peer_to_discovery_item(&peer_info, &discovered_endpoint_id); -359 if let Some(senders) = senders.get(&discovered_endpoint_id) { -360 trace!(?item, senders = senders.len(), "sending AddressLookupItem"); -361 resolved = true; -362 for sender in senders.values() { -363 sender.send(Ok(item.clone())).await.ok(); -364 } -365 } -366 entry.or_insert(peer_info); -367 -368 // only send endpoints to the `subscriber` if they weren't explicitly resolved -369 // in other words, endpoints sent to the `subscribers` should only be the ones that -370 // have been "passively" discovered -371 if !resolved { -372 subscribers.send(DiscoveryEvent::Discovered { -373 endpoint_info: item.endpoint_info, -374 last_updated: item.last_updated, -375 }); +342 continue; +343 } +344 }; +345 let msg = match msg { +346 None => { +347 error!("Mdns channel closed"); +348 error!("closing Mdns"); +349 timeouts.abort_all(); +350 address_lookup.remove_all(); +351 return; +352 } +353 Some(msg) => msg, +354 }; +355 match msg { +356 Message::Discovered(discovered_endpoint_id, peer_info) => { +357 trace!( +358 ?discovered_endpoint_id, +359 ?peer_info, +360 "Mdns Message::Discovered" +361 ); +362 let discovered_endpoint_id = +363 match PublicKey::from_str(&discovered_endpoint_id) { +364 Ok(endpoint_id) => endpoint_id, +365 Err(e) => { +366 warn!( +367 discovered_endpoint_id, +368 "couldn't parse endpoint_id from mdns Address Lookup: {e:?}" +369 ); +370 continue; +371 } +372 }; +373 +374 if discovered_endpoint_id == endpoint_id { +375 continue; 376 } -377 } -378 Message::Resolve(endpoint_id, sender) => { -379 let id = last_id + 1; -380 last_id = id; -381 trace!(?endpoint_id, "Mdns Message::SendAddrs"); -382 if let Some(peer_info) = endpoint_addrs.get(&endpoint_id) { -383 let item = peer_to_discovery_item(peer_info, &endpoint_id); -384 debug!(?item, "sending AddressLookupItem"); -385 sender.send(Ok(item)).await.ok(); -386 } -387 if let Some(senders_for_endpoint_id) = senders.get_mut(&endpoint_id) { -388 senders_for_endpoint_id.insert(id, sender); -389 } else { -390 let mut senders_for_endpoint_id = HashMap::new(); -391 senders_for_endpoint_id.insert(id, sender); -392 senders.insert(endpoint_id, senders_for_endpoint_id); -393 } -394 let timeout_sender = task_sender.clone(); -395 timeouts.spawn(async move { -396 time::sleep(LOOKUP_DURATION).await; -397 trace!(?endpoint_id, "resolution timeout"); -398 timeout_sender -399 .send(Message::Timeout(endpoint_id, id)) -400 .await -401 .ok(); -402 }); -403 } -404 Message::Timeout(endpoint_id, id) => { -405 trace!(?endpoint_id, "Mdns Message::Timeout"); -406 if let Some(senders_for_endpoint_id) = senders.get_mut(&endpoint_id) { -407 senders_for_endpoint_id.remove(&id); -408 if senders_for_endpoint_id.is_empty() { -409 senders.remove(&endpoint_id); -410 } -411 } -412 } -413 Message::Subscribe(subscriber) => { -414 trace!("Mdns Message::Subscribe"); -415 subscribers.push(subscriber); -416 } -417 } -418 } -419 }; -420 let handle = -421 task::spawn(address_lookup_fut.instrument(info_span!("swarm-discovery.actor"))); -422 Ok(Self { -423 handle: Arc::new(AbortOnDropHandle::new(handle)), -424 sender: send, -425 advertise, -426 local_addrs, -427 }) -428 } -429 -430 /// Subscribe to discovered endpoints -431 pub async fn subscribe(&self) -> impl Stream<Item = DiscoveryEvent> + Unpin + use<> { -432 let (sender, recv) = mpsc::channel(20); -433 let address_lookup_sender = self.sender.clone(); -434 address_lookup_sender -435 .send(Message::Subscribe(sender)) -436 .await -437 .ok(); -438 tokio_stream::wrappers::ReceiverStream::new(recv) -439 } -440 -441 fn spawn_discoverer( -442 endpoint_id: PublicKey, -443 advertise: bool, -444 sender: mpsc::Sender<Message>, -445 socketaddrs: BTreeSet<SocketAddr>, -446 service_name: String, -447 rt: &tokio::runtime::Handle, -448 ) -> Result<DropGuard, IntoAddressLookupError> { -449 let spawn_rt = rt.clone(); -450 let callback = move |endpoint_id: &str, peer: &Peer| { -451 trace!(endpoint_id, ?peer, "Received peer information from Mdns"); -452 -453 let sender = sender.clone(); -454 let endpoint_id = endpoint_id.to_string(); -455 let peer = peer.clone(); -456 spawn_rt.spawn(async move { -457 sender -458 .send(Message::Discovered(endpoint_id, peer)) -459 .await -460 .ok(); -461 }); -462 }; -463 let endpoint_id_str = data_encoding::BASE32_NOPAD -464 .encode(endpoint_id.as_bytes()) -465 .to_ascii_lowercase(); -466 let mut discoverer = Discoverer::new_interactive(service_name, endpoint_id_str) -467 .with_callback(callback) -468 .with_ip_class(IpClass::Auto); -469 if advertise { -470 let addrs = MdnsAddressLookup::socketaddrs_to_addrs(socketaddrs.iter()); -471 for addr in addrs { -472 discoverer = discoverer.with_addrs(addr.0, addr.1); -473 } -474 } -475 discoverer -476 .spawn(rt) -477 .map_err(|e| IntoAddressLookupError::from_err("mdns", e)) -478 } -479 -480 fn socketaddrs_to_addrs<'a>( -481 socketaddrs: impl Iterator<Item = &'a SocketAddr>, -482 ) -> HashMap<u16, Vec<IpAddr>> { -483 let mut addrs: HashMap<u16, Vec<IpAddr>> = HashMap::default(); -484 for socketaddr in socketaddrs { -485 addrs -486 .entry(socketaddr.port()) -487 .and_modify(|a| a.push(socketaddr.ip())) -488 .or_insert(vec![socketaddr.ip()]); -489 } -490 addrs -491 } -492} -493 -494fn peer_to_discovery_item(peer: &Peer, endpoint_id: &EndpointId) -> AddressLookupItem { -495 let ip_addrs: BTreeSet<SocketAddr> = peer -496 .addrs() -497 .iter() -498 .map(|(ip, port)| SocketAddr::new(*ip, *port)) -499 .collect(); -500 // Get the user-defined data from the resolved peer info. We expect an attribute with a value -501 // that parses as `UserData`. Otherwise, omit. -502 let user_data = if let Some(Some(user_data)) = peer.txt_attribute(USER_DATA_ATTRIBUTE) { -503 match user_data.parse() { -504 Err(err) => { -505 debug!("failed to parse user data from TXT attribute: {err}"); -506 None -507 } -508 Ok(data) => Some(data), -509 } -510 } else { -511 None -512 }; -513 let endpoint_info = EndpointInfo::new(*endpoint_id) -514 .with_ip_addrs(ip_addrs) -515 .with_user_data(user_data); -516 AddressLookupItem::new(endpoint_info, NAME, None) -517} -518 -519impl AddressLookup for MdnsAddressLookup { -520 fn resolve( -521 &self, -522 endpoint_id: EndpointId, -523 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { -524 use futures_util::FutureExt; -525 -526 let (send, recv) = mpsc::channel(20); -527 let address_lookup_sender = self.sender.clone(); -528 let stream = async move { -529 address_lookup_sender -530 .send(Message::Resolve(endpoint_id, send)) -531 .await -532 .ok(); -533 tokio_stream::wrappers::ReceiverStream::new(recv) -534 }; -535 Some(Box::pin(stream.flatten_stream())) -536 } -537 -538 fn publish(&self, data: &EndpointData) { -539 if self.advertise { -540 self.local_addrs.set(Some(data.clone())).ok(); -541 } -542 } -543} -544 -545#[cfg(test)] -546mod tests { +377 +378 if peer_info.is_expiry() { +379 trace!( +380 ?discovered_endpoint_id, +381 "removing endpoint from Mdns address book" +382 ); +383 endpoint_addrs.remove(&discovered_endpoint_id); +384 subscribers.send(DiscoveryEvent::Expired { +385 endpoint_id: discovered_endpoint_id, +386 }); +387 continue; +388 } +389 +390 let entry = endpoint_addrs.entry(discovered_endpoint_id); +391 if let std::collections::hash_map::Entry::Occupied(ref entry) = entry +392 && entry.get() == &peer_info +393 { +394 // this is a republish we already know about +395 continue; +396 } +397 +398 debug!( +399 ?discovered_endpoint_id, +400 ?peer_info, +401 "adding endpoint to Mdns address book" +402 ); +403 +404 let mut resolved = false; +405 let item = peer_to_discovery_item(&peer_info, &discovered_endpoint_id); +406 if let Some(senders) = senders.get(&discovered_endpoint_id) { +407 trace!(?item, senders = senders.len(), "sending AddressLookupItem"); +408 resolved = true; +409 for sender in senders.values() { +410 sender.send(Ok(item.clone())).await.ok(); +411 } +412 } +413 entry.or_insert(peer_info); +414 +415 // only send endpoints to the `subscriber` if they weren't explicitly resolved +416 // in other words, endpoints sent to the `subscribers` should only be the ones that +417 // have been "passively" discovered +418 if !resolved { +419 subscribers.send(DiscoveryEvent::Discovered { +420 endpoint_info: item.endpoint_info, +421 last_updated: item.last_updated, +422 }); +423 } +424 } +425 Message::Resolve(endpoint_id, sender) => { +426 let id = last_id + 1; +427 last_id = id; +428 trace!(?endpoint_id, "Mdns Message::SendAddrs"); +429 if let Some(peer_info) = endpoint_addrs.get(&endpoint_id) { +430 let item = peer_to_discovery_item(peer_info, &endpoint_id); +431 debug!(?item, "sending AddressLookupItem"); +432 sender.send(Ok(item)).await.ok(); +433 } +434 if let Some(senders_for_endpoint_id) = senders.get_mut(&endpoint_id) { +435 senders_for_endpoint_id.insert(id, sender); +436 } else { +437 let mut senders_for_endpoint_id = HashMap::new(); +438 senders_for_endpoint_id.insert(id, sender); +439 senders.insert(endpoint_id, senders_for_endpoint_id); +440 } +441 let timeout_sender = task_sender.clone(); +442 timeouts.spawn(async move { +443 time::sleep(LOOKUP_DURATION).await; +444 trace!(?endpoint_id, "resolution timeout"); +445 timeout_sender +446 .send(Message::Timeout(endpoint_id, id)) +447 .await +448 .ok(); +449 }); +450 } +451 Message::Timeout(endpoint_id, id) => { +452 trace!(?endpoint_id, "Mdns Message::Timeout"); +453 if let Some(senders_for_endpoint_id) = senders.get_mut(&endpoint_id) { +454 senders_for_endpoint_id.remove(&id); +455 if senders_for_endpoint_id.is_empty() { +456 senders.remove(&endpoint_id); +457 } +458 } +459 } +460 Message::Subscribe(subscriber) => { +461 trace!("Mdns Message::Subscribe"); +462 subscribers.push(subscriber); +463 } +464 } +465 } +466 }; +467 let handle = +468 task::spawn(address_lookup_fut.instrument(info_span!("swarm-discovery.actor"))); +469 Ok(Self { +470 handle: Arc::new(AbortOnDropHandle::new(handle)), +471 sender: send, +472 advertise, +473 local_addrs, +474 }) +475 } +476 +477 /// Subscribe to discovered endpoints. +478 pub async fn subscribe(&self) -> impl Stream<Item = DiscoveryEvent> + Unpin + use<> { +479 let (sender, recv) = mpsc::channel(20); +480 let address_lookup_sender = self.sender.clone(); +481 address_lookup_sender +482 .send(Message::Subscribe(sender)) +483 .await +484 .ok(); +485 tokio_stream::wrappers::ReceiverStream::new(recv) +486 } +487 +488 fn spawn_discoverer( +489 endpoint_id: PublicKey, +490 advertise: bool, +491 sender: mpsc::Sender<Message>, +492 socketaddrs: BTreeSet<SocketAddr>, +493 service_name: String, +494 rt: &tokio::runtime::Handle, +495 ) -> Result<DropGuard, AddressLookupBuilderError> { +496 let spawn_rt = rt.clone(); +497 let callback = move |endpoint_id: &str, peer: &Peer| { +498 trace!(endpoint_id, ?peer, "Received peer information from Mdns"); +499 +500 let sender = sender.clone(); +501 let endpoint_id = endpoint_id.to_string(); +502 let peer = peer.clone(); +503 spawn_rt.spawn(async move { +504 sender +505 .send(Message::Discovered(endpoint_id, peer)) +506 .await +507 .ok(); +508 }); +509 }; +510 let endpoint_id_str = data_encoding::BASE32_NOPAD +511 .encode(endpoint_id.as_bytes()) +512 .to_ascii_lowercase(); +513 let mut discoverer = Discoverer::new_interactive(service_name, endpoint_id_str) +514 .with_callback(callback) +515 .with_ip_class(IpClass::Auto); +516 if advertise { +517 let addrs = MdnsAddressLookup::socketaddrs_to_addrs(socketaddrs.iter()); +518 for addr in addrs { +519 discoverer = discoverer.with_addrs(addr.0, addr.1); +520 } +521 } +522 discoverer +523 .spawn(rt) +524 .map_err(|e| AddressLookupBuilderError::from_err("mdns", e)) +525 } +526 +527 fn socketaddrs_to_addrs<'a>( +528 socketaddrs: impl Iterator<Item = &'a SocketAddr>, +529 ) -> HashMap<u16, Vec<IpAddr>> { +530 let mut addrs: HashMap<u16, Vec<IpAddr>> = HashMap::default(); +531 for socketaddr in socketaddrs { +532 addrs +533 .entry(socketaddr.port()) +534 .and_modify(|a| a.push(socketaddr.ip())) +535 .or_insert(vec![socketaddr.ip()]); +536 } +537 addrs +538 } +539} +540 +541fn peer_to_discovery_item(peer: &Peer, endpoint_id: &EndpointId) -> AddressLookupItem { +542 let ip_addrs: BTreeSet<SocketAddr> = peer +543 .addrs() +544 .iter() +545 .map(|(ip, port)| SocketAddr::new(*ip, *port)) +546 .collect(); 547 -548 /// This module's name signals nextest to run test in a single thread (no other concurrent -549 /// tests) -550 mod run_in_isolation { -551 use iroh_base::{SecretKey, TransportAddr}; -552 use n0_error::{AnyError as Error, Result, StdResultExt, bail_any}; -553 use n0_future::StreamExt; -554 use n0_tracing_test::traced_test; -555 use rand::{CryptoRng, SeedableRng}; -556 -557 use super::super::*; -558 use crate::address_lookup::UserData; -559 -560 #[tokio::test] -561 #[traced_test] -562 async fn mdns_publish_resolve() -> Result { -563 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -564 -565 // Create Address LookupA with advertise=false (only listens) -566 let (_, address_lookup_a) = make_address_lookup(&mut rng, false)?; -567 // Create Address LookupB with advertise=true (will broadcast) -568 let (endpoint_id_b, address_lookup_b) = make_address_lookup(&mut rng, true)?; -569 -570 // make addr info for discoverer b -571 let user_data: UserData = "foobar".parse()?; -572 let endpoint_data = -573 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]) -574 .with_user_data(Some(user_data.clone())); -575 -576 // resolve twice to ensure we can create separate streams for the same endpoint_id -577 let mut s1 = address_lookup_a -578 .subscribe() -579 .await -580 .filter(|event| match event { -581 DiscoveryEvent::Discovered { endpoint_info, .. } => { -582 endpoint_info.endpoint_id == endpoint_id_b -583 } -584 _ => false, -585 }); -586 let mut s2 = address_lookup_a -587 .subscribe() -588 .await -589 .filter(|event| match event { -590 DiscoveryEvent::Discovered { endpoint_info, .. } => { -591 endpoint_info.endpoint_id == endpoint_id_b -592 } -593 _ => false, -594 }); -595 -596 tracing::debug!(?endpoint_id_b, "Discovering endpoint id b"); -597 // publish address_lookup_b's address -598 address_lookup_b.publish(&endpoint_data); -599 let DiscoveryEvent::Discovered { -600 endpoint_info: s1_endpoint_info, -601 .. -602 } = tokio::time::timeout(Duration::from_secs(5), s1.next()) -603 .await -604 .std_context("timeout")? -605 .unwrap() -606 else { -607 panic!("Received unexpected discovery event"); -608 }; -609 let DiscoveryEvent::Discovered { -610 endpoint_info: s2_endpoint_info, -611 .. -612 } = tokio::time::timeout(Duration::from_secs(5), s2.next()) -613 .await -614 .std_context("timeout")? -615 .unwrap() -616 else { -617 panic!("Received unexpected discovery event"); -618 }; -619 assert_eq!(s1_endpoint_info.data, endpoint_data); -620 assert_eq!(s2_endpoint_info.data, endpoint_data); -621 -622 Ok(()) -623 } -624 -625 #[tokio::test] -626 #[traced_test] -627 async fn mdns_publish_expire() -> Result { -628 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -629 let (_, address_lookup_a) = make_address_lookup(&mut rng, false)?; -630 let (endpoint_id_b, address_lookup_b) = make_address_lookup(&mut rng, true)?; -631 -632 // publish address_lookup_b's address -633 let endpoint_data = -634 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]) -635 .with_user_data(Some("".parse()?)); -636 address_lookup_b.publish(&endpoint_data); -637 -638 let mut s1 = address_lookup_a.subscribe().await; -639 tracing::debug!(?endpoint_id_b, "Discovering endpoint id b"); -640 -641 // Wait for the specific endpoint to be discovered -642 loop { -643 let event = tokio::time::timeout(Duration::from_secs(5), s1.next()) -644 .await -645 .std_context("timeout")? -646 .expect("Stream should not be closed"); -647 -648 match event { -649 DiscoveryEvent::Discovered { endpoint_info, .. } -650 if endpoint_info.endpoint_id == endpoint_id_b => -651 { -652 break; -653 } -654 _ => continue, // Ignore other discovery events -655 } -656 } -657 -658 // Shutdown endpoint B -659 drop(address_lookup_b); -660 tokio::time::sleep(Duration::from_secs(5)).await; -661 -662 // Wait for the expiration event for the specific endpoint -663 loop { -664 let event = tokio::time::timeout(Duration::from_secs(10), s1.next()) -665 .await -666 .std_context("timeout waiting for expiration event")? -667 .expect("Stream should not be closed"); -668 -669 match event { -670 DiscoveryEvent::Expired { -671 endpoint_id: expired_endpoint_id, -672 } if expired_endpoint_id == endpoint_id_b => { -673 break; -674 } -675 _ => continue, // Ignore other events -676 } -677 } -678 -679 Ok(()) -680 } -681 -682 #[tokio::test] -683 #[traced_test] -684 async fn mdns_subscribe() -> Result { -685 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -686 -687 let num_endpoints = 5; -688 let mut endpoint_ids = BTreeSet::new(); -689 let mut address_lookup_list = vec![]; -690 -691 let (_, address_lookup) = make_address_lookup(&mut rng, false)?; -692 let endpoint_data = -693 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]); +548 // Get the relay url from the resolved peer info. We expect an attribute that parses as +549 // a `RelayUrl`. Otherwise, omit. +550 let relay_url = if let Some(Some(relay_url)) = peer.txt_attribute(RELAY_URL_ATTRIBUTE) { +551 match relay_url.parse() { +552 Err(err) => { +553 debug!("failed to parse relay url from TXT attribute: {err}"); +554 None +555 } +556 Ok(url) => Some(url), +557 } +558 } else { +559 None +560 }; +561 +562 // Get the user-defined data from the resolved peer info. We expect an attribute with a value +563 // that parses as `UserData`. Otherwise, omit. +564 let user_data = if let Some(Some(user_data)) = peer.txt_attribute(USER_DATA_ATTRIBUTE) { +565 match user_data.parse() { +566 Err(err) => { +567 debug!("failed to parse user data from TXT attribute: {err}"); +568 None +569 } +570 Ok(data) => Some(data), +571 } +572 } else { +573 None +574 }; +575 let endpoint_info = EndpointInfo::new(*endpoint_id) +576 .with_ip_addrs(ip_addrs) +577 .with_relay_url(relay_url) +578 .with_user_data(user_data); +579 AddressLookupItem::new(endpoint_info, NAME, None) +580} +581 +582impl AddressLookup for MdnsAddressLookup { +583 fn resolve( +584 &self, +585 endpoint_id: EndpointId, +586 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { +587 use futures_util::FutureExt; +588 +589 let (send, recv) = mpsc::channel(20); +590 let address_lookup_sender = self.sender.clone(); +591 let stream = async move { +592 address_lookup_sender +593 .send(Message::Resolve(endpoint_id, send)) +594 .await +595 .ok(); +596 tokio_stream::wrappers::ReceiverStream::new(recv) +597 }; +598 Some(Box::pin(stream.flatten_stream())) +599 } +600 +601 fn publish(&self, data: &EndpointData) { +602 if self.advertise { +603 self.local_addrs.set(Some(data.clone())).ok(); +604 } +605 } +606} +607 +608#[cfg(test)] +609mod tests { +610 +611 /// This module's name signals nextest to run test in a single thread (no other concurrent +612 /// tests). +613 mod run_in_isolation { +614 use iroh_base::{SecretKey, TransportAddr}; +615 use n0_error::{AnyError as Error, Result, StdResultExt, bail_any}; +616 use n0_future::StreamExt; +617 use n0_tracing_test::traced_test; +618 use rand::{CryptoRng, SeedableRng}; +619 +620 use super::super::*; +621 use crate::address_lookup::UserData; +622 +623 #[tokio::test] +624 #[traced_test] +625 async fn mdns_publish_resolve() -> Result { +626 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +627 +628 // Create Address LookupA with advertise=false (only listens) +629 let (_, address_lookup_a) = make_address_lookup(&mut rng, false)?; +630 // Create Address LookupB with advertise=true (will broadcast) +631 let (endpoint_id_b, address_lookup_b) = make_address_lookup(&mut rng, true)?; +632 +633 // make addr info for discoverer b +634 let user_data: UserData = "foobar".parse()?; +635 let endpoint_data = +636 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]) +637 .with_user_data(Some(user_data.clone())); +638 +639 // resolve twice to ensure we can create separate streams for the same endpoint_id +640 let mut s1 = address_lookup_a +641 .subscribe() +642 .await +643 .filter(|event| match event { +644 DiscoveryEvent::Discovered { endpoint_info, .. } => { +645 endpoint_info.endpoint_id == endpoint_id_b +646 } +647 _ => false, +648 }); +649 let mut s2 = address_lookup_a +650 .subscribe() +651 .await +652 .filter(|event| match event { +653 DiscoveryEvent::Discovered { endpoint_info, .. } => { +654 endpoint_info.endpoint_id == endpoint_id_b +655 } +656 _ => false, +657 }); +658 +659 tracing::debug!(?endpoint_id_b, "Discovering endpoint id b"); +660 // publish address_lookup_b's address +661 address_lookup_b.publish(&endpoint_data); +662 let DiscoveryEvent::Discovered { +663 endpoint_info: s1_endpoint_info, +664 .. +665 } = tokio::time::timeout(Duration::from_secs(5), s1.next()) +666 .await +667 .std_context("timeout")? +668 .unwrap() +669 else { +670 panic!("Received unexpected discovery event"); +671 }; +672 let DiscoveryEvent::Discovered { +673 endpoint_info: s2_endpoint_info, +674 .. +675 } = tokio::time::timeout(Duration::from_secs(5), s2.next()) +676 .await +677 .std_context("timeout")? +678 .unwrap() +679 else { +680 panic!("Received unexpected discovery event"); +681 }; +682 assert_eq!(s1_endpoint_info.data, endpoint_data); +683 assert_eq!(s2_endpoint_info.data, endpoint_data); +684 +685 Ok(()) +686 } +687 +688 #[tokio::test] +689 #[traced_test] +690 async fn mdns_publish_expire() -> Result { +691 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +692 let (_, address_lookup_a) = make_address_lookup(&mut rng, false)?; +693 let (endpoint_id_b, address_lookup_b) = make_address_lookup(&mut rng, true)?; 694 -695 for i in 0..num_endpoints { -696 let (endpoint_id, address_lookup) = make_address_lookup(&mut rng, true)?; -697 let user_data: UserData = format!("endpoint{i}").parse()?; -698 let endpoint_data = endpoint_data -699 .clone() -700 .with_user_data(Some(user_data.clone())); -701 endpoint_ids.insert((endpoint_id, Some(user_data))); -702 address_lookup.publish(&endpoint_data); -703 address_lookup_list.push(address_lookup); -704 } -705 -706 let mut events = address_lookup.subscribe().await; -707 -708 let test = async move { -709 let mut got_ids = BTreeSet::new(); -710 while got_ids.len() != num_endpoints { -711 if let Some(DiscoveryEvent::Discovered { endpoint_info, .. }) = -712 events.next().await -713 { -714 let data = endpoint_info.data.user_data().cloned(); -715 if endpoint_ids.contains(&(endpoint_info.endpoint_id, data.clone())) { -716 got_ids.insert((endpoint_info.endpoint_id, data)); -717 } -718 } else { -719 bail_any!( -720 "no more events, only got {} ids, expected {num_endpoints}\n", -721 got_ids.len() -722 ); -723 } -724 } -725 assert_eq!(got_ids, endpoint_ids); -726 Ok::<_, Error>(()) -727 }; -728 tokio::time::timeout(Duration::from_secs(5), test) -729 .await -730 .std_context("timeout")? -731 } -732 -733 #[tokio::test] -734 #[traced_test] -735 async fn non_advertising_endpoint_not_discovered() -> Result { -736 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -737 -738 let (_, address_lookup_a) = make_address_lookup(&mut rng, false)?; -739 let (endpoint_id_b, address_lookup_b) = make_address_lookup(&mut rng, false)?; -740 -741 let (endpoint_id_c, address_lookup_c) = make_address_lookup(&mut rng, true)?; -742 let endpoint_data_c = -743 EndpointData::new([TransportAddr::Ip("0.0.0.0:22222".parse().unwrap())]); -744 address_lookup_c.publish(&endpoint_data_c); -745 -746 let endpoint_data_b = -747 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]); -748 address_lookup_b.publish(&endpoint_data_b); +695 // publish address_lookup_b's address +696 let endpoint_data = +697 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]) +698 .with_user_data(Some("".parse()?)); +699 address_lookup_b.publish(&endpoint_data); +700 +701 let mut s1 = address_lookup_a.subscribe().await; +702 tracing::debug!(?endpoint_id_b, "Discovering endpoint id b"); +703 +704 // Wait for the specific endpoint to be discovered +705 loop { +706 let event = tokio::time::timeout(Duration::from_secs(5), s1.next()) +707 .await +708 .std_context("timeout")? +709 .expect("Stream should not be closed"); +710 +711 match event { +712 DiscoveryEvent::Discovered { endpoint_info, .. } +713 if endpoint_info.endpoint_id == endpoint_id_b => +714 { +715 break; +716 } +717 _ => continue, // Ignore other discovery events +718 } +719 } +720 +721 // Shutdown endpoint B +722 drop(address_lookup_b); +723 tokio::time::sleep(Duration::from_secs(5)).await; +724 +725 // Wait for the expiration event for the specific endpoint +726 loop { +727 let event = tokio::time::timeout(Duration::from_secs(10), s1.next()) +728 .await +729 .std_context("timeout waiting for expiration event")? +730 .expect("Stream should not be closed"); +731 +732 match event { +733 DiscoveryEvent::Expired { +734 endpoint_id: expired_endpoint_id, +735 } if expired_endpoint_id == endpoint_id_b => { +736 break; +737 } +738 _ => continue, // Ignore other events +739 } +740 } +741 +742 Ok(()) +743 } +744 +745 #[tokio::test] +746 #[traced_test] +747 async fn mdns_subscribe() -> Result { +748 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); 749 -750 let mut stream_c = address_lookup_a.resolve(endpoint_id_c).unwrap(); -751 let result_c = tokio::time::timeout(Duration::from_secs(2), stream_c.next()).await; -752 assert!( -753 result_c.is_ok(), -754 "Advertising endpoint should be discoverable" -755 ); -756 -757 let mut stream_b = address_lookup_a.resolve(endpoint_id_b).unwrap(); -758 let result_b = tokio::time::timeout(Duration::from_secs(2), stream_b.next()).await; -759 assert!( -760 result_b.is_err(), -761 "Expected timeout since endpoint b isn't advertising" -762 ); -763 -764 Ok(()) -765 } -766 -767 #[tokio::test] -768 #[traced_test] -769 async fn test_service_names() -> Result { -770 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -771 -772 // Create an Address Lookupusing the default -773 // service name -774 let id_a = SecretKey::generate(&mut rng).public(); -775 let address_lookup_a = MdnsAddressLookup::builder().build(id_a)?; -776 -777 // Create a Address Lookupusing a custom -778 // service name -779 let id_b = SecretKey::generate(&mut rng).public(); -780 let address_lookup_b = MdnsAddressLookup::builder() -781 .service_name("different.name") -782 .build(id_b)?; -783 -784 // Create an Address Lookupusing the same -785 // custom service name -786 let id_c = SecretKey::generate(&mut rng).public(); -787 let address_lookup_c = MdnsAddressLookup::builder() -788 .service_name("different.name") -789 .build(id_c)?; -790 -791 let endpoint_data_a = -792 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]); -793 address_lookup_a.publish(&endpoint_data_a); -794 -795 let endpoint_data_b = -796 EndpointData::new([TransportAddr::Ip("0.0.0.0:22222".parse().unwrap())]); -797 address_lookup_b.publish(&endpoint_data_b); -798 -799 let endpoint_data_c = -800 EndpointData::new([TransportAddr::Ip("0.0.0.0:33333".parse().unwrap())]); -801 address_lookup_c.publish(&endpoint_data_c); -802 -803 let mut stream_a = address_lookup_a.resolve(id_b).unwrap(); -804 let result_a = tokio::time::timeout(Duration::from_secs(2), stream_a.next()).await; -805 assert!( -806 result_a.is_err(), -807 "Endpoint on a different service should NOT be discoverable" -808 ); -809 -810 let mut stream_b = address_lookup_b.resolve(id_c).unwrap(); -811 let result_b = tokio::time::timeout(Duration::from_secs(2), stream_b.next()).await; -812 assert!( -813 result_b.is_ok(), -814 "Endpoint on the same service should be discoverable" -815 ); -816 -817 let mut stream_b = address_lookup_b.resolve(id_a).unwrap(); -818 let result_b = tokio::time::timeout(Duration::from_secs(2), stream_b.next()).await; -819 assert!( -820 result_b.is_err(), -821 "Endpoint on a different service should NOT be discoverable" -822 ); -823 -824 Ok(()) -825 } +750 let num_endpoints = 5; +751 let mut endpoint_ids = BTreeSet::new(); +752 let mut address_lookup_list = vec![]; +753 +754 let (_, address_lookup) = make_address_lookup(&mut rng, false)?; +755 let endpoint_data = +756 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]); +757 +758 for i in 0..num_endpoints { +759 let (endpoint_id, address_lookup) = make_address_lookup(&mut rng, true)?; +760 let user_data: UserData = format!("endpoint{i}").parse()?; +761 let endpoint_data = endpoint_data +762 .clone() +763 .with_user_data(Some(user_data.clone())); +764 endpoint_ids.insert((endpoint_id, Some(user_data))); +765 address_lookup.publish(&endpoint_data); +766 address_lookup_list.push(address_lookup); +767 } +768 +769 let mut events = address_lookup.subscribe().await; +770 +771 let test = async move { +772 let mut got_ids = BTreeSet::new(); +773 while got_ids.len() != num_endpoints { +774 if let Some(DiscoveryEvent::Discovered { endpoint_info, .. }) = +775 events.next().await +776 { +777 let data = endpoint_info.data.user_data().cloned(); +778 if endpoint_ids.contains(&(endpoint_info.endpoint_id, data.clone())) { +779 got_ids.insert((endpoint_info.endpoint_id, data)); +780 } +781 } else { +782 bail_any!( +783 "no more events, only got {} ids, expected {num_endpoints}\n", +784 got_ids.len() +785 ); +786 } +787 } +788 assert_eq!(got_ids, endpoint_ids); +789 Ok::<_, Error>(()) +790 }; +791 tokio::time::timeout(Duration::from_secs(5), test) +792 .await +793 .std_context("timeout")? +794 } +795 +796 #[tokio::test] +797 #[traced_test] +798 async fn non_advertising_endpoint_not_discovered() -> Result { +799 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +800 +801 let (_, address_lookup_a) = make_address_lookup(&mut rng, false)?; +802 let (endpoint_id_b, address_lookup_b) = make_address_lookup(&mut rng, false)?; +803 +804 let (endpoint_id_c, address_lookup_c) = make_address_lookup(&mut rng, true)?; +805 let endpoint_data_c = +806 EndpointData::new([TransportAddr::Ip("0.0.0.0:22222".parse().unwrap())]); +807 address_lookup_c.publish(&endpoint_data_c); +808 +809 let endpoint_data_b = +810 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]); +811 address_lookup_b.publish(&endpoint_data_b); +812 +813 let mut stream_c = address_lookup_a.resolve(endpoint_id_c).unwrap(); +814 let result_c = tokio::time::timeout(Duration::from_secs(2), stream_c.next()).await; +815 assert!( +816 result_c.is_ok(), +817 "Advertising endpoint should be discoverable" +818 ); +819 +820 let mut stream_b = address_lookup_a.resolve(endpoint_id_b).unwrap(); +821 let result_b = tokio::time::timeout(Duration::from_secs(2), stream_b.next()).await; +822 assert!( +823 result_b.is_err(), +824 "Expected timeout since endpoint b isn't advertising" +825 ); 826 -827 fn make_address_lookup<R: CryptoRng + ?Sized>( -828 rng: &mut R, -829 advertise: bool, -830 ) -> Result<(PublicKey, MdnsAddressLookup)> { -831 let endpoint_id = SecretKey::generate(rng).public(); -832 Ok(( -833 endpoint_id, -834 MdnsAddressLookup::builder() -835 .advertise(advertise) -836 .build(endpoint_id)?, -837 )) -838 } -839 } -840}
    \ No newline at end of file +827 Ok(()) +828 } +829 +830 #[tokio::test] +831 #[traced_test] +832 async fn test_service_names() -> Result { +833 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +834 +835 // Create an Address Lookupusing the default +836 // service name +837 let id_a = SecretKey::generate(&mut rng).public(); +838 let address_lookup_a = MdnsAddressLookup::builder().build(id_a)?; +839 +840 // Create a Address Lookupusing a custom +841 // service name +842 let id_b = SecretKey::generate(&mut rng).public(); +843 let address_lookup_b = MdnsAddressLookup::builder() +844 .service_name("different.name") +845 .build(id_b)?; +846 +847 // Create an Address Lookupusing the same +848 // custom service name +849 let id_c = SecretKey::generate(&mut rng).public(); +850 let address_lookup_c = MdnsAddressLookup::builder() +851 .service_name("different.name") +852 .build(id_c)?; +853 +854 let endpoint_data_a = +855 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]); +856 address_lookup_a.publish(&endpoint_data_a); +857 +858 let endpoint_data_b = +859 EndpointData::new([TransportAddr::Ip("0.0.0.0:22222".parse().unwrap())]); +860 address_lookup_b.publish(&endpoint_data_b); +861 +862 let endpoint_data_c = +863 EndpointData::new([TransportAddr::Ip("0.0.0.0:33333".parse().unwrap())]); +864 address_lookup_c.publish(&endpoint_data_c); +865 +866 let mut stream_a = address_lookup_a.resolve(id_b).unwrap(); +867 let result_a = tokio::time::timeout(Duration::from_secs(2), stream_a.next()).await; +868 assert!( +869 result_a.is_err(), +870 "Endpoint on a different service should NOT be discoverable" +871 ); +872 +873 let mut stream_b = address_lookup_b.resolve(id_c).unwrap(); +874 let result_b = tokio::time::timeout(Duration::from_secs(2), stream_b.next()).await; +875 assert!( +876 result_b.is_ok(), +877 "Endpoint on the same service should be discoverable" +878 ); +879 +880 let mut stream_b = address_lookup_b.resolve(id_a).unwrap(); +881 let result_b = tokio::time::timeout(Duration::from_secs(2), stream_b.next()).await; +882 assert!( +883 result_b.is_err(), +884 "Endpoint on a different service should NOT be discoverable" +885 ); +886 +887 Ok(()) +888 } +889 +890 #[tokio::test] +891 #[traced_test] +892 async fn mdns_publish_relay_url() -> Result { +893 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +894 +895 // Create an mdns address lookup A that only listens +896 let (_, mdns_a) = make_address_lookup(&mut rng, false)?; +897 +898 // Create an mdns address lookup B that includes a relay url for publishing +899 let (endpoint_id_b, mdns_b) = make_address_lookup(&mut rng, true)?; +900 let relay_url: iroh_base::RelayUrl = "https://relay.example.com".parse().unwrap(); +901 let endpoint_data = +902 EndpointData::new([TransportAddr::Ip("0.0.0.0:11111".parse().unwrap())]) +903 .with_relay_url(Some(relay_url.clone())); +904 +905 // Subscribe to discovery events filtered for endpoint B +906 let mut events = mdns_a.subscribe().await.filter(|event| match event { +907 DiscoveryEvent::Discovered { endpoint_info, .. } => { +908 endpoint_info.endpoint_id == endpoint_id_b +909 } +910 _ => false, +911 }); +912 +913 // Publish mdns_b's address with relay URL +914 mdns_b.publish(&endpoint_data); +915 +916 // Wait for discovery +917 let DiscoveryEvent::Discovered { endpoint_info, .. } = +918 tokio::time::timeout(Duration::from_secs(2), events.next()) +919 .await +920 .std_context("timeout")? +921 .unwrap() +922 else { +923 panic!("Received unexpected discovery event"); +924 }; +925 +926 // Verify the relay URL was received +927 let discovered_relay_urls: Vec<_> = endpoint_info.data.relay_urls().collect(); +928 assert_eq!(discovered_relay_urls.len(), 1); +929 assert_eq!(discovered_relay_urls[0], &relay_url); +930 +931 Ok(()) +932 } +933 +934 fn make_address_lookup<R: CryptoRng + ?Sized>( +935 rng: &mut R, +936 advertise: bool, +937 ) -> Result<(PublicKey, MdnsAddressLookup)> { +938 let endpoint_id = SecretKey::generate(rng).public(); +939 Ok(( +940 endpoint_id, +941 MdnsAddressLookup::builder() +942 .advertise(advertise) +943 .build(endpoint_id)?, +944 )) +945 } +946 } +947}
    \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/address_lookup/pkarr.rs.html b/pr/3958/docs/src/iroh/address_lookup/pkarr.rs.html index 3d2f6f2c16..1682fe28a7 100644 --- a/pr/3958/docs/src/iroh/address_lookup/pkarr.rs.html +++ b/pr/3958/docs/src/iroh/address_lookup/pkarr.rs.html @@ -19,620 +19,689 @@ 19//! the Mainline DHT on behalf on the client as well as cache lookups performed on the DHT 20//! to improve performance. 21//! -22//! For address lookup in iroh the pkarr Resource Records contain the addressing information, -23//! providing endpoints which retrieve the pkarr Resource Record with enough detail -24//! to contact the iroh endpoint. +22//! [`PkarrPublisher`] publishes all addresses it receives by default, with no internal limiting. +23//! You can supply an [`AddrFilter`] via [`PkarrPublisherBuilder::set_addr_filter`] to limit the kinds +24//! and number of addresses that get published. 25//! -26//! There are several Address Lookup's built on top of pkarr, which can be composed -27//! to the application's needs: -28//! -29//! - [`PkarrPublisher`], which publishes to a pkarr relay server using HTTP. -30//! -31//! - [`PkarrResolver`], which resolves from a pkarr relay server using HTTP. -32//! -33//! - [`address_lookup::DnsAddressLookup`], which resolves from a DNS server. +26//! Note that [`PkarrResolver`] and [`address_lookup::DnsAddressLookup`] only resolve and do not publish, so filtering does not apply to them. +27//! +28//! For address lookup in iroh the pkarr Resource Records contain the addressing information, +29//! providing endpoints which retrieve the pkarr Resource Record with enough detail +30//! to contact the iroh endpoint. +31//! +32//! There are several Address Lookup's built on top of pkarr, which can be composed +33//! to the application's needs: 34//! -35//! - [`address_lookup::DhtAddressLookup`], which resolves and publishes from both pkarr relay servers and well -36//! as the Mainline DHT. -37//! -38//! [pkarr]: https://pkarr.org -39//! [DNS Resource Records]: https://en.wikipedia.org/wiki/Domain_Name_System#Resource_records -40//! [Mainline DHT]: https://en.wikipedia.org/wiki/Mainline_DHT -41//! [`SecretKey`]: crate::SecretKey -42//! [`PublicKey`]: crate::PublicKey -43//! [`EndpointId`]: crate::EndpointId -44//! [`address_lookup::DnsAddressLookup`]: crate::address_lookup::DnsAddressLookup -45//! [`address_lookup::DhtAddressLookup`]: crate::address_lookup::DhtAddressLookup -46 -47use std::sync::Arc; -48 -49use iroh_base::{EndpointId, RelayUrl, SecretKey}; -50use iroh_relay::endpoint_info::{EncodingError, EndpointInfo}; -51use n0_error::{e, stack_error}; -52use n0_future::{ -53 boxed::BoxStream, -54 task::{self, AbortOnDropHandle}, -55 time::{self, Duration, Instant}, -56}; -57use n0_watcher::{Disconnected, Watchable, Watcher as _}; -58use pkarr::{ -59 SignedPacket, -60 errors::{PublicKeyError, SignedPacketVerifyError}, -61}; -62use tracing::{Instrument, debug, error_span, warn}; -63use url::Url; -64 -65#[cfg(not(wasm_browser))] -66use crate::dns::DnsResolver; -67use crate::{ -68 Endpoint, -69 address_lookup::{ -70 AddressLookup, EndpointData, Error as AddressLookupError, IntoAddressLookup, -71 IntoAddressLookupError, Item as AddressLookupItem, -72 }, -73 endpoint::force_staging_infra, -74 util::reqwest_client_builder, -75}; -76 -77#[cfg(feature = "address-lookup-pkarr-dht")] -78pub mod dht; -79 -80#[allow(missing_docs)] -81#[stack_error(derive, add_meta)] -82#[non_exhaustive] -83pub enum PkarrError { -84 #[error("Invalid public key")] -85 PublicKey { -86 #[error(std_err)] -87 source: PublicKeyError, -88 }, -89 #[error("Packet failed to verify")] -90 Verify { -91 #[error(std_err)] -92 source: SignedPacketVerifyError, -93 }, -94 #[error("Invalid relay URL")] -95 InvalidRelayUrl { url: RelayUrl }, -96 #[error("Error sending http request")] -97 HttpSend { -98 #[error(std_err)] -99 source: reqwest::Error, -100 }, -101 #[error("Error resolving http request")] -102 HttpRequest { status: reqwest::StatusCode }, -103 #[error("Http payload error")] -104 HttpPayload { -105 #[error(std_err)] -106 source: reqwest::Error, -107 }, -108 #[error("EncodingError")] -109 Encoding { source: EncodingError }, -110} -111 -112impl From<PkarrError> for AddressLookupError { -113 fn from(err: PkarrError) -> Self { -114 AddressLookupError::from_err_any("pkarr", err) -115 } +35//! - [`PkarrPublisher`], which publishes to a pkarr relay server using HTTP. +36//! +37//! - [`PkarrResolver`], which resolves from a pkarr relay server using HTTP. +38//! +39//! - [`address_lookup::DnsAddressLookup`], which resolves from a DNS server. +40//! +41//! - [`address_lookup::DhtAddressLookup`], which resolves and publishes from both pkarr relay servers and well +42//! as the Mainline DHT. +43//! +44//! [pkarr]: https://pkarr.org +45//! [DNS Resource Records]: https://en.wikipedia.org/wiki/Domain_Name_System#Resource_records +46//! [Mainline DHT]: https://en.wikipedia.org/wiki/Mainline_DHT +47//! [`SecretKey`]: crate::SecretKey +48//! [`PublicKey`]: crate::PublicKey +49//! [`EndpointId`]: crate::EndpointId +50//! [`address_lookup::DnsAddressLookup`]: crate::address_lookup::DnsAddressLookup +51//! [`address_lookup::DhtAddressLookup`]: crate::address_lookup::DhtAddressLookup +52 +53use std::sync::Arc; +54 +55use iroh_base::{EndpointId, RelayUrl, SecretKey}; +56use iroh_relay::endpoint_info::{EncodingError, EndpointInfo}; +57use n0_error::{e, stack_error}; +58use n0_future::{ +59 boxed::BoxStream, +60 task::{self, AbortOnDropHandle}, +61 time::{self, Duration, Instant}, +62}; +63use n0_watcher::{Disconnected, Watchable, Watcher as _}; +64use pkarr::{ +65 SignedPacket, +66 errors::{PublicKeyError, SignedPacketVerifyError}, +67}; +68use tracing::{Instrument, debug, error_span, warn}; +69use url::Url; +70 +71#[cfg(not(wasm_browser))] +72use crate::dns::DnsResolver; +73use crate::{ +74 Endpoint, +75 address_lookup::{ +76 AddrFilter, AddressLookup, AddressLookupBuilder, AddressLookupBuilderError, EndpointData, +77 Error as AddressLookupError, Item as AddressLookupItem, +78 }, +79 endpoint::force_staging_infra, +80 util::reqwest_client_builder, +81}; +82 +83#[cfg(feature = "address-lookup-pkarr-dht")] +84pub mod dht; +85 +86#[allow(missing_docs)] +87#[stack_error(derive, add_meta)] +88#[non_exhaustive] +89pub enum PkarrError { +90 #[error("Invalid public key")] +91 PublicKey { +92 #[error(std_err)] +93 source: PublicKeyError, +94 }, +95 #[error("Packet failed to verify")] +96 Verify { +97 #[error(std_err)] +98 source: SignedPacketVerifyError, +99 }, +100 #[error("Invalid relay URL")] +101 InvalidRelayUrl { url: RelayUrl }, +102 #[error("Error sending http request")] +103 HttpSend { +104 #[error(std_err)] +105 source: reqwest::Error, +106 }, +107 #[error("Error resolving http request")] +108 HttpRequest { status: reqwest::StatusCode }, +109 #[error("Http payload error")] +110 HttpPayload { +111 #[error(std_err)] +112 source: reqwest::Error, +113 }, +114 #[error("EncodingError")] +115 Encoding { source: EncodingError }, 116} 117 -118/// The production pkarr relay run by [number 0]. -119/// -120/// This server is both a pkarr relay server as well as a DNS resolver, see the [module -121/// documentation]. However it does not interact with the Mainline DHT, so is a more -122/// central service. It is a reliable service to use for address lookup. -123/// -124/// [number 0]: https://n0.computer -125/// [module documentation]: crate::address_lookup::pkarr -126pub const N0_DNS_PKARR_RELAY_PROD: &str = "https://dns.iroh.link/pkarr"; -127/// The testing pkarr relay run by [number 0]. -128/// -129/// This server operates similarly to [`N0_DNS_PKARR_RELAY_PROD`] but is not as reliable. -130/// It is meant for more experimental use and testing purposes. -131/// -132/// [number 0]: https://n0.computer -133pub const N0_DNS_PKARR_RELAY_STAGING: &str = "https://staging-dns.iroh.link/pkarr"; -134 -135/// Default TTL for the records in the pkarr signed packet. -136/// -137/// The Time To Live (TTL) tells DNS caches how long to store a record. It is ignored by the -138/// `iroh-dns-server`, e.g. as running on [`N0_DNS_PKARR_RELAY_PROD`], as the home server -139/// keeps the records for the domain. When using the pkarr relay no DNS is involved and the -140/// setting is ignored. -141// TODO(flub): huh? -142pub const DEFAULT_PKARR_TTL: u32 = 30; -143 -144/// Interval in which to republish the endpoint info even if unchanged: 5 minutes. -145pub const DEFAULT_REPUBLISH_INTERVAL: Duration = Duration::from_secs(60 * 5); -146 -147/// Builder for [`PkarrPublisher`]. -148/// -149/// See [`PkarrPublisher::builder`]. -150#[derive(Debug)] -151pub struct PkarrPublisherBuilder { -152 pkarr_relay: Url, -153 ttl: u32, -154 republish_interval: Duration, -155 #[cfg(not(wasm_browser))] -156 dns_resolver: Option<DnsResolver>, -157} -158 -159impl PkarrPublisherBuilder { -160 /// See [`PkarrPublisher::builder`]. -161 fn new(pkarr_relay: Url) -> Self { -162 Self { -163 pkarr_relay, -164 ttl: DEFAULT_PKARR_TTL, -165 republish_interval: DEFAULT_REPUBLISH_INTERVAL, -166 #[cfg(not(wasm_browser))] -167 dns_resolver: None, -168 } -169 } -170 -171 /// See [`PkarrPublisher::n0_dns`]. -172 fn n0_dns() -> Self { -173 let pkarr_relay = match force_staging_infra() { -174 true => N0_DNS_PKARR_RELAY_STAGING, -175 false => N0_DNS_PKARR_RELAY_PROD, -176 }; -177 -178 let pkarr_relay: Url = pkarr_relay.parse().expect("url is valid"); -179 Self::new(pkarr_relay) -180 } -181 -182 /// Sets the TTL (time-to-live) for published packets. -183 /// -184 /// Default is [`DEFAULT_PKARR_TTL`]. -185 pub fn ttl(mut self, ttl: u32) -> Self { -186 self.ttl = ttl; -187 self -188 } +118impl From<PkarrError> for AddressLookupError { +119 fn from(err: PkarrError) -> Self { +120 AddressLookupError::from_err_any("pkarr", err) +121 } +122} +123 +124/// The production pkarr relay run by [number 0]. +125/// +126/// This server is both a pkarr relay server as well as a DNS resolver, see the [module +127/// documentation]. However it does not interact with the Mainline DHT, so is a more +128/// central service. It is a reliable service to use for address lookup. +129/// +130/// [number 0]: https://n0.computer +131/// [module documentation]: crate::address_lookup::pkarr +132pub const N0_DNS_PKARR_RELAY_PROD: &str = "https://dns.iroh.link/pkarr"; +133/// The testing pkarr relay run by [number 0]. +134/// +135/// This server operates similarly to [`N0_DNS_PKARR_RELAY_PROD`] but is not as reliable. +136/// It is meant for more experimental use and testing purposes. +137/// +138/// [number 0]: https://n0.computer +139pub const N0_DNS_PKARR_RELAY_STAGING: &str = "https://staging-dns.iroh.link/pkarr"; +140 +141/// Default TTL for the records in the pkarr signed packet. +142/// +143/// The Time To Live (TTL) tells DNS caches how long to store a record. It is ignored by the +144/// `iroh-dns-server`, e.g. as running on [`N0_DNS_PKARR_RELAY_PROD`], as the home server +145/// keeps the records for the domain. When using the pkarr relay no DNS is involved and the +146/// setting is ignored. +147// TODO(flub): huh? +148pub const DEFAULT_PKARR_TTL: u32 = 30; +149 +150/// Interval in which to republish the endpoint info even if unchanged: 5 minutes. +151pub const DEFAULT_REPUBLISH_INTERVAL: Duration = Duration::from_secs(60 * 5); +152 +153/// Builder for [`PkarrPublisher`]. +154/// +155/// See [`PkarrPublisher::builder`]. +156#[derive(Debug)] +157pub struct PkarrPublisherBuilder { +158 pkarr_relay: Url, +159 ttl: u32, +160 republish_interval: Duration, +161 #[cfg(not(wasm_browser))] +162 dns_resolver: Option<DnsResolver>, +163 filter: AddrFilter, +164} +165 +166impl PkarrPublisherBuilder { +167 /// See [`PkarrPublisher::builder`]. +168 fn new(pkarr_relay: Url) -> Self { +169 Self { +170 pkarr_relay, +171 ttl: DEFAULT_PKARR_TTL, +172 republish_interval: DEFAULT_REPUBLISH_INTERVAL, +173 #[cfg(not(wasm_browser))] +174 dns_resolver: None, +175 filter: AddrFilter::default(), +176 } +177 } +178 +179 /// See [`PkarrPublisher::n0_dns`]. +180 fn n0_dns() -> Self { +181 let pkarr_relay = match force_staging_infra() { +182 true => N0_DNS_PKARR_RELAY_STAGING, +183 false => N0_DNS_PKARR_RELAY_PROD, +184 }; +185 +186 let pkarr_relay: Url = pkarr_relay.parse().expect("url is valid"); +187 Self::new(pkarr_relay) +188 } 189 -190 /// Sets the interval after which packets are republished even if our endpoint info did not change. +190 /// Sets the TTL (time-to-live) for published packets. 191 /// -192 /// Default is [`DEFAULT_REPUBLISH_INTERVAL`]. -193 pub fn republish_interval(mut self, republish_interval: Duration) -> Self { -194 self.republish_interval = republish_interval; +192 /// Default is [`DEFAULT_PKARR_TTL`]. +193 pub fn ttl(mut self, ttl: u32) -> Self { +194 self.ttl = ttl; 195 self 196 } 197 -198 /// Sets the DNS resolver to use for resolving the pkarr relay URL. -199 #[cfg(not(wasm_browser))] -200 pub fn dns_resolver(mut self, dns_resolver: DnsResolver) -> Self { -201 self.dns_resolver = Some(dns_resolver); -202 self -203 } -204 -205 /// Builds the [`PkarrPublisher`] with the passed secret key for signing packets. -206 /// -207 /// This publisher will be able to publish [pkarr] records for [`SecretKey`]. -208 pub fn build(self, secret_key: SecretKey) -> PkarrPublisher { -209 PkarrPublisher::new( -210 secret_key, -211 self.pkarr_relay, -212 self.ttl, -213 self.republish_interval, -214 #[cfg(not(wasm_browser))] -215 self.dns_resolver, -216 ) -217 } -218} -219 -220impl IntoAddressLookup for PkarrPublisherBuilder { -221 fn into_address_lookup( -222 mut self, -223 endpoint: &Endpoint, -224 ) -> Result<impl AddressLookup, IntoAddressLookupError> { -225 #[cfg(not(wasm_browser))] -226 if self.dns_resolver.is_none() { -227 self.dns_resolver = Some(endpoint.dns_resolver()?.clone()); -228 } -229 -230 Ok(self.build(endpoint.secret_key().clone())) -231 } -232} -233 -234/// Publisher of address lookup information to a [pkarr] relay. -235/// -236/// This publisher uses HTTP to publish address lookup information to a pkarr relay -237/// server, see the [module docs] for details. -238/// -239/// This implements the [`AddressLookup`] trait to be used as an address lookup service. Note -240/// that it only publishes address lookup information, for the corresponding resolver use -241/// the [`PkarrResolver`] together with [`ConcurrentAddressLookup`]. -242/// -243/// This publisher will **only** publish the [`RelayUrl`] if it is set, otherwise the *direct addresses* are published instead. -244/// -245/// [pkarr]: https://pkarr.org -246/// [module docs]: crate::address_lookup::pkarr -247/// [`RelayUrl`]: crate::RelayUrl -248/// [`ConcurrentAddressLookup`]: super::ConcurrentAddressLookup -249#[derive(derive_more::Debug, Clone)] -250pub struct PkarrPublisher { -251 endpoint_id: EndpointId, -252 watchable: Watchable<Option<EndpointInfo>>, -253 _drop_guard: Arc<AbortOnDropHandle<()>>, -254} -255 -256impl PkarrPublisher { -257 /// Returns a [`PkarrPublisherBuilder`] that publishes endpoint info to a [pkarr] relay at `pkarr_relay`. -258 /// -259 /// If no further options are set, the pkarr publisher will use [`DEFAULT_PKARR_TTL`] as the -260 /// time-to-live value for the published packets, and it will republish Address Lookup information -261 /// every [`DEFAULT_REPUBLISH_INTERVAL`], even if the information is unchanged. -262 /// -263 /// [`PkarrPublisherBuilder`] implements [`IntoAddressLookup`], so it can be passed to [`address_lookup`]. -264 /// It will then use the endpoint's secret key to sign published packets. -265 /// -266 /// [`address_lookup`]: crate::endpoint::Builder::address_lookup -267 /// [pkarr]: https://pkarr.org -268 pub fn builder(pkarr_relay: Url) -> PkarrPublisherBuilder { -269 PkarrPublisherBuilder::new(pkarr_relay) -270 } -271 -272 /// Creates a new [`PkarrPublisher`] with a custom TTL and republish intervals. -273 /// -274 /// This allows creating the publisher with custom time-to-live values of the -275 /// [`pkarr::SignedPacket`]s and well as a custom republish interval. -276 fn new( -277 secret_key: SecretKey, -278 pkarr_relay: Url, -279 ttl: u32, -280 republish_interval: Duration, -281 #[cfg(not(wasm_browser))] dns_resolver: Option<DnsResolver>, -282 ) -> Self { -283 debug!("creating pkarr publisher that publishes to {pkarr_relay}"); -284 let endpoint_id = secret_key.public(); -285 -286 #[cfg(wasm_browser)] -287 let pkarr_client = PkarrRelayClient::new(pkarr_relay); -288 -289 #[cfg(not(wasm_browser))] -290 let pkarr_client = if let Some(dns_resolver) = dns_resolver { -291 PkarrRelayClient::with_dns_resolver(pkarr_relay, dns_resolver) -292 } else { -293 PkarrRelayClient::new(pkarr_relay) -294 }; +198 /// Sets the interval after which packets are republished even if our endpoint info did not change. +199 /// +200 /// Default is [`DEFAULT_REPUBLISH_INTERVAL`]. +201 pub fn republish_interval(mut self, republish_interval: Duration) -> Self { +202 self.republish_interval = republish_interval; +203 self +204 } +205 +206 /// Sets the DNS resolver to use for resolving the pkarr relay URL. +207 #[cfg(not(wasm_browser))] +208 pub fn dns_resolver(mut self, dns_resolver: DnsResolver) -> Self { +209 self.dns_resolver = Some(dns_resolver); +210 self +211 } +212 +213 /// Sets a filter to control which addresses are published by this service +214 pub fn set_addr_filter(mut self, filter: AddrFilter) -> Self { +215 self.filter = filter; +216 self +217 } +218 +219 /// Builds the [`PkarrPublisher`] with the passed secret key for signing packets. +220 /// +221 /// This publisher will be able to publish [pkarr] records for [`SecretKey`]. +222 pub fn build(self, secret_key: SecretKey, tls_config: rustls::ClientConfig) -> PkarrPublisher { +223 PkarrPublisher::new( +224 secret_key, +225 self.pkarr_relay, +226 self.ttl, +227 self.republish_interval, +228 #[cfg(not(wasm_browser))] +229 self.dns_resolver, +230 tls_config, +231 self.filter, +232 ) +233 } +234} +235 +236impl AddressLookupBuilder for PkarrPublisherBuilder { +237 fn into_address_lookup( +238 mut self, +239 endpoint: &Endpoint, +240 ) -> Result<impl AddressLookup, AddressLookupBuilderError> { +241 #[cfg(not(wasm_browser))] +242 if self.dns_resolver.is_none() { +243 self.dns_resolver = Some(endpoint.dns_resolver()?.clone()); +244 } +245 let tls_config = endpoint.tls_config().clone(); +246 Ok(self.build(endpoint.secret_key().clone(), tls_config)) +247 } +248 +249 fn with_addr_filter(self, filter: AddrFilter) -> Self +250 where +251 Self: Sized, +252 { +253 self.set_addr_filter(filter) +254 } +255} +256 +257/// Publisher of address lookup information to a [pkarr] relay. +258/// +259/// This publisher uses HTTP to publish address lookup information to a pkarr relay +260/// server, see the [module docs] for details. +261/// +262/// This implements the [`AddressLookup`] trait to be used as an address lookup service. Note +263/// that it only publishes address lookup information, for the corresponding resolver use +264/// the [`PkarrResolver`] together with [`ConcurrentAddressLookup`]. +265/// +266/// This publisher will **only** publish the [`RelayUrl`] if it is set, otherwise the *direct addresses* are published instead. +267/// +268/// [pkarr]: https://pkarr.org +269/// [module docs]: crate::address_lookup::pkarr +270/// [`RelayUrl`]: crate::RelayUrl +271/// [`ConcurrentAddressLookup`]: super::ConcurrentAddressLookup +272#[derive(derive_more::Debug, Clone)] +273pub struct PkarrPublisher { +274 endpoint_id: EndpointId, +275 watchable: Watchable<Option<EndpointInfo>>, +276 filter: AddrFilter, +277 _drop_guard: Arc<AbortOnDropHandle<()>>, +278} +279 +280impl PkarrPublisher { +281 /// Returns a [`PkarrPublisherBuilder`] that publishes endpoint info to a [pkarr] relay at `pkarr_relay`. +282 /// +283 /// If no further options are set, the pkarr publisher will use [`DEFAULT_PKARR_TTL`] as the +284 /// time-to-live value for the published packets, and it will republish Address Lookup information +285 /// every [`DEFAULT_REPUBLISH_INTERVAL`], even if the information is unchanged. +286 /// +287 /// [`PkarrPublisherBuilder`] implements [`AddressLookupBuilder`], so it can be passed to [`address_lookup`]. +288 /// It will then use the endpoint's secret key to sign published packets. +289 /// +290 /// [`address_lookup`]: crate::endpoint::Builder::address_lookup +291 /// [pkarr]: https://pkarr.org +292 pub fn builder(pkarr_relay: Url) -> PkarrPublisherBuilder { +293 PkarrPublisherBuilder::new(pkarr_relay) +294 } 295 -296 let watchable = Watchable::default(); -297 let service = PublisherService { -298 ttl, -299 watcher: watchable.watch(), -300 secret_key, -301 pkarr_client, -302 republish_interval, -303 }; -304 let join_handle = task::spawn( -305 service -306 .run() -307 .instrument(error_span!("pkarr_publish", me=%endpoint_id.fmt_short())), -308 ); -309 Self { -310 watchable, -311 endpoint_id, -312 _drop_guard: Arc::new(AbortOnDropHandle::new(join_handle)), -313 } -314 } -315 -316 /// Creates a pkarr publisher which uses the [number 0] pkarr relay server. -317 /// -318 /// This uses the pkarr relay server operated by [number 0], at -319 /// [`N0_DNS_PKARR_RELAY_PROD`]. -320 /// -321 /// When running with the environment variable -322 /// `IROH_FORCE_STAGING_RELAYS` set to any non empty value [`N0_DNS_PKARR_RELAY_STAGING`] -323 /// server is used instead. -324 /// -325 /// [number 0]: https://n0.computer -326 pub fn n0_dns() -> PkarrPublisherBuilder { -327 PkarrPublisherBuilder::n0_dns() -328 } -329 -330 /// Publishes the addressing information about this endpoint to a pkarr relay. -331 /// -332 /// This is a nonblocking function, the actual update is performed in the background. -333 pub fn update_endpoint_data(&self, data: &EndpointData) { -334 let mut data = data.clone(); -335 if data.relay_urls().next().is_some() { -336 // If relay url is set: only publish relay url, and no addrs. -337 data.clear_ip_addrs(); +296 /// Creates a new [`PkarrPublisher`] with a custom TTL and republish intervals. +297 /// +298 /// This allows creating the publisher with custom time-to-live values of the +299 /// [`pkarr::SignedPacket`]s and well as a custom republish interval. +300 fn new( +301 secret_key: SecretKey, +302 pkarr_relay: Url, +303 ttl: u32, +304 republish_interval: Duration, +305 #[cfg(not(wasm_browser))] dns_resolver: Option<DnsResolver>, +306 tls_config: rustls::ClientConfig, +307 filter: AddrFilter, +308 ) -> Self { +309 debug!("creating pkarr publisher that publishes to {pkarr_relay}"); +310 let endpoint_id = secret_key.public(); +311 +312 #[cfg(wasm_browser)] +313 let pkarr_client = PkarrRelayClient::new(pkarr_relay, tls_config); +314 +315 #[cfg(not(wasm_browser))] +316 let pkarr_client = PkarrRelayClient::builder(pkarr_relay, tls_config) +317 .set_dns_resolver(dns_resolver) +318 .build(); +319 +320 let watchable = Watchable::default(); +321 let service = PublisherService { +322 ttl, +323 watcher: watchable.watch(), +324 secret_key, +325 pkarr_client, +326 republish_interval, +327 }; +328 let join_handle = task::spawn( +329 service +330 .run() +331 .instrument(error_span!("pkarr_publish", me=%endpoint_id.fmt_short())), +332 ); +333 Self { +334 watchable, +335 endpoint_id, +336 filter, +337 _drop_guard: Arc::new(AbortOnDropHandle::new(join_handle)), 338 } -339 let info = EndpointInfo::from_parts(self.endpoint_id, data); -340 self.watchable.set(Some(info)).ok(); -341 } -342} -343 -344impl AddressLookup for PkarrPublisher { -345 fn publish(&self, data: &EndpointData) { -346 self.update_endpoint_data(data); -347 } -348} -349 -350/// Publish endpoint info to a pkarr relay. -351#[derive(derive_more::Debug, Clone)] -352struct PublisherService { -353 #[debug("SecretKey")] -354 secret_key: SecretKey, -355 #[debug("PkarrClient")] -356 pkarr_client: PkarrRelayClient, -357 watcher: n0_watcher::Direct<Option<EndpointInfo>>, -358 ttl: u32, -359 republish_interval: Duration, -360} -361 -362impl PublisherService { -363 async fn run(mut self) { -364 let mut failed_attempts = 0; -365 let republish = time::sleep(Duration::MAX); -366 tokio::pin!(republish); -367 loop { -368 if !self.watcher.is_connected() { -369 break; -370 } -371 if let Some(info) = self.watcher.get() { -372 match self.publish_current(info).await { -373 Err(err) => { -374 failed_attempts += 1; -375 // Retry after increasing timeout -376 let retry_after = Duration::from_secs(failed_attempts); -377 republish.as_mut().reset(Instant::now() + retry_after); -378 warn!( -379 err = %format!("{err:#}"), -380 url = %self.pkarr_client.pkarr_relay_url , -381 ?retry_after, -382 %failed_attempts, -383 "Failed to publish to pkarr", -384 ); -385 } -386 _ => { -387 failed_attempts = 0; -388 // Republish after fixed interval -389 republish -390 .as_mut() -391 .reset(Instant::now() + self.republish_interval); -392 } -393 } -394 } -395 // Wait until either the retry/republish timeout is reached, or the endpoint info changed. -396 tokio::select! { -397 res = self.watcher.updated() => match res { -398 Ok(_) => debug!("Publish endpoint info to pkarr (info changed)"), -399 Err(Disconnected { .. }) => break, -400 }, -401 _ = &mut republish => debug!("Publish endpoint info to pkarr (interval elapsed)"), -402 } -403 } -404 } -405 -406 async fn publish_current(&self, info: EndpointInfo) -> Result<(), PkarrError> { -407 debug!( -408 data = ?info.data, -409 pkarr_relay = %self.pkarr_client.pkarr_relay_url, -410 "Publish endpoint info to pkarr" -411 ); -412 let signed_packet = info -413 .to_pkarr_signed_packet(&self.secret_key, self.ttl) -414 .map_err(|err| e!(PkarrError::Encoding, err))?; -415 self.pkarr_client.publish(&signed_packet).await?; -416 Ok(()) -417 } -418} -419 -420/// Builder for [`PkarrResolver`]. -421/// -422/// See [`PkarrResolver::builder`]. -423#[derive(Debug)] -424pub struct PkarrResolverBuilder { -425 pkarr_relay: Url, -426 #[cfg(not(wasm_browser))] -427 dns_resolver: Option<DnsResolver>, -428} -429 -430impl PkarrResolverBuilder { -431 /// Sets the DNS resolver to use for resolving the pkarr relay URL. -432 #[cfg(not(wasm_browser))] -433 pub fn dns_resolver(mut self, dns_resolver: DnsResolver) -> Self { -434 self.dns_resolver = Some(dns_resolver); -435 self -436 } -437 -438 /// Creates a [`PkarrResolver`] from this builder. -439 pub fn build(self) -> PkarrResolver { -440 #[cfg(wasm_browser)] -441 let pkarr_client = PkarrRelayClient::new(self.pkarr_relay); +339 } +340 +341 /// Creates a pkarr publisher which uses the [number 0] pkarr relay server. +342 /// +343 /// This uses the pkarr relay server operated by [number 0], at +344 /// [`N0_DNS_PKARR_RELAY_PROD`]. +345 /// +346 /// When running with the environment variable +347 /// `IROH_FORCE_STAGING_RELAYS` set to any non empty value [`N0_DNS_PKARR_RELAY_STAGING`] +348 /// server is used instead. +349 /// +350 /// [number 0]: https://n0.computer +351 pub fn n0_dns() -> PkarrPublisherBuilder { +352 PkarrPublisherBuilder::n0_dns() +353 } +354 +355 /// Publishes the addressing information about this endpoint to a pkarr relay. +356 /// +357 /// This is a nonblocking function, the actual update is performed in the background. +358 pub fn update_endpoint_data(&self, data: &EndpointData) { +359 let addrs = data.filtered_addrs(&self.filter); +360 debug!(addrs = ?addrs, "Applied address filter to endpoint data"); +361 let data = EndpointData::new(addrs).with_user_data(data.user_data().cloned()); +362 let info = EndpointInfo::from_parts(self.endpoint_id, data); +363 self.watchable.set(Some(info)).ok(); +364 } +365} +366 +367impl AddressLookup for PkarrPublisher { +368 fn publish(&self, data: &EndpointData) { +369 self.update_endpoint_data(data); +370 } +371} +372 +373/// Publish endpoint info to a pkarr relay. +374#[derive(derive_more::Debug, Clone)] +375struct PublisherService { +376 #[debug("SecretKey")] +377 secret_key: SecretKey, +378 #[debug("PkarrClient")] +379 pkarr_client: PkarrRelayClient, +380 watcher: n0_watcher::Direct<Option<EndpointInfo>>, +381 ttl: u32, +382 republish_interval: Duration, +383} +384 +385impl PublisherService { +386 async fn run(mut self) { +387 let mut failed_attempts = 0; +388 let republish = time::sleep(Duration::MAX); +389 tokio::pin!(republish); +390 loop { +391 if !self.watcher.is_connected() { +392 break; +393 } +394 if let Some(info) = self.watcher.get() { +395 match self.publish_current(info).await { +396 Err(err) => { +397 failed_attempts += 1; +398 // Retry after increasing timeout +399 let retry_after = Duration::from_secs(failed_attempts); +400 republish.as_mut().reset(Instant::now() + retry_after); +401 warn!( +402 err = %format!("{err:#}"), +403 url = %self.pkarr_client.pkarr_relay_url , +404 ?retry_after, +405 %failed_attempts, +406 "Failed to publish to pkarr", +407 ); +408 } +409 _ => { +410 failed_attempts = 0; +411 // Republish after fixed interval +412 republish +413 .as_mut() +414 .reset(Instant::now() + self.republish_interval); +415 } +416 } +417 } +418 // Wait until either the retry/republish timeout is reached, or the endpoint info changed. +419 tokio::select! { +420 res = self.watcher.updated() => match res { +421 Ok(_) => debug!("Publish endpoint info to pkarr (info changed)"), +422 Err(Disconnected { .. }) => break, +423 }, +424 _ = &mut republish => debug!("Publish endpoint info to pkarr (interval elapsed)"), +425 } +426 } +427 } +428 +429 async fn publish_current(&self, info: EndpointInfo) -> Result<(), PkarrError> { +430 debug!( +431 data = ?info.data, +432 pkarr_relay = %self.pkarr_client.pkarr_relay_url, +433 "Publish endpoint info to pkarr" +434 ); +435 let signed_packet = info +436 .to_pkarr_signed_packet(&self.secret_key, self.ttl) +437 .map_err(|err| e!(PkarrError::Encoding, err))?; +438 self.pkarr_client.publish(&signed_packet).await?; +439 Ok(()) +440 } +441} 442 -443 #[cfg(not(wasm_browser))] -444 let pkarr_client = if let Some(dns_resolver) = self.dns_resolver { -445 PkarrRelayClient::with_dns_resolver(self.pkarr_relay, dns_resolver) -446 } else { -447 PkarrRelayClient::new(self.pkarr_relay) -448 }; -449 -450 PkarrResolver { pkarr_client } -451 } -452} -453 -454impl IntoAddressLookup for PkarrResolverBuilder { -455 fn into_address_lookup( -456 mut self, -457 endpoint: &Endpoint, -458 ) -> Result<impl AddressLookup, IntoAddressLookupError> { -459 #[cfg(not(wasm_browser))] -460 if self.dns_resolver.is_none() { -461 self.dns_resolver = Some(endpoint.dns_resolver()?.clone()); -462 } -463 -464 Ok(self.build()) -465 } -466} -467 -468/// Resolver of address lookup information from a [pkarr] relay. -469/// -470/// The resolver uses HTTP to query address lookup information from a pkarr relay server, -471/// see the [module docs] for details. -472/// -473/// This implements the [`AddressLookup`] trait to be used as an address lookup service. Note -474/// that it only resolves address lookup information, for the corresponding publisher use -475/// the [`PkarrPublisher`] together with [`ConcurrentAddressLookup`]. -476/// -477/// [pkarr]: https://pkarr.org -478/// [module docs]: crate::address_lookup::pkarr -479/// [`ConcurrentAddressLookup`]: super::ConcurrentAddressLookup -480#[derive(derive_more::Debug, Clone)] -481pub struct PkarrResolver { -482 pkarr_client: PkarrRelayClient, -483} -484 -485impl PkarrResolver { -486 /// Creates a new resolver builder using the pkarr relay server at the URL. -487 /// -488 /// The builder implements [`IntoAddressLookup`]. -489 pub fn builder(pkarr_relay: Url) -> PkarrResolverBuilder { -490 PkarrResolverBuilder { -491 pkarr_relay, -492 #[cfg(not(wasm_browser))] -493 dns_resolver: None, -494 } -495 } -496 -497 /// Creates a pkarr resolver builder which uses the [number 0] pkarr relay server. -498 /// -499 /// This uses the pkarr relay server operated by [number 0] at -500 /// [`N0_DNS_PKARR_RELAY_PROD`]. -501 /// -502 /// When running with the environment variable `IROH_FORCE_STAGING_RELAYS` -503 /// set to any non empty value [`N0_DNS_PKARR_RELAY_STAGING`] -504 /// server is used instead. -505 /// -506 /// [number 0]: https://n0.computer -507 pub fn n0_dns() -> PkarrResolverBuilder { -508 let pkarr_relay = match force_staging_infra() { -509 true => N0_DNS_PKARR_RELAY_STAGING, -510 false => N0_DNS_PKARR_RELAY_PROD, -511 }; -512 -513 let pkarr_relay: Url = pkarr_relay.parse().expect("url is valid"); -514 Self::builder(pkarr_relay) -515 } -516} -517 -518impl AddressLookup for PkarrResolver { -519 fn resolve( -520 &self, -521 endpoint_id: EndpointId, -522 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { -523 let pkarr_client = self.pkarr_client.clone(); -524 let fut = async move { -525 let signed_packet = pkarr_client.resolve(endpoint_id).await?; -526 let info = EndpointInfo::from_pkarr_signed_packet(&signed_packet) -527 .map_err(|err| AddressLookupError::from_err_any("pkarr", err))?; -528 let item = AddressLookupItem::new(info, "pkarr", None); -529 Ok(item) -530 }; -531 let stream = n0_future::stream::once_future(fut); -532 Some(Box::pin(stream)) -533 } -534} -535 -536/// A [pkarr] client to publish [`pkarr::SignedPacket`]s to a pkarr relay. -537/// -538/// [pkarr]: https://pkarr.org -539#[derive(Debug, Clone)] -540pub struct PkarrRelayClient { -541 http_client: reqwest::Client, -542 pkarr_relay_url: Url, -543} -544 -545impl PkarrRelayClient { -546 /// Creates a new client. -547 pub fn new(pkarr_relay_url: Url) -> Self { -548 Self { -549 http_client: reqwest_client_builder() -550 .build() -551 .expect("failed to create reqwest client"), -552 pkarr_relay_url, -553 } -554 } -555 -556 /// Creates a new client while passing a DNS resolver to use. -557 #[cfg(not(wasm_browser))] -558 pub fn with_dns_resolver(pkarr_relay_url: Url, dns_resolver: crate::dns::DnsResolver) -> Self { -559 let http_client = reqwest_client_builder() -560 .dns_resolver(Arc::new(dns_resolver)) -561 .build() -562 .expect("failed to create request client"); -563 Self { -564 http_client, -565 pkarr_relay_url, -566 } -567 } -568 -569 /// Resolves a [`SignedPacket`] for the given [`EndpointId`]. -570 pub async fn resolve( -571 &self, -572 endpoint_id: EndpointId, -573 ) -> Result<SignedPacket, AddressLookupError> { -574 // We map the error to string, as in browsers the error is !Send -575 let public_key = pkarr::PublicKey::try_from(endpoint_id.as_bytes()) -576 .map_err(|err| e!(PkarrError::PublicKey, err))?; -577 -578 let mut url = self.pkarr_relay_url.clone(); -579 url.path_segments_mut() -580 .map_err(|_| { -581 e!(PkarrError::InvalidRelayUrl { -582 url: self.pkarr_relay_url.clone().into() -583 }) -584 })? -585 .push(&public_key.to_z32()); -586 -587 let response = self -588 .http_client -589 .get(url) -590 .send() -591 .await -592 .map_err(|err| e!(PkarrError::HttpSend, err))?; -593 -594 if !response.status().is_success() { -595 return Err(e!(PkarrError::HttpRequest { -596 status: response.status() -597 }) -598 .into()); -599 } +443/// Builder for [`PkarrResolver`]. +444/// +445/// See [`PkarrResolver::builder`]. +446#[derive(Debug)] +447pub struct PkarrResolverBuilder { +448 pkarr_relay: Url, +449 #[cfg(not(wasm_browser))] +450 dns_resolver: Option<DnsResolver>, +451} +452 +453impl PkarrResolverBuilder { +454 /// Sets the DNS resolver to use for resolving the pkarr relay URL. +455 #[cfg(not(wasm_browser))] +456 pub fn dns_resolver(mut self, dns_resolver: DnsResolver) -> Self { +457 self.dns_resolver = Some(dns_resolver); +458 self +459 } +460 +461 /// Creates a [`PkarrResolver`] from this builder. +462 pub fn build(self, tls_config: rustls::ClientConfig) -> PkarrResolver { +463 #[cfg(wasm_browser)] +464 let pkarr_client = PkarrRelayClient::new(self.pkarr_relay, tls_config); +465 +466 #[cfg(not(wasm_browser))] +467 let pkarr_client = PkarrRelayClient::builder(self.pkarr_relay, tls_config) +468 .set_dns_resolver(self.dns_resolver) +469 .build(); +470 +471 PkarrResolver { pkarr_client } +472 } +473} +474 +475impl AddressLookupBuilder for PkarrResolverBuilder { +476 fn into_address_lookup( +477 mut self, +478 endpoint: &Endpoint, +479 ) -> Result<impl AddressLookup, AddressLookupBuilderError> { +480 #[cfg(not(wasm_browser))] +481 if self.dns_resolver.is_none() { +482 self.dns_resolver = Some(endpoint.dns_resolver()?.clone()); +483 } +484 let tls_config = endpoint.tls_config().clone(); +485 Ok(self.build(tls_config)) +486 } +487 +488 /// no-op: resolver does not publish +489 fn with_addr_filter(self, _filter: AddrFilter) -> Self { +490 self +491 } +492} +493 +494/// Resolver of address lookup information from a [pkarr] relay. +495/// +496/// The resolver uses HTTP to query address lookup information from a pkarr relay server, +497/// see the [module docs] for details. +498/// +499/// This implements the [`AddressLookup`] trait to be used as an address lookup service. Note +500/// that it only resolves address lookup information, for the corresponding publisher use +501/// the [`PkarrPublisher`] together with [`ConcurrentAddressLookup`]. +502/// +503/// [pkarr]: https://pkarr.org +504/// [module docs]: crate::address_lookup::pkarr +505/// [`ConcurrentAddressLookup`]: super::ConcurrentAddressLookup +506#[derive(derive_more::Debug, Clone)] +507pub struct PkarrResolver { +508 pkarr_client: PkarrRelayClient, +509} +510 +511impl PkarrResolver { +512 /// Creates a new resolver builder using the pkarr relay server at the URL. +513 /// +514 /// The builder implements [`AddressLookupBuilder`]. +515 pub fn builder(pkarr_relay: Url) -> PkarrResolverBuilder { +516 PkarrResolverBuilder { +517 pkarr_relay, +518 #[cfg(not(wasm_browser))] +519 dns_resolver: None, +520 } +521 } +522 +523 /// Creates a pkarr resolver builder which uses the [number 0] pkarr relay server. +524 /// +525 /// This uses the pkarr relay server operated by [number 0] at +526 /// [`N0_DNS_PKARR_RELAY_PROD`]. +527 /// +528 /// When running with the environment variable `IROH_FORCE_STAGING_RELAYS` +529 /// set to any non empty value [`N0_DNS_PKARR_RELAY_STAGING`] +530 /// server is used instead. +531 /// +532 /// [number 0]: https://n0.computer +533 pub fn n0_dns() -> PkarrResolverBuilder { +534 let pkarr_relay = match force_staging_infra() { +535 true => N0_DNS_PKARR_RELAY_STAGING, +536 false => N0_DNS_PKARR_RELAY_PROD, +537 }; +538 +539 let pkarr_relay: Url = pkarr_relay.parse().expect("url is valid"); +540 Self::builder(pkarr_relay) +541 } +542} +543 +544impl AddressLookup for PkarrResolver { +545 fn resolve( +546 &self, +547 endpoint_id: EndpointId, +548 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { +549 let pkarr_client = self.pkarr_client.clone(); +550 let fut = async move { +551 let signed_packet = pkarr_client.resolve(endpoint_id).await?; +552 let info = EndpointInfo::from_pkarr_signed_packet(&signed_packet) +553 .map_err(|err| AddressLookupError::from_err_any("pkarr", err))?; +554 let item = AddressLookupItem::new(info, "pkarr", None); +555 Ok(item) +556 }; +557 let stream = n0_future::stream::once_future(fut); +558 Some(Box::pin(stream)) +559 } +560} +561 +562/// A [pkarr] client to publish [`pkarr::SignedPacket`]s to a pkarr relay. +563/// +564/// [pkarr]: https://pkarr.org +565#[derive(Debug, Clone)] +566pub struct PkarrRelayClient { +567 http_client: reqwest::Client, +568 pkarr_relay_url: Url, +569} +570 +571/// A builder for the [`PkarrRelayClient`] +572#[derive(Debug, Clone)] +573pub struct PkarrRelayClientBuilder { +574 pkarr_relay_url: Url, +575 #[cfg(not(wasm_browser))] +576 dns_relay_resolver: Option<DnsResolver>, +577 tls_config: rustls::ClientConfig, +578} +579 +580impl PkarrRelayClientBuilder { +581 fn new(pkarr_relay_url: Url, tls_config: rustls::ClientConfig) -> Self { +582 Self { +583 pkarr_relay_url, +584 #[cfg(not(wasm_browser))] +585 dns_relay_resolver: None, +586 tls_config, +587 } +588 } +589 +590 /// Passes an optional DNS resolver for the client to use. +591 #[cfg(not(wasm_browser))] +592 pub fn set_dns_resolver(mut self, dns_resolver: Option<DnsResolver>) -> Self { +593 self.dns_relay_resolver = dns_resolver; +594 self +595 } +596 +597 /// Build a [`PkarrRelayClient`]. +598 pub fn build(self) -> PkarrRelayClient { +599 let mut http_client = reqwest_client_builder(Some(self.tls_config)); 600 -601 let payload = response -602 .bytes() -603 .await -604 .map_err(|source| e!(PkarrError::HttpPayload { source }))?; -605 // We map the error to string, as in browsers the error is !Send -606 let packet = SignedPacket::from_relay_payload(&public_key, &payload) -607 .map_err(|err| e!(PkarrError::Verify, err))?; -608 Ok(packet) -609 } -610 -611 /// Publishes a [`SignedPacket`]. -612 pub async fn publish(&self, signed_packet: &SignedPacket) -> Result<(), PkarrError> { -613 let mut url = self.pkarr_relay_url.clone(); -614 url.path_segments_mut() -615 .map_err(|_| { -616 e!(PkarrError::InvalidRelayUrl { -617 url: self.pkarr_relay_url.clone().into() -618 }) -619 })? -620 .push(&signed_packet.public_key().to_z32()); -621 -622 let response = self -623 .http_client -624 .put(url) -625 .body(signed_packet.to_relay_payload()) -626 .send() -627 .await -628 .map_err(|source| e!(PkarrError::HttpSend { source }))?; +601 #[cfg(not(wasm_browser))] +602 if let Some(dns_resolver) = self.dns_relay_resolver { +603 http_client = http_client.dns_resolver(Arc::new(dns_resolver)); +604 }; +605 +606 let http_client = http_client +607 .build() +608 .expect("failed to create request client"); +609 PkarrRelayClient { +610 http_client, +611 pkarr_relay_url: self.pkarr_relay_url, +612 } +613 } +614} +615 +616impl PkarrRelayClient { +617 /// Create a new [`PkarrRelayClient`] with default settings. +618 /// +619 /// Use the [`PkarrRelayClient::builder`] to get a builder that allows for +620 /// adding custom settings. +621 pub fn new(pkarr_relay_url: Url, tls_config: rustls::ClientConfig) -> Self { +622 Self { +623 http_client: reqwest_client_builder(Some(tls_config)) +624 .build() +625 .expect("failed to create request client"), +626 pkarr_relay_url, +627 } +628 } 629 -630 if !response.status().is_success() { -631 return Err(e!(PkarrError::HttpRequest { -632 status: response.status() -633 })); -634 } -635 -636 Ok(()) -637 } -638}
    \ No newline at end of file +630 /// Create a [`PkarrRelayClientBuilder`]. +631 pub fn builder( +632 pkarr_relay_url: Url, +633 tls_config: rustls::ClientConfig, +634 ) -> PkarrRelayClientBuilder { +635 PkarrRelayClientBuilder::new(pkarr_relay_url, tls_config) +636 } +637 +638 /// Resolves a [`SignedPacket`] for the given [`EndpointId`]. +639 pub async fn resolve( +640 &self, +641 endpoint_id: EndpointId, +642 ) -> Result<SignedPacket, AddressLookupError> { +643 // We map the error to string, as in browsers the error is !Send +644 let public_key = pkarr::PublicKey::try_from(endpoint_id.as_bytes()) +645 .map_err(|err| e!(PkarrError::PublicKey, err))?; +646 +647 let mut url = self.pkarr_relay_url.clone(); +648 url.path_segments_mut() +649 .map_err(|_| { +650 e!(PkarrError::InvalidRelayUrl { +651 url: self.pkarr_relay_url.clone().into() +652 }) +653 })? +654 .push(&public_key.to_z32()); +655 +656 let response = self +657 .http_client +658 .get(url) +659 .send() +660 .await +661 .map_err(|err| e!(PkarrError::HttpSend, err))?; +662 +663 if !response.status().is_success() { +664 return Err(e!(PkarrError::HttpRequest { +665 status: response.status() +666 }) +667 .into()); +668 } +669 +670 let payload = response +671 .bytes() +672 .await +673 .map_err(|source| e!(PkarrError::HttpPayload { source }))?; +674 // We map the error to string, as in browsers the error is !Send +675 let packet = SignedPacket::from_relay_payload(&public_key, &payload) +676 .map_err(|err| e!(PkarrError::Verify, err))?; +677 Ok(packet) +678 } +679 +680 /// Publishes a [`SignedPacket`]. +681 pub async fn publish(&self, signed_packet: &SignedPacket) -> Result<(), PkarrError> { +682 let mut url = self.pkarr_relay_url.clone(); +683 url.path_segments_mut() +684 .map_err(|_| { +685 e!(PkarrError::InvalidRelayUrl { +686 url: self.pkarr_relay_url.clone().into() +687 }) +688 })? +689 .push(&signed_packet.public_key().to_z32()); +690 +691 let response = self +692 .http_client +693 .put(url) +694 .body(signed_packet.to_relay_payload()) +695 .send() +696 .await +697 .map_err(|source| e!(PkarrError::HttpSend { source }))?; +698 +699 if !response.status().is_success() { +700 return Err(e!(PkarrError::HttpRequest { +701 status: response.status() +702 })); +703 } +704 +705 Ok(()) +706 } +707} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/address_lookup/pkarr/dht.rs.html b/pr/3958/docs/src/iroh/address_lookup/pkarr/dht.rs.html index f0d8bed68c..39d174bde8 100644 --- a/pr/3958/docs/src/iroh/address_lookup/pkarr/dht.rs.html +++ b/pr/3958/docs/src/iroh/address_lookup/pkarr/dht.rs.html @@ -20,8 +20,8 @@ 20use crate::{ 21 Endpoint, 22 address_lookup::{ -23 AddressLookup, EndpointData, Error as AddressLookupError, IntoAddressLookup, -24 IntoAddressLookupError, Item as AddressLookupItem, +23 AddrFilter, AddressLookup, AddressLookupBuilder, AddressLookupBuilderError, EndpointData, +24 Error as AddressLookupError, Item as AddressLookupItem, 25 pkarr::{DEFAULT_PKARR_TTL, N0_DNS_PKARR_RELAY_PROD, N0_DNS_PKARR_RELAY_STAGING}, 26 }, 27 endpoint_info::EndpointInfo, @@ -42,348 +42,362 @@ 42/// be used as both a publisher and resolver. Calling [`DhtAddressLookup::publish`] will start 43/// a background task that periodically publishes the endpoint address. 44/// -45/// [pkarr module]: super -46#[derive(Debug, Clone)] -47pub struct DhtAddressLookup(Arc<Inner>); -48 -49impl Default for DhtAddressLookup { -50 fn default() -> Self { -51 Self::builder().build().expect("valid builder") -52 } -53} -54 -55#[derive(derive_more::Debug)] -56struct Inner { -57 /// Pkarr client for interacting with the DHT. -58 pkarr: PkarrClient, -59 /// The background task that periodically publishes the endpoint address. -60 /// -61 /// Due to [`AbortOnDropHandle`], this will be aborted when the Address Lookup is dropped. -62 task: Mutex<Option<AbortOnDropHandle<()>>>, -63 /// Optional keypair for signing the DNS packets. -64 /// -65 /// If this is None, the endpoint will not publish its address to the DHT. -66 secret_key: Option<SecretKey>, -67 /// Optional pkarr relay URL to use. -68 relay_url: Option<Url>, -69 /// Time-to-live value for the DNS packets. -70 ttl: u32, -71 /// True to include the direct addresses in the DNS packet. -72 include_direct_addresses: bool, -73 /// Republish delay for the DHT. -74 republish_delay: Duration, -75} -76 -77impl Inner { -78 async fn resolve_pkarr( -79 &self, -80 key: pkarr::PublicKey, -81 ) -> Option<Result<AddressLookupItem, AddressLookupError>> { -82 tracing::info!( -83 "resolving {} from relay and DHT {:?}", -84 key.to_z32(), -85 self.relay_url -86 ); -87 -88 let maybe_packet = self.pkarr.resolve(&key).await; -89 match maybe_packet { -90 Some(signed_packet) => match EndpointInfo::from_pkarr_signed_packet(&signed_packet) { -91 Ok(endpoint_info) => { -92 tracing::info!("discovered endpoint info {:?}", endpoint_info); -93 Some(Ok(AddressLookupItem::new(endpoint_info, "pkarr", None))) -94 } -95 Err(_err) => { -96 tracing::debug!("failed to parse signed packet as endpoint info"); -97 None -98 } -99 }, -100 None => { -101 tracing::debug!("no signed packet found"); -102 None -103 } -104 } -105 } -106} -107 -108/// Builder for [`DhtAddressLookup`]. -109/// -110/// By default, publishing to the DHT is enabled, and relay publishing is disabled. -111#[derive(Debug)] -112pub struct Builder { -113 client: Option<PkarrClient>, -114 secret_key: Option<SecretKey>, -115 ttl: Option<u32>, -116 pkarr_relay: Option<Url>, -117 dht: bool, -118 include_direct_addresses: bool, -119 republish_delay: Duration, -120 enable_publish: bool, -121} -122 -123impl Default for Builder { -124 fn default() -> Self { -125 Self { -126 client: None, -127 secret_key: None, -128 ttl: None, -129 pkarr_relay: None, -130 dht: true, -131 include_direct_addresses: false, -132 republish_delay: REPUBLISH_DELAY, -133 enable_publish: true, -134 } -135 } -136} -137 -138impl Builder { -139 /// Explicitly sets the pkarr client to use. -140 pub fn client(mut self, client: PkarrClient) -> Self { -141 self.client = Some(client); -142 self -143 } -144 -145 /// Sets the secret key to use for signing the DNS packets. -146 /// -147 /// Without a secret key, the endpoint will not publish its address to the DHT. -148 pub fn secret_key(mut self, secret_key: SecretKey) -> Self { -149 self.secret_key = Some(secret_key); +45/// By default, [`DhtAddressLookup`] will publish all addresses it receives: +46/// direct IP addresses and relay URLs. No internal address limits or truncation +47/// are applied. +48/// +49/// You can supply an [`AddrFilter`] via [`Builder::set_addr_filter`] to +50/// control which addresses are published. +51/// +52/// [`AddrFilter`]: crate::address_lookup::AddrFilter +53/// [pkarr module]: super +54#[derive(Debug, Clone)] +55pub struct DhtAddressLookup(Arc<Inner>); +56 +57impl Default for DhtAddressLookup { +58 fn default() -> Self { +59 Self::builder().build().expect("valid builder") +60 } +61} +62 +63#[derive(derive_more::Debug)] +64struct Inner { +65 /// Pkarr client for interacting with the DHT. +66 pkarr: PkarrClient, +67 /// The background task that periodically publishes the endpoint address. +68 /// +69 /// Due to [`AbortOnDropHandle`], this will be aborted when the Address Lookup is dropped. +70 task: Mutex<Option<AbortOnDropHandle<()>>>, +71 /// Optional keypair for signing the DNS packets. +72 /// +73 /// If this is None, the endpoint will not publish its address to the DHT. +74 secret_key: Option<SecretKey>, +75 /// Optional pkarr relay URL to use. +76 relay_url: Option<Url>, +77 /// Time-to-live value for the DNS packets. +78 ttl: u32, +79 /// Republish delay for the DHT. +80 republish_delay: Duration, +81 /// User supplied filter to filter and reorder addresses for publishing +82 filter: AddrFilter, +83} +84 +85impl Inner { +86 async fn resolve_pkarr( +87 &self, +88 key: pkarr::PublicKey, +89 ) -> Option<Result<AddressLookupItem, AddressLookupError>> { +90 tracing::info!( +91 "resolving {} from relay and DHT {:?}", +92 key.to_z32(), +93 self.relay_url +94 ); +95 +96 let maybe_packet = self.pkarr.resolve(&key).await; +97 match maybe_packet { +98 Some(signed_packet) => match EndpointInfo::from_pkarr_signed_packet(&signed_packet) { +99 Ok(endpoint_info) => { +100 tracing::info!("discovered endpoint info {:?}", endpoint_info); +101 Some(Ok(AddressLookupItem::new(endpoint_info, "pkarr", None))) +102 } +103 Err(_err) => { +104 tracing::debug!("failed to parse signed packet as endpoint info"); +105 None +106 } +107 }, +108 None => { +109 tracing::debug!("no signed packet found"); +110 None +111 } +112 } +113 } +114} +115 +116/// Builder for [`DhtAddressLookup`]. +117/// +118/// By default, publishing to the DHT is enabled, and relay publishing is disabled. +119#[derive(Debug)] +120pub struct Builder { +121 client: Option<PkarrClient>, +122 secret_key: Option<SecretKey>, +123 ttl: Option<u32>, +124 pkarr_relay: Option<Url>, +125 dht: bool, +126 republish_delay: Duration, +127 enable_publish: bool, +128 filter: AddrFilter, +129} +130 +131impl Default for Builder { +132 fn default() -> Self { +133 Self { +134 client: None, +135 secret_key: None, +136 ttl: None, +137 pkarr_relay: None, +138 dht: true, +139 republish_delay: REPUBLISH_DELAY, +140 enable_publish: true, +141 filter: AddrFilter::default(), +142 } +143 } +144} +145 +146impl Builder { +147 /// Explicitly sets the pkarr client to use. +148 pub fn client(mut self, client: PkarrClient) -> Self { +149 self.client = Some(client); 150 self 151 } 152 -153 /// Sets the time-to-live value for the DNS packets. -154 pub fn ttl(mut self, ttl: u32) -> Self { -155 self.ttl = Some(ttl); -156 self -157 } -158 -159 /// Sets the pkarr relay URL to use. -160 pub fn pkarr_relay(mut self, pkarr_relay: Url) -> Self { -161 self.pkarr_relay = Some(pkarr_relay); -162 self -163 } -164 -165 /// Uses the default [number 0] pkarr relay URL. -166 /// -167 /// [number 0]: https://n0.computer -168 pub fn n0_dns_pkarr_relay(mut self) -> Self { -169 let url = if crate::endpoint::force_staging_infra() { -170 N0_DNS_PKARR_RELAY_STAGING -171 } else { -172 N0_DNS_PKARR_RELAY_PROD -173 }; -174 self.pkarr_relay = Some(url.parse().expect("valid URL")); -175 self -176 } -177 -178 /// Sets whether to publish to the Mainline DHT. -179 pub fn dht(mut self, dht: bool) -> Self { -180 self.dht = dht; -181 self -182 } -183 -184 /// Sets whether to include the direct addresses in the DNS packet. -185 pub fn include_direct_addresses(mut self, include_direct_addresses: bool) -> Self { -186 self.include_direct_addresses = include_direct_addresses; -187 self -188 } -189 -190 /// Sets the republish delay for the DHT. -191 pub fn republish_delay(mut self, republish_delay: Duration) -> Self { -192 self.republish_delay = republish_delay; -193 self -194 } -195 -196 /// Disables publishing even if a secret key is set. -197 pub fn no_publish(mut self) -> Self { -198 self.enable_publish = false; -199 self -200 } -201 -202 /// Builds the address lookup mechanism. -203 pub fn build(self) -> Result<DhtAddressLookup, IntoAddressLookupError> { -204 if !(self.dht || self.pkarr_relay.is_some()) { -205 return Err(IntoAddressLookupError::from_err( -206 "pkarr", -207 std::io::Error::other("at least one of DHT or relay must be enabled"), -208 )); -209 } -210 let pkarr = match self.client { -211 Some(client) => client, -212 None => { -213 let mut builder = PkarrClient::builder(); -214 builder.no_default_network(); -215 if self.dht { -216 builder.dht(|x| x); -217 } -218 if let Some(url) = &self.pkarr_relay { -219 builder -220 .relays(std::slice::from_ref(url)) -221 .map_err(|e| IntoAddressLookupError::from_err("pkarr", e))?; -222 } -223 builder -224 .build() -225 .map_err(|e| IntoAddressLookupError::from_err("pkarr", e))? -226 } -227 }; -228 let ttl = self.ttl.unwrap_or(DEFAULT_PKARR_TTL); -229 let include_direct_addresses = self.include_direct_addresses; -230 let secret_key = self.secret_key.filter(|_| self.enable_publish); -231 -232 Ok(DhtAddressLookup(Arc::new(Inner { -233 pkarr, -234 ttl, -235 relay_url: self.pkarr_relay, -236 include_direct_addresses, -237 secret_key, -238 republish_delay: self.republish_delay, -239 task: Default::default(), -240 }))) -241 } -242} -243 -244impl IntoAddressLookup for Builder { -245 fn into_address_lookup( -246 self, -247 endpoint: &Endpoint, -248 ) -> Result<impl AddressLookup, IntoAddressLookupError> { -249 self.secret_key(endpoint.secret_key().clone()).build() -250 } -251} -252 -253impl DhtAddressLookup { -254 /// Creates a new builder for [`DhtAddressLookup`]. -255 pub fn builder() -> Builder { -256 Builder::default() +153 /// Sets the secret key to use for signing the DNS packets. +154 /// +155 /// Without a secret key, the endpoint will not publish its address to the DHT. +156 pub fn secret_key(mut self, secret_key: SecretKey) -> Self { +157 self.secret_key = Some(secret_key); +158 self +159 } +160 +161 /// Sets the time-to-live value for the DNS packets. +162 pub fn ttl(mut self, ttl: u32) -> Self { +163 self.ttl = Some(ttl); +164 self +165 } +166 +167 /// Sets the pkarr relay URL to use. +168 pub fn pkarr_relay(mut self, pkarr_relay: Url) -> Self { +169 self.pkarr_relay = Some(pkarr_relay); +170 self +171 } +172 +173 /// Uses the default [number 0] pkarr relay URL. +174 /// +175 /// [number 0]: https://n0.computer +176 pub fn n0_dns_pkarr_relay(mut self) -> Self { +177 let url = if crate::endpoint::force_staging_infra() { +178 N0_DNS_PKARR_RELAY_STAGING +179 } else { +180 N0_DNS_PKARR_RELAY_PROD +181 }; +182 self.pkarr_relay = Some(url.parse().expect("valid URL")); +183 self +184 } +185 +186 /// Sets whether to publish to the Mainline DHT. +187 pub fn dht(mut self, dht: bool) -> Self { +188 self.dht = dht; +189 self +190 } +191 +192 /// Sets the republish delay for the DHT. +193 pub fn republish_delay(mut self, republish_delay: Duration) -> Self { +194 self.republish_delay = republish_delay; +195 self +196 } +197 +198 /// Disables publishing even if a secret key is set. +199 pub fn no_publish(mut self) -> Self { +200 self.enable_publish = false; +201 self +202 } +203 +204 /// Sets a filter to control which addresses are published by this service. +205 pub fn set_addr_filter(mut self, filter: AddrFilter) -> Self { +206 self.filter = filter; +207 self +208 } +209 +210 /// Builds the address lookup mechanism. +211 pub fn build(self) -> Result<DhtAddressLookup, AddressLookupBuilderError> { +212 if !(self.dht || self.pkarr_relay.is_some()) { +213 return Err(AddressLookupBuilderError::from_err( +214 "pkarr", +215 std::io::Error::other("at least one of DHT or relay must be enabled"), +216 )); +217 } +218 let pkarr = match self.client { +219 Some(client) => client, +220 None => { +221 let mut builder = PkarrClient::builder(); +222 builder.no_default_network(); +223 if self.dht { +224 builder.dht(|x| x); +225 } +226 if let Some(url) = &self.pkarr_relay { +227 builder +228 .relays(std::slice::from_ref(url)) +229 .map_err(|e| AddressLookupBuilderError::from_err("pkarr", e))?; +230 } +231 builder +232 .build() +233 .map_err(|e| AddressLookupBuilderError::from_err("pkarr", e))? +234 } +235 }; +236 let ttl = self.ttl.unwrap_or(DEFAULT_PKARR_TTL); +237 let secret_key = self.secret_key.filter(|_| self.enable_publish); +238 +239 Ok(DhtAddressLookup(Arc::new(Inner { +240 pkarr, +241 ttl, +242 relay_url: self.pkarr_relay, +243 secret_key, +244 republish_delay: self.republish_delay, +245 task: Default::default(), +246 filter: self.filter, +247 }))) +248 } +249} +250 +251impl AddressLookupBuilder for Builder { +252 fn into_address_lookup( +253 self, +254 endpoint: &Endpoint, +255 ) -> Result<impl AddressLookup, AddressLookupBuilderError> { +256 self.secret_key(endpoint.secret_key().clone()).build() 257 } 258 -259 /// Periodically publishes the endpoint address to the DHT and/or relay. -260 async fn publish_loop(self, keypair: SecretKey, signed_packet: SignedPacket) { -261 let this = self; -262 let public_key = -263 pkarr::PublicKey::try_from(keypair.public().as_bytes()).expect("valid public key"); -264 let z32 = public_key.to_z32(); -265 loop { -266 // If the task gets aborted while doing this lookup, we have not published yet. -267 let prev_timestamp = this -268 .0 -269 .pkarr -270 .resolve_most_recent(&public_key) -271 .await -272 .map(|p| p.timestamp()); -273 let res = this.0.pkarr.publish(&signed_packet, prev_timestamp).await; -274 match res { -275 Ok(()) => { -276 tracing::debug!("pkarr publish success. published under {z32}",); -277 } -278 Err(e) => { -279 // we could do a smaller delay here, but in general DHT publish -280 // not working is due to a network issue, and if the network changes -281 // the task will be restarted anyway. -282 // -283 // Being unable to publish to the DHT is something that is expected -284 // to happen from time to time, so this does not warrant a error log. -285 tracing::warn!("pkarr publish error: {}", e); -286 } -287 } -288 time::sleep(this.0.republish_delay).await; -289 } -290 } -291} -292 -293impl AddressLookup for DhtAddressLookup { -294 fn publish(&self, data: &EndpointData) { -295 let Some(keypair) = &self.0.secret_key else { -296 tracing::debug!("no keypair set, not publishing"); -297 return; -298 }; -299 if !data.has_addrs() { -300 tracing::debug!("no relay url or direct addresses in endpoint data, not publishing"); -301 return; -302 } -303 tracing::debug!("publishing {data:?}"); -304 let mut info = EndpointInfo::from_parts(keypair.public(), data.clone()); -305 if !self.0.include_direct_addresses { -306 info.clear_ip_addrs(); -307 } -308 let Ok(signed_packet) = info.to_pkarr_signed_packet(keypair, self.0.ttl) else { -309 tracing::warn!("failed to create signed packet"); -310 return; -311 }; -312 let this = self.clone(); -313 let curr = task::spawn(this.publish_loop(keypair.clone(), signed_packet)); -314 let mut task = self.0.task.lock().expect("poisoned"); -315 *task = Some(AbortOnDropHandle::new(curr)); -316 } -317 -318 fn resolve( -319 &self, -320 endpoint_id: EndpointId, -321 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { -322 let pkarr_public_key = -323 pkarr::PublicKey::try_from(endpoint_id.as_bytes()).expect("valid public key"); -324 tracing::info!("resolving {} as {}", endpoint_id, pkarr_public_key.to_z32()); -325 let address_lookup = self.0.clone(); -326 let stream = n0_future::stream::once_future(async move { -327 address_lookup.resolve_pkarr(pkarr_public_key).await -328 }) -329 .filter_map(|x| x) -330 .boxed(); -331 Some(stream) -332 } -333} -334 -335#[cfg(test)] -336mod tests { -337 use std::collections::BTreeSet; -338 -339 use iroh_base::RelayUrl; -340 use n0_error::{Result, StdResultExt}; -341 use n0_tracing_test::traced_test; -342 -343 use super::*; -344 -345 #[tokio::test] -346 #[ignore = "flaky"] -347 #[traced_test] -348 async fn dht_address_lookup_smoke() -> Result { -349 let secret = SecretKey::generate(&mut rand::rng()); -350 let testnet = pkarr::mainline::Testnet::new_async(3).await.anyerr()?; -351 let client = pkarr::Client::builder() -352 .dht(|builder| builder.bootstrap(&testnet.bootstrap)) -353 .build() -354 .anyerr()?; -355 let address_lookup = DhtAddressLookup::builder() -356 .secret_key(secret.clone()) -357 .client(client) -358 .build()?; -359 -360 let relay_url: RelayUrl = Url::parse("https://example.com").anyerr()?.into(); -361 -362 let data = EndpointData::default().with_relay_url(Some(relay_url.clone())); -363 address_lookup.publish(&data); -364 -365 // publish is fire and forget, so we have no way to wait until it is done. -366 tokio::time::timeout(Duration::from_secs(30), async move { -367 loop { -368 tokio::time::sleep(Duration::from_millis(200)).await; -369 let mut found_relay_urls = BTreeSet::new(); -370 let items = address_lookup -371 .resolve(secret.public()) -372 .unwrap() -373 .collect::<Vec<_>>() -374 .await; -375 for item in items.into_iter().flatten() { -376 for url in item.relay_urls() { -377 found_relay_urls.insert(url.clone()); -378 } -379 } -380 if found_relay_urls.contains(&relay_url) { -381 break; -382 } -383 } -384 }) -385 .await -386 .expect("timeout, relay_url not found on DHT"); -387 Ok(()) -388 } -389} \ No newline at end of file +259 fn with_addr_filter(self, filter: AddrFilter) -> Self { +260 self.set_addr_filter(filter) +261 } +262} +263 +264impl DhtAddressLookup { +265 /// Creates a new builder for [`DhtAddressLookup`]. +266 pub fn builder() -> Builder { +267 Builder::default() +268 } +269 +270 /// Periodically publishes the endpoint address to the DHT and/or relay. +271 async fn publish_loop(self, keypair: SecretKey, signed_packet: SignedPacket) { +272 let this = self; +273 let public_key = +274 pkarr::PublicKey::try_from(keypair.public().as_bytes()).expect("valid public key"); +275 let z32 = public_key.to_z32(); +276 loop { +277 // If the task gets aborted while doing this lookup, we have not published yet. +278 let prev_timestamp = this +279 .0 +280 .pkarr +281 .resolve_most_recent(&public_key) +282 .await +283 .map(|p| p.timestamp()); +284 let res = this.0.pkarr.publish(&signed_packet, prev_timestamp).await; +285 match res { +286 Ok(()) => { +287 tracing::debug!("pkarr publish success. published under {z32}",); +288 } +289 Err(e) => { +290 // we could do a smaller delay here, but in general DHT publish +291 // not working is due to a network issue, and if the network changes +292 // the task will be restarted anyway. +293 // +294 // Being unable to publish to the DHT is something that is expected +295 // to happen from time to time, so this does not warrant a error log. +296 tracing::warn!("pkarr publish error: {}", e); +297 } +298 } +299 time::sleep(this.0.republish_delay).await; +300 } +301 } +302} +303 +304impl AddressLookup for DhtAddressLookup { +305 fn publish(&self, data: &EndpointData) { +306 let Some(keypair) = &self.0.secret_key else { +307 tracing::debug!("no keypair set, not publishing"); +308 return; +309 }; +310 +311 // apply user-supplied filter +312 let addrs = data.filtered_addrs(&self.0.filter); +313 +314 if addrs.is_empty() { +315 tracing::debug!("no relay url or direct addresses in endpoint data, not publishing"); +316 return; +317 } +318 +319 tracing::debug!("publishing {data:?}"); +320 let data = EndpointData::new(addrs).with_user_data(data.user_data().cloned()); +321 let info = EndpointInfo::from_parts(keypair.public(), data.clone()); +322 let Ok(signed_packet) = info.to_pkarr_signed_packet(keypair, self.0.ttl) else { +323 tracing::warn!("failed to create signed packet"); +324 return; +325 }; +326 let this = self.clone(); +327 let curr = task::spawn(this.publish_loop(keypair.clone(), signed_packet)); +328 let mut task = self.0.task.lock().expect("poisoned"); +329 *task = Some(AbortOnDropHandle::new(curr)); +330 } +331 +332 fn resolve( +333 &self, +334 endpoint_id: EndpointId, +335 ) -> Option<BoxStream<Result<AddressLookupItem, AddressLookupError>>> { +336 let pkarr_public_key = +337 pkarr::PublicKey::try_from(endpoint_id.as_bytes()).expect("valid public key"); +338 tracing::info!("resolving {} as {}", endpoint_id, pkarr_public_key.to_z32()); +339 let address_lookup = self.0.clone(); +340 let stream = n0_future::stream::once_future(async move { +341 address_lookup.resolve_pkarr(pkarr_public_key).await +342 }) +343 .filter_map(|x| x) +344 .boxed(); +345 Some(stream) +346 } +347} +348 +349#[cfg(test)] +350mod tests { +351 use std::collections::BTreeSet; +352 +353 use iroh_base::RelayUrl; +354 use n0_error::{Result, StdResultExt}; +355 use n0_tracing_test::traced_test; +356 +357 use super::*; +358 +359 #[tokio::test] +360 #[ignore = "flaky"] +361 #[traced_test] +362 async fn dht_address_lookup_smoke() -> Result { +363 let secret = SecretKey::generate(&mut rand::rng()); +364 let testnet = pkarr::mainline::Testnet::new_async(3).await.anyerr()?; +365 let client = pkarr::Client::builder() +366 .dht(|builder| builder.bootstrap(&testnet.bootstrap)) +367 .build() +368 .anyerr()?; +369 let address_lookup = DhtAddressLookup::builder() +370 .secret_key(secret.clone()) +371 .client(client) +372 .build()?; +373 +374 let relay_url: RelayUrl = Url::parse("https://example.com").anyerr()?.into(); +375 +376 let data = EndpointData::default().with_relay_url(Some(relay_url.clone())); +377 address_lookup.publish(&data); +378 +379 // publish is fire and forget, so we have no way to wait until it is done. +380 tokio::time::timeout(Duration::from_secs(30), async move { +381 loop { +382 tokio::time::sleep(Duration::from_millis(200)).await; +383 let mut found_relay_urls = BTreeSet::new(); +384 let items = address_lookup +385 .resolve(secret.public()) +386 .unwrap() +387 .collect::<Vec<_>>() +388 .await; +389 for item in items.into_iter().flatten() { +390 for url in item.relay_urls() { +391 found_relay_urls.insert(url.clone()); +392 } +393 } +394 if found_relay_urls.contains(&relay_url) { +395 break; +396 } +397 } +398 }) +399 .await +400 .expect("timeout, relay_url not found on DHT"); +401 Ok(()) +402 } +403} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/endpoint.rs.html b/pr/3958/docs/src/iroh/endpoint.rs.html index c477787603..d54d38e920 100644 --- a/pr/3958/docs/src/iroh/endpoint.rs.html +++ b/pr/3958/docs/src/iroh/endpoint.rs.html @@ -11,106 +11,106 @@ 11//! 12//! [module docs]: crate 13 -14#[cfg(not(wasm_browser))] -15use std::net::SocketAddr; -16use std::{pin::Pin, sync::Arc}; -17 -18use iroh_base::{EndpointAddr, EndpointId, RelayUrl, SecretKey, TransportAddr}; -19use iroh_relay::{RelayConfig, RelayMap}; -20#[cfg(not(wasm_browser))] -21use n0_error::bail; -22use n0_error::{e, ensure, stack_error}; -23use n0_watcher::Watcher; -24#[cfg(not(wasm_browser))] -25use netdev::ipnet::{Ipv4Net, Ipv6Net}; -26use pin_project::pin_project; -27use tokio_util::sync::WaitForCancellationFutureOwned; -28use tracing::{debug, instrument, trace, warn}; -29use url::Url; -30 -31use self::hooks::EndpointHooksList; -32pub use super::socket::{ -33 BindError, DirectAddr, DirectAddrType, -34 remote_map::{ -35 PathInfo, PathInfoList, PathInfoListIter, PathWatcher, RemoteInfo, Source, -36 TransportAddrInfo, TransportAddrUsage, -37 }, -38}; -39#[cfg(wasm_browser)] -40use crate::address_lookup::PkarrResolver; -41#[cfg(not(wasm_browser))] -42use crate::dns::DnsResolver; -43use crate::{ -44 NetReport, -45 address_lookup::{ -46 ConcurrentAddressLookup, DynIntoAddressLookup, Error as AddressLookupError, -47 IntoAddressLookup, UserData, -48 }, -49 endpoint::presets::Preset, -50 metrics::EndpointMetrics, -51 socket::{ -52 self, EndpointInner, RemoteStateActorStoppedError, StaticConfig, mapped_addrs::MappedAddr, -53 }, -54 tls::{self, DEFAULT_MAX_TLS_TICKETS}, -55}; -56 -57#[cfg(not(wasm_browser))] -58mod bind; -59mod connection; -60pub(crate) mod hooks; -61pub mod presets; -62pub(crate) mod quic; -63 -64#[cfg(not(wasm_browser))] -65pub use bind::{BindOpts, InvalidSocketAddr, ToSocketAddr}; -66pub use hooks::{AfterHandshakeOutcome, BeforeConnectOutcome, EndpointHooks}; -67 -68#[cfg(feature = "qlog")] -69pub use self::quic::{QlogConfig, QlogFactory, QlogFileFactory}; -70pub use self::{ -71 connection::{ -72 Accept, Accepting, AlpnError, AuthenticationError, Connecting, ConnectingError, Connection, -73 ConnectionInfo, ConnectionState, HandshakeCompleted, Incoming, IncomingZeroRtt, -74 IncomingZeroRttConnection, OutgoingZeroRtt, OutgoingZeroRttConnection, -75 RemoteEndpointIdError, RetryError, ZeroRttStatus, -76 }, -77 quic::{ -78 AcceptBi, AcceptUni, AckFrequencyConfig, AeadKey, ApplicationClose, Chunk, ClosedStream, -79 ConnectionClose, ConnectionError, ConnectionStats, Controller, ControllerFactory, -80 ControllerMetrics, CryptoError, Dir, ExportKeyingMaterialError, FrameStats, FrameType, -81 HandshakeTokenKey, HeaderKey, IdleTimeout, Keys, MtuDiscoveryConfig, OpenBi, OpenUni, -82 PacketKey, PathId, PathStats, QuicConnectError, QuicTransportConfig, -83 QuicTransportConfigBuilder, ReadDatagram, ReadError, ReadExactError, ReadToEndError, -84 RecvStream, ResetError, RttEstimator, SendDatagram, SendDatagramError, SendStream, -85 ServerConfig, ServerConfigBuilder, Side, StoppedError, StreamId, TimeSource, TokenLog, -86 TokenReuseError, TransportError, TransportErrorCode, TransportParameters, UdpStats, -87 UnorderedRecvStream, UnsupportedVersion, ValidationTokenConfig, VarInt, -88 VarIntBoundsExceeded, WriteError, Written, -89 }, -90}; -91#[cfg(not(wasm_browser))] -92use crate::socket::transports::IpConfig; -93use crate::socket::transports::TransportConfig; -94 -95/// Builder for [`Endpoint`]. -96/// -97/// By default the endpoint will generate a new random [`SecretKey`], which will result in a -98/// new [`EndpointId`]. -99/// -100/// To create the [`Endpoint`] call [`Builder::bind`]. -101#[derive(Debug)] -102pub struct Builder { -103 secret_key: Option<SecretKey>, -104 alpn_protocols: Vec<Vec<u8>>, -105 transport_config: QuicTransportConfig, -106 keylog: bool, -107 address_lookup: Vec<Box<dyn DynIntoAddressLookup>>, -108 address_lookup_user_data: Option<UserData>, -109 proxy_url: Option<Url>, -110 #[cfg(not(wasm_browser))] -111 dns_resolver: Option<DnsResolver>, -112 #[cfg(any(test, feature = "test-utils"))] -113 insecure_skip_relay_cert_verify: bool, +14use std::{net::SocketAddr, pin::Pin, sync::Arc}; +15 +16use iroh_base::{EndpointAddr, EndpointId, RelayUrl, SecretKey, TransportAddr}; +17use iroh_relay::{ +18 RelayConfig, RelayMap, +19 tls::{CaRootsConfig, default_provider}, +20}; +21#[cfg(not(wasm_browser))] +22use n0_error::bail; +23use n0_error::{e, ensure, stack_error}; +24use n0_watcher::Watcher; +25#[cfg(not(wasm_browser))] +26use netdev::ipnet::{Ipv4Net, Ipv6Net}; +27use pin_project::pin_project; +28use tokio_util::sync::WaitForCancellationFutureOwned; +29use tracing::{debug, instrument, trace, warn}; +30use url::Url; +31 +32use self::hooks::EndpointHooksList; +33pub use super::socket::{ +34 BindError, DirectAddr, DirectAddrType, +35 remote_map::{ +36 PathInfo, PathInfoList, PathInfoListIter, PathWatcher, RemoteInfo, Source, +37 TransportAddrInfo, TransportAddrUsage, +38 }, +39}; +40#[cfg(wasm_browser)] +41use crate::address_lookup::PkarrResolver; +42#[cfg(not(wasm_browser))] +43use crate::dns::DnsResolver; +44use crate::{ +45 NetReport, +46 address_lookup::{ +47 AddressLookupBuilder, ConcurrentAddressLookup, DynAddressLookupBuilder, +48 Error as AddressLookupError, UserData, +49 }, +50 endpoint::presets::Preset, +51 metrics::EndpointMetrics, +52 socket::{ +53 self, EndpointInner, RemoteStateActorStoppedError, StaticConfig, mapped_addrs::MappedAddr, +54 }, +55 tls::{self, DEFAULT_MAX_TLS_TICKETS}, +56}; +57 +58#[cfg(not(wasm_browser))] +59mod bind; +60mod connection; +61pub(crate) mod hooks; +62pub mod presets; +63pub(crate) mod quic; +64 +65#[cfg(not(wasm_browser))] +66pub use bind::{BindOpts, InvalidSocketAddr, ToSocketAddr}; +67pub use hooks::{AfterHandshakeOutcome, BeforeConnectOutcome, EndpointHooks}; +68 +69#[cfg(feature = "qlog")] +70pub use self::quic::{QlogConfig, QlogFactory, QlogFileFactory}; +71pub use self::{ +72 connection::{ +73 Accept, Accepting, AlpnError, AuthenticationError, Connecting, ConnectingError, Connection, +74 ConnectionInfo, ConnectionState, HandshakeCompleted, Incoming, IncomingAddr, +75 IncomingZeroRtt, IncomingZeroRttConnection, OutgoingZeroRtt, OutgoingZeroRttConnection, +76 RemoteEndpointIdError, RetryError, ZeroRttStatus, +77 }, +78 quic::{ +79 AcceptBi, AcceptUni, AckFrequencyConfig, AeadKey, ApplicationClose, Chunk, ClosedStream, +80 ConnectionClose, ConnectionError, ConnectionStats, Controller, ControllerFactory, +81 ControllerMetrics, CryptoError, Dir, ExportKeyingMaterialError, FrameStats, FrameType, +82 HandshakeTokenKey, HeaderKey, IdleTimeout, Keys, MtuDiscoveryConfig, OpenBi, OpenUni, +83 PacketKey, PathId, PathStats, QuicConnectError, QuicTransportConfig, +84 QuicTransportConfigBuilder, ReadDatagram, ReadError, ReadExactError, ReadToEndError, +85 RecvStream, ResetError, RttEstimator, SendDatagram, SendDatagramError, SendStream, +86 ServerConfig, ServerConfigBuilder, Side, StoppedError, StreamId, TimeSource, TokenLog, +87 TokenReuseError, TransportError, TransportErrorCode, TransportParameters, UdpStats, +88 UnorderedRecvStream, UnsupportedVersion, ValidationTokenConfig, VarInt, +89 VarIntBoundsExceeded, WriteError, Written, +90 }, +91}; +92#[cfg(not(wasm_browser))] +93use crate::socket::transports::IpConfig; +94use crate::socket::transports::TransportConfig; +95 +96/// Builder for [`Endpoint`]. +97/// +98/// By default the endpoint will generate a new random [`SecretKey`], which will result in a +99/// new [`EndpointId`]. +100/// +101/// To create the [`Endpoint`] call [`Builder::bind`]. +102#[derive(Debug)] +103pub struct Builder { +104 secret_key: Option<SecretKey>, +105 alpn_protocols: Vec<Vec<u8>>, +106 transport_config: QuicTransportConfig, +107 keylog: bool, +108 address_lookup: Vec<Box<dyn DynAddressLookupBuilder>>, +109 address_lookup_user_data: Option<UserData>, +110 proxy_url: Option<Url>, +111 ca_roots_config: Option<CaRootsConfig>, +112 #[cfg(not(wasm_browser))] +113 dns_resolver: Option<DnsResolver>, 114 transports: Vec<TransportConfig>, 115 max_tls_tickets: usize, 116 hooks: EndpointHooksList, @@ -172,3348 +172,3375 @@ 172 address_lookup: Default::default(), 173 address_lookup_user_data: Default::default(), 174 proxy_url: None, -175 #[cfg(not(wasm_browser))] -176 dns_resolver: None, -177 #[cfg(any(test, feature = "test-utils"))] -178 insecure_skip_relay_cert_verify: false, -179 max_tls_tickets: DEFAULT_MAX_TLS_TICKETS, -180 transports, -181 hooks: Default::default(), -182 } -183 } -184 -185 // # The final constructor that everyone needs. -186 -187 /// Binds the endpoint. -188 pub async fn bind(self) -> Result<Endpoint, BindError> { -189 let mut rng = rand::rng(); -190 let secret_key = self -191 .secret_key -192 .unwrap_or_else(move || SecretKey::generate(&mut rng)); -193 -194 let static_config = StaticConfig { -195 transport_config: self.transport_config.clone(), -196 tls_config: tls::TlsConfig::new(secret_key.clone(), self.max_tls_tickets), -197 keylog: self.keylog, -198 }; -199 let server_config = static_config.create_server_config(self.alpn_protocols); -200 -201 #[cfg(not(wasm_browser))] -202 let dns_resolver = self.dns_resolver.unwrap_or_default(); -203 -204 let metrics = EndpointMetrics::default(); -205 -206 let sock_opts = socket::Options { -207 transports: self.transports, -208 secret_key, -209 address_lookup_user_data: self.address_lookup_user_data, -210 proxy_url: self.proxy_url, -211 #[cfg(not(wasm_browser))] -212 dns_resolver, -213 server_config, -214 #[cfg(any(test, feature = "test-utils"))] -215 insecure_skip_relay_cert_verify: self.insecure_skip_relay_cert_verify, -216 metrics, -217 hooks: self.hooks, -218 static_config, -219 }; -220 -221 let inner = socket::Socket::spawn(sock_opts).await?; -222 trace!("created socket"); -223 debug!(version = env!("CARGO_PKG_VERSION"), "iroh Endpoint created"); +175 ca_roots_config: None, +176 #[cfg(not(wasm_browser))] +177 dns_resolver: None, +178 max_tls_tickets: DEFAULT_MAX_TLS_TICKETS, +179 transports, +180 hooks: Default::default(), +181 } +182 } +183 +184 // # The final constructor that everyone needs. +185 +186 /// Binds the endpoint. +187 pub async fn bind(self) -> Result<Endpoint, BindError> { +188 let mut rng = rand::rng(); +189 let secret_key = self +190 .secret_key +191 .unwrap_or_else(move || SecretKey::generate(&mut rng)); +192 +193 let static_config = StaticConfig { +194 transport_config: self.transport_config.clone(), +195 tls_config: tls::TlsConfig::new(secret_key.clone(), self.max_tls_tickets), +196 keylog: self.keylog, +197 }; +198 let server_config = static_config.create_server_config(self.alpn_protocols); +199 +200 #[cfg(not(wasm_browser))] +201 let dns_resolver = self.dns_resolver.unwrap_or_default(); +202 +203 let metrics = EndpointMetrics::default(); +204 +205 let tls_config = self +206 .ca_roots_config +207 .unwrap_or_default() +208 .client_config(default_provider()) +209 .map_err(|err| e!(BindError::InvalidCaRootConfig, err))?; +210 +211 let sock_opts = socket::Options { +212 transports: self.transports, +213 secret_key, +214 address_lookup_user_data: self.address_lookup_user_data, +215 proxy_url: self.proxy_url, +216 #[cfg(not(wasm_browser))] +217 dns_resolver, +218 server_config, +219 tls_config, +220 metrics, +221 hooks: self.hooks, +222 static_config, +223 }; 224 -225 let ep = Endpoint { -226 inner: Arc::new(inner), -227 }; +225 let inner = socket::Socket::spawn(sock_opts).await?; +226 trace!("created socket"); +227 debug!(version = env!("CARGO_PKG_VERSION"), "iroh Endpoint created"); 228 -229 // Add Address Lookup mechanisms -230 for create_service in self.address_lookup { -231 let service = create_service.into_address_lookup(&ep)?; -232 ep.address_lookup() -233 .expect("just created the endpoint") -234 .add_boxed(service); -235 } -236 -237 Ok(ep) -238 } -239 -240 // # The very common methods everyone basically needs. -241 -242 /// Binds an IP socket at the provided socket address. -243 /// -244 /// This is an advanced API to tightly control the sockets used by the endpoint. Most -245 /// uses do not need to explicitly bind sockets. -246 /// -247 /// # Warning -248 /// -249 /// - The builder always comes pre-configured with an IPv4 socket to be bound on the -250 /// *unspecified* address: `0.0.0.0`. This is the equivalent of using `INADDR_ANY` -251 /// special bind address and results in a socket listening on *all* interfaces -252 /// available. -253 /// -254 /// - Likewise the builder always comes pre-configured with an IPv6 socket to be bound -255 /// on the *unspecified* address: `[::]`. This bind is allowed to fail however. -256 /// -257 /// - Adding a bind address removes the pre-configured unspecified bind address for this -258 /// address family. Use [`Self::bind_addr_with_opts`] to bind additional addresses without -259 /// replacing the default bind address. +229 let ep = Endpoint { +230 inner: Arc::new(inner), +231 }; +232 +233 // Add Address Lookup mechanisms +234 for create_service in self.address_lookup { +235 let service = create_service.into_address_lookup(&ep)?; +236 ep.address_lookup() +237 .expect("just created the endpoint") +238 .add_boxed(service); +239 } +240 +241 Ok(ep) +242 } +243 +244 // # The very common methods everyone basically needs. +245 +246 /// Binds an IP socket at the provided socket address. +247 /// +248 /// This is an advanced API to tightly control the sockets used by the endpoint. Most +249 /// uses do not need to explicitly bind sockets. +250 /// +251 /// # Warning +252 /// +253 /// - The builder always comes pre-configured with an IPv4 socket to be bound on the +254 /// *unspecified* address: `0.0.0.0`. This is the equivalent of using `INADDR_ANY` +255 /// special bind address and results in a socket listening on *all* interfaces +256 /// available. +257 /// +258 /// - Likewise the builder always comes pre-configured with an IPv6 socket to be bound +259 /// on the *unspecified* address: `[::]`. This bind is allowed to fail however. 260 /// -261 /// - This should be called at most once for each address family: once for IPv4 and/or -262 /// once for IPv6. Calling it multiple times for the same address family will result -263 /// in undefined routing behaviour. To bind multiple sockets of the same address -264 /// family, use [`Self::bind_addr_with_opts`]. -265 /// -266 /// # Description -267 /// -268 /// Requests a socket to be bound on a specific address, with an implied netmask of -269 /// `/0`. This allows restricting binding to only one network interface for a given -270 /// address family. +261 /// - Adding a bind address removes the pre-configured unspecified bind address for this +262 /// address family. Use [`Self::bind_addr_with_opts`] to bind additional addresses without +263 /// replacing the default bind address. +264 /// +265 /// - This should be called at most once for each address family: once for IPv4 and/or +266 /// once for IPv6. Calling it multiple times for the same address family will result +267 /// in undefined routing behaviour. To bind multiple sockets of the same address +268 /// family, use [`Self::bind_addr_with_opts`]. +269 /// +270 /// # Description 271 /// -272 /// If the port specified is already in use, binding the endpoint will fail. Using -273 /// port `0` in the socket address assigns a random free port. -274 /// -275 /// # Example -276 /// -277 /// ```no_run -278 /// # #[tokio::main] -279 /// # async fn main() -> n0_error::Result<()> { -280 /// # use iroh::Endpoint; -281 /// let endpoint = Endpoint::builder() -282 /// .clear_ip_transports() -283 /// .bind_addr("127.0.0.1:0")? -284 /// .bind_addr("[::1]:0")? -285 /// .bind() -286 /// .await?; -287 /// # Ok(()) } -288 /// ``` -289 #[cfg(not(wasm_browser))] -290 pub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr> -291 where -292 A: ToSocketAddr, -293 <A as ToSocketAddr>::Err: Into<InvalidSocketAddr>, -294 { -295 self.bind_addr_with_opts(addr, BindOpts::default()) -296 } -297 -298 /// Binds an IP socket at the provided socket address. -299 /// -300 /// This is an advanced API to tightly control the sockets used by the endpoint. Most -301 /// uses do not need to explicitly bind sockets. -302 /// -303 /// # Warning -304 /// -305 /// - The builder always comes pre-configured with an IPv4 socket to be bound on the -306 /// *unspecified* address: `0.0.0.0`. This is the equivalent of using `INADDR_ANY` -307 /// special bind address and results in a socket listening on *all* interfaces -308 /// available. -309 /// -310 /// - Likewise the builder always comes pre-configured with an IPv6 socket to be bound -311 /// on the *unspecified* address: `[::]`. This bind is allowed to fail however. -312 /// -313 /// # Description -314 /// -315 /// Requests a socket to be bound on a specific address. This allows restricting binding -316 /// to only one network interface for a given address family. -317 /// -318 /// [`BindOpts::set_prefix_len`] **should** be used to configure the netmask of the -319 /// network interface. This allows outgoing datagrams that start a new network flow to -320 /// be sent over the socket which is attached to the subnet of the destination -321 /// address. If multiple sockets are bound the standard routing-table semantics are -322 /// used: the socket attached to the subnet with the longest prefix matching the -323 /// destination is used. Practically this means the smallest subnets are at the top of -324 /// the routing table, and the first subnet containing the destination address is -325 /// chosen. -326 /// -327 /// If no socket is bound to a subnet that contains the destination address, the notion -328 /// of "default route" is used. At most one socket per address family may be marked as -329 /// the default route using [`BindOpts::set_is_default_route`], and this will be used -330 /// for destinations not contained by the subnets of the bound sockets. This network is -331 /// expected to have a default gateway configured. A socket with a prefix length of `/0` -332 /// will be set as a "default route" implicitly, unless [`BindOpts::set_is_default_route`] -333 /// is set to `false` explicitly. -334 /// -335 /// Be aware that using a subnet with a prefix length of `/0` will always contain all -336 /// destination addresses. It is valid to configure this, but no more than one such -337 /// socket should be bound or the routing will be non-deterministic. +272 /// Requests a socket to be bound on a specific address, with an implied netmask of +273 /// `/0`. This allows restricting binding to only one network interface for a given +274 /// address family. +275 /// +276 /// If the port specified is already in use, binding the endpoint will fail. Using +277 /// port `0` in the socket address assigns a random free port. +278 /// +279 /// # Example +280 /// +281 /// ```no_run +282 /// # #[tokio::main] +283 /// # async fn main() -> n0_error::Result<()> { +284 /// # use iroh::Endpoint; +285 /// let endpoint = Endpoint::builder() +286 /// .clear_ip_transports() +287 /// .bind_addr("127.0.0.1:0")? +288 /// .bind_addr("[::1]:0")? +289 /// .bind() +290 /// .await?; +291 /// # Ok(()) } +292 /// ``` +293 #[cfg(not(wasm_browser))] +294 pub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr> +295 where +296 A: ToSocketAddr, +297 <A as ToSocketAddr>::Err: Into<InvalidSocketAddr>, +298 { +299 self.bind_addr_with_opts(addr, BindOpts::default()) +300 } +301 +302 /// Binds an IP socket at the provided socket address. +303 /// +304 /// This is an advanced API to tightly control the sockets used by the endpoint. Most +305 /// uses do not need to explicitly bind sockets. +306 /// +307 /// # Warning +308 /// +309 /// - The builder always comes pre-configured with an IPv4 socket to be bound on the +310 /// *unspecified* address: `0.0.0.0`. This is the equivalent of using `INADDR_ANY` +311 /// special bind address and results in a socket listening on *all* interfaces +312 /// available. +313 /// +314 /// - Likewise the builder always comes pre-configured with an IPv6 socket to be bound +315 /// on the *unspecified* address: `[::]`. This bind is allowed to fail however. +316 /// +317 /// # Description +318 /// +319 /// Requests a socket to be bound on a specific address. This allows restricting binding +320 /// to only one network interface for a given address family. +321 /// +322 /// [`BindOpts::set_prefix_len`] **should** be used to configure the netmask of the +323 /// network interface. This allows outgoing datagrams that start a new network flow to +324 /// be sent over the socket which is attached to the subnet of the destination +325 /// address. If multiple sockets are bound the standard routing-table semantics are +326 /// used: the socket attached to the subnet with the longest prefix matching the +327 /// destination is used. Practically this means the smallest subnets are at the top of +328 /// the routing table, and the first subnet containing the destination address is +329 /// chosen. +330 /// +331 /// If no socket is bound to a subnet that contains the destination address, the notion +332 /// of "default route" is used. At most one socket per address family may be marked as +333 /// the default route using [`BindOpts::set_is_default_route`], and this will be used +334 /// for destinations not contained by the subnets of the bound sockets. This network is +335 /// expected to have a default gateway configured. A socket with a prefix length of `/0` +336 /// will be set as a "default route" implicitly, unless [`BindOpts::set_is_default_route`] +337 /// is set to `false` explicitly. 338 /// -339 /// To use a subnet with a non-zero prefix length as the default route in addition to -340 /// being routed when its prefix matches, use [`BindOpts::set_is_default_route]. -341 /// Subnets with a prefix length of zero are always marked as default routes. +339 /// Be aware that using a subnet with a prefix length of `/0` will always contain all +340 /// destination addresses. It is valid to configure this, but no more than one such +341 /// socket should be bound or the routing will be non-deterministic. 342 /// -343 /// Finally note that most outgoing datagrams are part of an existing network flow. That -344 /// is, they are in response to an incoming datagram. In this case the outgoing datagram -345 /// will be sent over the same socket as the incoming datagram was received on, and the -346 /// routing with the prefix length and default route as described above does not apply. -347 /// -348 /// Using port `0` in the socket address assigns a random free port. -349 /// -350 /// If the port specified is already in use, binding the endpoint will fail, unless -351 /// [`BindOpts::set_is_required`] is set to `false` -352 /// -353 /// # Example -354 /// ```no_run -355 /// # #[tokio::main] -356 /// # async fn main() -> n0_error::Result<()> { -357 /// # use iroh::{Endpoint, endpoint::BindOpts}; -358 /// let endpoint = Endpoint::builder() -359 /// .clear_ip_transports() -360 /// .bind_addr_with_opts("127.0.0.1:0", BindOpts::default().set_prefix_len(24))? -361 /// .bind_addr_with_opts("[::1]:0", BindOpts::default().set_prefix_len(48))? -362 /// .bind() -363 /// .await?; -364 /// # Ok(()) } -365 /// ``` -366 #[cfg(not(wasm_browser))] -367 pub fn bind_addr_with_opts<A>( -368 mut self, -369 addr: A, -370 opts: BindOpts, -371 ) -> Result<Self, InvalidSocketAddr> -372 where -373 A: ToSocketAddr, -374 <A as ToSocketAddr>::Err: Into<InvalidSocketAddr>, -375 { -376 let addr = addr.to_socket_addr().map_err(Into::into)?; -377 match addr { -378 SocketAddr::V4(addr) => { -379 if self -380 .transports -381 .iter() -382 .any(|t| t.is_ipv4_default() && t.is_user_defined()) -383 { -384 bail!(InvalidSocketAddr::DuplicateDefaultAddr); -385 } -386 -387 let ip_net = Ipv4Net::new(*addr.ip(), opts.prefix_len())?; -388 self.transports.push(TransportConfig::Ip { -389 config: IpConfig::V4 { -390 ip_net, -391 port: addr.port(), -392 is_required: opts.is_required(), -393 is_default: opts.is_default_route(), -394 }, -395 is_user_defined: true, -396 }); -397 } -398 SocketAddr::V6(addr) => { -399 if self -400 .transports -401 .iter() -402 .any(|t| t.is_ipv6_default() && t.is_user_defined()) -403 { -404 bail!(InvalidSocketAddr::DuplicateDefaultAddr); -405 } -406 -407 let ip_net = Ipv6Net::new(*addr.ip(), opts.prefix_len())?; -408 self.transports.push(TransportConfig::Ip { -409 config: IpConfig::V6 { -410 ip_net, -411 scope_id: addr.scope_id(), -412 port: addr.port(), -413 is_required: opts.is_required(), -414 is_default: opts.is_default_route(), -415 }, -416 is_user_defined: true, -417 }); -418 } -419 } -420 Ok(self) -421 } -422 -423 /// Removes all IP based transports. -424 #[cfg(not(wasm_browser))] -425 pub fn clear_ip_transports(mut self) -> Self { -426 self.transports -427 .retain(|t| !matches!(t, TransportConfig::Ip { .. })); -428 self -429 } -430 -431 /// Removes all relay based transports. -432 pub fn clear_relay_transports(mut self) -> Self { -433 self.transports -434 .retain(|t| !matches!(t, TransportConfig::Relay { .. })); -435 self -436 } -437 -438 /// Sets a secret key to authenticate with other peers. -439 /// -440 /// This secret key's public key will be the [`PublicKey`] of this endpoint and thus -441 /// also its [`EndpointId`] -442 /// -443 /// If not set, a new secret key will be generated. -444 /// -445 /// [`PublicKey`]: iroh_base::PublicKey -446 pub fn secret_key(mut self, secret_key: SecretKey) -> Self { -447 self.secret_key = Some(secret_key); -448 self -449 } -450 -451 /// Sets the [ALPN] protocols that this endpoint will accept on incoming connections. -452 /// -453 /// Not setting this will still allow creating connections, but to accept incoming -454 /// connections at least one [ALPN] must be set. -455 /// -456 /// [ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation -457 pub fn alpns(mut self, alpn_protocols: Vec<Vec<u8>>) -> Self { -458 self.alpn_protocols = alpn_protocols; -459 self -460 } -461 -462 // # Methods for common customisation items. -463 -464 /// Sets the relay servers to assist in establishing connectivity. -465 /// -466 /// Relay servers are used to establish initial connection with another iroh endpoint. -467 /// They also perform various functions related to hole punching, see the [crate docs] -468 /// for more details. +343 /// To use a subnet with a non-zero prefix length as the default route in addition to +344 /// being routed when its prefix matches, use [`BindOpts::set_is_default_route]. +345 /// Subnets with a prefix length of zero are always marked as default routes. +346 /// +347 /// Finally note that most outgoing datagrams are part of an existing network flow. That +348 /// is, they are in response to an incoming datagram. In this case the outgoing datagram +349 /// will be sent over the same socket as the incoming datagram was received on, and the +350 /// routing with the prefix length and default route as described above does not apply. +351 /// +352 /// Using port `0` in the socket address assigns a random free port. +353 /// +354 /// If the port specified is already in use, binding the endpoint will fail, unless +355 /// [`BindOpts::set_is_required`] is set to `false` +356 /// +357 /// # Example +358 /// ```no_run +359 /// # #[tokio::main] +360 /// # async fn main() -> n0_error::Result<()> { +361 /// # use iroh::{Endpoint, endpoint::BindOpts}; +362 /// let endpoint = Endpoint::builder() +363 /// .clear_ip_transports() +364 /// .bind_addr_with_opts("127.0.0.1:0", BindOpts::default().set_prefix_len(24))? +365 /// .bind_addr_with_opts("[::1]:0", BindOpts::default().set_prefix_len(48))? +366 /// .bind() +367 /// .await?; +368 /// # Ok(()) } +369 /// ``` +370 #[cfg(not(wasm_browser))] +371 pub fn bind_addr_with_opts<A>( +372 mut self, +373 addr: A, +374 opts: BindOpts, +375 ) -> Result<Self, InvalidSocketAddr> +376 where +377 A: ToSocketAddr, +378 <A as ToSocketAddr>::Err: Into<InvalidSocketAddr>, +379 { +380 let addr = addr.to_socket_addr().map_err(Into::into)?; +381 match addr { +382 SocketAddr::V4(addr) => { +383 if self +384 .transports +385 .iter() +386 .any(|t| t.is_ipv4_default() && t.is_user_defined()) +387 { +388 bail!(InvalidSocketAddr::DuplicateDefaultAddr); +389 } +390 +391 let ip_net = Ipv4Net::new(*addr.ip(), opts.prefix_len())?; +392 self.transports.push(TransportConfig::Ip { +393 config: IpConfig::V4 { +394 ip_net, +395 port: addr.port(), +396 is_required: opts.is_required(), +397 is_default: opts.is_default_route(), +398 }, +399 is_user_defined: true, +400 }); +401 } +402 SocketAddr::V6(addr) => { +403 if self +404 .transports +405 .iter() +406 .any(|t| t.is_ipv6_default() && t.is_user_defined()) +407 { +408 bail!(InvalidSocketAddr::DuplicateDefaultAddr); +409 } +410 +411 let ip_net = Ipv6Net::new(*addr.ip(), opts.prefix_len())?; +412 self.transports.push(TransportConfig::Ip { +413 config: IpConfig::V6 { +414 ip_net, +415 scope_id: addr.scope_id(), +416 port: addr.port(), +417 is_required: opts.is_required(), +418 is_default: opts.is_default_route(), +419 }, +420 is_user_defined: true, +421 }); +422 } +423 } +424 Ok(self) +425 } +426 +427 /// Removes all IP based transports. +428 #[cfg(not(wasm_browser))] +429 pub fn clear_ip_transports(mut self) -> Self { +430 self.transports +431 .retain(|t| !matches!(t, TransportConfig::Ip { .. })); +432 self +433 } +434 +435 /// Removes all relay based transports. +436 pub fn clear_relay_transports(mut self) -> Self { +437 self.transports +438 .retain(|t| !matches!(t, TransportConfig::Relay { .. })); +439 self +440 } +441 +442 /// Sets a secret key to authenticate with other peers. +443 /// +444 /// This secret key's public key will be the [`PublicKey`] of this endpoint and thus +445 /// also its [`EndpointId`] +446 /// +447 /// If not set, a new secret key will be generated. +448 /// +449 /// [`PublicKey`]: iroh_base::PublicKey +450 pub fn secret_key(mut self, secret_key: SecretKey) -> Self { +451 self.secret_key = Some(secret_key); +452 self +453 } +454 +455 /// Sets the [ALPN] protocols that this endpoint will accept on incoming connections. +456 /// +457 /// Not setting this will still allow creating connections, but to accept incoming +458 /// connections at least one [ALPN] must be set. +459 /// +460 /// [ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation +461 pub fn alpns(mut self, alpn_protocols: Vec<Vec<u8>>) -> Self { +462 self.alpn_protocols = alpn_protocols; +463 self +464 } +465 +466 // # Methods for common customisation items. +467 +468 /// Sets the relay servers to assist in establishing connectivity. 469 /// -470 /// By default the [number 0] relay servers are used, see [`RelayMode::Default`]. -471 /// -472 /// When using [RelayMode::Custom], the provided `relay_map` must contain at least one -473 /// configured relay endpoint. If an invalid RelayMap is provided [`bind`] -474 /// will result in an error. +470 /// Relay servers are used to establish initial connection with another iroh endpoint. +471 /// They also perform various functions related to hole punching, see the [crate docs] +472 /// for more details. +473 /// +474 /// By default the [number 0] relay servers are used, see [`RelayMode::Default`]. 475 /// -476 /// [`bind`]: Builder::bind -477 /// [crate docs]: crate -478 /// [number 0]: https://n0.computer -479 pub fn relay_mode(mut self, relay_mode: RelayMode) -> Self { -480 let transport: Option<_> = relay_mode.into(); -481 match transport { -482 Some(transport) => { -483 if let Some(og) = self -484 .transports -485 .iter_mut() -486 .find(|t| matches!(t, TransportConfig::Relay { .. })) -487 { -488 *og = transport; -489 } else { -490 self.transports.push(transport); -491 } -492 } -493 None => { -494 self.transports -495 .retain(|t| !matches!(t, TransportConfig::Relay { .. })); +476 /// When using [RelayMode::Custom], the provided `relay_map` must contain at least one +477 /// configured relay endpoint. If an invalid RelayMap is provided [`bind`] +478 /// will result in an error. +479 /// +480 /// [`bind`]: Builder::bind +481 /// [crate docs]: crate +482 /// [number 0]: https://n0.computer +483 pub fn relay_mode(mut self, relay_mode: RelayMode) -> Self { +484 let transport: Option<_> = relay_mode.into(); +485 match transport { +486 Some(transport) => { +487 if let Some(og) = self +488 .transports +489 .iter_mut() +490 .find(|t| matches!(t, TransportConfig::Relay { .. })) +491 { +492 *og = transport; +493 } else { +494 self.transports.push(transport); +495 } 496 } -497 } -498 self -499 } -500 -501 /// Removes all Address Lookup services from the builder. -502 /// -503 /// If no Address Lookup is set, connecting to an endpoint without providing its -504 /// direct addresses or relay URLs will fail. -505 /// -506 /// See the documentation of the [`crate::address_lookup::AddressLookup`] trait for details. -507 pub fn clear_address_lookup(mut self) -> Self { -508 self.address_lookup.clear(); -509 self -510 } -511 -512 /// Adds an additional Address Lookup for this endpoint. -513 /// -514 /// Once the endpoint is created the provided [`IntoAddressLookup::into_address_lookup`] will be -515 /// called. This allows Address Lookup's to finalize their configuration by e.g. using -516 /// the secret key from the endpoint which can be needed to sign published information. +497 None => { +498 self.transports +499 .retain(|t| !matches!(t, TransportConfig::Relay { .. })); +500 } +501 } +502 self +503 } +504 +505 /// Removes all Address Lookup services from the builder. +506 /// +507 /// If no Address Lookup is set, connecting to an endpoint without providing its +508 /// direct addresses or relay URLs will fail. +509 /// +510 /// See the documentation of the [`crate::address_lookup::AddressLookup`] trait for details. +511 pub fn clear_address_lookup(mut self) -> Self { +512 self.address_lookup.clear(); +513 self +514 } +515 +516 /// Adds an additional Address Lookup for this endpoint. 517 /// -518 /// This method can be called multiple times and all the Address Lookup's passed in -519 /// will be combined using an internal instance of the -520 /// [`crate::address_lookup::ConcurrentAddressLookup`]. To clear all Address Lookup's, use -521 /// [`Self::clear_address_lookup`]. -522 /// -523 /// If no Address Lookup is set, connecting to an endpoint without providing its -524 /// direct addresses or relay URLs will fail. -525 /// -526 /// See the documentation of the [`crate::address_lookup::AddressLookup`] trait for details. -527 pub fn address_lookup(mut self, address_lookup: impl IntoAddressLookup) -> Self { -528 self.address_lookup.push(Box::new(address_lookup)); -529 self -530 } -531 -532 /// Sets the initial user-defined data to be published in Address Lookup's for this node. -533 /// -534 /// When using Address Lookup's, this string of [`UserData`] will be published together -535 /// with the endpoint's addresses and relay URL. When other endpoints discover this endpoint, -536 /// they retrieve the [`UserData`] in addition to the addressing info. +518 /// Once the endpoint is created the provided [`AddressLookupBuilder::into_address_lookup`] will be +519 /// called. This allows Address Lookup's to finalize their configuration by e.g. using +520 /// the secret key from the endpoint which can be needed to sign published information. +521 /// +522 /// This method can be called multiple times and all the Address Lookup's passed in +523 /// will be combined using an internal instance of the +524 /// [`crate::address_lookup::ConcurrentAddressLookup`]. To clear all Address Lookup's, use +525 /// [`Self::clear_address_lookup`]. +526 /// +527 /// If no Address Lookup is set, connecting to an endpoint without providing its +528 /// direct addresses or relay URLs will fail. +529 /// +530 /// See the documentation of the [`crate::address_lookup::AddressLookup`] trait for details. +531 pub fn address_lookup(mut self, address_lookup: impl AddressLookupBuilder) -> Self { +532 self.address_lookup.push(Box::new(address_lookup)); +533 self +534 } +535 +536 /// Sets the initial user-defined data to be published in Address Lookup's for this node. 537 /// -538 /// Iroh itself does not interpret the user-defined data in any way, it is purely left -539 /// for applications to parse and use. -540 pub fn user_data_for_address_lookup(mut self, user_data: UserData) -> Self { -541 self.address_lookup_user_data = Some(user_data); -542 self -543 } -544 -545 // # Methods for more specialist customisation. -546 -547 /// Sets a custom [`QuicTransportConfig`] for this endpoint. -548 /// -549 /// The transport config contains parameters governing the QUIC state machine. -550 /// -551 /// If unset, the default config is used. Default values should be suitable for most -552 /// internet applications. Applications protocols which forbid remotely-initiated -553 /// streams should set `max_concurrent_bidi_streams` and `max_concurrent_uni_streams` to -554 /// zero. -555 /// -556 /// Please be aware that changing some settings may have adverse effects on establishing -557 /// and maintaining direct connections. -558 pub fn transport_config(mut self, transport_config: QuicTransportConfig) -> Self { -559 self.transport_config = transport_config; -560 self -561 } -562 -563 /// Optionally sets a custom DNS resolver to use for this endpoint. -564 /// -565 /// The DNS resolver is used to resolve relay hostnames, and endpoint addresses if -566 /// [`crate::address_lookup::DnsAddressLookup`] is configured. -567 /// -568 /// By default, a new DNS resolver is created which is configured to use the -569 /// host system's DNS configuration. You can pass a custom instance of [`DnsResolver`] -570 /// here to use a differently configured DNS resolver for this endpoint, or to share -571 /// a [`DnsResolver`] between multiple endpoints. -572 #[cfg(not(wasm_browser))] -573 pub fn dns_resolver(mut self, dns_resolver: DnsResolver) -> Self { -574 self.dns_resolver = Some(dns_resolver); -575 self -576 } -577 -578 /// Sets an explicit proxy url to proxy all HTTP(S) traffic through. -579 pub fn proxy_url(mut self, url: Url) -> Self { -580 self.proxy_url.replace(url); -581 self -582 } -583 -584 /// Sets the proxy url from the environment, in this order: -585 /// -586 /// - `HTTP_PROXY` -587 /// - `http_proxy` -588 /// - `HTTPS_PROXY` -589 /// - `https_proxy` -590 pub fn proxy_from_env(mut self) -> Self { -591 self.proxy_url = proxy_url_from_env(); -592 self -593 } -594 -595 /// Enables saving the TLS pre-master key for connections. -596 /// -597 /// This key should normally remain secret but can be useful to debug networking issues -598 /// by decrypting captured traffic. -599 /// -600 /// If *keylog* is `true` then setting the `SSLKEYLOGFILE` environment variable to a -601 /// filename will result in this file being used to log the TLS pre-master keys. -602 pub fn keylog(mut self, keylog: bool) -> Self { -603 self.keylog = keylog; -604 self -605 } -606 -607 /// Skip verification of SSL certificates from relay servers -608 /// -609 /// May only be used in tests. -610 #[cfg(any(test, feature = "test-utils"))] -611 pub fn insecure_skip_relay_cert_verify(mut self, skip_verify: bool) -> Self { -612 self.insecure_skip_relay_cert_verify = skip_verify; -613 self -614 } -615 -616 /// Set the maximum number of TLS tickets to cache. -617 /// -618 /// Set this to a larger value if you want to do 0rtt connections to a large -619 /// number of clients. -620 /// -621 /// The default is 256, taking about 150 KiB in memory. -622 pub fn max_tls_tickets(mut self, n: usize) -> Self { -623 self.max_tls_tickets = n; -624 self -625 } -626 -627 /// Install hooks onto the endpoint. -628 /// -629 /// Endpoint hooks intercept the connection establishment process of an [`Endpoint`]. -630 /// -631 /// You can install multiple [`EndpointHooks`] by calling this function multiple times. -632 /// Order matters: hooks are invoked in the order they were installed onto the endpoint -633 /// builder. Once a hook returns reject, further processing -634 /// is aborted and other hooks won't be invoked. +538 /// When using Address Lookup's, this string of [`UserData`] will be published together +539 /// with the endpoint's addresses and relay URL. When other endpoints discover this endpoint, +540 /// they retrieve the [`UserData`] in addition to the addressing info. +541 /// +542 /// Iroh itself does not interpret the user-defined data in any way, it is purely left +543 /// for applications to parse and use. +544 pub fn user_data_for_address_lookup(mut self, user_data: UserData) -> Self { +545 self.address_lookup_user_data = Some(user_data); +546 self +547 } +548 +549 // # Methods for more specialist customisation. +550 +551 /// Sets a custom [`QuicTransportConfig`] for this endpoint. +552 /// +553 /// The transport config contains parameters governing the QUIC state machine. +554 /// +555 /// If unset, the default config is used. Default values should be suitable for most +556 /// internet applications. Applications protocols which forbid remotely-initiated +557 /// streams should set `max_concurrent_bidi_streams` and `max_concurrent_uni_streams` to +558 /// zero. +559 /// +560 /// Please be aware that changing some settings may have adverse effects on establishing +561 /// and maintaining direct connections. +562 pub fn transport_config(mut self, transport_config: QuicTransportConfig) -> Self { +563 self.transport_config = transport_config; +564 self +565 } +566 +567 /// Optionally sets a custom DNS resolver to use for this endpoint. +568 /// +569 /// The DNS resolver is used to resolve relay hostnames, and endpoint addresses if +570 /// [`crate::address_lookup::DnsAddressLookup`] is configured. +571 /// +572 /// By default, a new DNS resolver is created which is configured to use the +573 /// host system's DNS configuration. You can pass a custom instance of [`DnsResolver`] +574 /// here to use a differently configured DNS resolver for this endpoint, or to share +575 /// a [`DnsResolver`] between multiple endpoints. +576 #[cfg(not(wasm_browser))] +577 pub fn dns_resolver(mut self, dns_resolver: DnsResolver) -> Self { +578 self.dns_resolver = Some(dns_resolver); +579 self +580 } +581 +582 /// Sets an explicit proxy url to proxy all HTTP(S) traffic through. +583 pub fn proxy_url(mut self, url: Url) -> Self { +584 self.proxy_url.replace(url); +585 self +586 } +587 +588 /// Sets the proxy url from the environment, in this order: +589 /// +590 /// - `HTTP_PROXY` +591 /// - `http_proxy` +592 /// - `HTTPS_PROXY` +593 /// - `https_proxy` +594 pub fn proxy_from_env(mut self) -> Self { +595 self.proxy_url = proxy_url_from_env(); +596 self +597 } +598 +599 /// Sets the trusted CA root certificates for non-iroh TLS connections. +600 /// +601 /// These Certificate Authority roots are used as trust anchors for verifying +602 /// the validity of TLS certificates presented by external services, such as +603 /// iroh relays, pkarr servers, or DNS-over-HTTPS resolvers. +604 /// They don't need to be trusted for the integrity or authenticity of native +605 /// iroh connections, which rely on iroh's own cryptographic authentication mechanisms. +606 pub fn ca_roots_config(mut self, ca_roots_config: CaRootsConfig) -> Self { +607 self.ca_roots_config = Some(ca_roots_config); +608 self +609 } +610 +611 /// Enables saving the TLS pre-master key for connections. +612 /// +613 /// This key should normally remain secret but can be useful to debug networking issues +614 /// by decrypting captured traffic. +615 /// +616 /// If *keylog* is `true` then setting the `SSLKEYLOGFILE` environment variable to a +617 /// filename will result in this file being used to log the TLS pre-master keys. +618 pub fn keylog(mut self, keylog: bool) -> Self { +619 self.keylog = keylog; +620 self +621 } +622 +623 /// Set the maximum number of TLS tickets to cache. +624 /// +625 /// Set this to a larger value if you want to do 0rtt connections to a large +626 /// number of clients. +627 /// +628 /// The default is 256, taking about 150 KiB in memory. +629 pub fn max_tls_tickets(mut self, n: usize) -> Self { +630 self.max_tls_tickets = n; +631 self +632 } +633 +634 /// Install hooks onto the endpoint. 635 /// -636 /// See [`EndpointHooks`] for details on the possible interception points in the connection lifecycle. -637 pub fn hooks(mut self, hooks: impl EndpointHooks + 'static) -> Self { -638 self.hooks.push(hooks); -639 self -640 } -641} -642 -643#[allow(missing_docs)] -644#[stack_error(derive, add_meta)] -645#[non_exhaustive] -646pub enum EndpointError { -647 #[error("Endpoint is closed")] -648 Closed, -649} -650 -651/// Controls an iroh endpoint, establishing connections with other endpoints. -652/// -653/// This is the main API interface to create connections to, and accept connections from -654/// other iroh endpoints. The connections are peer-to-peer and encrypted, a Relay server is -655/// used to make the connections reliable. See the [crate docs] for a more detailed -656/// overview of iroh. -657/// -658/// It is recommended to only create a single instance per application. This ensures all -659/// the connections made share the same peer-to-peer connections to other iroh endpoints, -660/// while still remaining independent connections. This will result in more optimal network -661/// behaviour. -662/// -663/// The endpoint is created using the [`Builder`], which can be created using -664/// [`Endpoint::builder`]. -665/// -666/// Once an endpoint exists, new connections are typically created using the -667/// [`Endpoint::connect`] and [`Endpoint::accept`] methods. Once established, the -668/// [`Connection`] gives access to most [QUIC] features. Individual streams to send data to -669/// the peer are created using the [`Connection::open_bi`], [`Connection::accept_bi`], -670/// [`Connection::open_uni`] and [`Connection::open_bi`] functions. -671/// -672/// Note that due to the light-weight properties of streams a stream will only be accepted -673/// once the initiating peer has sent some data on it. -674/// -675/// [QUIC]: https://quicwg.org -676#[derive(Clone, Debug)] -677pub struct Endpoint { -678 inner: Arc<EndpointInner>, -679} -680 -681#[allow(missing_docs)] -682#[stack_error(derive, add_meta, from_sources)] -683#[non_exhaustive] -684#[allow(private_interfaces)] -685pub enum ConnectWithOptsError { -686 #[error("Connecting to ourself is not supported")] -687 SelfConnect, -688 #[error("No addressing information available")] -689 NoAddress { source: AddressLookupError }, -690 #[error("Unable to connect to remote")] -691 Quinn { -692 #[error(std_err)] -693 source: QuicConnectError, -694 }, -695 #[error("Internal consistency error")] -696 InternalConsistencyError { -697 /// Private source type, cannot be created publicly. -698 source: RemoteStateActorStoppedError, -699 }, -700 #[error("Connection was rejected locally")] -701 LocallyRejected, -702 #[error("Endpoint is closed")] -703 EndpointClosed, -704} -705 -706#[allow(missing_docs)] -707#[stack_error(derive, add_meta, from_sources)] -708#[non_exhaustive] -709pub enum ConnectError { -710 #[error(transparent)] -711 Connect { source: ConnectWithOptsError }, -712 #[error(transparent)] -713 Connecting { source: ConnectingError }, -714 #[error(transparent)] -715 Connection { -716 #[error(std_err)] -717 source: ConnectionError, -718 }, -719} -720 -721impl Endpoint { -722 // The ordering of public methods is reflected directly in the documentation. This is -723 // roughly ordered by what is most commonly needed by users, but grouped in similar -724 // items. -725 -726 // # Methods relating to construction. +636 /// Endpoint hooks intercept the connection establishment process of an [`Endpoint`]. +637 /// +638 /// You can install multiple [`EndpointHooks`] by calling this function multiple times. +639 /// Order matters: hooks are invoked in the order they were installed onto the endpoint +640 /// builder. Once a hook returns reject, further processing +641 /// is aborted and other hooks won't be invoked. +642 /// +643 /// See [`EndpointHooks`] for details on the possible interception points in the connection lifecycle. +644 pub fn hooks(mut self, hooks: impl EndpointHooks + 'static) -> Self { +645 self.hooks.push(hooks); +646 self +647 } +648} +649 +650#[allow(missing_docs)] +651#[stack_error(derive, add_meta)] +652#[non_exhaustive] +653pub enum EndpointError { +654 #[error("Endpoint is closed")] +655 Closed, +656} +657 +658/// Controls an iroh endpoint, establishing connections with other endpoints. +659/// +660/// This is the main API interface to create connections to, and accept connections from +661/// other iroh endpoints. The connections are peer-to-peer and encrypted, a Relay server is +662/// used to make the connections reliable. See the [crate docs] for a more detailed +663/// overview of iroh. +664/// +665/// It is recommended to only create a single instance per application. This ensures all +666/// the connections made share the same peer-to-peer connections to other iroh endpoints, +667/// while still remaining independent connections. This will result in more optimal network +668/// behaviour. +669/// +670/// The endpoint is created using the [`Builder`], which can be created using +671/// [`Endpoint::builder`]. +672/// +673/// Once an endpoint exists, new connections are typically created using the +674/// [`Endpoint::connect`] and [`Endpoint::accept`] methods. Once established, the +675/// [`Connection`] gives access to most [QUIC] features. Individual streams to send data to +676/// the peer are created using the [`Connection::open_bi`], [`Connection::accept_bi`], +677/// [`Connection::open_uni`] and [`Connection::open_bi`] functions. +678/// +679/// Note that due to the light-weight properties of streams a stream will only be accepted +680/// once the initiating peer has sent some data on it. +681/// +682/// [QUIC]: https://quicwg.org +683#[derive(Clone, Debug)] +684pub struct Endpoint { +685 inner: Arc<EndpointInner>, +686} +687 +688#[allow(missing_docs)] +689#[stack_error(derive, add_meta, from_sources)] +690#[non_exhaustive] +691#[allow(private_interfaces)] +692pub enum ConnectWithOptsError { +693 #[error("Connecting to ourself is not supported")] +694 SelfConnect, +695 #[error("No addressing information available")] +696 NoAddress { source: AddressLookupError }, +697 #[error("Unable to connect to remote")] +698 Quinn { +699 #[error(std_err)] +700 source: QuicConnectError, +701 }, +702 #[error("Internal consistency error")] +703 InternalConsistencyError { +704 /// Private source type, cannot be created publicly. +705 source: RemoteStateActorStoppedError, +706 }, +707 #[error("Connection was rejected locally")] +708 LocallyRejected, +709 #[error("Endpoint is closed")] +710 EndpointClosed, +711} +712 +713#[allow(missing_docs)] +714#[stack_error(derive, add_meta, from_sources)] +715#[non_exhaustive] +716pub enum ConnectError { +717 #[error(transparent)] +718 Connect { source: ConnectWithOptsError }, +719 #[error(transparent)] +720 Connecting { source: ConnectingError }, +721 #[error(transparent)] +722 Connection { +723 #[error(std_err)] +724 source: ConnectionError, +725 }, +726} 727 -728 /// Returns the builder for an [`Endpoint`], with a production configuration. -729 /// -730 /// This uses the [`presets::N0`] as the configuration. -731 pub fn builder() -> Builder { -732 Builder::new(presets::N0) -733 } +728impl Endpoint { +729 // The ordering of public methods is reflected directly in the documentation. This is +730 // roughly ordered by what is most commonly needed by users, but grouped in similar +731 // items. +732 +733 // # Methods relating to construction. 734 -735 /// Returns the builder for an [`Endpoint`], with an empty configuration. +735 /// Returns the builder for an [`Endpoint`], with a production configuration. 736 /// -737 /// See [`Builder::empty`] for details. -738 pub fn empty_builder(relay_mode: RelayMode) -> Builder { -739 Builder::empty(relay_mode) +737 /// This uses the [`presets::N0`] as the configuration. +738 pub fn builder() -> Builder { +739 Builder::new(presets::N0) 740 } 741 -742 /// Constructs a default [`Endpoint`] and binds it immediately. +742 /// Returns the builder for an [`Endpoint`], with an empty configuration. 743 /// -744 /// Uses the [`presets::N0`] as configuration. -745 pub async fn bind() -> Result<Self, BindError> { -746 Self::builder().bind().await -747 } +744 /// See [`Builder::empty`] for details. +745 pub fn empty_builder(relay_mode: RelayMode) -> Builder { +746 Builder::empty(relay_mode) +747 } 748 -749 /// Sets the list of accepted ALPN protocols. +749 /// Constructs a default [`Endpoint`] and binds it immediately. 750 /// -751 /// This will only affect new incoming connections. -752 /// Note that this *overrides* the current list of ALPNs. -753 /// -754 /// If the endpoint is closed, this method will log a warning and ignore -755 /// the request to set new ALPNs. -756 pub fn set_alpns(&self, alpns: Vec<Vec<u8>>) { -757 if self.is_closed() { -758 warn!("Attempting to set ALPNs for a closed endpoint. Ignoring."); -759 return; -760 } -761 let server_config = self.inner.static_config.create_server_config(alpns); -762 self.inner -763 .quinn_endpoint() -764 .set_server_config(Some(server_config)); -765 } -766 -767 /// Adds the provided configuration to the [`RelayMap`]. -768 /// -769 /// Replacing and returning any existing configuration for [`RelayUrl`]. -770 /// -771 /// Will also return `None` if the endpoint is closed. -772 pub async fn insert_relay( -773 &self, -774 relay: RelayUrl, -775 config: Arc<RelayConfig>, -776 ) -> Option<Arc<RelayConfig>> { -777 if self.is_closed() { -778 return None; -779 } -780 self.inner.insert_relay(relay, config).await -781 } -782 -783 /// Removes the configuration from the [`RelayMap`] for the provided [`RelayUrl`]. -784 /// -785 /// Returns any existing configuration if it exists. Will also return `None` if the endpoint is closed. -786 pub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>> { -787 if self.is_closed() { -788 return None; -789 } -790 self.inner.remove_relay(relay).await -791 } -792 -793 // # Methods for establishing connectivity. -794 -795 /// Connects to a remote [`Endpoint`]. -796 /// -797 /// A value that can be converted into an [`EndpointAddr`] is required. This can be either an -798 /// [`EndpointAddr`] or an [`EndpointId`]. -799 /// -800 /// The [`EndpointAddr`] must contain the [`EndpointId`] to dial and may also contain a [`RelayUrl`] -801 /// and direct addresses. If direct addresses are provided, they will be used to try and -802 /// establish a direct connection without involving a relay server. +751 /// Uses the [`presets::N0`] as configuration. +752 pub async fn bind() -> Result<Self, BindError> { +753 Self::builder().bind().await +754 } +755 +756 /// Sets the list of accepted ALPN protocols. +757 /// +758 /// This will only affect new incoming connections. +759 /// Note that this *overrides* the current list of ALPNs. +760 /// +761 /// If the endpoint is closed, this method will log a warning and ignore +762 /// the request to set new ALPNs. +763 pub fn set_alpns(&self, alpns: Vec<Vec<u8>>) { +764 if self.is_closed() { +765 warn!("Attempting to set ALPNs for a closed endpoint. Ignoring."); +766 return; +767 } +768 let server_config = self.inner.static_config.create_server_config(alpns); +769 self.inner +770 .quinn_endpoint() +771 .set_server_config(Some(server_config)); +772 } +773 +774 /// Adds the provided configuration to the [`RelayMap`]. +775 /// +776 /// Replacing and returning any existing configuration for [`RelayUrl`]. +777 /// +778 /// Will also return `None` if the endpoint is closed. +779 pub async fn insert_relay( +780 &self, +781 relay: RelayUrl, +782 config: Arc<RelayConfig>, +783 ) -> Option<Arc<RelayConfig>> { +784 if self.is_closed() { +785 return None; +786 } +787 self.inner.insert_relay(relay, config).await +788 } +789 +790 /// Removes the configuration from the [`RelayMap`] for the provided [`RelayUrl`]. +791 /// +792 /// Returns any existing configuration if it exists. Will also return `None` if the endpoint is closed. +793 pub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>> { +794 if self.is_closed() { +795 return None; +796 } +797 self.inner.remove_relay(relay).await +798 } +799 +800 // # Methods for establishing connectivity. +801 +802 /// Connects to a remote [`Endpoint`]. 803 /// -804 /// If neither a [`RelayUrl`] or direct addresses are configured in the [`EndpointAddr`] it -805 /// may still be possible a connection can be established. This depends on which, if any, -806 /// [`crate::address_lookup::AddressLookup`]s were configured using [`Builder::address_lookup`]. The Address Lookup -807 /// service will also be used if the remote endpoint is not reachable on the provided direct -808 /// addresses and there is no [`RelayUrl`]. -809 /// -810 /// If addresses or relay servers are neither provided nor can be discovered, the -811 /// connection attempt will fail with an error. -812 /// -813 /// The `alpn`, or application-level protocol identifier, is also required. The remote -814 /// endpoint must support this `alpn`, otherwise the connection attempt will fail with -815 /// an error. +804 /// A value that can be converted into an [`EndpointAddr`] is required. This can be either an +805 /// [`EndpointAddr`] or an [`EndpointId`]. +806 /// +807 /// The [`EndpointAddr`] must contain the [`EndpointId`] to dial and may also contain a [`RelayUrl`] +808 /// and direct addresses. If direct addresses are provided, they will be used to try and +809 /// establish a direct connection without involving a relay server. +810 /// +811 /// If neither a [`RelayUrl`] or direct addresses are configured in the [`EndpointAddr`] it +812 /// may still be possible a connection can be established. This depends on which, if any, +813 /// [`crate::address_lookup::AddressLookup`]s were configured using [`Builder::address_lookup`]. The Address Lookup +814 /// service will also be used if the remote endpoint is not reachable on the provided direct +815 /// addresses and there is no [`RelayUrl`]. 816 /// -817 /// [`RelayUrl`]: crate::RelayUrl -818 pub async fn connect( -819 &self, -820 endpoint_addr: impl Into<EndpointAddr>, -821 alpn: &[u8], -822 ) -> Result<Connection, ConnectError> { -823 let endpoint_addr = endpoint_addr.into(); -824 let remote = endpoint_addr.id; -825 let connecting = self -826 .connect_with_opts(endpoint_addr, alpn, Default::default()) -827 .await?; -828 let conn = connecting.await?; -829 -830 debug!( -831 me = %self.id().fmt_short(), -832 remote = %remote.fmt_short(), -833 alpn = %String::from_utf8_lossy(alpn), -834 "Connection established." -835 ); -836 Ok(conn) -837 } -838 -839 /// Starts a connection attempt with a remote [`Endpoint`]. -840 /// -841 /// Like [`Endpoint::connect`] (see also its docs for general details), but allows for a more -842 /// advanced connection setup with more customization in two aspects: -843 /// 1. The returned future resolves to a [`Connecting`], which can be further processed into -844 /// a [`Connection`] by awaiting, or alternatively allows connecting with 0-RTT via -845 /// [`Connecting::into_0rtt`]. -846 /// **Note:** Please read the documentation for `into_0rtt` carefully to assess -847 /// security concerns. -848 /// 2. The [`QuicTransportConfig`] for the connection can be modified via the provided -849 /// [`ConnectOptions`]. -850 /// **Note:** Please be aware that changing transport config settings may have adverse effects on -851 /// establishing and maintaining direct connections. Carefully test settings you use and -852 /// consider this currently as still rather experimental. -853 #[instrument(name = "connect", skip_all, fields( -854 me = %self.id().fmt_short(), -855 remote = tracing::field::Empty, -856 alpn = String::from_utf8_lossy(alpn).to_string(), -857 ))] -858 pub async fn connect_with_opts( -859 &self, -860 endpoint_addr: impl Into<EndpointAddr>, -861 alpn: &[u8], -862 options: ConnectOptions, -863 ) -> Result<Connecting, ConnectWithOptsError> { -864 if self.is_closed() { -865 return Err(e!(ConnectWithOptsError::EndpointClosed)); -866 } -867 let endpoint_addr: EndpointAddr = endpoint_addr.into(); -868 if let BeforeConnectOutcome::Reject = -869 self.inner.hooks.before_connect(&endpoint_addr, alpn).await -870 { -871 return Err(e!(ConnectWithOptsError::LocallyRejected)); -872 } -873 let endpoint_id = endpoint_addr.id; -874 -875 tracing::Span::current().record("remote", tracing::field::display(endpoint_id.fmt_short())); -876 -877 // Connecting to ourselves is not supported. -878 ensure!(endpoint_id != self.id(), ConnectWithOptsError::SelfConnect); -879 -880 trace!( -881 dst_endpoint_id = %endpoint_id.fmt_short(), -882 relay_url = ?endpoint_addr.relay_urls().next().cloned(), -883 ip_addresses = ?endpoint_addr.ip_addrs().cloned().collect::<Vec<_>>(), -884 "connecting", -885 ); +817 /// If addresses or relay servers are neither provided nor can be discovered, the +818 /// connection attempt will fail with an error. +819 /// +820 /// The `alpn`, or application-level protocol identifier, is also required. The remote +821 /// endpoint must support this `alpn`, otherwise the connection attempt will fail with +822 /// an error. +823 /// +824 /// [`RelayUrl`]: crate::RelayUrl +825 pub async fn connect( +826 &self, +827 endpoint_addr: impl Into<EndpointAddr>, +828 alpn: &[u8], +829 ) -> Result<Connection, ConnectError> { +830 let endpoint_addr = endpoint_addr.into(); +831 let remote = endpoint_addr.id; +832 let connecting = self +833 .connect_with_opts(endpoint_addr, alpn, Default::default()) +834 .await?; +835 let conn = connecting.await?; +836 +837 debug!( +838 me = %self.id().fmt_short(), +839 remote = %remote.fmt_short(), +840 alpn = %String::from_utf8_lossy(alpn), +841 "Connection established." +842 ); +843 Ok(conn) +844 } +845 +846 /// Starts a connection attempt with a remote [`Endpoint`]. +847 /// +848 /// Like [`Endpoint::connect`] (see also its docs for general details), but allows for a more +849 /// advanced connection setup with more customization in two aspects: +850 /// 1. The returned future resolves to a [`Connecting`], which can be further processed into +851 /// a [`Connection`] by awaiting, or alternatively allows connecting with 0-RTT via +852 /// [`Connecting::into_0rtt`]. +853 /// **Note:** Please read the documentation for `into_0rtt` carefully to assess +854 /// security concerns. +855 /// 2. The [`QuicTransportConfig`] for the connection can be modified via the provided +856 /// [`ConnectOptions`]. +857 /// **Note:** Please be aware that changing transport config settings may have adverse effects on +858 /// establishing and maintaining direct connections. Carefully test settings you use and +859 /// consider this currently as still rather experimental. +860 #[instrument(name = "connect", skip_all, fields( +861 me = %self.id().fmt_short(), +862 remote = tracing::field::Empty, +863 alpn = String::from_utf8_lossy(alpn).to_string(), +864 ))] +865 pub async fn connect_with_opts( +866 &self, +867 endpoint_addr: impl Into<EndpointAddr>, +868 alpn: &[u8], +869 options: ConnectOptions, +870 ) -> Result<Connecting, ConnectWithOptsError> { +871 if self.is_closed() { +872 return Err(e!(ConnectWithOptsError::EndpointClosed)); +873 } +874 let endpoint_addr: EndpointAddr = endpoint_addr.into(); +875 if let BeforeConnectOutcome::Reject = +876 self.inner.hooks.before_connect(&endpoint_addr, alpn).await +877 { +878 return Err(e!(ConnectWithOptsError::LocallyRejected)); +879 } +880 let endpoint_id = endpoint_addr.id; +881 +882 tracing::Span::current().record("remote", tracing::field::display(endpoint_id.fmt_short())); +883 +884 // Connecting to ourselves is not supported. +885 ensure!(endpoint_id != self.id(), ConnectWithOptsError::SelfConnect); 886 -887 let mapped_addr = self.inner.resolve_remote(endpoint_addr).await??; -888 -889 let transport_config = options -890 .transport_config -891 .map(|cfg| cfg.to_inner_arc()) -892 .unwrap_or(self.inner.static_config.transport_config.to_inner_arc()); +887 trace!( +888 dst_endpoint_id = %endpoint_id.fmt_short(), +889 relay_url = ?endpoint_addr.relay_urls().next().cloned(), +890 ip_addresses = ?endpoint_addr.ip_addrs().cloned().collect::<Vec<_>>(), +891 "connecting", +892 ); 893 -894 // Start connecting via quinn. This will time out after 10 seconds if no reachable -895 // address is available. -896 -897 let client_config = { -898 let mut alpn_protocols = vec![alpn.to_vec()]; -899 alpn_protocols.extend(options.additional_alpns); -900 let quic_client_config = self -901 .inner -902 .static_config -903 .tls_config -904 .make_client_config(alpn_protocols, self.inner.static_config.keylog); -905 let mut client_config = quinn::ClientConfig::new(Arc::new(quic_client_config)); -906 client_config.transport_config(transport_config.clone()); -907 client_config -908 }; -909 -910 let dest_addr = mapped_addr.private_socket_addr(); -911 let server_name = &tls::name::encode(endpoint_id); -912 let connect = -913 self.inner -914 .quinn_endpoint() -915 .connect_with(client_config, dest_addr, server_name)?; +894 let mapped_addr = self.inner.resolve_remote(endpoint_addr).await??; +895 +896 let transport_config = options +897 .transport_config +898 .map(|cfg| cfg.to_inner_arc()) +899 .unwrap_or(self.inner.static_config.transport_config.to_inner_arc()); +900 +901 // Start connecting via quinn. This will time out after 10 seconds if no reachable +902 // address is available. +903 +904 let client_config = { +905 let mut alpn_protocols = vec![alpn.to_vec()]; +906 alpn_protocols.extend(options.additional_alpns); +907 let quic_client_config = self +908 .inner +909 .static_config +910 .tls_config +911 .make_client_config(alpn_protocols, self.inner.static_config.keylog); +912 let mut client_config = quinn::ClientConfig::new(Arc::new(quic_client_config)); +913 client_config.transport_config(transport_config.clone()); +914 client_config +915 }; 916 -917 Ok(Connecting::new(connect, self.clone(), endpoint_id)) -918 } -919 -920 /// Accepts an incoming connection on the endpoint. -921 /// -922 /// Only connections with the ALPNs configured in [`Builder::alpns`] will be accepted. -923 /// If multiple ALPNs have been configured the ALPN can be inspected before accepting -924 /// the connection using [`Connecting::alpn`]. -925 /// -926 /// The returned future will yield `None` if the endpoint is closed by calling -927 /// [`Endpoint::close`]. -928 pub fn accept(&self) -> Accept<'_> { -929 Accept { -930 inner: self.inner.quinn_endpoint().accept(), -931 ep: self.clone(), -932 } -933 } -934 -935 // # Getter methods for properties of this Endpoint itself. -936 -937 /// Returns the secret_key of this endpoint. -938 pub fn secret_key(&self) -> &SecretKey { -939 &self.inner.static_config.tls_config.secret_key +917 let dest_addr = mapped_addr.private_socket_addr(); +918 let server_name = &tls::name::encode(endpoint_id); +919 let connect = +920 self.inner +921 .quinn_endpoint() +922 .connect_with(client_config, dest_addr, server_name)?; +923 +924 Ok(Connecting::new(connect, self.clone(), endpoint_id)) +925 } +926 +927 /// Accepts an incoming connection on the endpoint. +928 /// +929 /// Only connections with the ALPNs configured in [`Builder::alpns`] will be accepted. +930 /// If multiple ALPNs have been configured the ALPN can be inspected before accepting +931 /// the connection using [`Connecting::alpn`]. +932 /// +933 /// The returned future will yield `None` if the endpoint is closed by calling +934 /// [`Endpoint::close`]. +935 pub fn accept(&self) -> Accept<'_> { +936 Accept { +937 inner: self.inner.quinn_endpoint().accept(), +938 ep: self.clone(), +939 } 940 } 941 -942 /// Returns the endpoint id of this endpoint. -943 /// -944 /// This ID is the unique addressing information of this endpoint and other peers must know -945 /// it to be able to connect to this endpoint. -946 pub fn id(&self) -> EndpointId { -947 self.inner.static_config.tls_config.secret_key.public() -948 } -949 -950 /// Returns the current [`EndpointAddr`]. -951 /// As long as the endpoint was able to bind to a network interface, some -952 /// local addresses will be available. -953 /// -954 /// The state of other fields depends on the state of networking and connectivity. -955 /// Use the [`Endpoint::online`] method to ensure that the endpoint is considered -956 /// "online" (has contacted a relay server) before calling this method, if you want -957 /// to ensure that the `EndpointAddr` will contain enough information to allow this endpoint -958 /// to be dialable by a remote endpoint over the internet. -959 /// -960 /// You can use the [`Endpoint::watch_addr`] method to get updates when the `EndpointAddr` -961 /// changes. -962 pub fn addr(&self) -> EndpointAddr { -963 self.watch_addr().get() -964 } -965 -966 /// Returns a [`Watcher`] for the current [`EndpointAddr`] for this endpoint. -967 /// -968 /// The observed [`EndpointAddr`] will have the current [`RelayUrl`] and direct addresses. -969 /// -970 /// ```no_run -971 /// # async fn wrapper() -> n0_error::Result<()> { -972 /// use iroh::{Endpoint, Watcher}; -973 /// -974 /// let endpoint = Endpoint::builder() -975 /// .alpns(vec![b"my-alpn".to_vec()]) -976 /// .bind() -977 /// .await?; -978 /// let endpoint_addr = endpoint.watch_addr().get(); -979 /// # let _ = endpoint_addr; -980 /// # Ok(()) -981 /// # } -982 /// ``` -983 /// -984 /// The [`Endpoint::online`] method can be used as a convenience method to -985 /// understand if the endpoint has ever been considered "online". But after -986 /// that initial call to [`Endpoint::online`], to understand if your -987 /// endpoint is no longer able to be connected to by endpoints outside -988 /// of the private or local network, watch for changes in it's [`EndpointAddr`]. -989 /// If there are no `addrs`in the [`EndpointAddr`], you may not be dialable by other endpoints -990 /// on the internet. -991 /// -992 /// The `EndpointAddr` will change as: -993 /// - network conditions change -994 /// - the endpoint connects to a relay server -995 /// - the endpoint changes its preferred relay server -996 /// - more addresses are discovered for this endpoint -997 /// -998 /// ## Closing behavior -999 /// -1000 /// The returned watcher only becomes disconnected once the last clone of the [`Endpoint`] -1001 /// is dropped. Closing the endpoint does not disconnect the watcher. Thus, a stream created -1002 /// via [`Watcher::stream`] only terminates once the endpoint is fully dropped. To stop a task -1003 /// that loops over a watcher stream once the endpoint stops, combine with [`Self::closed`]: +942 // # Getter methods for properties of this Endpoint itself. +943 +944 /// Returns the secret_key of this endpoint. +945 pub fn secret_key(&self) -> &SecretKey { +946 &self.inner.static_config.tls_config.secret_key +947 } +948 +949 /// Returns the endpoint id of this endpoint. +950 /// +951 /// This ID is the unique addressing information of this endpoint and other peers must know +952 /// it to be able to connect to this endpoint. +953 pub fn id(&self) -> EndpointId { +954 self.inner.static_config.tls_config.secret_key.public() +955 } +956 +957 /// Returns the current [`EndpointAddr`]. +958 /// As long as the endpoint was able to bind to a network interface, some +959 /// local addresses will be available. +960 /// +961 /// The state of other fields depends on the state of networking and connectivity. +962 /// Use the [`Endpoint::online`] method to ensure that the endpoint is considered +963 /// "online" (has contacted a relay server) before calling this method, if you want +964 /// to ensure that the `EndpointAddr` will contain enough information to allow this endpoint +965 /// to be dialable by a remote endpoint over the internet. +966 /// +967 /// You can use the [`Endpoint::watch_addr`] method to get updates when the `EndpointAddr` +968 /// changes. +969 pub fn addr(&self) -> EndpointAddr { +970 self.watch_addr().get() +971 } +972 +973 /// Returns a [`Watcher`] for the current [`EndpointAddr`] for this endpoint. +974 /// +975 /// The observed [`EndpointAddr`] will have the current [`RelayUrl`] and direct addresses. +976 /// +977 /// ```no_run +978 /// # async fn wrapper() -> n0_error::Result<()> { +979 /// use iroh::{Endpoint, Watcher}; +980 /// +981 /// let endpoint = Endpoint::builder() +982 /// .alpns(vec![b"my-alpn".to_vec()]) +983 /// .bind() +984 /// .await?; +985 /// let endpoint_addr = endpoint.watch_addr().get(); +986 /// # let _ = endpoint_addr; +987 /// # Ok(()) +988 /// # } +989 /// ``` +990 /// +991 /// The [`Endpoint::online`] method can be used as a convenience method to +992 /// understand if the endpoint has ever been considered "online". But after +993 /// that initial call to [`Endpoint::online`], to understand if your +994 /// endpoint is no longer able to be connected to by endpoints outside +995 /// of the private or local network, watch for changes in it's [`EndpointAddr`]. +996 /// If there are no `addrs`in the [`EndpointAddr`], you may not be dialable by other endpoints +997 /// on the internet. +998 /// +999 /// The `EndpointAddr` will change as: +1000 /// - network conditions change +1001 /// - the endpoint connects to a relay server +1002 /// - the endpoint changes its preferred relay server +1003 /// - more addresses are discovered for this endpoint 1004 /// -1005 /// ``` -1006 /// # use iroh::{Watcher, Endpoint}; -1007 /// # use n0_future::StreamExt; -1008 /// # use tracing::info; -1009 /// # async fn wrapper() -> n0_error::Result<()> { -1010 /// let endpoint = Endpoint::bind().await?; -1011 /// // We want to watch address changes in a different task, and stop our task -1012 /// // once the endpoint stops. -1013 /// let mut addr_stream = endpoint.watch_addr().stream(); -1014 /// let endpoint_closed = endpoint.closed(); -1015 /// tokio::spawn(endpoint_closed.run_until(async move { -1016 /// while let Some(addr) = addr_stream.next().await { -1017 /// info!("our address changed: {addr:?}"); -1018 /// } -1019 /// info!("endpoint closed"); -1020 /// })); -1021 /// // Do fancy things, then close the endpoint. -1022 /// // Our task above will stop even if there are still clones of `Endpoint` alive somewhere. -1023 /// endpoint.close().await; -1024 /// # Ok(()) -1025 /// # } -1026 /// ``` -1027 /// -1028 /// [`RelayUrl`]: crate::RelayUrl -1029 #[cfg(not(wasm_browser))] -1030 pub fn watch_addr(&self) -> impl n0_watcher::Watcher<Value = EndpointAddr> + use<> { -1031 let watch_addrs = self.inner.ip_addrs(); -1032 let watch_relay = self.inner.home_relay(); -1033 let endpoint_id = self.id(); -1034 -1035 watch_addrs.or(watch_relay).map(move |(addrs, relays)| { -1036 EndpointAddr::from_parts( -1037 endpoint_id, -1038 relays -1039 .into_iter() -1040 .map(TransportAddr::Relay) -1041 .chain(addrs.into_iter().map(|x| TransportAddr::Ip(x.addr))), -1042 ) -1043 }) -1044 } -1045 -1046 /// Returns a [`Watcher`] for the current [`EndpointAddr`] for this endpoint. -1047 /// -1048 /// When compiled to Wasm, this function returns a watcher that initializes -1049 /// with an [`EndpointAddr`] that only contains a relay URL, but no direct addresses, -1050 /// as there are no APIs for directly using sockets in browsers. -1051 /// -1052 /// The returned watcher only becomes disconnected once the last clone of the [`Endpoint`] -1053 /// is dropped. Closing the endpoint does not disconnect the watcher. Thus, a stream created -1054 /// via [`Watcher::stream`] only terminates once the endpoint stops. If you want to stop a -1055 /// task once the endpoint stops combine with [`Self::closed`]. -1056 #[cfg(wasm_browser)] -1057 pub fn watch_addr(&self) -> impl n0_watcher::Watcher<Value = EndpointAddr> + use<> { -1058 // In browsers, there will never be any direct addresses, so we wait -1059 // for the home relay instead. This makes the `EndpointAddr` have *some* way -1060 // of connecting to us. -1061 let watch_relay = self.inner.home_relay(); -1062 let endpoint_id = self.id(); -1063 watch_relay.map(move |mut relays| { -1064 EndpointAddr::from_parts(endpoint_id, relays.into_iter().map(TransportAddr::Relay)) -1065 }) -1066 } -1067 -1068 /// A convenience method that waits for the endpoint to be considered "online". -1069 /// -1070 /// This currently means at least one relay server was connected, -1071 /// and at least one local IP address is available. -1072 /// Even if no relays are configured, this will still wait for a relay connection. -1073 /// -1074 /// Once this has been resolved the first time, this will always immediately resolve. -1075 /// -1076 /// This has no timeout, so if that is needed, you need to wrap it in a -1077 /// timeout. We recommend using a timeout close to -1078 /// [`crate::NET_REPORT_TIMEOUT`]s, so you can be sure that at least one -1079 /// [`crate::NetReport`] has been attempted. +1005 /// ## Closing behavior +1006 /// +1007 /// The returned watcher only becomes disconnected once the last clone of the [`Endpoint`] +1008 /// is dropped. Closing the endpoint does not disconnect the watcher. Thus, a stream created +1009 /// via [`Watcher::stream`] only terminates once the endpoint is fully dropped. To stop a task +1010 /// that loops over a watcher stream once the endpoint stops, combine with [`Self::closed`]: +1011 /// +1012 /// ``` +1013 /// # use iroh::{Watcher, Endpoint}; +1014 /// # use n0_future::StreamExt; +1015 /// # use tracing::info; +1016 /// # async fn wrapper() -> n0_error::Result<()> { +1017 /// let endpoint = Endpoint::bind().await?; +1018 /// // We want to watch address changes in a different task, and stop our task +1019 /// // once the endpoint stops. +1020 /// let mut addr_stream = endpoint.watch_addr().stream(); +1021 /// let endpoint_closed = endpoint.closed(); +1022 /// tokio::spawn(endpoint_closed.run_until(async move { +1023 /// while let Some(addr) = addr_stream.next().await { +1024 /// info!("our address changed: {addr:?}"); +1025 /// } +1026 /// info!("endpoint closed"); +1027 /// })); +1028 /// // Do fancy things, then close the endpoint. +1029 /// // Our task above will stop even if there are still clones of `Endpoint` alive somewhere. +1030 /// endpoint.close().await; +1031 /// # Ok(()) +1032 /// # } +1033 /// ``` +1034 /// +1035 /// [`RelayUrl`]: crate::RelayUrl +1036 #[cfg(not(wasm_browser))] +1037 pub fn watch_addr(&self) -> impl n0_watcher::Watcher<Value = EndpointAddr> + use<> { +1038 let watch_addrs = self.inner.ip_addrs(); +1039 let watch_relay = self.inner.home_relay(); +1040 let endpoint_id = self.id(); +1041 +1042 watch_addrs.or(watch_relay).map(move |(addrs, relays)| { +1043 EndpointAddr::from_parts( +1044 endpoint_id, +1045 relays +1046 .into_iter() +1047 .map(TransportAddr::Relay) +1048 .chain(addrs.into_iter().map(|x| TransportAddr::Ip(x.addr))), +1049 ) +1050 }) +1051 } +1052 +1053 /// Returns a [`Watcher`] for the current [`EndpointAddr`] for this endpoint. +1054 /// +1055 /// When compiled to Wasm, this function returns a watcher that initializes +1056 /// with an [`EndpointAddr`] that only contains a relay URL, but no direct addresses, +1057 /// as there are no APIs for directly using sockets in browsers. +1058 /// +1059 /// The returned watcher only becomes disconnected once the last clone of the [`Endpoint`] +1060 /// is dropped. Closing the endpoint does not disconnect the watcher. Thus, a stream created +1061 /// via [`Watcher::stream`] only terminates once the endpoint stops. If you want to stop a +1062 /// task once the endpoint stops combine with [`Self::closed`]. +1063 #[cfg(wasm_browser)] +1064 pub fn watch_addr(&self) -> impl n0_watcher::Watcher<Value = EndpointAddr> + use<> { +1065 // In browsers, there will never be any direct addresses, so we wait +1066 // for the home relay instead. This makes the `EndpointAddr` have *some* way +1067 // of connecting to us. +1068 let watch_relay = self.inner.home_relay(); +1069 let endpoint_id = self.id(); +1070 watch_relay.map(move |mut relays| { +1071 EndpointAddr::from_parts(endpoint_id, relays.into_iter().map(TransportAddr::Relay)) +1072 }) +1073 } +1074 +1075 /// A convenience method that waits for the endpoint to be considered "online". +1076 /// +1077 /// This currently means at least one relay server was connected, +1078 /// and at least one local IP address is available. +1079 /// Even if no relays are configured, this will still wait for a relay connection. 1080 /// -1081 /// To understand if the endpoint has gone back "offline", -1082 /// you must use the [`Endpoint::watch_addr`] method, to -1083 /// get information on the current relay and direct address information. -1084 /// -1085 /// In the common case where the endpoint's configured relay servers are -1086 /// only accessible via a wide area network (WAN) connection, this method -1087 /// will await indefinitely when the endpoint has no WAN connection. If you're -1088 /// writing an app that's designed to work without a WAN connection, defer -1089 /// any calls to `online` as long as possible, or avoid calling `online` -1090 /// entirely. +1081 /// Once this has been resolved the first time, this will always immediately resolve. +1082 /// +1083 /// This has no timeout, so if that is needed, you need to wrap it in a +1084 /// timeout. We recommend using a timeout close to +1085 /// [`crate::NET_REPORT_TIMEOUT`]s, so you can be sure that at least one +1086 /// [`crate::NetReport`] has been attempted. +1087 /// +1088 /// To understand if the endpoint has gone back "offline", +1089 /// you must use the [`Endpoint::watch_addr`] method, to +1090 /// get information on the current relay and direct address information. 1091 /// -1092 /// The online method does not interact with [`crate::address_lookup::AddressLookup`] -1093 /// services, which means that any Address Lookup that relies on a WAN -1094 /// connection is independent of the endpoint's online status. -1095 /// -1096 /// # Examples -1097 /// -1098 /// ```no run -1099 /// use iroh::Endpoint; -1100 /// -1101 /// #[tokio::main] -1102 /// async fn main() { -1103 /// // After this await returns, the endpoint is bound to a local socket. -1104 /// // It can be dialed, but almost certainly hasn't finished picking a -1105 /// // relay. -1106 /// let endpoint = Endpoint::bind().await; +1092 /// In the common case where the endpoint's configured relay servers are +1093 /// only accessible via a wide area network (WAN) connection, this method +1094 /// will await indefinitely when the endpoint has no WAN connection. If you're +1095 /// writing an app that's designed to work without a WAN connection, defer +1096 /// any calls to `online` as long as possible, or avoid calling `online` +1097 /// entirely. +1098 /// +1099 /// The online method does not interact with [`crate::address_lookup::AddressLookup`] +1100 /// services, which means that any Address Lookup that relies on a WAN +1101 /// connection is independent of the endpoint's online status. +1102 /// +1103 /// # Examples +1104 /// +1105 /// ```no run +1106 /// use iroh::Endpoint; 1107 /// -1108 /// // After this await returns we have a connection to at least one relay -1109 /// // and holepunching should work as expected. -1110 /// endpoint.online().await; -1111 /// } -1112 /// ``` -1113 pub async fn online(&self) { -1114 self.inner.home_relay().initialized().await; -1115 } -1116 -1117 /// Returns a [`Watcher`] for any net-reports run from this [`Endpoint`]. -1118 /// -1119 /// A `net-report` checks the network conditions of the [`Endpoint`], such as -1120 /// whether it is connected to the internet via Ipv4 and/or Ipv6, its NAT -1121 /// status, its latency to the relay servers, and its public addresses. -1122 /// -1123 /// The [`Endpoint`] continuously runs `net-reports` to monitor if network -1124 /// conditions have changed. This [`Watcher`] will return the latest result -1125 /// of the `net-report`. -1126 /// -1127 /// When issuing the first call to this method the first report might -1128 /// still be underway, in this case the [`Watcher`] might not be initialized -1129 /// with [`Some`] value yet. Once the net-report has been successfully -1130 /// run, the [`Watcher`] will always return [`Some`] report immediately, which -1131 /// is the most recently run `net-report`. -1132 /// -1133 /// The returned watcher only becomes disconnected once the last clone of the [`Endpoint`] -1134 /// is dropped. Closing the endpoint does not disconnect the watcher. Thus, a stream created -1135 /// via [`Watcher::stream`] only terminates once the endpoint stops. If you want to stop a -1136 /// task once the endpoint stops combine with [`Self::closed`]. -1137 /// -1138 /// # Examples +1108 /// #[tokio::main] +1109 /// async fn main() { +1110 /// // After this await returns, the endpoint is bound to a local socket. +1111 /// // It can be dialed, but almost certainly hasn't finished picking a +1112 /// // relay. +1113 /// let endpoint = Endpoint::bind().await; +1114 /// +1115 /// // After this await returns we have a connection to at least one relay +1116 /// // and holepunching should work as expected. +1117 /// endpoint.online().await; +1118 /// } +1119 /// ``` +1120 pub async fn online(&self) { +1121 self.inner.home_relay().initialized().await; +1122 } +1123 +1124 /// Returns a [`Watcher`] for any net-reports run from this [`Endpoint`]. +1125 /// +1126 /// A `net-report` checks the network conditions of the [`Endpoint`], such as +1127 /// whether it is connected to the internet via Ipv4 and/or Ipv6, its NAT +1128 /// status, its latency to the relay servers, and its public addresses. +1129 /// +1130 /// The [`Endpoint`] continuously runs `net-reports` to monitor if network +1131 /// conditions have changed. This [`Watcher`] will return the latest result +1132 /// of the `net-report`. +1133 /// +1134 /// When issuing the first call to this method the first report might +1135 /// still be underway, in this case the [`Watcher`] might not be initialized +1136 /// with [`Some`] value yet. Once the net-report has been successfully +1137 /// run, the [`Watcher`] will always return [`Some`] report immediately, which +1138 /// is the most recently run `net-report`. 1139 /// -1140 /// To get the first report use [`Watcher::initialized`]: -1141 /// ```no_run -1142 /// use iroh::{Endpoint, Watcher as _}; -1143 /// -1144 /// # let rt = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); -1145 /// # rt.block_on(async move { -1146 /// let ep = Endpoint::bind().await.unwrap(); -1147 /// let _report = ep.net_report().initialized().await; -1148 /// # }); -1149 /// ``` -1150 #[doc(hidden)] -1151 pub fn net_report(&self) -> impl Watcher<Value = Option<NetReport>> + use<> { -1152 self.inner.net_report() -1153 } -1154 -1155 /// Returns the last [`NetReport`] generated by this endpoint. -1156 /// -1157 /// Returns `None` if no net report was ever generated. -1158 /// -1159 /// This method is hidden in the docs because it is not part of the public api -1160 #[doc(hidden)] -1161 pub fn last_net_report(&self) -> Option<NetReport> { -1162 self.inner.net_report().get() -1163 } -1164 -1165 /// Returns the local socket addresses on which the underlying sockets are bound. -1166 /// -1167 /// The [`Endpoint`] always binds on an IPv4 address and also tries to bind on an IPv6 -1168 /// address if available. -1169 #[cfg(not(wasm_browser))] -1170 pub fn bound_sockets(&self) -> Vec<SocketAddr> { -1171 self.inner -1172 .local_addr() -1173 .into_iter() -1174 .filter_map(|addr| addr.into_socket_addr()) -1175 .collect() -1176 } -1177 -1178 // # Methods for less common getters. -1179 // -1180 // Partially they return things passed into the builder. -1181 -1182 /// Returns the DNS resolver used in this [`Endpoint`]. -1183 /// -1184 /// # Errors -1185 /// -1186 /// Returns an `EndpointError::Closed` error if the endpoint is closed. -1187 /// -1188 /// See [`Builder::dns_resolver`]. -1189 #[cfg(not(wasm_browser))] -1190 pub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError> { -1191 if self.is_closed() { -1192 return Err(e!(EndpointError::Closed)); -1193 } -1194 Ok(self.inner.dns_resolver()) -1195 } -1196 -1197 /// Returns the Address Lookup service, if configured. -1198 /// -1199 /// # Errors -1200 /// -1201 /// Returns a `EndpointError::Closed` error if the endpoint is closed. -1202 /// -1203 /// See [`Builder::address_lookup`]. -1204 pub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError> { -1205 if self.is_closed() { -1206 return Err(e!(EndpointError::Closed)); -1207 } -1208 Ok(self.inner.address_lookup()) -1209 } -1210 -1211 /// Returns metrics collected for this endpoint. +1140 /// The returned watcher only becomes disconnected once the last clone of the [`Endpoint`] +1141 /// is dropped. Closing the endpoint does not disconnect the watcher. Thus, a stream created +1142 /// via [`Watcher::stream`] only terminates once the endpoint stops. If you want to stop a +1143 /// task once the endpoint stops combine with [`Self::closed`]. +1144 /// +1145 /// # Examples +1146 /// +1147 /// To get the first report use [`Watcher::initialized`]: +1148 /// ```no_run +1149 /// use iroh::{Endpoint, Watcher as _}; +1150 /// +1151 /// # let rt = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); +1152 /// # rt.block_on(async move { +1153 /// let ep = Endpoint::bind().await.unwrap(); +1154 /// let _report = ep.net_report().initialized().await; +1155 /// # }); +1156 /// ``` +1157 #[doc(hidden)] +1158 pub fn net_report(&self) -> impl Watcher<Value = Option<NetReport>> + use<> { +1159 self.inner.net_report() +1160 } +1161 +1162 /// Returns the last [`NetReport`] generated by this endpoint. +1163 /// +1164 /// Returns `None` if no net report was ever generated. +1165 /// +1166 /// This method is hidden in the docs because it is not part of the public api +1167 #[doc(hidden)] +1168 pub fn last_net_report(&self) -> Option<NetReport> { +1169 self.inner.net_report().get() +1170 } +1171 +1172 /// Returns the local socket addresses on which the underlying sockets are bound. +1173 /// +1174 /// The [`Endpoint`] always binds on an IPv4 address and also tries to bind on an IPv6 +1175 /// address if available. +1176 #[cfg(not(wasm_browser))] +1177 pub fn bound_sockets(&self) -> Vec<SocketAddr> { +1178 self.inner +1179 .local_addr() +1180 .into_iter() +1181 .filter_map(|addr| addr.into_socket_addr()) +1182 .collect() +1183 } +1184 +1185 // # Methods for less common getters. +1186 // +1187 // Partially they return things passed into the builder. +1188 +1189 /// Returns the DNS resolver used in this [`Endpoint`]. +1190 /// +1191 /// # Errors +1192 /// +1193 /// Returns an `EndpointError::Closed` error if the endpoint is closed. +1194 /// +1195 /// See [`Builder::dns_resolver`]. +1196 #[cfg(not(wasm_browser))] +1197 pub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError> { +1198 if self.is_closed() { +1199 return Err(e!(EndpointError::Closed)); +1200 } +1201 Ok(self.inner.dns_resolver()) +1202 } +1203 +1204 /// Returns the [`rustls::ClientConfig`] used by the endpoint for connecting to external services. +1205 /// +1206 /// This might be useful for address lookup services or other functions +1207 /// that want to use the same trust anchors as iroh does for verifying the +1208 /// validity of TLS certificates presented by external services. +1209 /// +1210 /// Note that this TLS config is unrelated to how iroh validates the authenticity +1211 /// of iroh connections itself. 1212 /// -1213 /// The endpoint internally collects various metrics about its operation. -1214 /// The returned [`EndpointMetrics`] struct contains all of these metrics. -1215 /// -1216 /// You can access individual metrics directly by using the public fields: -1217 /// ```rust -1218 /// # use std::collections::BTreeMap; -1219 /// # use iroh::endpoint::Endpoint; -1220 /// # async fn wrapper() -> n0_error::Result<()> { -1221 /// let endpoint = Endpoint::bind().await?; -1222 /// assert_eq!(endpoint.metrics().socket.recv_datagrams.get(), 0); -1223 /// # Ok(()) -1224 /// # } -1225 /// ``` -1226 /// -1227 /// [`EndpointMetrics`] implements [`MetricsGroupSet`], and each field -1228 /// implements [`MetricsGroup`]. These traits provide methods to iterate over -1229 /// the groups in the set, and over the individual metrics in each group, without having -1230 /// to access each field manually. With these methods, it is straightforward to collect -1231 /// all metrics into a map or push their values to a metrics collector. -1232 /// -1233 /// For example, the following snippet collects all metrics into a map: -1234 /// ```rust -1235 /// # use std::collections::BTreeMap; -1236 /// # use iroh_metrics::{Metric, MetricsGroup, MetricValue, MetricsGroupSet}; -1237 /// # use iroh::endpoint::Endpoint; -1238 /// # async fn wrapper() -> n0_error::Result<()> { -1239 /// let endpoint = Endpoint::bind().await?; -1240 /// let metrics: BTreeMap<String, MetricValue> = endpoint -1241 /// .metrics() -1242 /// .iter() -1243 /// .map(|(group, metric)| { -1244 /// let name = [group, metric.name()].join(":"); -1245 /// (name, metric.value()) -1246 /// }) -1247 /// .collect(); -1248 /// -1249 /// assert_eq!(metrics["socket:recv_datagrams"], MetricValue::Counter(0)); -1250 /// # Ok(()) -1251 /// # } -1252 /// ``` +1213 /// The config is based on the trust anchors set via [`Builder::ca_roots_config`]. +1214 pub fn tls_config(&self) -> &rustls::ClientConfig { +1215 &self.inner.tls_config +1216 } +1217 +1218 /// Returns the Address Lookup service, if configured. +1219 /// +1220 /// # Errors +1221 /// +1222 /// Returns a `EndpointError::Closed` error if the endpoint is closed. +1223 /// +1224 /// See [`Builder::address_lookup`]. +1225 pub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError> { +1226 if self.is_closed() { +1227 return Err(e!(EndpointError::Closed)); +1228 } +1229 Ok(self.inner.address_lookup()) +1230 } +1231 +1232 /// Returns metrics collected for this endpoint. +1233 /// +1234 /// The endpoint internally collects various metrics about its operation. +1235 /// The returned [`EndpointMetrics`] struct contains all of these metrics. +1236 /// +1237 /// You can access individual metrics directly by using the public fields: +1238 /// ```rust +1239 /// # use std::collections::BTreeMap; +1240 /// # use iroh::endpoint::Endpoint; +1241 /// # async fn wrapper() -> n0_error::Result<()> { +1242 /// let endpoint = Endpoint::bind().await?; +1243 /// assert_eq!(endpoint.metrics().socket.recv_datagrams.get(), 0); +1244 /// # Ok(()) +1245 /// # } +1246 /// ``` +1247 /// +1248 /// [`EndpointMetrics`] implements [`MetricsGroupSet`], and each field +1249 /// implements [`MetricsGroup`]. These traits provide methods to iterate over +1250 /// the groups in the set, and over the individual metrics in each group, without having +1251 /// to access each field manually. With these methods, it is straightforward to collect +1252 /// all metrics into a map or push their values to a metrics collector. 1253 /// -1254 /// The metrics can also be encoded into the OpenMetrics text format, as used by Prometheus. -1255 /// To do so, use the [`iroh_metrics::Registry`], add the endpoint metrics to the -1256 /// registry with [`Registry::register_all`], and encode the metrics to a string with -1257 /// [`encode_openmetrics_to_string`]: -1258 /// ```rust -1259 /// # use iroh_metrics::{Registry, MetricsSource}; -1260 /// # use iroh::endpoint::Endpoint; -1261 /// # async fn wrapper() -> n0_error::Result<()> { -1262 /// let endpoint = Endpoint::bind().await?; -1263 /// let mut registry = Registry::default(); -1264 /// registry.register_all(endpoint.metrics()); -1265 /// let s = registry.encode_openmetrics_to_string()?; -1266 /// assert!(s.contains(r#"TYPE socket_recv_datagrams counter"#)); -1267 /// assert!(s.contains(r#"socket_recv_datagrams_total 0"#)); -1268 /// # Ok(()) -1269 /// # } -1270 /// ``` -1271 /// -1272 /// Through a registry, you can also add labels or prefixes to metrics with -1273 /// [`Registry::sub_registry_with_label`] or [`Registry::sub_registry_with_prefix`]. -1274 /// Furthermore, [`iroh_metrics::service`] provides functions to easily start services -1275 /// to serve the metrics with a HTTP server, dump them to a file, or push them -1276 /// to a Prometheus gateway. -1277 /// -1278 /// For example, the following snippet launches an HTTP server that serves the metrics in the -1279 /// OpenMetrics text format: -1280 /// ```no_run -1281 /// # use std::{sync::{Arc, RwLock}, time::Duration}; -1282 /// # use iroh_metrics::{Registry, MetricsSource}; -1283 /// # use iroh::endpoint::Endpoint; -1284 /// # use n0_error::{StackResultExt, StdResultExt}; -1285 /// # async fn wrapper() -> n0_error::Result<()> { -1286 /// // Create a registry, wrapped in a read-write lock so that we can register and serve -1287 /// // the metrics independently. -1288 /// let registry = Arc::new(RwLock::new(Registry::default())); -1289 /// // Spawn a task to serve the metrics on an OpenMetrics HTTP endpoint. -1290 /// let metrics_task = tokio::task::spawn({ -1291 /// let registry = registry.clone(); -1292 /// async move { -1293 /// let addr = "0.0.0.0:9100".parse().unwrap(); -1294 /// iroh_metrics::service::start_metrics_server(addr, registry).await -1295 /// } -1296 /// }); -1297 /// -1298 /// // Spawn an endpoint and add the metrics to the registry. -1299 /// let endpoint = Endpoint::bind().await?; -1300 /// registry.write().unwrap().register_all(endpoint.metrics()); -1301 /// -1302 /// // Wait for the metrics server to bind, then fetch the metrics via HTTP. -1303 /// tokio::time::sleep(Duration::from_millis(500)); -1304 /// let res = reqwest::get("http://localhost:9100/metrics") -1305 /// .await -1306 /// .std_context("get")? -1307 /// .text() -1308 /// .await -1309 /// .std_context("text")?; -1310 /// -1311 /// assert!(res.contains(r#"TYPE socket_recv_datagrams counter"#)); -1312 /// assert!(res.contains(r#"socket_recv_datagrams_total 0"#)); -1313 /// # metrics_task.abort(); -1314 /// # Ok(()) -1315 /// # } -1316 /// ``` -1317 /// -1318 /// [`Registry`]: iroh_metrics::Registry -1319 /// [`Registry::register_all`]: iroh_metrics::Registry::register_all -1320 /// [`Registry::sub_registry_with_label`]: iroh_metrics::Registry::sub_registry_with_label -1321 /// [`Registry::sub_registry_with_prefix`]: iroh_metrics::Registry::sub_registry_with_prefix -1322 /// [`encode_openmetrics_to_string`]: iroh_metrics::MetricsSource::encode_openmetrics_to_string -1323 /// [`MetricsGroup`]: iroh_metrics::MetricsGroup -1324 /// [`MetricsGroupSet`]: iroh_metrics::MetricsGroupSet -1325 #[cfg(feature = "metrics")] -1326 pub fn metrics(&self) -> &EndpointMetrics { -1327 &self.inner.metrics -1328 } -1329 -1330 /// Returns addressing information about a recently used remote endpoint. +1254 /// For example, the following snippet collects all metrics into a map: +1255 /// ```rust +1256 /// # use std::collections::BTreeMap; +1257 /// # use iroh_metrics::{Metric, MetricsGroup, MetricValue, MetricsGroupSet}; +1258 /// # use iroh::endpoint::Endpoint; +1259 /// # async fn wrapper() -> n0_error::Result<()> { +1260 /// let endpoint = Endpoint::bind().await?; +1261 /// let metrics: BTreeMap<String, MetricValue> = endpoint +1262 /// .metrics() +1263 /// .iter() +1264 /// .map(|(group, metric)| { +1265 /// let name = [group, metric.name()].join(":"); +1266 /// (name, metric.value()) +1267 /// }) +1268 /// .collect(); +1269 /// +1270 /// assert_eq!(metrics["socket:recv_datagrams"], MetricValue::Counter(0)); +1271 /// # Ok(()) +1272 /// # } +1273 /// ``` +1274 /// +1275 /// The metrics can also be encoded into the OpenMetrics text format, as used by Prometheus. +1276 /// To do so, use the [`iroh_metrics::Registry`], add the endpoint metrics to the +1277 /// registry with [`Registry::register_all`], and encode the metrics to a string with +1278 /// [`encode_openmetrics_to_string`]: +1279 /// ```rust +1280 /// # use iroh_metrics::{Registry, MetricsSource}; +1281 /// # use iroh::endpoint::Endpoint; +1282 /// # async fn wrapper() -> n0_error::Result<()> { +1283 /// let endpoint = Endpoint::bind().await?; +1284 /// let mut registry = Registry::default(); +1285 /// registry.register_all(endpoint.metrics()); +1286 /// let s = registry.encode_openmetrics_to_string()?; +1287 /// assert!(s.contains(r#"TYPE socket_recv_datagrams counter"#)); +1288 /// assert!(s.contains(r#"socket_recv_datagrams_total 0"#)); +1289 /// # Ok(()) +1290 /// # } +1291 /// ``` +1292 /// +1293 /// Through a registry, you can also add labels or prefixes to metrics with +1294 /// [`Registry::sub_registry_with_label`] or [`Registry::sub_registry_with_prefix`]. +1295 /// Furthermore, [`iroh_metrics::service`] provides functions to easily start services +1296 /// to serve the metrics with a HTTP server, dump them to a file, or push them +1297 /// to a Prometheus gateway. +1298 /// +1299 /// For example, the following snippet launches an HTTP server that serves the metrics in the +1300 /// OpenMetrics text format: +1301 /// ```no_run +1302 /// # use std::{sync::{Arc, RwLock}, time::Duration}; +1303 /// # use iroh_metrics::{Registry, MetricsSource}; +1304 /// # use iroh::endpoint::Endpoint; +1305 /// # use n0_error::{StackResultExt, StdResultExt}; +1306 /// # async fn wrapper() -> n0_error::Result<()> { +1307 /// // Create a registry, wrapped in a read-write lock so that we can register and serve +1308 /// // the metrics independently. +1309 /// let registry = Arc::new(RwLock::new(Registry::default())); +1310 /// // Spawn a task to serve the metrics on an OpenMetrics HTTP endpoint. +1311 /// let metrics_task = tokio::task::spawn({ +1312 /// let registry = registry.clone(); +1313 /// async move { +1314 /// let addr = "0.0.0.0:9100".parse().unwrap(); +1315 /// iroh_metrics::service::start_metrics_server(addr, registry).await +1316 /// } +1317 /// }); +1318 /// +1319 /// // Spawn an endpoint and add the metrics to the registry. +1320 /// let endpoint = Endpoint::bind().await?; +1321 /// registry.write().unwrap().register_all(endpoint.metrics()); +1322 /// +1323 /// // Wait for the metrics server to bind, then fetch the metrics via HTTP. +1324 /// tokio::time::sleep(Duration::from_millis(500)); +1325 /// let res = reqwest::get("http://localhost:9100/metrics") +1326 /// .await +1327 /// .std_context("get")? +1328 /// .text() +1329 /// .await +1330 /// .std_context("text")?; 1331 /// -1332 /// The returned [`RemoteInfo`] contains a list of all transport addresses for the remote -1333 /// that we know about. This is a snapshot in time and not a watcher. -1334 /// -1335 /// Returns `None` if the endpoint doesn't have information about the remote or if the endpoint is closed. -1336 /// When remote endpoints are no longer used, our endpoint will keep information around -1337 /// for a little while, and then drop it. Afterwards, this will return `None`. -1338 pub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo> { -1339 if self.is_closed() { -1340 return None; -1341 } -1342 self.inner.remote_info(endpoint_id).await -1343 } -1344 -1345 // # Methods for less common state updates. -1346 -1347 /// Notifies the system of potential network changes. -1348 /// -1349 /// On many systems iroh is able to detect network changes by itself, however -1350 /// some systems like android do not expose this functionality to native code. -1351 /// Android does however provide this functionality to Java code. This -1352 /// function allows for notifying iroh of any potential network changes like -1353 /// this. -1354 /// -1355 /// Even when the network did not change, or iroh was already able to detect -1356 /// the network change itself, there is no harm in calling this function. -1357 /// -1358 /// If the endpoint is closed, this method will log a warning and ignore the request. -1359 pub async fn network_change(&self) { +1332 /// assert!(res.contains(r#"TYPE socket_recv_datagrams counter"#)); +1333 /// assert!(res.contains(r#"socket_recv_datagrams_total 0"#)); +1334 /// # metrics_task.abort(); +1335 /// # Ok(()) +1336 /// # } +1337 /// ``` +1338 /// +1339 /// [`Registry`]: iroh_metrics::Registry +1340 /// [`Registry::register_all`]: iroh_metrics::Registry::register_all +1341 /// [`Registry::sub_registry_with_label`]: iroh_metrics::Registry::sub_registry_with_label +1342 /// [`Registry::sub_registry_with_prefix`]: iroh_metrics::Registry::sub_registry_with_prefix +1343 /// [`encode_openmetrics_to_string`]: iroh_metrics::MetricsSource::encode_openmetrics_to_string +1344 /// [`MetricsGroup`]: iroh_metrics::MetricsGroup +1345 /// [`MetricsGroupSet`]: iroh_metrics::MetricsGroupSet +1346 #[cfg(feature = "metrics")] +1347 pub fn metrics(&self) -> &EndpointMetrics { +1348 &self.inner.metrics +1349 } +1350 +1351 /// Returns addressing information about a recently used remote endpoint. +1352 /// +1353 /// The returned [`RemoteInfo`] contains a list of all transport addresses for the remote +1354 /// that we know about. This is a snapshot in time and not a watcher. +1355 /// +1356 /// Returns `None` if the endpoint doesn't have information about the remote or if the endpoint is closed. +1357 /// When remote endpoints are no longer used, our endpoint will keep information around +1358 /// for a little while, and then drop it. Afterwards, this will return `None`. +1359 pub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo> { 1360 if self.is_closed() { -1361 debug!("Attempting to notify a closed endpoint about a network change. Ignoring."); -1362 return; -1363 } -1364 self.inner.network_change().await; -1365 } -1366 -1367 // # Methods to update internal state. -1368 -1369 /// Sets the initial user-defined data to be published in Address Lookups for this endpoint. -1370 /// -1371 /// If the user-defined data passed to this function is different to the previous one, -1372 /// the endpoint will republish its endpoint info to the configured Address Lookups. -1373 /// -1374 /// See also [`Builder::user_data_for_address_lookup`] for setting an initial value when -1375 /// building the endpoint. -1376 /// -1377 /// If the endpoint is closed, this method will log a warning and ignore the -1378 /// request. -1379 pub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>) { -1380 if self.is_closed() { -1381 warn!("Attempting to set user data for a closed endpoint. Ignoring."); -1382 return; -1383 } -1384 self.inner.set_user_data_for_address_lookup(user_data); -1385 } -1386 -1387 // # Methods for terminating the endpoint. -1388 -1389 /// Closes the QUIC endpoint and the socket. -1390 /// -1391 /// This will close any remaining open [`Connection`]s with an error code -1392 /// of `0` and an empty reason. Though it is best practice to close those -1393 /// explicitly before with a custom error code and reason. +1361 return None; +1362 } +1363 self.inner.remote_info(endpoint_id).await +1364 } +1365 +1366 // # Methods for less common state updates. +1367 +1368 /// Notifies the system of potential network changes. +1369 /// +1370 /// On many systems iroh is able to detect network changes by itself, however +1371 /// some systems like android do not expose this functionality to native code. +1372 /// Android does however provide this functionality to Java code. This +1373 /// function allows for notifying iroh of any potential network changes like +1374 /// this. +1375 /// +1376 /// Even when the network did not change, or iroh was already able to detect +1377 /// the network change itself, there is no harm in calling this function. +1378 /// +1379 /// If the endpoint is closed, this method will log a warning and ignore the request. +1380 pub async fn network_change(&self) { +1381 if self.is_closed() { +1382 debug!("Attempting to notify a closed endpoint about a network change. Ignoring."); +1383 return; +1384 } +1385 self.inner.network_change().await; +1386 } +1387 +1388 // # Methods to update internal state. +1389 +1390 /// Sets the initial user-defined data to be published in Address Lookups for this endpoint. +1391 /// +1392 /// If the user-defined data passed to this function is different to the previous one, +1393 /// the endpoint will republish its endpoint info to the configured Address Lookups. 1394 /// -1395 /// It will then make a best effort to wait for all close notifications to be -1396 /// acknowledged by the peers, re-transmitting them if needed. This ensures the -1397 /// peers are aware of the closed connections instead of having to wait for a timeout -1398 /// on the connection. Once all connections are closed or timed out, the future -1399 /// finishes. -1400 /// -1401 /// The maximum time-out that this future will wait for depends on QUIC transport -1402 /// configurations of non-drained connections at the time of calling, and their current -1403 /// estimates of round trip time. With default parameters and a conservative estimate -1404 /// of round trip time, this call's future should take 3 seconds to resolve in cases of -1405 /// bad connectivity or failed connections. In the usual case, this call's future should -1406 /// return much more quickly. -1407 /// -1408 /// It is highly recommended you *do* wait for this close call to finish, if possible. -1409 /// Not doing so will make connections that were still open while closing the endpoint -1410 /// time out on the remote end. Thus remote ends will assume connections to have failed -1411 /// even if all application data was transmitted successfully. -1412 /// -1413 /// Note: Someone used to closing TCP sockets might wonder why it is necessary to wait -1414 /// for timeouts when closing QUIC endpoints, while they don't have to do this for TCP -1415 /// sockets. This is due to QUIC and its acknowledgments being implemented in user-land, -1416 /// while TCP sockets usually get closed and drained by the operating system in the -1417 /// kernel during the "Time-Wait" period of the TCP socket. -1418 /// -1419 /// Be aware however that the underlying UDP sockets are only closed once all clones of -1420 /// the the respective [`Endpoint`] are dropped. -1421 pub async fn close(&self) { -1422 self.inner.close().await; -1423 } -1424 -1425 /// Check if this endpoint is still alive, or already closed. -1426 pub fn is_closed(&self) -> bool { -1427 self.inner.is_closed() -1428 } -1429 -1430 /// Returns a future that resolves once the endpoint closes. -1431 /// -1432 /// The returned future does not contain a clone or reference to the [`Endpoint`], -1433 /// so keeping the returned future alive does not prevent the endpoint from being dropped. -1434 /// -1435 /// To run a task and stop it once the endpoint closes, you can use -1436 /// [`EndpointClosed::run_until`]: -1437 /// ``` -1438 /// # use iroh::endpoint::Endpoint; -1439 /// # async fn wrapper() -> n0_error::Result<()> { -1440 /// let endpoint = Endpoint::bind().await?; -1441 /// tokio::spawn(endpoint.closed().run_until(async move { -1442 /// // the future will be aborted once the endpoint closes. -1443 /// })); -1444 /// # Ok(()) -1445 /// # } -1446 /// ``` -1447 pub fn closed(&self) -> EndpointClosed { -1448 EndpointClosed { -1449 inner: self.inner.closed(), -1450 } -1451 } -1452 -1453 /// Create a [`ServerConfigBuilder`] for this endpoint that includes the given alpns. -1454 /// -1455 /// Use the [`ServerConfigBuilder`] to customize the [`ServerConfig`] connection configuration -1456 /// for a connection accepted using the [`Incoming::accept_with`] method. -1457 pub fn create_server_config_builder(&self, alpns: Vec<Vec<u8>>) -> ServerConfigBuilder { -1458 let inner = self.inner.static_config.create_server_config(alpns); -1459 ServerConfigBuilder::new(inner, self.inner.static_config.transport_config.clone()) -1460 } -1461 -1462 // # Remaining private methods -1463 -1464 #[cfg(test)] -1465 pub(crate) fn inner(&self) -> Result<Arc<EndpointInner>, EndpointError> { -1466 if self.is_closed() { -1467 return Err(e!(EndpointError::Closed)); -1468 } -1469 Ok(self.inner.clone()) -1470 } -1471} -1472 -1473/// Options for the [`Endpoint::connect_with_opts`] function. -1474#[derive(Default, Debug, Clone)] -1475pub struct ConnectOptions { -1476 transport_config: Option<QuicTransportConfig>, -1477 additional_alpns: Vec<Vec<u8>>, -1478} -1479 -1480impl ConnectOptions { -1481 /// Initializes new connection options. -1482 /// -1483 /// By default, the connection will use the same options -1484 /// as [`Endpoint::connect`], e.g. a default [`QuicTransportConfig`]. -1485 pub fn new() -> Self { -1486 Self::default() -1487 } -1488 -1489 /// Sets the QUIC transport config options for this connection. -1490 pub fn with_transport_config(mut self, transport_config: QuicTransportConfig) -> Self { -1491 self.transport_config = Some(transport_config); -1492 self -1493 } -1494 -1495 /// Sets [ALPN] identifiers that should be signaled as supported on connection, *in -1496 /// addition* to the main [ALPN] identifier used in [`Endpoint::connect_with_opts`]. -1497 /// -1498 /// This allows connecting to servers that may only support older versions of your -1499 /// protocol. In this case, you would add the older [ALPN] identifiers with this -1500 /// function. -1501 /// -1502 /// You'll know the final negotiated [ALPN] identifier once your connection was -1503 /// established using [`Connection::alpn`], or even slightly earlier in the -1504 /// handshake by using [`Connecting::alpn`]. -1505 /// The negotiated [ALPN] identifier may be any of the [ALPN] identifiers in this -1506 /// list or the main [ALPN] used in [`Endpoint::connect_with_opts`]. -1507 /// -1508 /// The [ALPN] identifier order on the connect side doesn't matter, since it's the -1509 /// accept side that determines the protocol. -1510 /// -1511 /// For setting the supported [ALPN] identifiers on the accept side, see the endpoint -1512 /// builder's [`Builder::alpns`] function. -1513 /// -1514 /// [ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation -1515 pub fn with_additional_alpns(mut self, alpns: Vec<Vec<u8>>) -> Self { -1516 self.additional_alpns = alpns; -1517 self -1518 } -1519} -1520 -1521/// Future returned from [`Endpoint::closed`]. -1522#[derive(derive_more::Debug)] -1523#[pin_project] -1524#[debug("EndpointClosed")] -1525pub struct EndpointClosed { -1526 #[pin] -1527 inner: WaitForCancellationFutureOwned, -1528} -1529 -1530impl Future for EndpointClosed { -1531 type Output = (); -1532 -1533 fn poll( -1534 self: Pin<&mut Self>, -1535 cx: &mut std::task::Context<'_>, -1536 ) -> std::task::Poll<Self::Output> { -1537 let this = self.project(); -1538 this.inner.poll(cx) -1539 } -1540} -1541 -1542impl EndpointClosed { -1543 /// Runs a future to completion, or until the [`Endpoint`] is closed. -1544 /// -1545 /// Returns the output of `fut` if it completes before the endpoint closes, -1546 /// or `None` otherwise. -1547 pub async fn run_until<F: Future>(self, fut: F) -> Option<F::Output> { -1548 n0_future::future::or(async { Some(fut.await) }, async { -1549 self.await; -1550 None -1551 }) -1552 .await -1553 } -1554} -1555 -1556/// Read a proxy url from the environment, in this order -1557/// -1558/// - `HTTP_PROXY` -1559/// - `http_proxy` -1560/// - `HTTPS_PROXY` -1561/// - `https_proxy` -1562fn proxy_url_from_env() -> Option<Url> { -1563 if let Some(url) = std::env::var("HTTP_PROXY") -1564 .ok() -1565 .and_then(|s| s.parse::<Url>().ok()) -1566 { -1567 if is_cgi() { -1568 warn!("HTTP_PROXY environment variable ignored in CGI"); -1569 } else { -1570 return Some(url); -1571 } -1572 } -1573 if let Some(url) = std::env::var("http_proxy") -1574 .ok() -1575 .and_then(|s| s.parse::<Url>().ok()) -1576 { -1577 return Some(url); -1578 } -1579 if let Some(url) = std::env::var("HTTPS_PROXY") -1580 .ok() -1581 .and_then(|s| s.parse::<Url>().ok()) -1582 { -1583 return Some(url); -1584 } -1585 if let Some(url) = std::env::var("https_proxy") -1586 .ok() -1587 .and_then(|s| s.parse::<Url>().ok()) -1588 { -1589 return Some(url); -1590 } -1591 -1592 None -1593} -1594 -1595/// Configuration of the relay servers for an [`Endpoint`]. -1596#[derive(Debug, Clone, PartialEq, Eq)] -1597pub enum RelayMode { -1598 /// Disable relay servers completely. -1599 /// This means that neither listening nor dialing relays will be available. -1600 Disabled, -1601 /// Use the default relay map, with production relay servers from n0. -1602 /// -1603 /// See [`crate::defaults::prod`] for the severs used. -1604 Default, -1605 /// Use the staging relay servers from n0. -1606 Staging, -1607 /// Use a custom relay map. -1608 Custom(RelayMap), -1609} -1610 -1611impl RelayMode { -1612 /// Returns the relay map for this mode. -1613 pub fn relay_map(&self) -> RelayMap { -1614 match self { -1615 RelayMode::Disabled => RelayMap::empty(), -1616 RelayMode::Default => crate::defaults::prod::default_relay_map(), -1617 RelayMode::Staging => crate::defaults::staging::default_relay_map(), -1618 RelayMode::Custom(relay_map) => relay_map.clone(), -1619 } -1620 } +1395 /// See also [`Builder::user_data_for_address_lookup`] for setting an initial value when +1396 /// building the endpoint. +1397 /// +1398 /// If the endpoint is closed, this method will log a warning and ignore the +1399 /// request. +1400 pub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>) { +1401 if self.is_closed() { +1402 warn!("Attempting to set user data for a closed endpoint. Ignoring."); +1403 return; +1404 } +1405 self.inner.set_user_data_for_address_lookup(user_data); +1406 } +1407 +1408 // # Methods for terminating the endpoint. +1409 +1410 /// Closes the QUIC endpoint and the socket. +1411 /// +1412 /// This will close any remaining open [`Connection`]s with an error code +1413 /// of `0` and an empty reason. Though it is best practice to close those +1414 /// explicitly before with a custom error code and reason. +1415 /// +1416 /// It will then make a best effort to wait for all close notifications to be +1417 /// acknowledged by the peers, re-transmitting them if needed. This ensures the +1418 /// peers are aware of the closed connections instead of having to wait for a timeout +1419 /// on the connection. Once all connections are closed or timed out, the future +1420 /// finishes. +1421 /// +1422 /// The maximum time-out that this future will wait for depends on QUIC transport +1423 /// configurations of non-drained connections at the time of calling, and their current +1424 /// estimates of round trip time. With default parameters and a conservative estimate +1425 /// of round trip time, this call's future should take 3 seconds to resolve in cases of +1426 /// bad connectivity or failed connections. In the usual case, this call's future should +1427 /// return much more quickly. +1428 /// +1429 /// It is highly recommended you *do* wait for this close call to finish, if possible. +1430 /// Not doing so will make connections that were still open while closing the endpoint +1431 /// time out on the remote end. Thus remote ends will assume connections to have failed +1432 /// even if all application data was transmitted successfully. +1433 /// +1434 /// Note: Someone used to closing TCP sockets might wonder why it is necessary to wait +1435 /// for timeouts when closing QUIC endpoints, while they don't have to do this for TCP +1436 /// sockets. This is due to QUIC and its acknowledgments being implemented in user-land, +1437 /// while TCP sockets usually get closed and drained by the operating system in the +1438 /// kernel during the "Time-Wait" period of the TCP socket. +1439 /// +1440 /// Be aware however that the underlying UDP sockets are only closed once all clones of +1441 /// the the respective [`Endpoint`] are dropped. +1442 pub async fn close(&self) { +1443 self.inner.close().await; +1444 } +1445 +1446 /// Check if this endpoint is still alive, or already closed. +1447 pub fn is_closed(&self) -> bool { +1448 self.inner.is_closed() +1449 } +1450 +1451 /// Returns a future that resolves once the endpoint closes. +1452 /// +1453 /// The returned future does not contain a clone or reference to the [`Endpoint`], +1454 /// so keeping the returned future alive does not prevent the endpoint from being dropped. +1455 /// +1456 /// To run a task and stop it once the endpoint closes, you can use +1457 /// [`EndpointClosed::run_until`]: +1458 /// ``` +1459 /// # use iroh::endpoint::Endpoint; +1460 /// # async fn wrapper() -> n0_error::Result<()> { +1461 /// let endpoint = Endpoint::bind().await?; +1462 /// tokio::spawn(endpoint.closed().run_until(async move { +1463 /// // the future will be aborted once the endpoint closes. +1464 /// })); +1465 /// # Ok(()) +1466 /// # } +1467 /// ``` +1468 pub fn closed(&self) -> EndpointClosed { +1469 EndpointClosed { +1470 inner: self.inner.closed(), +1471 } +1472 } +1473 +1474 /// Create a [`ServerConfigBuilder`] for this endpoint that includes the given alpns. +1475 /// +1476 /// Use the [`ServerConfigBuilder`] to customize the [`ServerConfig`] connection configuration +1477 /// for a connection accepted using the [`Incoming::accept_with`] method. +1478 pub fn create_server_config_builder(&self, alpns: Vec<Vec<u8>>) -> ServerConfigBuilder { +1479 let inner = self.inner.static_config.create_server_config(alpns); +1480 ServerConfigBuilder::new(inner, self.inner.static_config.transport_config.clone()) +1481 } +1482 +1483 // # Remaining private methods +1484 +1485 /// Translates a raw [`SocketAddr`] (which may be a synthetic mapped address) into +1486 /// a transport address. +1487 pub(crate) fn to_transport_addr(&self, addr: SocketAddr) -> crate::socket::transports::Addr { +1488 self.inner.to_transport_addr(addr) +1489 } +1490 +1491 #[cfg(test)] +1492 pub(crate) fn inner(&self) -> Result<Arc<EndpointInner>, EndpointError> { +1493 if self.is_closed() { +1494 return Err(e!(EndpointError::Closed)); +1495 } +1496 Ok(self.inner.clone()) +1497 } +1498} +1499 +1500/// Options for the [`Endpoint::connect_with_opts`] function. +1501#[derive(Default, Debug, Clone)] +1502pub struct ConnectOptions { +1503 transport_config: Option<QuicTransportConfig>, +1504 additional_alpns: Vec<Vec<u8>>, +1505} +1506 +1507impl ConnectOptions { +1508 /// Initializes new connection options. +1509 /// +1510 /// By default, the connection will use the same options +1511 /// as [`Endpoint::connect`], e.g. a default [`QuicTransportConfig`]. +1512 pub fn new() -> Self { +1513 Self::default() +1514 } +1515 +1516 /// Sets the QUIC transport config options for this connection. +1517 pub fn with_transport_config(mut self, transport_config: QuicTransportConfig) -> Self { +1518 self.transport_config = Some(transport_config); +1519 self +1520 } +1521 +1522 /// Sets [ALPN] identifiers that should be signaled as supported on connection, *in +1523 /// addition* to the main [ALPN] identifier used in [`Endpoint::connect_with_opts`]. +1524 /// +1525 /// This allows connecting to servers that may only support older versions of your +1526 /// protocol. In this case, you would add the older [ALPN] identifiers with this +1527 /// function. +1528 /// +1529 /// You'll know the final negotiated [ALPN] identifier once your connection was +1530 /// established using [`Connection::alpn`], or even slightly earlier in the +1531 /// handshake by using [`Connecting::alpn`]. +1532 /// The negotiated [ALPN] identifier may be any of the [ALPN] identifiers in this +1533 /// list or the main [ALPN] used in [`Endpoint::connect_with_opts`]. +1534 /// +1535 /// The [ALPN] identifier order on the connect side doesn't matter, since it's the +1536 /// accept side that determines the protocol. +1537 /// +1538 /// For setting the supported [ALPN] identifiers on the accept side, see the endpoint +1539 /// builder's [`Builder::alpns`] function. +1540 /// +1541 /// [ALPN]: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation +1542 pub fn with_additional_alpns(mut self, alpns: Vec<Vec<u8>>) -> Self { +1543 self.additional_alpns = alpns; +1544 self +1545 } +1546} +1547 +1548/// Future returned from [`Endpoint::closed`]. +1549#[derive(derive_more::Debug)] +1550#[pin_project] +1551#[debug("EndpointClosed")] +1552pub struct EndpointClosed { +1553 #[pin] +1554 inner: WaitForCancellationFutureOwned, +1555} +1556 +1557impl Future for EndpointClosed { +1558 type Output = (); +1559 +1560 fn poll( +1561 self: Pin<&mut Self>, +1562 cx: &mut std::task::Context<'_>, +1563 ) -> std::task::Poll<Self::Output> { +1564 let this = self.project(); +1565 this.inner.poll(cx) +1566 } +1567} +1568 +1569impl EndpointClosed { +1570 /// Runs a future to completion, or until the [`Endpoint`] is closed. +1571 /// +1572 /// Returns the output of `fut` if it completes before the endpoint closes, +1573 /// or `None` otherwise. +1574 pub async fn run_until<F: Future>(self, fut: F) -> Option<F::Output> { +1575 n0_future::future::or(async { Some(fut.await) }, async { +1576 self.await; +1577 None +1578 }) +1579 .await +1580 } +1581} +1582 +1583/// Read a proxy url from the environment, in this order +1584/// +1585/// - `HTTP_PROXY` +1586/// - `http_proxy` +1587/// - `HTTPS_PROXY` +1588/// - `https_proxy` +1589fn proxy_url_from_env() -> Option<Url> { +1590 if let Some(url) = std::env::var("HTTP_PROXY") +1591 .ok() +1592 .and_then(|s| s.parse::<Url>().ok()) +1593 { +1594 if is_cgi() { +1595 warn!("HTTP_PROXY environment variable ignored in CGI"); +1596 } else { +1597 return Some(url); +1598 } +1599 } +1600 if let Some(url) = std::env::var("http_proxy") +1601 .ok() +1602 .and_then(|s| s.parse::<Url>().ok()) +1603 { +1604 return Some(url); +1605 } +1606 if let Some(url) = std::env::var("HTTPS_PROXY") +1607 .ok() +1608 .and_then(|s| s.parse::<Url>().ok()) +1609 { +1610 return Some(url); +1611 } +1612 if let Some(url) = std::env::var("https_proxy") +1613 .ok() +1614 .and_then(|s| s.parse::<Url>().ok()) +1615 { +1616 return Some(url); +1617 } +1618 +1619 None +1620} 1621 -1622 /// Create a custom relay mode from a list of [`RelayUrl`]s. -1623 /// -1624 /// # Example -1625 /// -1626 /// ``` -1627 /// # fn main() -> n0_error::Result<()> { -1628 /// # use iroh::RelayMode; -1629 /// RelayMode::custom([ -1630 /// "https://use1-1.relay.n0.iroh-canary.iroh.link.".parse()?, -1631 /// "https://euw-1.relay.n0.iroh-canary.iroh.link.".parse()?, -1632 /// ]); -1633 /// # Ok(()) } -1634 /// ``` -1635 pub fn custom(map: impl IntoIterator<Item = RelayUrl>) -> Self { -1636 let m = RelayMap::from_iter(map); -1637 Self::Custom(m) -1638 } -1639} -1640 -1641/// Environment variable to force the use of staging relays. -1642pub const ENV_FORCE_STAGING_RELAYS: &str = "IROH_FORCE_STAGING_RELAYS"; -1643 -1644/// Returns `true` if the use of staging relays is forced. -1645pub fn force_staging_infra() -> bool { -1646 matches!(std::env::var(ENV_FORCE_STAGING_RELAYS), Ok(value) if !value.is_empty()) -1647} +1622/// Configuration of the relay servers for an [`Endpoint`]. +1623#[derive(Debug, Clone, PartialEq, Eq)] +1624pub enum RelayMode { +1625 /// Disable relay servers completely. +1626 /// This means that neither listening nor dialing relays will be available. +1627 Disabled, +1628 /// Use the default relay map, with production relay servers from n0. +1629 /// +1630 /// See [`crate::defaults::prod`] for the severs used. +1631 Default, +1632 /// Use the staging relay servers from n0. +1633 Staging, +1634 /// Use a custom relay map. +1635 Custom(RelayMap), +1636} +1637 +1638impl RelayMode { +1639 /// Returns the relay map for this mode. +1640 pub fn relay_map(&self) -> RelayMap { +1641 match self { +1642 RelayMode::Disabled => RelayMap::empty(), +1643 RelayMode::Default => crate::defaults::prod::default_relay_map(), +1644 RelayMode::Staging => crate::defaults::staging::default_relay_map(), +1645 RelayMode::Custom(relay_map) => relay_map.clone(), +1646 } +1647 } 1648 -1649/// Returns the default relay mode. -1650/// -1651/// If the `IROH_FORCE_STAGING_RELAYS` environment variable is non empty, it will return `RelayMode::Staging`. -1652/// Otherwise, it will return `RelayMode::Default`. -1653pub fn default_relay_mode() -> RelayMode { -1654 // Use staging in testing -1655 match force_staging_infra() { -1656 true => RelayMode::Staging, -1657 false => RelayMode::Default, -1658 } -1659} -1660 -1661/// Check if we are being executed in a CGI context. -1662/// -1663/// If so, a malicious client can send the `Proxy:` header, and it will -1664/// be in the `HTTP_PROXY` env var. So we don't use it :) -1665fn is_cgi() -> bool { -1666 std::env::var_os("REQUEST_METHOD").is_some() -1667} -1668 -1669#[cfg(test)] -1670mod tests { -1671 use std::{ -1672 collections::BTreeMap, -1673 io, -1674 net::{IpAddr, Ipv4Addr, Ipv6Addr}, -1675 str::FromStr, -1676 sync::Arc, -1677 time::{Duration, Instant}, -1678 }; -1679 -1680 use iroh_base::{EndpointAddr, EndpointId, RelayUrl, SecretKey, TransportAddr}; -1681 use iroh_relay::endpoint_info::UserData; -1682 use n0_error::{AnyError as Error, Result, StdResultExt}; -1683 use n0_future::{BufferedStreamExt, StreamExt, future::now_or_never, stream, time}; -1684 use n0_tracing_test::traced_test; -1685 use n0_watcher::Watcher; -1686 use quinn::PathStats; -1687 use rand::SeedableRng; -1688 use rand_chacha::ChaCha8Rng; -1689 use tokio::sync::oneshot; -1690 use tracing::{Instrument, debug_span, error_span, info, info_span, instrument}; -1691 -1692 use super::Endpoint; -1693 use crate::{ -1694 RelayMap, RelayMode, -1695 address_lookup::memory::MemoryLookup, -1696 endpoint::{ -1697 ApplicationClose, BindError, BindOpts, ConnectError, ConnectOptions, -1698 ConnectWithOptsError, Connection, ConnectionError, PathWatcher, -1699 }, -1700 protocol::{AcceptError, ProtocolHandler, Router}, -1701 test_utils::{QlogFileGroup, run_relay_server, run_relay_server_with}, -1702 }; -1703 -1704 const TEST_ALPN: &[u8] = b"n0/iroh/test"; -1705 -1706 #[tokio::test] -1707 #[traced_test] -1708 async fn test_connect_self() -> Result { -1709 let ep = Endpoint::empty_builder(RelayMode::Disabled) -1710 .alpns(vec![TEST_ALPN.to_vec()]) -1711 .bind() -1712 .await -1713 .unwrap(); -1714 let my_addr = ep.addr(); -1715 let res = ep.connect(my_addr.clone(), TEST_ALPN).await; -1716 assert!(res.is_err()); -1717 let err = res.err().unwrap(); -1718 assert!(err.to_string().starts_with("Connecting to ourself")); -1719 -1720 Ok(()) -1721 } -1722 -1723 #[tokio::test] -1724 #[traced_test] -1725 async fn endpoint_connect_close() -> Result { -1726 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -1727 let (relay_map, relay_url, _guard) = run_relay_server().await?; -1728 let server_secret_key = SecretKey::generate(&mut rng); -1729 let server_peer_id = server_secret_key.public(); +1649 /// Create a custom relay mode from a list of [`RelayUrl`]s. +1650 /// +1651 /// # Example +1652 /// +1653 /// ``` +1654 /// # fn main() -> n0_error::Result<()> { +1655 /// # use iroh::RelayMode; +1656 /// RelayMode::custom([ +1657 /// "https://use1-1.relay.n0.iroh-canary.iroh.link.".parse()?, +1658 /// "https://euw-1.relay.n0.iroh-canary.iroh.link.".parse()?, +1659 /// ]); +1660 /// # Ok(()) } +1661 /// ``` +1662 pub fn custom(map: impl IntoIterator<Item = RelayUrl>) -> Self { +1663 let m = RelayMap::from_iter(map); +1664 Self::Custom(m) +1665 } +1666} +1667 +1668/// Environment variable to force the use of staging relays. +1669pub const ENV_FORCE_STAGING_RELAYS: &str = "IROH_FORCE_STAGING_RELAYS"; +1670 +1671/// Returns `true` if the use of staging relays is forced. +1672pub fn force_staging_infra() -> bool { +1673 matches!(std::env::var(ENV_FORCE_STAGING_RELAYS), Ok(value) if !value.is_empty()) +1674} +1675 +1676/// Returns the default relay mode. +1677/// +1678/// If the `IROH_FORCE_STAGING_RELAYS` environment variable is non empty, it will return `RelayMode::Staging`. +1679/// Otherwise, it will return `RelayMode::Default`. +1680pub fn default_relay_mode() -> RelayMode { +1681 // Use staging in testing +1682 match force_staging_infra() { +1683 true => RelayMode::Staging, +1684 false => RelayMode::Default, +1685 } +1686} +1687 +1688/// Check if we are being executed in a CGI context. +1689/// +1690/// If so, a malicious client can send the `Proxy:` header, and it will +1691/// be in the `HTTP_PROXY` env var. So we don't use it :) +1692fn is_cgi() -> bool { +1693 std::env::var_os("REQUEST_METHOD").is_some() +1694} +1695 +1696#[cfg(test)] +1697mod tests { +1698 use std::{ +1699 collections::BTreeMap, +1700 io, +1701 net::{IpAddr, Ipv4Addr, Ipv6Addr}, +1702 str::FromStr, +1703 sync::Arc, +1704 time::{Duration, Instant}, +1705 }; +1706 +1707 use iroh_base::{EndpointAddr, EndpointId, RelayUrl, SecretKey, TransportAddr}; +1708 use iroh_relay::{endpoint_info::UserData, tls::CaRootsConfig}; +1709 use n0_error::{AnyError as Error, Result, StdResultExt}; +1710 use n0_future::{BufferedStreamExt, StreamExt, future::now_or_never, stream, time}; +1711 use n0_tracing_test::traced_test; +1712 use n0_watcher::Watcher; +1713 use quinn::PathStats; +1714 use rand::SeedableRng; +1715 use rand_chacha::ChaCha8Rng; +1716 use tokio::sync::oneshot; +1717 use tracing::{Instrument, debug_span, error_span, info, info_span, instrument}; +1718 +1719 use super::Endpoint; +1720 use crate::{ +1721 RelayMap, RelayMode, +1722 address_lookup::memory::MemoryLookup, +1723 endpoint::{ +1724 ApplicationClose, BindError, BindOpts, ConnectError, ConnectOptions, +1725 ConnectWithOptsError, Connection, ConnectionError, PathWatcher, +1726 }, +1727 protocol::{AcceptError, ProtocolHandler, Router}, +1728 test_utils::{QlogFileGroup, run_relay_server, run_relay_server_with}, +1729 }; 1730 -1731 let qlog = QlogFileGroup::from_env("endpoint_connect_close"); +1731 const TEST_ALPN: &[u8] = b"n0/iroh/test"; 1732 -1733 // Wait for the endpoint to be started to make sure it's up before clients try to connect -1734 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -1735 .secret_key(server_secret_key) -1736 .transport_config(qlog.create("server")?) +1733 #[tokio::test] +1734 #[traced_test] +1735 async fn test_connect_self() -> Result { +1736 let ep = Endpoint::empty_builder(RelayMode::Disabled) 1737 .alpns(vec![TEST_ALPN.to_vec()]) -1738 .insecure_skip_relay_cert_verify(true) -1739 .bind() -1740 .await?; -1741 // Wait for the endpoint to be reachable via relay -1742 ep.online().await; -1743 -1744 let server = tokio::spawn( -1745 async move { -1746 info!("accepting connection"); -1747 let incoming = ep.accept().await.anyerr()?; -1748 let conn = incoming.await.anyerr()?; -1749 let mut stream = conn.accept_uni().await.anyerr()?; -1750 let mut buf = [0u8; 5]; -1751 stream.read_exact(&mut buf).await.anyerr()?; -1752 info!("Accepted 1 stream, received {buf:?}. Closing now."); -1753 // close the connection -1754 conn.close(7u8.into(), b"bye"); -1755 -1756 let res = conn.accept_uni().await; -1757 assert_eq!(res.unwrap_err(), ConnectionError::LocallyClosed); -1758 -1759 let res = stream.read_to_end(10).await; -1760 assert_eq!( -1761 res.unwrap_err(), -1762 quinn::ReadToEndError::Read(quinn::ReadError::ConnectionLost( -1763 ConnectionError::LocallyClosed -1764 )) -1765 ); -1766 info!("Closing the endpoint"); -1767 ep.close().await; -1768 info!("server test completed"); -1769 Ok::<_, Error>(()) -1770 } -1771 .instrument(info_span!("test-server")), -1772 ); -1773 -1774 let client = tokio::spawn( -1775 async move { -1776 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map)) -1777 .alpns(vec![TEST_ALPN.to_vec()]) -1778 .insecure_skip_relay_cert_verify(true) -1779 .transport_config(qlog.create("client")?) -1780 .bind() -1781 .await?; -1782 info!("client connecting"); -1783 let endpoint_addr = EndpointAddr::new(server_peer_id).with_relay_url(relay_url); -1784 let conn = ep.connect(endpoint_addr, TEST_ALPN).await?; -1785 let mut stream = conn.open_uni().await.anyerr()?; -1786 -1787 // First write is accepted by server. We need this bit of synchronisation -1788 // because if the server closes after simply accepting the connection we can -1789 // not be sure our .open_uni() call would succeed as it may already receive -1790 // the error. -1791 stream.write_all(b"hello").await.anyerr()?; -1792 -1793 info!("waiting for closed"); -1794 // Remote now closes the connection, we should see an error sometime soon. -1795 let err = conn.closed().await; -1796 let expected_err = ConnectionError::ApplicationClosed(ApplicationClose { -1797 error_code: 7u8.into(), -1798 reason: b"bye".to_vec().into(), -1799 }); -1800 assert_eq!(err, expected_err); -1801 -1802 info!("opening new - expect it to fail"); -1803 let res = conn.open_uni().await; -1804 assert_eq!(res.unwrap_err(), expected_err); -1805 info!("Closing the client"); -1806 ep.close().await; -1807 info!("client test completed"); -1808 Ok::<_, Error>(()) -1809 } -1810 .instrument(info_span!("test-client")), -1811 ); -1812 -1813 let (server, client) = tokio::time::timeout( -1814 Duration::from_secs(30), -1815 n0_future::future::zip(server, client), -1816 ) -1817 .await -1818 .anyerr()?; -1819 server.anyerr()??; -1820 client.anyerr()??; -1821 Ok(()) -1822 } -1823 -1824 #[tokio::test] -1825 #[traced_test] -1826 async fn endpoint_relay_connect_loop() -> Result { -1827 let test_start = Instant::now(); -1828 let n_clients = 5; -1829 let n_chunks_per_client = 2; -1830 let chunk_size = 100; -1831 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); -1832 let (relay_map, relay_url, _relay_guard) = run_relay_server().await.unwrap(); -1833 let server_secret_key = SecretKey::generate(&mut rng); -1834 let server_endpoint_id = server_secret_key.public(); -1835 -1836 // Make sure the server is bound before having clients connect to it: -1837 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -1838 .insecure_skip_relay_cert_verify(true) -1839 .secret_key(server_secret_key) -1840 .alpns(vec![TEST_ALPN.to_vec()]) -1841 .bind() -1842 .await?; -1843 // Also make sure the server has a working relay connection -1844 ep.online().await; -1845 -1846 info!(time = ?test_start.elapsed(), "test setup done"); -1847 -1848 // The server accepts the connections of the clients sequentially. -1849 let server = tokio::spawn( -1850 async move { -1851 let eps = ep.bound_sockets(); -1852 -1853 info!(me = %ep.id().fmt_short(), eps = ?eps, "server listening on"); -1854 for i in 0..n_clients { -1855 let res = tokio::time::timeout(Duration::from_secs(5), async { -1856 let round_start = Instant::now(); -1857 info!("[server] round {i}"); -1858 let incoming = ep.accept().await.anyerr()?; -1859 let conn = incoming.await.anyerr()?; -1860 let endpoint_id = conn.remote_id(); -1861 info!(%i, peer = %endpoint_id.fmt_short(), "accepted connection"); -1862 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; -1863 let mut buf = vec![0u8; chunk_size]; -1864 for _i in 0..n_chunks_per_client { -1865 recv.read_exact(&mut buf).await.anyerr()?; -1866 send.write_all(&buf).await.anyerr()?; -1867 } -1868 info!(%i, peer = %endpoint_id.fmt_short(), "finishing"); -1869 send.finish().anyerr()?; -1870 conn.closed().await; // we're the last to send data, so we wait for the other side to close -1871 info!(%i, peer = %endpoint_id.fmt_short(), "finished"); -1872 info!("[server] round {i} done in {:?}", round_start.elapsed()); -1873 Ok::<_, Error>(()) -1874 }) -1875 .await -1876 .std_context("timeout"); -1877 match res { -1878 Err(err) | Ok(Err(err)) => { -1879 // ensure we close the endpoint before returning early -1880 // on error -1881 ep.close().await; -1882 return Err(err); -1883 } -1884 _ => { -1885 // if this round went `Ok` don't close the endpoint yet -1886 } -1887 } -1888 } -1889 // close the endpoint before dropping the server task -1890 ep.close().await; -1891 Ok::<_, Error>(()) -1892 } -1893 .instrument(debug_span!("server")), -1894 ); -1895 -1896 let client = tokio::spawn(async move { -1897 for i in 0..n_clients { -1898 let round_start = Instant::now(); -1899 info!("[client] round {i}"); -1900 let client_secret_key = SecretKey::generate(&mut rng); -1901 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -1902 .alpns(vec![TEST_ALPN.to_vec()]) -1903 .insecure_skip_relay_cert_verify(true) -1904 .secret_key(client_secret_key) -1905 .bind() -1906 .await?; -1907 let ep_1 = ep.clone(); -1908 let res = tokio::time::timeout( -1909 Duration::from_secs(5), -1910 async { -1911 info!("client binding"); -1912 let eps = ep.bound_sockets(); -1913 -1914 info!(me = %ep.id().fmt_short(), eps=?eps, "client bound"); -1915 let endpoint_addr = -1916 EndpointAddr::new(server_endpoint_id).with_relay_url(relay_url.clone()); -1917 info!(to = ?endpoint_addr, "client connecting"); -1918 let conn = ep.connect(endpoint_addr, TEST_ALPN).await.anyerr()?; -1919 info!("client connected"); -1920 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -1921 -1922 for i in 0..n_chunks_per_client { -1923 let mut buf = vec![i; chunk_size]; -1924 send.write_all(&buf).await.anyerr()?; -1925 recv.read_exact(&mut buf).await.anyerr()?; -1926 assert_eq!(buf, vec![i; chunk_size]); -1927 } -1928 // we're the last to receive data, so we close -1929 conn.close(0u32.into(), b"bye!"); -1930 info!("client finished"); -1931 Ok::<_, Error>(()) -1932 } -1933 .instrument(debug_span!("client", %i)), -1934 ) -1935 .await -1936 .std_context("timeout"); -1937 ep_1.close().await; -1938 info!("client endpoint closed"); -1939 res??; -1940 info!("[client] round {i} done in {:?}", round_start.elapsed()); -1941 } -1942 Ok::<_, Error>(()) -1943 }); -1944 -1945 server.await.anyerr()??; -1946 client.await.anyerr()??; -1947 Ok(()) -1948 } -1949 -1950 #[tokio::test] -1951 #[traced_test] -1952 async fn endpoint_send_relay() -> Result { -1953 let (relay_map, _relay_url, _guard) = run_relay_server().await?; -1954 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -1955 .insecure_skip_relay_cert_verify(true) -1956 .bind() -1957 .await?; -1958 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map)) -1959 .insecure_skip_relay_cert_verify(true) -1960 .alpns(vec![TEST_ALPN.to_vec()]) -1961 .bind() -1962 .await?; -1963 -1964 let task = tokio::spawn({ -1965 let server = server.clone(); -1966 async move { -1967 let Some(conn) = server.accept().await else { -1968 n0_error::bail_any!("Expected an incoming connection"); -1969 }; -1970 let conn = conn.await.anyerr()?; -1971 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; -1972 let data = recv.read_to_end(1000).await.anyerr()?; -1973 send.write_all(&data).await.anyerr()?; -1974 send.finish().anyerr()?; -1975 conn.closed().await; +1738 .bind() +1739 .await +1740 .unwrap(); +1741 let my_addr = ep.addr(); +1742 let res = ep.connect(my_addr.clone(), TEST_ALPN).await; +1743 assert!(res.is_err()); +1744 let err = res.err().unwrap(); +1745 assert!(err.to_string().starts_with("Connecting to ourself")); +1746 +1747 Ok(()) +1748 } +1749 +1750 #[tokio::test] +1751 #[traced_test] +1752 async fn endpoint_connect_close() -> Result { +1753 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1754 let (relay_map, relay_url, _guard) = run_relay_server().await?; +1755 let server_secret_key = SecretKey::generate(&mut rng); +1756 let server_peer_id = server_secret_key.public(); +1757 +1758 let qlog = QlogFileGroup::from_env("endpoint_connect_close"); +1759 +1760 // Wait for the endpoint to be started to make sure it's up before clients try to connect +1761 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1762 .secret_key(server_secret_key) +1763 .transport_config(qlog.create("server")?) +1764 .alpns(vec![TEST_ALPN.to_vec()]) +1765 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1766 .bind() +1767 .await?; +1768 // Wait for the endpoint to be reachable via relay +1769 ep.online().await; +1770 +1771 let server = tokio::spawn( +1772 async move { +1773 info!("accepting connection"); +1774 let incoming = ep.accept().await.anyerr()?; +1775 let conn = incoming.await.anyerr()?; +1776 let mut stream = conn.accept_uni().await.anyerr()?; +1777 let mut buf = [0u8; 5]; +1778 stream.read_exact(&mut buf).await.anyerr()?; +1779 info!("Accepted 1 stream, received {buf:?}. Closing now."); +1780 // close the connection +1781 conn.close(7u8.into(), b"bye"); +1782 +1783 let res = conn.accept_uni().await; +1784 assert_eq!(res.unwrap_err(), ConnectionError::LocallyClosed); +1785 +1786 let res = stream.read_to_end(10).await; +1787 assert_eq!( +1788 res.unwrap_err(), +1789 quinn::ReadToEndError::Read(quinn::ReadError::ConnectionLost( +1790 ConnectionError::LocallyClosed +1791 )) +1792 ); +1793 info!("Closing the endpoint"); +1794 ep.close().await; +1795 info!("server test completed"); +1796 Ok::<_, Error>(()) +1797 } +1798 .instrument(info_span!("test-server")), +1799 ); +1800 +1801 let client = tokio::spawn( +1802 async move { +1803 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map)) +1804 .alpns(vec![TEST_ALPN.to_vec()]) +1805 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1806 .transport_config(qlog.create("client")?) +1807 .bind() +1808 .await?; +1809 info!("client connecting"); +1810 let endpoint_addr = EndpointAddr::new(server_peer_id).with_relay_url(relay_url); +1811 let conn = ep.connect(endpoint_addr, TEST_ALPN).await?; +1812 let mut stream = conn.open_uni().await.anyerr()?; +1813 +1814 // First write is accepted by server. We need this bit of synchronisation +1815 // because if the server closes after simply accepting the connection we can +1816 // not be sure our .open_uni() call would succeed as it may already receive +1817 // the error. +1818 stream.write_all(b"hello").await.anyerr()?; +1819 +1820 info!("waiting for closed"); +1821 // Remote now closes the connection, we should see an error sometime soon. +1822 let err = conn.closed().await; +1823 let expected_err = ConnectionError::ApplicationClosed(ApplicationClose { +1824 error_code: 7u8.into(), +1825 reason: b"bye".to_vec().into(), +1826 }); +1827 assert_eq!(err, expected_err); +1828 +1829 info!("opening new - expect it to fail"); +1830 let res = conn.open_uni().await; +1831 assert_eq!(res.unwrap_err(), expected_err); +1832 info!("Closing the client"); +1833 ep.close().await; +1834 info!("client test completed"); +1835 Ok::<_, Error>(()) +1836 } +1837 .instrument(info_span!("test-client")), +1838 ); +1839 +1840 let (server, client) = tokio::time::timeout( +1841 Duration::from_secs(30), +1842 n0_future::future::zip(server, client), +1843 ) +1844 .await +1845 .anyerr()?; +1846 server.anyerr()??; +1847 client.anyerr()??; +1848 Ok(()) +1849 } +1850 +1851 #[tokio::test] +1852 #[traced_test] +1853 async fn endpoint_relay_connect_loop() -> Result { +1854 let test_start = Instant::now(); +1855 let n_clients = 5; +1856 let n_chunks_per_client = 2; +1857 let chunk_size = 100; +1858 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); +1859 let (relay_map, relay_url, _relay_guard) = run_relay_server().await.unwrap(); +1860 let server_secret_key = SecretKey::generate(&mut rng); +1861 let server_endpoint_id = server_secret_key.public(); +1862 +1863 // Make sure the server is bound before having clients connect to it: +1864 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1865 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1866 .secret_key(server_secret_key) +1867 .alpns(vec![TEST_ALPN.to_vec()]) +1868 .bind() +1869 .await?; +1870 // Also make sure the server has a working relay connection +1871 ep.online().await; +1872 +1873 info!(time = ?test_start.elapsed(), "test setup done"); +1874 +1875 // The server accepts the connections of the clients sequentially. +1876 let server = tokio::spawn( +1877 async move { +1878 let eps = ep.bound_sockets(); +1879 +1880 info!(me = %ep.id().fmt_short(), eps = ?eps, "server listening on"); +1881 for i in 0..n_clients { +1882 let res = tokio::time::timeout(Duration::from_secs(5), async { +1883 let round_start = Instant::now(); +1884 info!("[server] round {i}"); +1885 let incoming = ep.accept().await.anyerr()?; +1886 let conn = incoming.await.anyerr()?; +1887 let endpoint_id = conn.remote_id(); +1888 info!(%i, peer = %endpoint_id.fmt_short(), "accepted connection"); +1889 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; +1890 let mut buf = vec![0u8; chunk_size]; +1891 for _i in 0..n_chunks_per_client { +1892 recv.read_exact(&mut buf).await.anyerr()?; +1893 send.write_all(&buf).await.anyerr()?; +1894 } +1895 info!(%i, peer = %endpoint_id.fmt_short(), "finishing"); +1896 send.finish().anyerr()?; +1897 conn.closed().await; // we're the last to send data, so we wait for the other side to close +1898 info!(%i, peer = %endpoint_id.fmt_short(), "finished"); +1899 info!("[server] round {i} done in {:?}", round_start.elapsed()); +1900 Ok::<_, Error>(()) +1901 }) +1902 .await +1903 .std_context("timeout"); +1904 match res { +1905 Err(err) | Ok(Err(err)) => { +1906 // ensure we close the endpoint before returning early +1907 // on error +1908 ep.close().await; +1909 return Err(err); +1910 } +1911 _ => { +1912 // if this round went `Ok` don't close the endpoint yet +1913 } +1914 } +1915 } +1916 // close the endpoint before dropping the server task +1917 ep.close().await; +1918 Ok::<_, Error>(()) +1919 } +1920 .instrument(debug_span!("server")), +1921 ); +1922 +1923 let client = tokio::spawn(async move { +1924 for i in 0..n_clients { +1925 let round_start = Instant::now(); +1926 info!("[client] round {i}"); +1927 let client_secret_key = SecretKey::generate(&mut rng); +1928 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1929 .alpns(vec![TEST_ALPN.to_vec()]) +1930 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1931 .secret_key(client_secret_key) +1932 .bind() +1933 .await?; +1934 let ep_1 = ep.clone(); +1935 let res = tokio::time::timeout( +1936 Duration::from_secs(5), +1937 async { +1938 info!("client binding"); +1939 let eps = ep.bound_sockets(); +1940 +1941 info!(me = %ep.id().fmt_short(), eps=?eps, "client bound"); +1942 let endpoint_addr = +1943 EndpointAddr::new(server_endpoint_id).with_relay_url(relay_url.clone()); +1944 info!(to = ?endpoint_addr, "client connecting"); +1945 let conn = ep.connect(endpoint_addr, TEST_ALPN).await.anyerr()?; +1946 info!("client connected"); +1947 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +1948 +1949 for i in 0..n_chunks_per_client { +1950 let mut buf = vec![i; chunk_size]; +1951 send.write_all(&buf).await.anyerr()?; +1952 recv.read_exact(&mut buf).await.anyerr()?; +1953 assert_eq!(buf, vec![i; chunk_size]); +1954 } +1955 // we're the last to receive data, so we close +1956 conn.close(0u32.into(), b"bye!"); +1957 info!("client finished"); +1958 Ok::<_, Error>(()) +1959 } +1960 .instrument(debug_span!("client", %i)), +1961 ) +1962 .await +1963 .std_context("timeout"); +1964 ep_1.close().await; +1965 info!("client endpoint closed"); +1966 res??; +1967 info!("[client] round {i} done in {:?}", round_start.elapsed()); +1968 } +1969 Ok::<_, Error>(()) +1970 }); +1971 +1972 server.await.anyerr()??; +1973 client.await.anyerr()??; +1974 Ok(()) +1975 } 1976 -1977 Ok::<_, Error>(()) -1978 } -1979 }); -1980 -1981 let addr = server.addr(); -1982 let conn = client.connect(addr, TEST_ALPN).await?; -1983 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -1984 send.write_all(b"Hello, world!").await.anyerr()?; -1985 send.finish().anyerr()?; -1986 let data = recv.read_to_end(1000).await.anyerr()?; -1987 conn.close(0u32.into(), b"bye!"); -1988 -1989 task.await.anyerr()??; +1977 #[tokio::test] +1978 #[traced_test] +1979 async fn endpoint_send_relay() -> Result { +1980 let (relay_map, _relay_url, _guard) = run_relay_server().await?; +1981 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1982 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1983 .bind() +1984 .await?; +1985 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map)) +1986 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1987 .alpns(vec![TEST_ALPN.to_vec()]) +1988 .bind() +1989 .await?; 1990 -1991 client.close().await; -1992 server.close().await; -1993 -1994 assert_eq!(&data, b"Hello, world!"); -1995 -1996 Ok(()) -1997 } -1998 -1999 #[tokio::test] -2000 #[traced_test] -2001 async fn endpoint_two_direct_only() -> Result { -2002 // Connect two endpoints on the same network, without a relay server, without -2003 // Address Lookup. -2004 let ep1 = { -2005 let span = info_span!("server"); -2006 let _guard = span.enter(); -2007 Endpoint::builder() -2008 .alpns(vec![TEST_ALPN.to_vec()]) -2009 .relay_mode(RelayMode::Disabled) -2010 .bind() -2011 .await? -2012 }; -2013 let ep2 = { -2014 let span = info_span!("client"); -2015 let _guard = span.enter(); -2016 Endpoint::builder() -2017 .alpns(vec![TEST_ALPN.to_vec()]) -2018 .relay_mode(RelayMode::Disabled) -2019 .bind() -2020 .await? -2021 }; -2022 let ep1_nodeaddr = ep1.addr(); -2023 -2024 #[instrument(name = "client", skip_all)] -2025 async fn connect(ep: Endpoint, dst: EndpointAddr) -> Result<ConnectionError> { -2026 info!(me = %ep.id().fmt_short(), "client starting"); -2027 let conn = ep.connect(dst, TEST_ALPN).await?; -2028 let mut send = conn.open_uni().await.anyerr()?; -2029 send.write_all(b"hello").await.anyerr()?; -2030 send.finish().anyerr()?; -2031 Ok(conn.closed().await) -2032 } -2033 -2034 #[instrument(name = "server", skip_all)] -2035 async fn accept(ep: Endpoint, src: EndpointId) -> Result { -2036 info!(me = %ep.id().fmt_short(), "server starting"); -2037 let conn = ep.accept().await.anyerr()?.await.anyerr()?; -2038 let node_id = conn.remote_id(); -2039 assert_eq!(node_id, src); -2040 let mut recv = conn.accept_uni().await.anyerr()?; -2041 let msg = recv.read_to_end(100).await.anyerr()?; -2042 assert_eq!(msg, b"hello"); -2043 // Dropping the connection closes it just fine. -2044 Ok(()) -2045 } -2046 -2047 let ep1_accept = tokio::spawn(accept(ep1.clone(), ep2.id())); -2048 let ep2_connect = tokio::spawn(connect(ep2.clone(), ep1_nodeaddr)); -2049 -2050 ep1_accept.await.anyerr()??; -2051 let conn_closed = dbg!(ep2_connect.await.anyerr()??); -2052 assert!(matches!( -2053 conn_closed, -2054 ConnectionError::ApplicationClosed(ApplicationClose { .. }) -2055 )); -2056 -2057 Ok(()) -2058 } -2059 -2060 #[tokio::test] -2061 #[traced_test] -2062 async fn endpoint_two_relay_only_becomes_direct() -> Result { -2063 // Connect two endpoints on the same network, via a relay server, without -2064 // Address Lookup. Wait until there is a direct connection. -2065 let (relay_map, _relay_url, _relay_server_guard) = run_relay_server().await?; -2066 let (node_addr_tx, node_addr_rx) = oneshot::channel(); -2067 let qlog = Arc::new(QlogFileGroup::from_env("two_relay_only_becomes_direct")); -2068 -2069 #[instrument(name = "client", skip_all)] -2070 async fn connect( -2071 relay_map: RelayMap, -2072 node_addr_rx: oneshot::Receiver<EndpointAddr>, -2073 qlog: Arc<QlogFileGroup>, -2074 ) -> Result<ConnectionError> { -2075 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -2076 let secret = SecretKey::generate(&mut rng); -2077 let ep = Endpoint::builder() -2078 .secret_key(secret) -2079 .alpns(vec![TEST_ALPN.to_vec()]) -2080 .insecure_skip_relay_cert_verify(true) -2081 .relay_mode(RelayMode::Custom(relay_map)) -2082 .transport_config(qlog.create("client")?) -2083 .bind() -2084 .await?; -2085 info!(me = %ep.id().fmt_short(), "client starting"); -2086 let dst = node_addr_rx.await.anyerr()?; -2087 -2088 info!(me = %ep.id().fmt_short(), "client connecting"); -2089 let conn = ep.connect(dst, TEST_ALPN).await?; -2090 let mut send = conn.open_uni().await.anyerr()?; -2091 send.write_all(b"hello").await.anyerr()?; -2092 let mut paths = conn.paths().stream(); -2093 info!("Waiting for direct connection"); -2094 while let Some(infos) = paths.next().await { -2095 info!(?infos, "new PathInfos"); -2096 if infos.iter().any(|info| info.is_ip()) { -2097 break; -2098 } -2099 } -2100 info!("Have direct connection"); -2101 // Validate holepunch metrics. -2102 assert_eq!(ep.metrics().socket.num_conns_opened.get(), 1); -2103 assert_eq!(ep.metrics().socket.num_conns_direct.get(), 1); -2104 -2105 send.write_all(b"close please").await.anyerr()?; -2106 send.finish().anyerr()?; -2107 -2108 let res = conn.closed().await; -2109 ep.close().await; -2110 Ok(res) -2111 } -2112 -2113 #[instrument(name = "server", skip_all)] -2114 async fn accept( -2115 relay_map: RelayMap, -2116 node_addr_tx: oneshot::Sender<EndpointAddr>, -2117 qlog: Arc<QlogFileGroup>, -2118 ) -> Result { -2119 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(1u64); -2120 let secret = SecretKey::generate(&mut rng); -2121 let ep = Endpoint::builder() -2122 .secret_key(secret) -2123 .alpns(vec![TEST_ALPN.to_vec()]) -2124 .insecure_skip_relay_cert_verify(true) -2125 .transport_config(qlog.create("server")?) -2126 .relay_mode(RelayMode::Custom(relay_map)) -2127 .bind() -2128 .await?; -2129 ep.online().await; -2130 let mut node_addr = ep.addr(); -2131 node_addr.addrs.retain(|addr| addr.is_relay()); -2132 node_addr_tx.send(node_addr).unwrap(); -2133 -2134 info!(me = %ep.id().fmt_short(), "server starting"); -2135 let conn = ep.accept().await.anyerr()?.await.anyerr()?; -2136 // let node_id = conn.remote_node_id()?; -2137 // assert_eq!(node_id, src); -2138 let mut recv = conn.accept_uni().await.anyerr()?; -2139 let mut msg = [0u8; 5]; -2140 recv.read_exact(&mut msg).await.anyerr()?; -2141 assert_eq!(&msg, b"hello"); -2142 info!("received hello"); -2143 let msg = recv.read_to_end(100).await.anyerr()?; -2144 assert_eq!(msg, b"close please"); -2145 info!("received 'close please'"); -2146 // Closing the endpoint closes all connections. -2147 ep.close().await; -2148 Ok(()) -2149 } -2150 -2151 let server_task = tokio::spawn(accept(relay_map.clone(), node_addr_tx, qlog.clone())); -2152 let client_task = tokio::spawn(connect(relay_map, node_addr_rx, qlog)); -2153 -2154 server_task.await.anyerr()??; -2155 let conn_closed = dbg!(client_task.await.anyerr()??); -2156 assert!(matches!( -2157 conn_closed, -2158 ConnectionError::ApplicationClosed(ApplicationClose { .. }) -2159 )); +1991 let task = tokio::spawn({ +1992 let server = server.clone(); +1993 async move { +1994 let Some(conn) = server.accept().await else { +1995 n0_error::bail_any!("Expected an incoming connection"); +1996 }; +1997 let conn = conn.await.anyerr()?; +1998 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; +1999 let data = recv.read_to_end(1000).await.anyerr()?; +2000 send.write_all(&data).await.anyerr()?; +2001 send.finish().anyerr()?; +2002 conn.closed().await; +2003 +2004 Ok::<_, Error>(()) +2005 } +2006 }); +2007 +2008 let addr = server.addr(); +2009 let conn = client.connect(addr, TEST_ALPN).await?; +2010 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +2011 send.write_all(b"Hello, world!").await.anyerr()?; +2012 send.finish().anyerr()?; +2013 let data = recv.read_to_end(1000).await.anyerr()?; +2014 conn.close(0u32.into(), b"bye!"); +2015 +2016 task.await.anyerr()??; +2017 +2018 client.close().await; +2019 server.close().await; +2020 +2021 assert_eq!(&data, b"Hello, world!"); +2022 +2023 Ok(()) +2024 } +2025 +2026 #[tokio::test] +2027 #[traced_test] +2028 async fn endpoint_two_direct_only() -> Result { +2029 // Connect two endpoints on the same network, without a relay server, without +2030 // Address Lookup. +2031 let ep1 = { +2032 let span = info_span!("server"); +2033 let _guard = span.enter(); +2034 Endpoint::builder() +2035 .alpns(vec![TEST_ALPN.to_vec()]) +2036 .relay_mode(RelayMode::Disabled) +2037 .bind() +2038 .await? +2039 }; +2040 let ep2 = { +2041 let span = info_span!("client"); +2042 let _guard = span.enter(); +2043 Endpoint::builder() +2044 .alpns(vec![TEST_ALPN.to_vec()]) +2045 .relay_mode(RelayMode::Disabled) +2046 .bind() +2047 .await? +2048 }; +2049 let ep1_nodeaddr = ep1.addr(); +2050 +2051 #[instrument(name = "client", skip_all)] +2052 async fn connect(ep: Endpoint, dst: EndpointAddr) -> Result<ConnectionError> { +2053 info!(me = %ep.id().fmt_short(), "client starting"); +2054 let conn = ep.connect(dst, TEST_ALPN).await?; +2055 let mut send = conn.open_uni().await.anyerr()?; +2056 send.write_all(b"hello").await.anyerr()?; +2057 send.finish().anyerr()?; +2058 Ok(conn.closed().await) +2059 } +2060 +2061 #[instrument(name = "server", skip_all)] +2062 async fn accept(ep: Endpoint, src: EndpointId) -> Result { +2063 info!(me = %ep.id().fmt_short(), "server starting"); +2064 let conn = ep.accept().await.anyerr()?.await.anyerr()?; +2065 let node_id = conn.remote_id(); +2066 assert_eq!(node_id, src); +2067 let mut recv = conn.accept_uni().await.anyerr()?; +2068 let msg = recv.read_to_end(100).await.anyerr()?; +2069 assert_eq!(msg, b"hello"); +2070 // Dropping the connection closes it just fine. +2071 Ok(()) +2072 } +2073 +2074 let ep1_accept = tokio::spawn(accept(ep1.clone(), ep2.id())); +2075 let ep2_connect = tokio::spawn(connect(ep2.clone(), ep1_nodeaddr)); +2076 +2077 ep1_accept.await.anyerr()??; +2078 let conn_closed = dbg!(ep2_connect.await.anyerr()??); +2079 assert!(matches!( +2080 conn_closed, +2081 ConnectionError::ApplicationClosed(ApplicationClose { .. }) +2082 )); +2083 +2084 Ok(()) +2085 } +2086 +2087 #[tokio::test] +2088 #[traced_test] +2089 async fn endpoint_two_relay_only_becomes_direct() -> Result { +2090 // Connect two endpoints on the same network, via a relay server, without +2091 // Address Lookup. Wait until there is a direct connection. +2092 let (relay_map, _relay_url, _relay_server_guard) = run_relay_server().await?; +2093 let (node_addr_tx, node_addr_rx) = oneshot::channel(); +2094 let qlog = Arc::new(QlogFileGroup::from_env("two_relay_only_becomes_direct")); +2095 +2096 #[instrument(name = "client", skip_all)] +2097 async fn connect( +2098 relay_map: RelayMap, +2099 node_addr_rx: oneshot::Receiver<EndpointAddr>, +2100 qlog: Arc<QlogFileGroup>, +2101 ) -> Result<ConnectionError> { +2102 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +2103 let secret = SecretKey::generate(&mut rng); +2104 let ep = Endpoint::builder() +2105 .secret_key(secret) +2106 .alpns(vec![TEST_ALPN.to_vec()]) +2107 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2108 .relay_mode(RelayMode::Custom(relay_map)) +2109 .transport_config(qlog.create("client")?) +2110 .bind() +2111 .await?; +2112 info!(me = %ep.id().fmt_short(), "client starting"); +2113 let dst = node_addr_rx.await.anyerr()?; +2114 +2115 info!(me = %ep.id().fmt_short(), "client connecting"); +2116 let conn = ep.connect(dst, TEST_ALPN).await?; +2117 let mut send = conn.open_uni().await.anyerr()?; +2118 send.write_all(b"hello").await.anyerr()?; +2119 let mut paths = conn.paths().stream(); +2120 info!("Waiting for direct connection"); +2121 while let Some(infos) = paths.next().await { +2122 info!(?infos, "new PathInfos"); +2123 if infos.iter().any(|info| info.is_ip()) { +2124 break; +2125 } +2126 } +2127 info!("Have direct connection"); +2128 // Validate holepunch metrics. +2129 assert_eq!(ep.metrics().socket.num_conns_opened.get(), 1); +2130 assert_eq!(ep.metrics().socket.num_conns_direct.get(), 1); +2131 +2132 send.write_all(b"close please").await.anyerr()?; +2133 send.finish().anyerr()?; +2134 +2135 let res = conn.closed().await; +2136 ep.close().await; +2137 Ok(res) +2138 } +2139 +2140 #[instrument(name = "server", skip_all)] +2141 async fn accept( +2142 relay_map: RelayMap, +2143 node_addr_tx: oneshot::Sender<EndpointAddr>, +2144 qlog: Arc<QlogFileGroup>, +2145 ) -> Result { +2146 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(1u64); +2147 let secret = SecretKey::generate(&mut rng); +2148 let ep = Endpoint::builder() +2149 .secret_key(secret) +2150 .alpns(vec![TEST_ALPN.to_vec()]) +2151 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2152 .transport_config(qlog.create("server")?) +2153 .relay_mode(RelayMode::Custom(relay_map)) +2154 .bind() +2155 .await?; +2156 ep.online().await; +2157 let mut node_addr = ep.addr(); +2158 node_addr.addrs.retain(|addr| addr.is_relay()); +2159 node_addr_tx.send(node_addr).unwrap(); 2160 -2161 Ok(()) -2162 } -2163 -2164 #[tokio::test] -2165 #[traced_test] -2166 async fn endpoint_two_relay_only_no_ip() -> Result { -2167 // Connect two endpoints on the same network, via a relay server, without -2168 // Address Lookup. -2169 let (relay_map, _relay_url, _relay_server_guard) = run_relay_server().await?; -2170 let (node_addr_tx, node_addr_rx) = oneshot::channel(); -2171 -2172 #[instrument(name = "client", skip_all)] -2173 async fn connect( -2174 relay_map: RelayMap, -2175 node_addr_rx: oneshot::Receiver<EndpointAddr>, -2176 ) -> Result<ConnectionError> { -2177 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -2178 let secret = SecretKey::generate(&mut rng); -2179 let ep = Endpoint::builder() -2180 .secret_key(secret) -2181 .alpns(vec![TEST_ALPN.to_vec()]) -2182 .insecure_skip_relay_cert_verify(true) -2183 .relay_mode(RelayMode::Custom(relay_map)) -2184 .clear_ip_transports() // disable direct -2185 .bind() -2186 .await?; -2187 info!(me = %ep.id().fmt_short(), "client starting"); -2188 let dst = node_addr_rx.await.anyerr()?; -2189 -2190 info!(me = %ep.id().fmt_short(), "client connecting"); -2191 let conn = ep.connect(dst, TEST_ALPN).await?; -2192 let mut send = conn.open_uni().await.anyerr()?; -2193 send.write_all(b"hello").await.anyerr()?; -2194 let mut paths = conn.paths().stream(); -2195 info!("Waiting for connection"); -2196 'outer: while let Some(infos) = paths.next().await { -2197 info!(?infos, "new PathInfos"); -2198 for info in infos.iter() { -2199 if info.is_ip() { -2200 panic!("should not happen: {:?}", info); -2201 } -2202 if info.is_relay() { -2203 break 'outer; -2204 } -2205 } -2206 } -2207 info!("Have relay connection"); -2208 send.write_all(b"close please").await.anyerr()?; -2209 send.finish().anyerr()?; -2210 let res = conn.closed().await; -2211 ep.close().await; -2212 Ok(res) -2213 } -2214 -2215 #[instrument(name = "server", skip_all)] -2216 async fn accept( -2217 relay_map: RelayMap, -2218 node_addr_tx: oneshot::Sender<EndpointAddr>, -2219 ) -> Result { -2220 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(1u64); -2221 let secret = SecretKey::generate(&mut rng); -2222 let ep = Endpoint::builder() -2223 .secret_key(secret) -2224 .alpns(vec![TEST_ALPN.to_vec()]) -2225 .insecure_skip_relay_cert_verify(true) -2226 .relay_mode(RelayMode::Custom(relay_map)) -2227 .clear_ip_transports() -2228 .bind() -2229 .await?; -2230 ep.online().await; -2231 let node_addr = ep.addr(); -2232 node_addr_tx.send(node_addr).unwrap(); -2233 -2234 info!(me = %ep.id().fmt_short(), "server starting"); -2235 let conn = ep.accept().await.anyerr()?.await.anyerr()?; -2236 // let node_id = conn.remote_node_id()?; -2237 // assert_eq!(node_id, src); -2238 let mut recv = conn.accept_uni().await.anyerr()?; -2239 let mut msg = [0u8; 5]; -2240 recv.read_exact(&mut msg).await.anyerr()?; -2241 assert_eq!(&msg, b"hello"); -2242 info!("received hello"); -2243 let msg = recv.read_to_end(100).await.anyerr()?; -2244 assert_eq!(msg, b"close please"); -2245 info!("received 'close please'"); -2246 // Closing the endpoint closes all connections. -2247 ep.close().await; -2248 Ok(()) -2249 } -2250 -2251 let server_task = tokio::spawn(accept(relay_map.clone(), node_addr_tx)); -2252 let client_task = tokio::spawn(connect(relay_map, node_addr_rx)); -2253 -2254 server_task.await.anyerr()??; -2255 let conn_closed = dbg!(client_task.await.anyerr()??); -2256 assert!(matches!( -2257 conn_closed, -2258 ConnectionError::ApplicationClosed(ApplicationClose { .. }) -2259 )); +2161 info!(me = %ep.id().fmt_short(), "server starting"); +2162 let conn = ep.accept().await.anyerr()?.await.anyerr()?; +2163 // let node_id = conn.remote_node_id()?; +2164 // assert_eq!(node_id, src); +2165 let mut recv = conn.accept_uni().await.anyerr()?; +2166 let mut msg = [0u8; 5]; +2167 recv.read_exact(&mut msg).await.anyerr()?; +2168 assert_eq!(&msg, b"hello"); +2169 info!("received hello"); +2170 let msg = recv.read_to_end(100).await.anyerr()?; +2171 assert_eq!(msg, b"close please"); +2172 info!("received 'close please'"); +2173 // Closing the endpoint closes all connections. +2174 ep.close().await; +2175 Ok(()) +2176 } +2177 +2178 let server_task = tokio::spawn(accept(relay_map.clone(), node_addr_tx, qlog.clone())); +2179 let client_task = tokio::spawn(connect(relay_map, node_addr_rx, qlog)); +2180 +2181 server_task.await.anyerr()??; +2182 let conn_closed = dbg!(client_task.await.anyerr()??); +2183 assert!(matches!( +2184 conn_closed, +2185 ConnectionError::ApplicationClosed(ApplicationClose { .. }) +2186 )); +2187 +2188 Ok(()) +2189 } +2190 +2191 #[tokio::test] +2192 #[traced_test] +2193 async fn endpoint_two_relay_only_no_ip() -> Result { +2194 // Connect two endpoints on the same network, via a relay server, without +2195 // Address Lookup. +2196 let (relay_map, _relay_url, _relay_server_guard) = run_relay_server().await?; +2197 let (node_addr_tx, node_addr_rx) = oneshot::channel(); +2198 +2199 #[instrument(name = "client", skip_all)] +2200 async fn connect( +2201 relay_map: RelayMap, +2202 node_addr_rx: oneshot::Receiver<EndpointAddr>, +2203 ) -> Result<ConnectionError> { +2204 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +2205 let secret = SecretKey::generate(&mut rng); +2206 let ep = Endpoint::builder() +2207 .secret_key(secret) +2208 .alpns(vec![TEST_ALPN.to_vec()]) +2209 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2210 .relay_mode(RelayMode::Custom(relay_map)) +2211 .clear_ip_transports() // disable direct +2212 .bind() +2213 .await?; +2214 info!(me = %ep.id().fmt_short(), "client starting"); +2215 let dst = node_addr_rx.await.anyerr()?; +2216 +2217 info!(me = %ep.id().fmt_short(), "client connecting"); +2218 let conn = ep.connect(dst, TEST_ALPN).await?; +2219 let mut send = conn.open_uni().await.anyerr()?; +2220 send.write_all(b"hello").await.anyerr()?; +2221 let mut paths = conn.paths().stream(); +2222 info!("Waiting for connection"); +2223 'outer: while let Some(infos) = paths.next().await { +2224 info!(?infos, "new PathInfos"); +2225 for info in infos.iter() { +2226 if info.is_ip() { +2227 panic!("should not happen: {:?}", info); +2228 } +2229 if info.is_relay() { +2230 break 'outer; +2231 } +2232 } +2233 } +2234 info!("Have relay connection"); +2235 send.write_all(b"close please").await.anyerr()?; +2236 send.finish().anyerr()?; +2237 let res = conn.closed().await; +2238 ep.close().await; +2239 Ok(res) +2240 } +2241 +2242 #[instrument(name = "server", skip_all)] +2243 async fn accept( +2244 relay_map: RelayMap, +2245 node_addr_tx: oneshot::Sender<EndpointAddr>, +2246 ) -> Result { +2247 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(1u64); +2248 let secret = SecretKey::generate(&mut rng); +2249 let ep = Endpoint::builder() +2250 .secret_key(secret) +2251 .alpns(vec![TEST_ALPN.to_vec()]) +2252 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2253 .relay_mode(RelayMode::Custom(relay_map)) +2254 .clear_ip_transports() +2255 .bind() +2256 .await?; +2257 ep.online().await; +2258 let node_addr = ep.addr(); +2259 node_addr_tx.send(node_addr).unwrap(); 2260 -2261 Ok(()) -2262 } -2263 -2264 #[tokio::test] -2265 #[traced_test] -2266 async fn endpoint_two_direct_add_relay() -> Result { -2267 // Connect two endpoints on the same network, without relay server and without -2268 // Address Lookup. Add a relay connection later. -2269 let (relay_map, _relay_url, _relay_server_guard) = run_relay_server().await?; -2270 let (node_addr_tx, node_addr_rx) = oneshot::channel(); -2271 -2272 #[instrument(name = "client", skip_all)] -2273 async fn connect( -2274 relay_map: RelayMap, -2275 node_addr_rx: oneshot::Receiver<EndpointAddr>, -2276 ) -> Result<()> { -2277 let secret = SecretKey::from([0u8; 32]); -2278 let ep = Endpoint::builder() -2279 .secret_key(secret) -2280 .alpns(vec![TEST_ALPN.to_vec()]) -2281 .insecure_skip_relay_cert_verify(true) -2282 .relay_mode(RelayMode::Custom(relay_map)) -2283 .bind() -2284 .await?; -2285 info!(me = %ep.id().fmt_short(), "client starting"); -2286 let dst = node_addr_rx.await.anyerr()?; +2261 info!(me = %ep.id().fmt_short(), "server starting"); +2262 let conn = ep.accept().await.anyerr()?.await.anyerr()?; +2263 // let node_id = conn.remote_node_id()?; +2264 // assert_eq!(node_id, src); +2265 let mut recv = conn.accept_uni().await.anyerr()?; +2266 let mut msg = [0u8; 5]; +2267 recv.read_exact(&mut msg).await.anyerr()?; +2268 assert_eq!(&msg, b"hello"); +2269 info!("received hello"); +2270 let msg = recv.read_to_end(100).await.anyerr()?; +2271 assert_eq!(msg, b"close please"); +2272 info!("received 'close please'"); +2273 // Closing the endpoint closes all connections. +2274 ep.close().await; +2275 Ok(()) +2276 } +2277 +2278 let server_task = tokio::spawn(accept(relay_map.clone(), node_addr_tx)); +2279 let client_task = tokio::spawn(connect(relay_map, node_addr_rx)); +2280 +2281 server_task.await.anyerr()??; +2282 let conn_closed = dbg!(client_task.await.anyerr()??); +2283 assert!(matches!( +2284 conn_closed, +2285 ConnectionError::ApplicationClosed(ApplicationClose { .. }) +2286 )); 2287 -2288 info!(me = %ep.id().fmt_short(), "client connecting"); -2289 let conn = ep.connect(dst, TEST_ALPN).await?; -2290 info!(me = %ep.id().fmt_short(), "client connected"); -2291 -2292 // We should be connected via IP, because it is faster than the relay server. -2293 // TODO: Maybe not panic if this is not true? -2294 let path_info = conn.paths().get(); -2295 assert_eq!(path_info.len(), 1); -2296 assert!(path_info.iter().next().unwrap().is_ip()); -2297 -2298 let mut paths = conn.paths().stream(); -2299 time::timeout(Duration::from_secs(5), async move { -2300 while let Some(infos) = paths.next().await { -2301 info!(?infos, "new PathInfos"); -2302 if infos.iter().any(|info| info.is_relay()) { -2303 info!("client has a relay path"); -2304 break; -2305 } -2306 } -2307 }) -2308 .await -2309 .anyerr()?; -2310 -2311 // wait for the server to signal it has the relay connection -2312 let mut stream = conn.accept_uni().await.anyerr()?; -2313 stream.read_to_end(100).await.anyerr()?; +2288 Ok(()) +2289 } +2290 +2291 #[tokio::test] +2292 #[traced_test] +2293 async fn endpoint_two_direct_add_relay() -> Result { +2294 // Connect two endpoints on the same network, without relay server and without +2295 // Address Lookup. Add a relay connection later. +2296 let (relay_map, _relay_url, _relay_server_guard) = run_relay_server().await?; +2297 let (node_addr_tx, node_addr_rx) = oneshot::channel(); +2298 +2299 #[instrument(name = "client", skip_all)] +2300 async fn connect( +2301 relay_map: RelayMap, +2302 node_addr_rx: oneshot::Receiver<EndpointAddr>, +2303 ) -> Result<()> { +2304 let secret = SecretKey::from([0u8; 32]); +2305 let ep = Endpoint::builder() +2306 .secret_key(secret) +2307 .alpns(vec![TEST_ALPN.to_vec()]) +2308 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2309 .relay_mode(RelayMode::Custom(relay_map)) +2310 .bind() +2311 .await?; +2312 info!(me = %ep.id().fmt_short(), "client starting"); +2313 let dst = node_addr_rx.await.anyerr()?; 2314 -2315 info!("client closing"); -2316 conn.close(0u8.into(), b""); -2317 ep.close().await; -2318 Ok(()) -2319 } -2320 -2321 #[instrument(name = "server", skip_all)] -2322 async fn accept( -2323 relay_map: RelayMap, -2324 node_addr_tx: oneshot::Sender<EndpointAddr>, -2325 ) -> Result<ConnectionError> { -2326 let secret = SecretKey::from([1u8; 32]); -2327 let ep = Endpoint::builder() -2328 .secret_key(secret) -2329 .alpns(vec![TEST_ALPN.to_vec()]) -2330 .insecure_skip_relay_cert_verify(true) -2331 .relay_mode(RelayMode::Custom(relay_map)) -2332 .bind() -2333 .await?; -2334 ep.online().await; -2335 let node_addr = ep.addr(); -2336 node_addr_tx.send(node_addr).unwrap(); +2315 info!(me = %ep.id().fmt_short(), "client connecting"); +2316 let conn = ep.connect(dst, TEST_ALPN).await?; +2317 info!(me = %ep.id().fmt_short(), "client connected"); +2318 +2319 // We should be connected via IP, because it is faster than the relay server. +2320 // TODO: Maybe not panic if this is not true? +2321 let path_info = conn.paths().get(); +2322 assert_eq!(path_info.len(), 1); +2323 assert!(path_info.iter().next().unwrap().is_ip()); +2324 +2325 let mut paths = conn.paths().stream(); +2326 time::timeout(Duration::from_secs(5), async move { +2327 while let Some(infos) = paths.next().await { +2328 info!(?infos, "new PathInfos"); +2329 if infos.iter().any(|info| info.is_relay()) { +2330 info!("client has a relay path"); +2331 break; +2332 } +2333 } +2334 }) +2335 .await +2336 .anyerr()?; 2337 -2338 info!(me = %ep.id().fmt_short(), "server starting"); -2339 let conn = ep.accept().await.anyerr()?.await.anyerr()?; -2340 info!(me = %ep.id().fmt_short(), "server accepted connection"); +2338 // wait for the server to signal it has the relay connection +2339 let mut stream = conn.accept_uni().await.anyerr()?; +2340 stream.read_to_end(100).await.anyerr()?; 2341 -2342 // Wait for a relay connection to be added. Client does all the asserting here, -2343 // we just want to wait so we get to see all the mechanics of the connection -2344 // being added on this side too. -2345 let mut paths = conn.paths().stream(); -2346 time::timeout(Duration::from_secs(5), async move { -2347 while let Some(infos) = paths.next().await { -2348 info!(?infos, "new PathInfos"); -2349 if infos.iter().any(|path| path.is_relay()) { -2350 info!("server has a relay path"); -2351 break; -2352 } -2353 } -2354 }) -2355 .await -2356 .anyerr()?; -2357 -2358 let mut stream = conn.open_uni().await.anyerr()?; -2359 stream.write_all(b"have relay").await.anyerr()?; -2360 stream.finish().anyerr()?; -2361 info!("waiting conn.closed()"); -2362 -2363 Ok(conn.closed().await) -2364 } -2365 -2366 let server_task = tokio::spawn(accept(relay_map.clone(), node_addr_tx)); -2367 let client_task = tokio::spawn(connect(relay_map, node_addr_rx)); +2342 info!("client closing"); +2343 conn.close(0u8.into(), b""); +2344 ep.close().await; +2345 Ok(()) +2346 } +2347 +2348 #[instrument(name = "server", skip_all)] +2349 async fn accept( +2350 relay_map: RelayMap, +2351 node_addr_tx: oneshot::Sender<EndpointAddr>, +2352 ) -> Result<ConnectionError> { +2353 let secret = SecretKey::from([1u8; 32]); +2354 let ep = Endpoint::builder() +2355 .secret_key(secret) +2356 .alpns(vec![TEST_ALPN.to_vec()]) +2357 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2358 .relay_mode(RelayMode::Custom(relay_map)) +2359 .bind() +2360 .await?; +2361 ep.online().await; +2362 let node_addr = ep.addr(); +2363 node_addr_tx.send(node_addr).unwrap(); +2364 +2365 info!(me = %ep.id().fmt_short(), "server starting"); +2366 let conn = ep.accept().await.anyerr()?.await.anyerr()?; +2367 info!(me = %ep.id().fmt_short(), "server accepted connection"); 2368 -2369 client_task.await.anyerr()??; -2370 let conn_closed = dbg!(server_task.await.anyerr()??); -2371 assert!(matches!( -2372 conn_closed, -2373 ConnectionError::ApplicationClosed(ApplicationClose { .. }) -2374 )); -2375 -2376 Ok(()) -2377 } -2378 -2379 #[tokio::test] -2380 #[traced_test] -2381 async fn endpoint_relay_map_change() -> Result { -2382 let (relay_map, relay_url, _guard1) = run_relay_server().await?; -2383 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -2384 .insecure_skip_relay_cert_verify(true) -2385 .bind() -2386 .await?; -2387 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map)) -2388 .insecure_skip_relay_cert_verify(true) -2389 .alpns(vec![TEST_ALPN.to_vec()]) -2390 .bind() -2391 .await?; +2369 // Wait for a relay connection to be added. Client does all the asserting here, +2370 // we just want to wait so we get to see all the mechanics of the connection +2371 // being added on this side too. +2372 let mut paths = conn.paths().stream(); +2373 time::timeout(Duration::from_secs(5), async move { +2374 while let Some(infos) = paths.next().await { +2375 info!(?infos, "new PathInfos"); +2376 if infos.iter().any(|path| path.is_relay()) { +2377 info!("server has a relay path"); +2378 break; +2379 } +2380 } +2381 }) +2382 .await +2383 .anyerr()?; +2384 +2385 let mut stream = conn.open_uni().await.anyerr()?; +2386 stream.write_all(b"have relay").await.anyerr()?; +2387 stream.finish().anyerr()?; +2388 info!("waiting conn.closed()"); +2389 +2390 Ok(conn.closed().await) +2391 } 2392 -2393 let task = tokio::spawn({ -2394 let server = server.clone(); -2395 async move { -2396 for i in 0..2 { -2397 println!("accept: round {i}"); -2398 let Some(conn) = server.accept().await else { -2399 n0_error::bail_any!("Expected an incoming connection"); -2400 }; -2401 let conn = conn.await.anyerr()?; -2402 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; -2403 let data = recv.read_to_end(1000).await.anyerr()?; -2404 send.write_all(&data).await.anyerr()?; -2405 send.finish().anyerr()?; -2406 conn.closed().await; -2407 } -2408 Ok::<_, Error>(()) -2409 } -2410 }); -2411 -2412 server.online().await; -2413 -2414 let mut addr = server.addr(); -2415 println!("round1: {:?}", addr); -2416 -2417 // remove direct addrs to force relay usage -2418 addr.addrs -2419 .retain(|addr| !matches!(addr, TransportAddr::Ip(_))); -2420 -2421 let conn = client.connect(addr, TEST_ALPN).await?; -2422 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -2423 send.write_all(b"Hello, world!").await.anyerr()?; -2424 send.finish().anyerr()?; -2425 let data = recv.read_to_end(1000).await.anyerr()?; -2426 conn.close(0u32.into(), b"bye!"); -2427 -2428 assert_eq!(&data, b"Hello, world!"); -2429 -2430 // setup a second relay server -2431 let (new_relay_map, new_relay_url, _guard2) = run_relay_server().await?; -2432 let new_endpoint = new_relay_map -2433 .get(&new_relay_url) -2434 .expect("missing endpoint") -2435 .clone(); -2436 dbg!(&new_relay_map); -2437 -2438 let addr_watcher = server.watch_addr(); -2439 -2440 // add new new relay -2441 assert!( -2442 server -2443 .insert_relay(new_relay_url.clone(), new_endpoint.clone()) -2444 .await -2445 .is_none() -2446 ); -2447 // remove the old relay -2448 assert!(server.remove_relay(&relay_url).await.is_some()); -2449 -2450 println!("------- changed ----- "); -2451 -2452 let mut addr = tokio::time::timeout(Duration::from_secs(10), async move { -2453 let mut stream = addr_watcher.stream(); -2454 while let Some(addr) = stream.next().await { -2455 if addr.relay_urls().next() != Some(&relay_url) { -2456 return addr; -2457 } -2458 } -2459 panic!("failed to change relay"); -2460 }) -2461 .await -2462 .anyerr()?; -2463 -2464 println!("round2: {:?}", addr); -2465 assert_eq!(addr.relay_urls().next(), Some(&new_relay_url)); +2393 let server_task = tokio::spawn(accept(relay_map.clone(), node_addr_tx)); +2394 let client_task = tokio::spawn(connect(relay_map, node_addr_rx)); +2395 +2396 client_task.await.anyerr()??; +2397 let conn_closed = dbg!(server_task.await.anyerr()??); +2398 assert!(matches!( +2399 conn_closed, +2400 ConnectionError::ApplicationClosed(ApplicationClose { .. }) +2401 )); +2402 +2403 Ok(()) +2404 } +2405 +2406 #[tokio::test] +2407 #[traced_test] +2408 async fn endpoint_relay_map_change() -> Result { +2409 let (relay_map, relay_url, _guard1) = run_relay_server().await?; +2410 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +2411 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2412 .bind() +2413 .await?; +2414 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map)) +2415 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2416 .alpns(vec![TEST_ALPN.to_vec()]) +2417 .bind() +2418 .await?; +2419 +2420 let task = tokio::spawn({ +2421 let server = server.clone(); +2422 async move { +2423 for i in 0..2 { +2424 println!("accept: round {i}"); +2425 let Some(conn) = server.accept().await else { +2426 n0_error::bail_any!("Expected an incoming connection"); +2427 }; +2428 let conn = conn.await.anyerr()?; +2429 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; +2430 let data = recv.read_to_end(1000).await.anyerr()?; +2431 send.write_all(&data).await.anyerr()?; +2432 send.finish().anyerr()?; +2433 conn.closed().await; +2434 } +2435 Ok::<_, Error>(()) +2436 } +2437 }); +2438 +2439 server.online().await; +2440 +2441 let mut addr = server.addr(); +2442 println!("round1: {:?}", addr); +2443 +2444 // remove direct addrs to force relay usage +2445 addr.addrs +2446 .retain(|addr| !matches!(addr, TransportAddr::Ip(_))); +2447 +2448 let conn = client.connect(addr, TEST_ALPN).await?; +2449 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +2450 send.write_all(b"Hello, world!").await.anyerr()?; +2451 send.finish().anyerr()?; +2452 let data = recv.read_to_end(1000).await.anyerr()?; +2453 conn.close(0u32.into(), b"bye!"); +2454 +2455 assert_eq!(&data, b"Hello, world!"); +2456 +2457 // setup a second relay server +2458 let (new_relay_map, new_relay_url, _guard2) = run_relay_server().await?; +2459 let new_endpoint = new_relay_map +2460 .get(&new_relay_url) +2461 .expect("missing endpoint") +2462 .clone(); +2463 dbg!(&new_relay_map); +2464 +2465 let addr_watcher = server.watch_addr(); 2466 -2467 // remove direct addrs to force relay usage -2468 addr.addrs -2469 .retain(|addr| !matches!(addr, TransportAddr::Ip(_))); -2470 -2471 let conn = client.connect(addr, TEST_ALPN).await?; -2472 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -2473 send.write_all(b"Hello, world!").await.anyerr()?; -2474 send.finish().anyerr()?; -2475 let data = recv.read_to_end(1000).await.anyerr()?; -2476 conn.close(0u32.into(), b"bye!"); -2477 -2478 task.await.anyerr()??; -2479 -2480 client.close().await; -2481 server.close().await; -2482 -2483 assert_eq!(&data, b"Hello, world!"); -2484 -2485 Ok(()) -2486 } -2487 -2488 #[tokio::test] -2489 #[traced_test] -2490 async fn endpoint_bidi_send_recv() -> Result { -2491 let disco = MemoryLookup::new(); -2492 let ep1 = Endpoint::empty_builder(RelayMode::Disabled) -2493 .address_lookup(disco.clone()) -2494 .alpns(vec![TEST_ALPN.to_vec()]) -2495 .bind() -2496 .await?; +2467 // add new new relay +2468 assert!( +2469 server +2470 .insert_relay(new_relay_url.clone(), new_endpoint.clone()) +2471 .await +2472 .is_none() +2473 ); +2474 // remove the old relay +2475 assert!(server.remove_relay(&relay_url).await.is_some()); +2476 +2477 println!("------- changed ----- "); +2478 +2479 let mut addr = tokio::time::timeout(Duration::from_secs(10), async move { +2480 let mut stream = addr_watcher.stream(); +2481 while let Some(addr) = stream.next().await { +2482 if addr.relay_urls().next() != Some(&relay_url) { +2483 return addr; +2484 } +2485 } +2486 panic!("failed to change relay"); +2487 }) +2488 .await +2489 .anyerr()?; +2490 +2491 println!("round2: {:?}", addr); +2492 assert_eq!(addr.relay_urls().next(), Some(&new_relay_url)); +2493 +2494 // remove direct addrs to force relay usage +2495 addr.addrs +2496 .retain(|addr| !matches!(addr, TransportAddr::Ip(_))); 2497 -2498 let ep2 = Endpoint::empty_builder(RelayMode::Disabled) -2499 .address_lookup(disco.clone()) -2500 .alpns(vec![TEST_ALPN.to_vec()]) -2501 .bind() -2502 .await?; -2503 -2504 disco.add_endpoint_info(ep1.addr()); -2505 disco.add_endpoint_info(ep2.addr()); +2498 let conn = client.connect(addr, TEST_ALPN).await?; +2499 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +2500 send.write_all(b"Hello, world!").await.anyerr()?; +2501 send.finish().anyerr()?; +2502 let data = recv.read_to_end(1000).await.anyerr()?; +2503 conn.close(0u32.into(), b"bye!"); +2504 +2505 task.await.anyerr()??; 2506 -2507 let ep1_endpointid = ep1.id(); -2508 let ep2_endpointid = ep2.id(); -2509 eprintln!("endpoint id 1 {ep1_endpointid}"); -2510 eprintln!("endpoint id 2 {ep2_endpointid}"); +2507 client.close().await; +2508 server.close().await; +2509 +2510 assert_eq!(&data, b"Hello, world!"); 2511 -2512 async fn connect_hello(ep: Endpoint, dst: EndpointId) -> Result { -2513 let conn = ep.connect(dst, TEST_ALPN).await?; -2514 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -2515 info!("sending hello"); -2516 send.write_all(b"hello").await.anyerr()?; -2517 send.finish().anyerr()?; -2518 info!("receiving world"); -2519 let m = recv.read_to_end(100).await.anyerr()?; -2520 assert_eq!(m, b"world"); -2521 conn.close(1u8.into(), b"done"); -2522 Ok(()) -2523 } +2512 Ok(()) +2513 } +2514 +2515 #[tokio::test] +2516 #[traced_test] +2517 async fn endpoint_bidi_send_recv() -> Result { +2518 let disco = MemoryLookup::new(); +2519 let ep1 = Endpoint::empty_builder(RelayMode::Disabled) +2520 .address_lookup(disco.clone()) +2521 .alpns(vec![TEST_ALPN.to_vec()]) +2522 .bind() +2523 .await?; 2524 -2525 async fn accept_world(ep: Endpoint, src: EndpointId) -> Result { -2526 let incoming = ep.accept().await.anyerr()?; -2527 let mut iconn = incoming.accept().anyerr()?; -2528 let alpn = iconn.alpn().await?; -2529 let conn = iconn.await.anyerr()?; -2530 let endpoint_id = conn.remote_id(); -2531 assert_eq!(endpoint_id, src); -2532 assert_eq!(alpn, TEST_ALPN); -2533 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; -2534 info!("receiving hello"); -2535 let m = recv.read_to_end(100).await.anyerr()?; -2536 assert_eq!(m, b"hello"); -2537 info!("sending hello"); -2538 send.write_all(b"world").await.anyerr()?; -2539 send.finish().anyerr()?; -2540 match conn.closed().await { -2541 ConnectionError::ApplicationClosed(closed) => { -2542 assert_eq!(closed.error_code, 1u8.into()); -2543 Ok(()) -2544 } -2545 _ => panic!("wrong close error"), -2546 } -2547 } -2548 -2549 let p1_accept = tokio::spawn(accept_world(ep1.clone(), ep2_endpointid).instrument( -2550 info_span!( -2551 "p1_accept", -2552 ep1 = %ep1.id().fmt_short(), -2553 dst = %ep2_endpointid.fmt_short(), -2554 ), -2555 )); -2556 let p2_accept = tokio::spawn(accept_world(ep2.clone(), ep1_endpointid).instrument( -2557 info_span!( -2558 "p2_accept", -2559 ep2 = %ep2.id().fmt_short(), -2560 dst = %ep1_endpointid.fmt_short(), -2561 ), -2562 )); -2563 let p1_connect = tokio::spawn(connect_hello(ep1.clone(), ep2_endpointid).instrument( -2564 info_span!( -2565 "p1_connect", -2566 ep1 = %ep1.id().fmt_short(), -2567 dst = %ep2_endpointid.fmt_short(), -2568 ), -2569 )); -2570 let p2_connect = tokio::spawn(connect_hello(ep2.clone(), ep1_endpointid).instrument( -2571 info_span!( -2572 "p2_connect", -2573 ep2 = %ep2.id().fmt_short(), -2574 dst = %ep1_endpointid.fmt_short(), -2575 ), -2576 )); -2577 -2578 p1_accept.await.anyerr()??; -2579 p2_accept.await.anyerr()??; -2580 p1_connect.await.anyerr()??; -2581 p2_connect.await.anyerr()??; -2582 -2583 Ok(()) -2584 } -2585 -2586 #[tokio::test] -2587 #[traced_test] -2588 async fn test_direct_addresses_no_qad_relay() -> Result { -2589 let (relay_map, _, _guard) = run_relay_server_with(false).await.unwrap(); -2590 -2591 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map)) -2592 .alpns(vec![TEST_ALPN.to_vec()]) -2593 .insecure_skip_relay_cert_verify(true) -2594 .bind() -2595 .await?; -2596 -2597 assert!(ep.addr().ip_addrs().count() > 0); -2598 -2599 Ok(()) -2600 } -2601 -2602 #[cfg_attr(target_os = "windows", ignore = "flaky")] -2603 #[tokio::test] -2604 #[traced_test] -2605 async fn graceful_close() -> Result { -2606 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; -2607 let server = Endpoint::empty_builder(RelayMode::Disabled) -2608 .alpns(vec![TEST_ALPN.to_vec()]) -2609 .bind() -2610 .await?; -2611 let server_addr = server.addr(); -2612 let server_task = tokio::spawn(async move { -2613 let incoming = server.accept().await.anyerr()?; -2614 let conn = incoming.await.anyerr()?; -2615 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; -2616 let msg = recv.read_to_end(1_000).await.anyerr()?; -2617 send.write_all(&msg).await.anyerr()?; -2618 send.finish().anyerr()?; -2619 let close_reason = conn.closed().await; -2620 Ok::<_, Error>(close_reason) -2621 }); -2622 -2623 let conn = client.connect(server_addr, TEST_ALPN).await?; -2624 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -2625 send.write_all(b"Hello, world!").await.anyerr()?; -2626 send.finish().anyerr()?; -2627 recv.read_to_end(1_000).await.anyerr()?; -2628 conn.close(42u32.into(), b"thanks, bye!"); -2629 client.close().await; -2630 -2631 let close_err = server_task.await.anyerr()??; -2632 let ConnectionError::ApplicationClosed(app_close) = close_err else { -2633 panic!("Unexpected close reason: {close_err:?}"); -2634 }; -2635 -2636 assert_eq!(app_close.error_code, 42u32.into()); -2637 assert_eq!(app_close.reason.as_ref(), b"thanks, bye!"); -2638 -2639 Ok(()) -2640 } -2641 -2642 #[cfg(feature = "metrics")] -2643 #[tokio::test] -2644 #[traced_test] -2645 async fn metrics_smoke() -> Result { -2646 use iroh_metrics::Registry; -2647 -2648 let secret_key = SecretKey::from_bytes(&[0u8; 32]); -2649 let client = Endpoint::empty_builder(RelayMode::Disabled) -2650 .secret_key(secret_key) -2651 .bind() -2652 .await?; -2653 let secret_key = SecretKey::from_bytes(&[1u8; 32]); -2654 let server = Endpoint::empty_builder(RelayMode::Disabled) -2655 .secret_key(secret_key) -2656 .alpns(vec![TEST_ALPN.to_vec()]) -2657 .bind() -2658 .await?; -2659 let server_addr = server.addr(); -2660 let server_task = tokio::task::spawn(async move { -2661 let conn = server.accept().await.anyerr()?.await.anyerr()?; -2662 let mut uni = conn.accept_uni().await.anyerr()?; -2663 uni.read_to_end(10).await.anyerr()?; -2664 drop(conn); -2665 Ok::<_, Error>(server) -2666 }); -2667 let conn = client.connect(server_addr, TEST_ALPN).await?; -2668 let mut uni = conn.open_uni().await.anyerr()?; -2669 uni.write_all(b"helloworld").await.anyerr()?; -2670 uni.finish().anyerr()?; -2671 conn.closed().await; -2672 drop(conn); -2673 let server = server_task.await.anyerr()??; +2525 let ep2 = Endpoint::empty_builder(RelayMode::Disabled) +2526 .address_lookup(disco.clone()) +2527 .alpns(vec![TEST_ALPN.to_vec()]) +2528 .bind() +2529 .await?; +2530 +2531 disco.add_endpoint_info(ep1.addr()); +2532 disco.add_endpoint_info(ep2.addr()); +2533 +2534 let ep1_endpointid = ep1.id(); +2535 let ep2_endpointid = ep2.id(); +2536 eprintln!("endpoint id 1 {ep1_endpointid}"); +2537 eprintln!("endpoint id 2 {ep2_endpointid}"); +2538 +2539 async fn connect_hello(ep: Endpoint, dst: EndpointId) -> Result { +2540 let conn = ep.connect(dst, TEST_ALPN).await?; +2541 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +2542 info!("sending hello"); +2543 send.write_all(b"hello").await.anyerr()?; +2544 send.finish().anyerr()?; +2545 info!("receiving world"); +2546 let m = recv.read_to_end(100).await.anyerr()?; +2547 assert_eq!(m, b"world"); +2548 conn.close(1u8.into(), b"done"); +2549 Ok(()) +2550 } +2551 +2552 async fn accept_world(ep: Endpoint, src: EndpointId) -> Result { +2553 let incoming = ep.accept().await.anyerr()?; +2554 let mut iconn = incoming.accept().anyerr()?; +2555 let alpn = iconn.alpn().await?; +2556 let conn = iconn.await.anyerr()?; +2557 let endpoint_id = conn.remote_id(); +2558 assert_eq!(endpoint_id, src); +2559 assert_eq!(alpn, TEST_ALPN); +2560 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; +2561 info!("receiving hello"); +2562 let m = recv.read_to_end(100).await.anyerr()?; +2563 assert_eq!(m, b"hello"); +2564 info!("sending hello"); +2565 send.write_all(b"world").await.anyerr()?; +2566 send.finish().anyerr()?; +2567 match conn.closed().await { +2568 ConnectionError::ApplicationClosed(closed) => { +2569 assert_eq!(closed.error_code, 1u8.into()); +2570 Ok(()) +2571 } +2572 _ => panic!("wrong close error"), +2573 } +2574 } +2575 +2576 let p1_accept = tokio::spawn(accept_world(ep1.clone(), ep2_endpointid).instrument( +2577 info_span!( +2578 "p1_accept", +2579 ep1 = %ep1.id().fmt_short(), +2580 dst = %ep2_endpointid.fmt_short(), +2581 ), +2582 )); +2583 let p2_accept = tokio::spawn(accept_world(ep2.clone(), ep1_endpointid).instrument( +2584 info_span!( +2585 "p2_accept", +2586 ep2 = %ep2.id().fmt_short(), +2587 dst = %ep1_endpointid.fmt_short(), +2588 ), +2589 )); +2590 let p1_connect = tokio::spawn(connect_hello(ep1.clone(), ep2_endpointid).instrument( +2591 info_span!( +2592 "p1_connect", +2593 ep1 = %ep1.id().fmt_short(), +2594 dst = %ep2_endpointid.fmt_short(), +2595 ), +2596 )); +2597 let p2_connect = tokio::spawn(connect_hello(ep2.clone(), ep1_endpointid).instrument( +2598 info_span!( +2599 "p2_connect", +2600 ep2 = %ep2.id().fmt_short(), +2601 dst = %ep1_endpointid.fmt_short(), +2602 ), +2603 )); +2604 +2605 p1_accept.await.anyerr()??; +2606 p2_accept.await.anyerr()??; +2607 p1_connect.await.anyerr()??; +2608 p2_connect.await.anyerr()??; +2609 +2610 Ok(()) +2611 } +2612 +2613 #[tokio::test] +2614 #[traced_test] +2615 async fn test_direct_addresses_no_qad_relay() -> Result { +2616 let (relay_map, _, _guard) = run_relay_server_with(false).await.unwrap(); +2617 +2618 let ep = Endpoint::empty_builder(RelayMode::Custom(relay_map)) +2619 .alpns(vec![TEST_ALPN.to_vec()]) +2620 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +2621 .bind() +2622 .await?; +2623 +2624 assert!(ep.addr().ip_addrs().count() > 0); +2625 +2626 Ok(()) +2627 } +2628 +2629 #[cfg_attr(target_os = "windows", ignore = "flaky")] +2630 #[tokio::test] +2631 #[traced_test] +2632 async fn graceful_close() -> Result { +2633 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; +2634 let server = Endpoint::empty_builder(RelayMode::Disabled) +2635 .alpns(vec![TEST_ALPN.to_vec()]) +2636 .bind() +2637 .await?; +2638 let server_addr = server.addr(); +2639 let server_task = tokio::spawn(async move { +2640 let incoming = server.accept().await.anyerr()?; +2641 let conn = incoming.await.anyerr()?; +2642 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; +2643 let msg = recv.read_to_end(1_000).await.anyerr()?; +2644 send.write_all(&msg).await.anyerr()?; +2645 send.finish().anyerr()?; +2646 let close_reason = conn.closed().await; +2647 Ok::<_, Error>(close_reason) +2648 }); +2649 +2650 let conn = client.connect(server_addr, TEST_ALPN).await?; +2651 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +2652 send.write_all(b"Hello, world!").await.anyerr()?; +2653 send.finish().anyerr()?; +2654 recv.read_to_end(1_000).await.anyerr()?; +2655 conn.close(42u32.into(), b"thanks, bye!"); +2656 client.close().await; +2657 +2658 let close_err = server_task.await.anyerr()??; +2659 let ConnectionError::ApplicationClosed(app_close) = close_err else { +2660 panic!("Unexpected close reason: {close_err:?}"); +2661 }; +2662 +2663 assert_eq!(app_close.error_code, 42u32.into()); +2664 assert_eq!(app_close.reason.as_ref(), b"thanks, bye!"); +2665 +2666 Ok(()) +2667 } +2668 +2669 #[cfg(feature = "metrics")] +2670 #[tokio::test] +2671 #[traced_test] +2672 async fn metrics_smoke() -> Result { +2673 use iroh_metrics::Registry; 2674 -2675 let m = client.metrics(); -2676 // assert_eq!(m.socket.num_direct_conns_added.get(), 1); -2677 // assert_eq!(m.socket.connection_became_direct.get(), 1); -2678 // assert_eq!(m.socket.connection_handshake_success.get(), 1); -2679 // assert_eq!(m.socket.endpoints_contacted_directly.get(), 1); -2680 assert!(m.socket.recv_datagrams.get() > 0); -2681 -2682 let m = server.metrics(); -2683 // assert_eq!(m.socket.num_direct_conns_added.get(), 1); -2684 // assert_eq!(m.socket.connection_became_direct.get(), 1); -2685 // assert_eq!(m.socket.endpoints_contacted_directly.get(), 1); -2686 // assert_eq!(m.socket.connection_handshake_success.get(), 1); -2687 assert!(m.socket.recv_datagrams.get() > 0); -2688 -2689 // test openmetrics encoding with labeled subregistries per endpoint -2690 fn register_endpoint(registry: &mut Registry, endpoint: &Endpoint) { -2691 let id = endpoint.id().fmt_short(); -2692 let sub_registry = registry.sub_registry_with_label("id", id.to_string()); -2693 sub_registry.register_all(endpoint.metrics()); -2694 } -2695 let mut registry = Registry::default(); -2696 register_endpoint(&mut registry, &client); -2697 register_endpoint(&mut registry, &server); -2698 // let s = registry.encode_openmetrics_to_string().anyerr()?; -2699 // assert!(s.contains(r#"socket_endpoints_contacted_directly_total{id="3b6a27bcce"} 1"#)); -2700 // assert!(s.contains(r#"socket_endpoints_contacted_directly_total{id="8a88e3dd74"} 1"#)); -2701 Ok(()) -2702 } -2703 -2704 /// Configures the accept side to take `accept_alpns` ALPNs, then connects to it with `primary_connect_alpn` -2705 /// with `secondary_connect_alpns` set, and finally returns the negotiated ALPN. -2706 async fn alpn_connection_test( -2707 accept_alpns: Vec<Vec<u8>>, -2708 primary_connect_alpn: &[u8], -2709 secondary_connect_alpns: Vec<Vec<u8>>, -2710 ) -> Result<Vec<u8>> { -2711 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; -2712 let server = Endpoint::empty_builder(RelayMode::Disabled) -2713 .alpns(accept_alpns) -2714 .bind() -2715 .await?; -2716 let server_addr = server.addr(); -2717 let server_task = tokio::spawn({ -2718 let server = server.clone(); -2719 async move { -2720 let incoming = server.accept().await.anyerr()?; -2721 let conn = incoming.await.anyerr()?; -2722 conn.close(0u32.into(), b"bye!"); -2723 n0_error::Ok(conn.alpn().to_vec()) -2724 } -2725 }); -2726 -2727 let conn = client -2728 .connect_with_opts( -2729 server_addr, -2730 primary_connect_alpn, -2731 ConnectOptions::new().with_additional_alpns(secondary_connect_alpns), -2732 ) -2733 .await?; -2734 let conn = conn.await.anyerr()?; -2735 let client_alpn = conn.alpn(); -2736 conn.closed().await; -2737 client.close().await; -2738 server.close().await; -2739 -2740 let server_alpn = server_task.await.anyerr()??; -2741 -2742 assert_eq!(client_alpn, server_alpn); -2743 -2744 Ok(server_alpn.to_vec()) -2745 } -2746 -2747 #[tokio::test] -2748 #[traced_test] -2749 async fn connect_multiple_alpn_negotiated() -> Result { -2750 const ALPN_ONE: &[u8] = b"alpn/1"; -2751 const ALPN_TWO: &[u8] = b"alpn/2"; -2752 -2753 assert_eq!( -2754 alpn_connection_test( -2755 // Prefer version 2 over version 1 on the accept side -2756 vec![ALPN_TWO.to_vec(), ALPN_ONE.to_vec()], -2757 ALPN_TWO, -2758 vec![ALPN_ONE.to_vec()], +2675 let secret_key = SecretKey::from_bytes(&[0u8; 32]); +2676 let client = Endpoint::empty_builder(RelayMode::Disabled) +2677 .secret_key(secret_key) +2678 .bind() +2679 .await?; +2680 let secret_key = SecretKey::from_bytes(&[1u8; 32]); +2681 let server = Endpoint::empty_builder(RelayMode::Disabled) +2682 .secret_key(secret_key) +2683 .alpns(vec![TEST_ALPN.to_vec()]) +2684 .bind() +2685 .await?; +2686 let server_addr = server.addr(); +2687 let server_task = tokio::task::spawn(async move { +2688 let conn = server.accept().await.anyerr()?.await.anyerr()?; +2689 let mut uni = conn.accept_uni().await.anyerr()?; +2690 uni.read_to_end(10).await.anyerr()?; +2691 drop(conn); +2692 Ok::<_, Error>(server) +2693 }); +2694 let conn = client.connect(server_addr, TEST_ALPN).await?; +2695 let mut uni = conn.open_uni().await.anyerr()?; +2696 uni.write_all(b"helloworld").await.anyerr()?; +2697 uni.finish().anyerr()?; +2698 conn.closed().await; +2699 drop(conn); +2700 let server = server_task.await.anyerr()??; +2701 +2702 let m = client.metrics(); +2703 // assert_eq!(m.socket.num_direct_conns_added.get(), 1); +2704 // assert_eq!(m.socket.connection_became_direct.get(), 1); +2705 // assert_eq!(m.socket.connection_handshake_success.get(), 1); +2706 // assert_eq!(m.socket.endpoints_contacted_directly.get(), 1); +2707 assert!(m.socket.recv_datagrams.get() > 0); +2708 +2709 let m = server.metrics(); +2710 // assert_eq!(m.socket.num_direct_conns_added.get(), 1); +2711 // assert_eq!(m.socket.connection_became_direct.get(), 1); +2712 // assert_eq!(m.socket.endpoints_contacted_directly.get(), 1); +2713 // assert_eq!(m.socket.connection_handshake_success.get(), 1); +2714 assert!(m.socket.recv_datagrams.get() > 0); +2715 +2716 // test openmetrics encoding with labeled subregistries per endpoint +2717 fn register_endpoint(registry: &mut Registry, endpoint: &Endpoint) { +2718 let id = endpoint.id().fmt_short(); +2719 let sub_registry = registry.sub_registry_with_label("id", id.to_string()); +2720 sub_registry.register_all(endpoint.metrics()); +2721 } +2722 let mut registry = Registry::default(); +2723 register_endpoint(&mut registry, &client); +2724 register_endpoint(&mut registry, &server); +2725 // let s = registry.encode_openmetrics_to_string().anyerr()?; +2726 // assert!(s.contains(r#"socket_endpoints_contacted_directly_total{id="3b6a27bcce"} 1"#)); +2727 // assert!(s.contains(r#"socket_endpoints_contacted_directly_total{id="8a88e3dd74"} 1"#)); +2728 Ok(()) +2729 } +2730 +2731 /// Configures the accept side to take `accept_alpns` ALPNs, then connects to it with `primary_connect_alpn` +2732 /// with `secondary_connect_alpns` set, and finally returns the negotiated ALPN. +2733 async fn alpn_connection_test( +2734 accept_alpns: Vec<Vec<u8>>, +2735 primary_connect_alpn: &[u8], +2736 secondary_connect_alpns: Vec<Vec<u8>>, +2737 ) -> Result<Vec<u8>> { +2738 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; +2739 let server = Endpoint::empty_builder(RelayMode::Disabled) +2740 .alpns(accept_alpns) +2741 .bind() +2742 .await?; +2743 let server_addr = server.addr(); +2744 let server_task = tokio::spawn({ +2745 let server = server.clone(); +2746 async move { +2747 let incoming = server.accept().await.anyerr()?; +2748 let conn = incoming.await.anyerr()?; +2749 conn.close(0u32.into(), b"bye!"); +2750 n0_error::Ok(conn.alpn().to_vec()) +2751 } +2752 }); +2753 +2754 let conn = client +2755 .connect_with_opts( +2756 server_addr, +2757 primary_connect_alpn, +2758 ConnectOptions::new().with_additional_alpns(secondary_connect_alpns), 2759 ) -2760 .await?, -2761 ALPN_TWO.to_vec(), -2762 "accept side prefers version 2 over 1" -2763 ); -2764 -2765 assert_eq!( -2766 alpn_connection_test( -2767 // Only support the old version -2768 vec![ALPN_ONE.to_vec()], -2769 ALPN_TWO, -2770 vec![ALPN_ONE.to_vec()], -2771 ) -2772 .await?, -2773 ALPN_ONE.to_vec(), -2774 "accept side only supports the old version" -2775 ); -2776 -2777 assert_eq!( -2778 alpn_connection_test( -2779 vec![ALPN_TWO.to_vec(), ALPN_ONE.to_vec()], -2780 ALPN_ONE, -2781 vec![ALPN_TWO.to_vec()], -2782 ) -2783 .await?, -2784 ALPN_TWO.to_vec(), -2785 "connect side ALPN order doesn't matter" -2786 ); -2787 -2788 assert_eq!( -2789 alpn_connection_test(vec![ALPN_TWO.to_vec(), ALPN_ONE.to_vec()], ALPN_ONE, vec![],) -2790 .await?, -2791 ALPN_ONE.to_vec(), -2792 "connect side only supports the old version" -2793 ); -2794 -2795 Ok(()) -2796 } -2797 -2798 #[tokio::test] -2799 #[traced_test] -2800 async fn watch_net_report() -> Result { -2801 let endpoint = Endpoint::empty_builder(RelayMode::Staging).bind().await?; -2802 -2803 // can get a first report -2804 endpoint.net_report().updated().await.anyerr()?; -2805 -2806 Ok(()) -2807 } -2808 -2809 /// Tests that initial connection establishment isn't extremely slow compared -2810 /// to subsequent connections. -2811 /// -2812 /// This is a time based test, but uses a very large ratio to reduce flakiness. -2813 /// It also does a number of connections to average out any anomalies. -2814 #[tokio::test] -2815 #[traced_test] -2816 async fn connect_multi_time() -> Result { -2817 let n = 32; -2818 -2819 const NOOP_ALPN: &[u8] = b"noop"; -2820 -2821 #[derive(Debug, Clone)] -2822 struct Noop; -2823 -2824 impl ProtocolHandler for Noop { -2825 async fn accept(&self, connection: Connection) -> Result<(), AcceptError> { -2826 connection.closed().await; -2827 Ok(()) -2828 } -2829 } -2830 -2831 async fn noop_server() -> Result<(Router, EndpointAddr)> { -2832 let endpoint = Endpoint::empty_builder(RelayMode::Disabled) -2833 .bind() -2834 .await -2835 .anyerr()?; -2836 let addr = endpoint.addr(); -2837 let router = Router::builder(endpoint).accept(NOOP_ALPN, Noop).spawn(); -2838 Ok((router, addr)) -2839 } -2840 -2841 let routers = stream::iter(0..n) -2842 .map(|_| noop_server()) -2843 .buffered_unordered(32) -2844 .collect::<Vec<_>>() -2845 .await -2846 .into_iter() -2847 .collect::<Result<Vec<_>, _>>() -2848 .anyerr()?; -2849 -2850 let addrs = routers -2851 .iter() -2852 .map(|(_, addr)| addr.clone()) -2853 .collect::<Vec<_>>(); -2854 let ids = addrs.iter().map(|addr| addr.id).collect::<Vec<_>>(); -2855 let address_lookup = MemoryLookup::from_endpoint_info(addrs); -2856 let endpoint = Endpoint::empty_builder(RelayMode::Disabled) -2857 .address_lookup(address_lookup) -2858 .bind() -2859 .await -2860 .anyerr()?; -2861 // wait for the endpoint to be initialized. This should not be needed, -2862 // but we don't want to measure endpoint init time but connection time -2863 // from a fully initialized endpoint. -2864 endpoint.addr(); -2865 let t0 = Instant::now(); -2866 for id in &ids { -2867 let conn = endpoint.connect(*id, NOOP_ALPN).await?; -2868 conn.close(0u32.into(), b"done"); -2869 } -2870 let dt0 = t0.elapsed().as_secs_f64(); -2871 let t1 = Instant::now(); -2872 for id in &ids { -2873 let conn = endpoint.connect(*id, NOOP_ALPN).await?; -2874 conn.close(0u32.into(), b"done"); -2875 } -2876 let dt1 = t1.elapsed().as_secs_f64(); -2877 -2878 assert!(dt0 / dt1 < 20.0, "First round: {dt0}s, second round {dt1}s"); -2879 Ok(()) -2880 } -2881 -2882 #[tokio::test] -2883 async fn test_custom_relay() -> Result { -2884 let _ep = Endpoint::empty_builder(RelayMode::custom([RelayUrl::from_str( -2885 "https://use1-1.relay.n0.iroh-canary.iroh.link.", -2886 )?])) -2887 .bind() -2888 .await?; -2889 -2890 let relays = RelayMap::try_from_iter([ -2891 "https://use1-1.relay.n0.iroh.iroh.link/", -2892 "https://euc1-1.relay.n0.iroh.iroh.link/", -2893 ])?; -2894 let _ep = Endpoint::empty_builder(RelayMode::Custom(relays)) -2895 .bind() -2896 .await?; -2897 -2898 Ok(()) -2899 } -2900 -2901 /// Testing bind_addr: Clear IP transports and add single IPv4 bind -2902 #[tokio::test] -2903 #[traced_test] -2904 async fn test_bind_addr_clear() -> Result { -2905 let ep = Endpoint::empty_builder(RelayMode::Disabled) -2906 .clear_ip_transports() -2907 .bind_addr((Ipv4Addr::LOCALHOST, 0))? -2908 .bind() -2909 .await?; -2910 let bound_sockets = ep.bound_sockets(); -2911 assert_eq!(bound_sockets.len(), 1); -2912 assert_eq!(bound_sockets[0].ip(), IpAddr::V4(Ipv4Addr::LOCALHOST)); -2913 ep.close().await; -2914 Ok(()) -2915 } +2760 .await?; +2761 let conn = conn.await.anyerr()?; +2762 let client_alpn = conn.alpn(); +2763 conn.closed().await; +2764 client.close().await; +2765 server.close().await; +2766 +2767 let server_alpn = server_task.await.anyerr()??; +2768 +2769 assert_eq!(client_alpn, server_alpn); +2770 +2771 Ok(server_alpn.to_vec()) +2772 } +2773 +2774 #[tokio::test] +2775 #[traced_test] +2776 async fn connect_multiple_alpn_negotiated() -> Result { +2777 const ALPN_ONE: &[u8] = b"alpn/1"; +2778 const ALPN_TWO: &[u8] = b"alpn/2"; +2779 +2780 assert_eq!( +2781 alpn_connection_test( +2782 // Prefer version 2 over version 1 on the accept side +2783 vec![ALPN_TWO.to_vec(), ALPN_ONE.to_vec()], +2784 ALPN_TWO, +2785 vec![ALPN_ONE.to_vec()], +2786 ) +2787 .await?, +2788 ALPN_TWO.to_vec(), +2789 "accept side prefers version 2 over 1" +2790 ); +2791 +2792 assert_eq!( +2793 alpn_connection_test( +2794 // Only support the old version +2795 vec![ALPN_ONE.to_vec()], +2796 ALPN_TWO, +2797 vec![ALPN_ONE.to_vec()], +2798 ) +2799 .await?, +2800 ALPN_ONE.to_vec(), +2801 "accept side only supports the old version" +2802 ); +2803 +2804 assert_eq!( +2805 alpn_connection_test( +2806 vec![ALPN_TWO.to_vec(), ALPN_ONE.to_vec()], +2807 ALPN_ONE, +2808 vec![ALPN_TWO.to_vec()], +2809 ) +2810 .await?, +2811 ALPN_TWO.to_vec(), +2812 "connect side ALPN order doesn't matter" +2813 ); +2814 +2815 assert_eq!( +2816 alpn_connection_test(vec![ALPN_TWO.to_vec(), ALPN_ONE.to_vec()], ALPN_ONE, vec![],) +2817 .await?, +2818 ALPN_ONE.to_vec(), +2819 "connect side only supports the old version" +2820 ); +2821 +2822 Ok(()) +2823 } +2824 +2825 #[tokio::test] +2826 #[traced_test] +2827 async fn watch_net_report() -> Result { +2828 let endpoint = Endpoint::empty_builder(RelayMode::Staging).bind().await?; +2829 +2830 // can get a first report +2831 endpoint.net_report().updated().await.anyerr()?; +2832 +2833 Ok(()) +2834 } +2835 +2836 /// Tests that initial connection establishment isn't extremely slow compared +2837 /// to subsequent connections. +2838 /// +2839 /// This is a time based test, but uses a very large ratio to reduce flakiness. +2840 /// It also does a number of connections to average out any anomalies. +2841 #[tokio::test] +2842 #[traced_test] +2843 async fn connect_multi_time() -> Result { +2844 let n = 32; +2845 +2846 const NOOP_ALPN: &[u8] = b"noop"; +2847 +2848 #[derive(Debug, Clone)] +2849 struct Noop; +2850 +2851 impl ProtocolHandler for Noop { +2852 async fn accept(&self, connection: Connection) -> Result<(), AcceptError> { +2853 connection.closed().await; +2854 Ok(()) +2855 } +2856 } +2857 +2858 async fn noop_server() -> Result<(Router, EndpointAddr)> { +2859 let endpoint = Endpoint::empty_builder(RelayMode::Disabled) +2860 .bind() +2861 .await +2862 .anyerr()?; +2863 let addr = endpoint.addr(); +2864 let router = Router::builder(endpoint).accept(NOOP_ALPN, Noop).spawn(); +2865 Ok((router, addr)) +2866 } +2867 +2868 let routers = stream::iter(0..n) +2869 .map(|_| noop_server()) +2870 .buffered_unordered(32) +2871 .collect::<Vec<_>>() +2872 .await +2873 .into_iter() +2874 .collect::<Result<Vec<_>, _>>() +2875 .anyerr()?; +2876 +2877 let addrs = routers +2878 .iter() +2879 .map(|(_, addr)| addr.clone()) +2880 .collect::<Vec<_>>(); +2881 let ids = addrs.iter().map(|addr| addr.id).collect::<Vec<_>>(); +2882 let address_lookup = MemoryLookup::from_endpoint_info(addrs); +2883 let endpoint = Endpoint::empty_builder(RelayMode::Disabled) +2884 .address_lookup(address_lookup) +2885 .bind() +2886 .await +2887 .anyerr()?; +2888 // wait for the endpoint to be initialized. This should not be needed, +2889 // but we don't want to measure endpoint init time but connection time +2890 // from a fully initialized endpoint. +2891 endpoint.addr(); +2892 let t0 = Instant::now(); +2893 for id in &ids { +2894 let conn = endpoint.connect(*id, NOOP_ALPN).await?; +2895 conn.close(0u32.into(), b"done"); +2896 } +2897 let dt0 = t0.elapsed().as_secs_f64(); +2898 let t1 = Instant::now(); +2899 for id in &ids { +2900 let conn = endpoint.connect(*id, NOOP_ALPN).await?; +2901 conn.close(0u32.into(), b"done"); +2902 } +2903 let dt1 = t1.elapsed().as_secs_f64(); +2904 +2905 assert!(dt0 / dt1 < 20.0, "First round: {dt0}s, second round {dt1}s"); +2906 Ok(()) +2907 } +2908 +2909 #[tokio::test] +2910 async fn test_custom_relay() -> Result { +2911 let _ep = Endpoint::empty_builder(RelayMode::custom([RelayUrl::from_str( +2912 "https://use1-1.relay.n0.iroh-canary.iroh.link.", +2913 )?])) +2914 .bind() +2915 .await?; 2916 -2917 /// Testing bind_addr: Do not clear IP transports and add single non-default IPv4 bind -2918 /// -2919 /// This will bind two sockets: default wildcard bind for IPv6, and our -2920 /// manually-added IPv4 bind. -2921 #[tokio::test] -2922 #[traced_test] -2923 async fn test_bind_addr_no_clear() -> Result { -2924 let ep = Endpoint::empty_builder(RelayMode::Disabled) -2925 .bind_addr((Ipv4Addr::LOCALHOST, 0))? -2926 .bind() -2927 .await?; -2928 let bound_sockets = ep.bound_sockets(); -2929 assert_eq!(bound_sockets.len(), 2); -2930 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv4()).count(), 1); -2931 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv6()).count(), 1); -2932 // Test that our manually added socket is there -2933 assert!( -2934 bound_sockets -2935 .iter() -2936 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) -2937 ); -2938 ep.close().await; -2939 Ok(()) -2940 } -2941 -2942 // Testing bind_addr: Do not clear IP transports and add single default IPv4 bind. -2943 // -2944 // This replaces the default IPv4 bind added by the builder, -2945 // but keeps the default wildcard IPv6 bind. -2946 #[tokio::test] -2947 #[traced_test] -2948 async fn test_bind_addr_default() -> Result { -2949 let ep = Endpoint::empty_builder(RelayMode::Disabled) -2950 .bind_addr_with_opts( -2951 (Ipv4Addr::LOCALHOST, 0), -2952 BindOpts::default().set_is_default_route(true), -2953 )? -2954 .bind() -2955 .await?; -2956 let bound_sockets = ep.bound_sockets(); -2957 assert_eq!(bound_sockets.len(), 2); -2958 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv4()).count(), 1); -2959 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv6()).count(), 1); -2960 assert!( +2917 let relays = RelayMap::try_from_iter([ +2918 "https://use1-1.relay.n0.iroh.iroh.link/", +2919 "https://euc1-1.relay.n0.iroh.iroh.link/", +2920 ])?; +2921 let _ep = Endpoint::empty_builder(RelayMode::Custom(relays)) +2922 .bind() +2923 .await?; +2924 +2925 Ok(()) +2926 } +2927 +2928 /// Testing bind_addr: Clear IP transports and add single IPv4 bind +2929 #[tokio::test] +2930 #[traced_test] +2931 async fn test_bind_addr_clear() -> Result { +2932 let ep = Endpoint::empty_builder(RelayMode::Disabled) +2933 .clear_ip_transports() +2934 .bind_addr((Ipv4Addr::LOCALHOST, 0))? +2935 .bind() +2936 .await?; +2937 let bound_sockets = ep.bound_sockets(); +2938 assert_eq!(bound_sockets.len(), 1); +2939 assert_eq!(bound_sockets[0].ip(), IpAddr::V4(Ipv4Addr::LOCALHOST)); +2940 ep.close().await; +2941 Ok(()) +2942 } +2943 +2944 /// Testing bind_addr: Do not clear IP transports and add single non-default IPv4 bind +2945 /// +2946 /// This will bind two sockets: default wildcard bind for IPv6, and our +2947 /// manually-added IPv4 bind. +2948 #[tokio::test] +2949 #[traced_test] +2950 async fn test_bind_addr_no_clear() -> Result { +2951 let ep = Endpoint::empty_builder(RelayMode::Disabled) +2952 .bind_addr((Ipv4Addr::LOCALHOST, 0))? +2953 .bind() +2954 .await?; +2955 let bound_sockets = ep.bound_sockets(); +2956 assert_eq!(bound_sockets.len(), 2); +2957 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv4()).count(), 1); +2958 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv6()).count(), 1); +2959 // Test that our manually added socket is there +2960 assert!( 2961 bound_sockets 2962 .iter() 2963 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) 2964 ); 2965 ep.close().await; -2966 drop(ep); -2967 -2968 Ok(()) -2969 } -2970 -2971 /// Testing bind_addr: Do not clear IP transports and add single IPv4 bind with a non-zero prefix len -2972 /// -2973 /// This will bind three sockets: default wildcard bind for IPv4 and IPv6, and our -2974 /// manually-added IPv4 bind. -2975 #[tokio::test] -2976 #[traced_test] -2977 async fn test_bind_addr_nonzero_prefix() -> Result { -2978 let ep = Endpoint::empty_builder(RelayMode::Disabled) -2979 .bind_addr_with_opts( -2980 (Ipv4Addr::LOCALHOST, 0), -2981 BindOpts::default().set_prefix_len(32), -2982 )? -2983 .bind() -2984 .await?; -2985 let bound_sockets = ep.bound_sockets(); -2986 assert_eq!(bound_sockets.len(), 3); -2987 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv4()).count(), 2); -2988 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv6()).count(), 1); -2989 // Test that the default wildcard socket is there -2990 assert!( -2991 bound_sockets -2992 .iter() -2993 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::UNSPECIFIED)) -2994 ); -2995 // Test that our manually added socket is there -2996 assert!( -2997 bound_sockets -2998 .iter() -2999 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) -3000 ); -3001 ep.close().await; -3002 Ok(()) -3003 } -3004 -3005 /// Bind on an unusable port with the default opts. -3006 /// -3007 /// Binding the endpoint fails with an AddrInUse error. -3008 #[tokio::test] -3009 #[traced_test] -3010 async fn test_bind_addr_badport() -> Result { -3011 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; -3012 let port = socket.local_addr()?.port(); -3013 -3014 let res = Endpoint::empty_builder(RelayMode::Disabled) -3015 .clear_ip_transports() -3016 .bind_addr((Ipv4Addr::LOCALHOST, port))? -3017 .bind() -3018 .await; -3019 -3020 assert!(matches!( -3021 res, -3022 Err(BindError::Sockets { -3023 source: io_error, -3024 .. -3025 }) -3026 if io_error.kind() == io::ErrorKind::AddrInUse -3027 )); -3028 Ok(()) -3029 } -3030 -3031 /// Bind a non-default route on an unusable port, but set is_required = false. -3032 /// -3033 /// Binding the endpoint succeeds. -3034 #[tokio::test] -3035 #[traced_test] -3036 async fn test_bind_addr_badport_notrequired() -> Result { -3037 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; -3038 let port = socket.local_addr()?.port(); -3039 -3040 let ep = Endpoint::empty_builder(RelayMode::Disabled) -3041 .bind_addr_with_opts( -3042 (Ipv4Addr::LOCALHOST, port), -3043 BindOpts::default() -3044 .set_prefix_len(32) -3045 .set_is_required(false), -3046 )? -3047 .bind() -3048 .await?; -3049 let bound_sockets = ep.bound_sockets(); -3050 // just the default wildcard binds -3051 assert_eq!(bound_sockets.len(), 2); -3052 // our requested bind addr is not included because it failed to bind -3053 assert!( -3054 !bound_sockets -3055 .iter() -3056 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) -3057 ); -3058 Ok(()) -3059 } -3060 -3061 /// Bind on a default route on an unusable port, but set is_required = false. -3062 /// -3063 /// Binding the endpoint succeeds. -3064 #[tokio::test] -3065 #[traced_test] -3066 async fn test_bind_addr_badport_default_notrequired() -> Result { -3067 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; -3068 let port = socket.local_addr()?.port(); -3069 -3070 let ep = Endpoint::empty_builder(RelayMode::Disabled) -3071 .bind_addr_with_opts( -3072 (Ipv4Addr::LOCALHOST, port), -3073 BindOpts::default().set_is_required(false), -3074 )? -3075 .bind() -3076 .await?; -3077 let bound_sockets = ep.bound_sockets(); -3078 // just the IPv6 default, but no IPv4 bind at all because we replaced the default -3079 // with a bind with an unusable port and set it to not be required. -3080 assert_eq!(bound_sockets.len(), 1); -3081 assert!(bound_sockets[0].is_ipv6()); -3082 Ok(()) -3083 } -3084 -3085 /// Bind on an unusable port, with is_required = false, and no other transports. -3086 /// -3087 /// Binding the endpoint fails with "no valid address available". -3088 #[tokio::test] -3089 #[traced_test] -3090 async fn test_bind_addr_badport_notrequired_no_other_transports() -> Result { -3091 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; -3092 let port = socket.local_addr()?.port(); -3093 -3094 let res = Endpoint::empty_builder(RelayMode::Disabled) -3095 .clear_ip_transports() -3096 .bind_addr_with_opts( -3097 (Ipv4Addr::LOCALHOST, port), -3098 BindOpts::default().set_is_required(false), -3099 )? -3100 .bind() -3101 .await; -3102 -3103 assert!(matches!( -3104 res, -3105 Err(BindError::CreateQuicEndpoint { -3106 source: io_error, -3107 .. -3108 }) -3109 if io_error.kind() == io::ErrorKind::Other && io_error.to_string() == "no valid address available" -3110 )); -3111 Ok(()) -3112 } -3113 -3114 /// Bind with prefix len 0 but set the route as non-default. +2966 Ok(()) +2967 } +2968 +2969 // Testing bind_addr: Do not clear IP transports and add single default IPv4 bind. +2970 // +2971 // This replaces the default IPv4 bind added by the builder, +2972 // but keeps the default wildcard IPv6 bind. +2973 #[tokio::test] +2974 #[traced_test] +2975 async fn test_bind_addr_default() -> Result { +2976 let ep = Endpoint::empty_builder(RelayMode::Disabled) +2977 .bind_addr_with_opts( +2978 (Ipv4Addr::LOCALHOST, 0), +2979 BindOpts::default().set_is_default_route(true), +2980 )? +2981 .bind() +2982 .await?; +2983 let bound_sockets = ep.bound_sockets(); +2984 assert_eq!(bound_sockets.len(), 2); +2985 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv4()).count(), 1); +2986 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv6()).count(), 1); +2987 assert!( +2988 bound_sockets +2989 .iter() +2990 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) +2991 ); +2992 ep.close().await; +2993 drop(ep); +2994 +2995 Ok(()) +2996 } +2997 +2998 /// Testing bind_addr: Do not clear IP transports and add single IPv4 bind with a non-zero prefix len +2999 /// +3000 /// This will bind three sockets: default wildcard bind for IPv4 and IPv6, and our +3001 /// manually-added IPv4 bind. +3002 #[tokio::test] +3003 #[traced_test] +3004 async fn test_bind_addr_nonzero_prefix() -> Result { +3005 let ep = Endpoint::empty_builder(RelayMode::Disabled) +3006 .bind_addr_with_opts( +3007 (Ipv4Addr::LOCALHOST, 0), +3008 BindOpts::default().set_prefix_len(32), +3009 )? +3010 .bind() +3011 .await?; +3012 let bound_sockets = ep.bound_sockets(); +3013 assert_eq!(bound_sockets.len(), 3); +3014 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv4()).count(), 2); +3015 assert_eq!(bound_sockets.iter().filter(|x| x.is_ipv6()).count(), 1); +3016 // Test that the default wildcard socket is there +3017 assert!( +3018 bound_sockets +3019 .iter() +3020 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::UNSPECIFIED)) +3021 ); +3022 // Test that our manually added socket is there +3023 assert!( +3024 bound_sockets +3025 .iter() +3026 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) +3027 ); +3028 ep.close().await; +3029 Ok(()) +3030 } +3031 +3032 /// Bind on an unusable port with the default opts. +3033 /// +3034 /// Binding the endpoint fails with an AddrInUse error. +3035 #[tokio::test] +3036 #[traced_test] +3037 async fn test_bind_addr_badport() -> Result { +3038 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; +3039 let port = socket.local_addr()?.port(); +3040 +3041 let res = Endpoint::empty_builder(RelayMode::Disabled) +3042 .clear_ip_transports() +3043 .bind_addr((Ipv4Addr::LOCALHOST, port))? +3044 .bind() +3045 .await; +3046 +3047 assert!(matches!( +3048 res, +3049 Err(BindError::Sockets { +3050 source: io_error, +3051 .. +3052 }) +3053 if io_error.kind() == io::ErrorKind::AddrInUse +3054 )); +3055 Ok(()) +3056 } +3057 +3058 /// Bind a non-default route on an unusable port, but set is_required = false. +3059 /// +3060 /// Binding the endpoint succeeds. +3061 #[tokio::test] +3062 #[traced_test] +3063 async fn test_bind_addr_badport_notrequired() -> Result { +3064 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; +3065 let port = socket.local_addr()?.port(); +3066 +3067 let ep = Endpoint::empty_builder(RelayMode::Disabled) +3068 .bind_addr_with_opts( +3069 (Ipv4Addr::LOCALHOST, port), +3070 BindOpts::default() +3071 .set_prefix_len(32) +3072 .set_is_required(false), +3073 )? +3074 .bind() +3075 .await?; +3076 let bound_sockets = ep.bound_sockets(); +3077 // just the default wildcard binds +3078 assert_eq!(bound_sockets.len(), 2); +3079 // our requested bind addr is not included because it failed to bind +3080 assert!( +3081 !bound_sockets +3082 .iter() +3083 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) +3084 ); +3085 Ok(()) +3086 } +3087 +3088 /// Bind on a default route on an unusable port, but set is_required = false. +3089 /// +3090 /// Binding the endpoint succeeds. +3091 #[tokio::test] +3092 #[traced_test] +3093 async fn test_bind_addr_badport_default_notrequired() -> Result { +3094 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; +3095 let port = socket.local_addr()?.port(); +3096 +3097 let ep = Endpoint::empty_builder(RelayMode::Disabled) +3098 .bind_addr_with_opts( +3099 (Ipv4Addr::LOCALHOST, port), +3100 BindOpts::default().set_is_required(false), +3101 )? +3102 .bind() +3103 .await?; +3104 let bound_sockets = ep.bound_sockets(); +3105 // just the IPv6 default, but no IPv4 bind at all because we replaced the default +3106 // with a bind with an unusable port and set it to not be required. +3107 assert_eq!(bound_sockets.len(), 1); +3108 assert!(bound_sockets[0].is_ipv6()); +3109 Ok(()) +3110 } +3111 +3112 /// Bind on an unusable port, with is_required = false, and no other transports. +3113 /// +3114 /// Binding the endpoint fails with "no valid address available". 3115 #[tokio::test] 3116 #[traced_test] -3117 async fn test_bind_addr_prefix_len_0_not_default() -> Result { -3118 let ep = Endpoint::empty_builder(RelayMode::Disabled) -3119 .bind_addr_with_opts( -3120 (Ipv4Addr::LOCALHOST, 0), -3121 BindOpts::default().set_is_default_route(false), -3122 )? -3123 .bind() -3124 .await?; -3125 let bound_sockets = ep.bound_sockets(); -3126 // The two default wildcard binds plus our additional route (which does not replace the default route -3127 // because we set is_default_route to false explicitly). -3128 assert_eq!(bound_sockets.len(), 3); -3129 assert!( -3130 bound_sockets -3131 .iter() -3132 .any(|x| x.ip() == IpAddr::V6(Ipv6Addr::UNSPECIFIED)) -3133 ); -3134 assert!( -3135 bound_sockets -3136 .iter() -3137 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::UNSPECIFIED)) -3138 ); -3139 assert!( -3140 bound_sockets -3141 .iter() -3142 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) -3143 ); -3144 Ok(()) -3145 } -3146 -3147 #[ignore = "flaky"] -3148 #[tokio::test] -3149 #[traced_test] -3150 async fn connect_via_relay_becomes_direct_and_sends_direct() -> Result { -3151 let (relay_map, relay_url, _relay_server_guard) = run_relay_server().await?; -3152 let qlog = Arc::new(QlogFileGroup::from_env( -3153 "connect_via_relay_becomes_direct_and_sends_direct", -3154 )); -3155 let transfer_size = 1_000_000; -3156 -3157 fn collect_stats(mut watcher: PathWatcher) -> BTreeMap<TransportAddr, PathStats> { -3158 watcher -3159 .get() -3160 .iter() -3161 .map(|info| { -3162 ( -3163 info.remote_addr().clone(), -3164 info.stats().expect("conn is not yet dropped"), -3165 ) -3166 }) -3167 .collect() -3168 } -3169 -3170 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -3171 .insecure_skip_relay_cert_verify(true) -3172 .transport_config(qlog.create("client")?) -3173 .bind() -3174 .await?; -3175 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map)) -3176 .insecure_skip_relay_cert_verify(true) -3177 .transport_config(qlog.create("server")?) -3178 .alpns(vec![TEST_ALPN.to_vec()]) -3179 .bind() -3180 .await?; -3181 let server_addr = EndpointAddr::new(server.id()).with_relay_url(relay_url); -3182 let server_task = tokio::spawn(async move { -3183 let incoming = server.accept().await.anyerr()?; -3184 let conn = incoming.await.anyerr()?; -3185 let watcher = conn.paths(); -3186 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; -3187 let msg = recv.read_to_end(transfer_size).await.anyerr()?; -3188 send.write_all(&msg).await.anyerr()?; -3189 send.finish().anyerr()?; -3190 conn.closed().await; -3191 let stats = collect_stats(watcher); -3192 Ok::<_, Error>(stats) -3193 }); -3194 -3195 let conn = client.connect(server_addr, TEST_ALPN).await?; -3196 let watcher = conn.paths(); -3197 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -3198 send.write_all(&vec![42u8; transfer_size]).await.anyerr()?; -3199 send.finish().anyerr()?; -3200 recv.read_to_end(transfer_size).await.anyerr()?; -3201 conn.close(0u32.into(), b"thanks, bye!"); -3202 client.close().await; -3203 let client_stats = collect_stats(watcher); -3204 let server_stats = server_task.await.anyerr()??; -3205 -3206 info!("client stats: {client_stats:#?}"); -3207 info!("server stats: {server_stats:#?}"); -3208 -3209 let client_total_relay_tx = client_stats -3210 .iter() -3211 .filter(|(remote, _stats)| remote.is_relay()) -3212 .map(|(_, stats)| stats.udp_tx.bytes) -3213 .sum::<u64>(); -3214 let client_total_relay_rx = client_stats -3215 .iter() -3216 .filter(|(remote, _stats)| remote.is_relay()) -3217 .map(|(_, stats)| stats.udp_rx.bytes) -3218 .sum::<u64>(); -3219 let server_total_relay_tx = server_stats -3220 .iter() -3221 .filter(|(remote, _stats)| remote.is_relay()) -3222 .map(|(_, stats)| stats.udp_tx.bytes) -3223 .sum::<u64>(); -3224 let server_total_relay_rx = server_stats -3225 .iter() -3226 .filter(|(remote, _stats)| remote.is_relay()) -3227 .map(|(_, stats)| stats.udp_rx.bytes) -3228 .sum::<u64>(); -3229 -3230 info!(?client_total_relay_tx, "total"); -3231 info!(?client_total_relay_rx, "total"); -3232 info!(?server_total_relay_tx, "total"); -3233 info!(?server_total_relay_rx, "total"); -3234 -3235 // We should send/receive only the minorty of traffic via the relay. -3236 assert!(client_total_relay_tx < transfer_size as u64 / 2); -3237 assert!(client_total_relay_rx < transfer_size as u64 / 2); -3238 assert!(server_total_relay_tx < transfer_size as u64 / 2); -3239 assert!(server_total_relay_rx < transfer_size as u64 / 2); -3240 -3241 Ok(()) -3242 } -3243 -3244 /// Tests that correct logs are emitted when connecting two endpoints with same secret keys to a relay. -3245 #[tokio::test] -3246 #[traced_test] -3247 async fn same_endpoint_id_relay() -> Result { -3248 let (relay_map, relay_url, _relay_server_guard) = run_relay_server().await?; -3249 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(1u64); -3250 let secret_key = SecretKey::generate(&mut rng); -3251 -3252 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -3253 .insecure_skip_relay_cert_verify(true) -3254 .bind() -3255 .instrument(error_span!("ep-client")) -3256 .await?; -3257 -3258 info!("client {}", client.id()); -3259 -3260 // bind ep1 and wait until connected to relay. -3261 let ep1 = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -3262 .secret_key(secret_key.clone()) -3263 .insecure_skip_relay_cert_verify(true) -3264 .alpns(vec![TEST_ALPN.to_vec()]) -3265 .bind() -3266 .instrument(error_span!("ep1")) -3267 .await?; -3268 info!("ep1 bound {:?}", ep1.id()); -3269 ep1.online().await; -3270 info!("ep1 online"); -3271 -3272 let addr = EndpointAddr::new(secret_key.public()).with_relay_url(relay_url.clone()); -3273 -3274 tokio::try_join!( -3275 async { -3276 let conn = client.connect(addr.clone(), TEST_ALPN).await?; -3277 let reason = conn.closed().await; -3278 assert!(is_application_closed(&reason, 1)); -3279 n0_error::Ok(()) -3280 }, -3281 async { -3282 let conn = ep1.accept().await.unwrap().await?; -3283 conn.close(1u32.into(), b"bye"); -3284 n0_error::Ok(()) -3285 } -3286 )?; -3287 info!("client connected to ep1"); -3288 -3289 // now start second endpoint with same secret key -3290 let ep2 = Endpoint::empty_builder(RelayMode::Custom(relay_map)) -3291 .secret_key(secret_key.clone()) -3292 .insecure_skip_relay_cert_verify(true) -3293 .alpns(vec![TEST_ALPN.to_vec()]) -3294 .bind() -3295 .instrument(error_span!("ep2")) -3296 .await?; -3297 info!("ep2 bound {:?}", ep2.id()); -3298 ep2.online().await; -3299 println!("ep2 online"); +3117 async fn test_bind_addr_badport_notrequired_no_other_transports() -> Result { +3118 let socket = std::net::UdpSocket::bind((Ipv4Addr::LOCALHOST, 0))?; +3119 let port = socket.local_addr()?.port(); +3120 +3121 let res = Endpoint::empty_builder(RelayMode::Disabled) +3122 .clear_ip_transports() +3123 .bind_addr_with_opts( +3124 (Ipv4Addr::LOCALHOST, port), +3125 BindOpts::default().set_is_required(false), +3126 )? +3127 .bind() +3128 .await; +3129 +3130 assert!(matches!( +3131 res, +3132 Err(BindError::CreateQuicEndpoint { +3133 source: io_error, +3134 .. +3135 }) +3136 if io_error.kind() == io::ErrorKind::Other && io_error.to_string() == "no valid address available" +3137 )); +3138 Ok(()) +3139 } +3140 +3141 /// Bind with prefix len 0 but set the route as non-default. +3142 #[tokio::test] +3143 #[traced_test] +3144 async fn test_bind_addr_prefix_len_0_not_default() -> Result { +3145 let ep = Endpoint::empty_builder(RelayMode::Disabled) +3146 .bind_addr_with_opts( +3147 (Ipv4Addr::LOCALHOST, 0), +3148 BindOpts::default().set_is_default_route(false), +3149 )? +3150 .bind() +3151 .await?; +3152 let bound_sockets = ep.bound_sockets(); +3153 // The two default wildcard binds plus our additional route (which does not replace the default route +3154 // because we set is_default_route to false explicitly). +3155 assert_eq!(bound_sockets.len(), 3); +3156 assert!( +3157 bound_sockets +3158 .iter() +3159 .any(|x| x.ip() == IpAddr::V6(Ipv6Addr::UNSPECIFIED)) +3160 ); +3161 assert!( +3162 bound_sockets +3163 .iter() +3164 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::UNSPECIFIED)) +3165 ); +3166 assert!( +3167 bound_sockets +3168 .iter() +3169 .any(|x| x.ip() == IpAddr::V4(Ipv4Addr::LOCALHOST)) +3170 ); +3171 Ok(()) +3172 } +3173 +3174 #[ignore = "flaky"] +3175 #[tokio::test] +3176 #[traced_test] +3177 async fn connect_via_relay_becomes_direct_and_sends_direct() -> Result { +3178 let (relay_map, relay_url, _relay_server_guard) = run_relay_server().await?; +3179 let qlog = Arc::new(QlogFileGroup::from_env( +3180 "connect_via_relay_becomes_direct_and_sends_direct", +3181 )); +3182 let transfer_size = 1_000_000; +3183 +3184 fn collect_stats(mut watcher: PathWatcher) -> BTreeMap<TransportAddr, PathStats> { +3185 watcher +3186 .get() +3187 .iter() +3188 .map(|info| { +3189 ( +3190 info.remote_addr().clone(), +3191 info.stats().expect("conn is not yet dropped"), +3192 ) +3193 }) +3194 .collect() +3195 } +3196 +3197 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +3198 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +3199 .transport_config(qlog.create("client")?) +3200 .bind() +3201 .await?; +3202 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map)) +3203 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +3204 .transport_config(qlog.create("server")?) +3205 .alpns(vec![TEST_ALPN.to_vec()]) +3206 .bind() +3207 .await?; +3208 let server_addr = EndpointAddr::new(server.id()).with_relay_url(relay_url); +3209 let server_task = tokio::spawn(async move { +3210 let incoming = server.accept().await.anyerr()?; +3211 let conn = incoming.await.anyerr()?; +3212 let watcher = conn.paths(); +3213 let (mut send, mut recv) = conn.accept_bi().await.anyerr()?; +3214 let msg = recv.read_to_end(transfer_size).await.anyerr()?; +3215 send.write_all(&msg).await.anyerr()?; +3216 send.finish().anyerr()?; +3217 conn.closed().await; +3218 let stats = collect_stats(watcher); +3219 Ok::<_, Error>(stats) +3220 }); +3221 +3222 let conn = client.connect(server_addr, TEST_ALPN).await?; +3223 let watcher = conn.paths(); +3224 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +3225 send.write_all(&vec![42u8; transfer_size]).await.anyerr()?; +3226 send.finish().anyerr()?; +3227 recv.read_to_end(transfer_size).await.anyerr()?; +3228 conn.close(0u32.into(), b"thanks, bye!"); +3229 client.close().await; +3230 let client_stats = collect_stats(watcher); +3231 let server_stats = server_task.await.anyerr()??; +3232 +3233 info!("client stats: {client_stats:#?}"); +3234 info!("server stats: {server_stats:#?}"); +3235 +3236 let client_total_relay_tx = client_stats +3237 .iter() +3238 .filter(|(remote, _stats)| remote.is_relay()) +3239 .map(|(_, stats)| stats.udp_tx.bytes) +3240 .sum::<u64>(); +3241 let client_total_relay_rx = client_stats +3242 .iter() +3243 .filter(|(remote, _stats)| remote.is_relay()) +3244 .map(|(_, stats)| stats.udp_rx.bytes) +3245 .sum::<u64>(); +3246 let server_total_relay_tx = server_stats +3247 .iter() +3248 .filter(|(remote, _stats)| remote.is_relay()) +3249 .map(|(_, stats)| stats.udp_tx.bytes) +3250 .sum::<u64>(); +3251 let server_total_relay_rx = server_stats +3252 .iter() +3253 .filter(|(remote, _stats)| remote.is_relay()) +3254 .map(|(_, stats)| stats.udp_rx.bytes) +3255 .sum::<u64>(); +3256 +3257 info!(?client_total_relay_tx, "total"); +3258 info!(?client_total_relay_rx, "total"); +3259 info!(?server_total_relay_tx, "total"); +3260 info!(?server_total_relay_rx, "total"); +3261 +3262 // We should send/receive only the minorty of traffic via the relay. +3263 assert!(client_total_relay_tx < transfer_size as u64 / 2); +3264 assert!(client_total_relay_rx < transfer_size as u64 / 2); +3265 assert!(server_total_relay_tx < transfer_size as u64 / 2); +3266 assert!(server_total_relay_rx < transfer_size as u64 / 2); +3267 +3268 Ok(()) +3269 } +3270 +3271 /// Tests that correct logs are emitted when connecting two endpoints with same secret keys to a relay. +3272 #[tokio::test] +3273 #[traced_test] +3274 async fn same_endpoint_id_relay() -> Result { +3275 let (relay_map, relay_url, _relay_server_guard) = run_relay_server().await?; +3276 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(1u64); +3277 let secret_key = SecretKey::generate(&mut rng); +3278 +3279 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +3280 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +3281 .bind() +3282 .instrument(error_span!("ep-client")) +3283 .await?; +3284 +3285 info!("client {}", client.id()); +3286 +3287 // bind ep1 and wait until connected to relay. +3288 let ep1 = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +3289 .secret_key(secret_key.clone()) +3290 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +3291 .alpns(vec![TEST_ALPN.to_vec()]) +3292 .bind() +3293 .instrument(error_span!("ep1")) +3294 .await?; +3295 info!("ep1 bound {:?}", ep1.id()); +3296 ep1.online().await; +3297 info!("ep1 online"); +3298 +3299 let addr = EndpointAddr::new(secret_key.public()).with_relay_url(relay_url.clone()); 3300 -3301 // `online` does not mean that the connection to the home relay was *established*, -3302 // only that the home relay was *chosen* based on the net report probes. -3303 // We need to wait for the connection to be established though, to be sure that new packets -3304 // will be routed to the new endpoint and not to the old endpoint anymore. -3305 // We don't expose being connected to the home relay on the endpoint currently, -3306 // so we resort to log assertions. -3307 // TODO(Frando): Replace once we add a proper API for this. -3308 let expected_log_line = format!( -3309 "ep2:relay-actor:active-relay{{url={relay_url}}}:connected: iroh::_events::relay::connected" -3310 ); -3311 tokio::time::timeout(Duration::from_secs(5), async { -3312 while !logs_contain(&expected_log_line) { -3313 tokio::time::sleep(Duration::from_millis(10)).await -3314 } -3315 }) -3316 .await -3317 .std_context("relay connection did not establish in time")?; -3318 -3319 tokio::try_join!( -3320 async { -3321 let conn = client.connect(addr.clone(), TEST_ALPN).await?; -3322 let reason = conn.closed().await; -3323 assert!(is_application_closed(&reason, 1)); -3324 n0_error::Ok(()) -3325 }, -3326 async { -3327 let conn = ep2.accept().await.unwrap().await?; -3328 conn.close(1u32.into(), b"bye"); -3329 n0_error::Ok(()) -3330 } -3331 )?; -3332 println!("client connected to ep2"); -3333 -3334 // assert that ep1 did not receive a connection -3335 assert!(now_or_never(ep1.accept()).is_none()); -3336 -3337 // We assert that we get the warn log once for endpoint 1, and not at all for endpoint 2. -3338 logs_assert(|logs| { -3339 let expected_line = |line: &str| { -3340 line.contains("WARN") && line.contains("Another endpoint connected with the same endpoint id. No more messages will be received") -3341 }; -3342 let count_line_ep1 = logs -3343 .iter() -3344 .filter(|line| line.contains(":ep1:") && expected_line(line)) -3345 .count(); -3346 let count_line_ep2 = logs -3347 .iter() -3348 .filter(|line| line.contains(":ep2:") && expected_line(line)) -3349 .count(); -3350 if count_line_ep1 == 1 && count_line_ep2 == 0 { -3351 Ok(()) -3352 } else { -3353 Err("Logs don't match expectations".to_string()) -3354 } -3355 }); -3356 tokio::join!(ep1.close(), ep2.close(), client.close()); -3357 Ok(()) -3358 } -3359 -3360 fn is_application_closed(close_reason: &ConnectionError, code: u32) -> bool { -3361 matches!( -3362 close_reason, -3363 ConnectionError::ApplicationClosed(f) if f.error_code ==code.into() -3364 ) -3365 } -3366 -3367 #[tokio::test] -3368 #[traced_test] -3369 async fn test_closed_endpoint_behaviour() -> Result { -3370 // create endpoint -3371 // call endpoint.close -3372 // ensure methods behave in the expected way -3373 info!("Creating endpoint"); -3374 let ep = Endpoint::builder().bind().await?; -3375 let closed = ep.closed(); -3376 info!("Closing endpoint"); -3377 let now = Instant::now(); -3378 ep.close().await; -3379 info!("Endpoint closed in {:?}", now.elapsed()); -3380 -3381 // Assert that the `closed` cancellation token is now cancelled -3382 assert_eq!(now_or_never(closed), Some(())); -3383 -3384 info!("Set ALPNS fails silently"); -3385 ep.set_alpns(vec![b"test".into()]); +3301 tokio::try_join!( +3302 async { +3303 let conn = client.connect(addr.clone(), TEST_ALPN).await?; +3304 let reason = conn.closed().await; +3305 assert!(is_application_closed(&reason, 1)); +3306 n0_error::Ok(()) +3307 }, +3308 async { +3309 let conn = ep1.accept().await.unwrap().await?; +3310 conn.close(1u32.into(), b"bye"); +3311 n0_error::Ok(()) +3312 } +3313 )?; +3314 info!("client connected to ep1"); +3315 +3316 // now start second endpoint with same secret key +3317 let ep2 = Endpoint::empty_builder(RelayMode::Custom(relay_map)) +3318 .secret_key(secret_key.clone()) +3319 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +3320 .alpns(vec![TEST_ALPN.to_vec()]) +3321 .bind() +3322 .instrument(error_span!("ep2")) +3323 .await?; +3324 info!("ep2 bound {:?}", ep2.id()); +3325 ep2.online().await; +3326 println!("ep2 online"); +3327 +3328 // `online` does not mean that the connection to the home relay was *established*, +3329 // only that the home relay was *chosen* based on the net report probes. +3330 // We need to wait for the connection to be established though, to be sure that new packets +3331 // will be routed to the new endpoint and not to the old endpoint anymore. +3332 // We don't expose being connected to the home relay on the endpoint currently, +3333 // so we resort to log assertions. +3334 // TODO(Frando): Replace once we add a proper API for this. +3335 let expected_log_line = format!( +3336 "ep2:relay-actor:active-relay{{url={relay_url}}}:connected: iroh::_events::relay::connected" +3337 ); +3338 tokio::time::timeout(Duration::from_secs(5), async { +3339 while !logs_contain(&expected_log_line) { +3340 tokio::time::sleep(Duration::from_millis(10)).await +3341 } +3342 }) +3343 .await +3344 .std_context("relay connection did not establish in time")?; +3345 +3346 tokio::try_join!( +3347 async { +3348 let conn = client.connect(addr.clone(), TEST_ALPN).await?; +3349 let reason = conn.closed().await; +3350 assert!(is_application_closed(&reason, 1)); +3351 n0_error::Ok(()) +3352 }, +3353 async { +3354 let conn = ep2.accept().await.unwrap().await?; +3355 conn.close(1u32.into(), b"bye"); +3356 n0_error::Ok(()) +3357 } +3358 )?; +3359 println!("client connected to ep2"); +3360 +3361 // assert that ep1 did not receive a connection +3362 assert!(now_or_never(ep1.accept()).is_none()); +3363 +3364 // We assert that we get the warn log once for endpoint 1, and not at all for endpoint 2. +3365 logs_assert(|logs| { +3366 let expected_line = |line: &str| { +3367 line.contains("WARN") && line.contains("Another endpoint connected with the same endpoint id. No more messages will be received") +3368 }; +3369 let count_line_ep1 = logs +3370 .iter() +3371 .filter(|line| line.contains(":ep1:") && expected_line(line)) +3372 .count(); +3373 let count_line_ep2 = logs +3374 .iter() +3375 .filter(|line| line.contains(":ep2:") && expected_line(line)) +3376 .count(); +3377 if count_line_ep1 == 1 && count_line_ep2 == 0 { +3378 Ok(()) +3379 } else { +3380 Err("Logs don't match expectations".to_string()) +3381 } +3382 }); +3383 tokio::join!(ep1.close(), ep2.close(), client.close()); +3384 Ok(()) +3385 } 3386 -3387 info!("Insert Relay returns None"); -3388 let relay_config = crate::defaults::staging::default_na_east_relay(); -3389 assert!( -3390 ep.insert_relay("localhost:300".parse()?, Arc::new(relay_config)) -3391 .await -3392 .is_none() -3393 ); -3394 -3395 info!("Remove Relay returns None"); -3396 assert!(ep.remove_relay(&"localhost:300".parse()?).await.is_none()); -3397 -3398 info!("Connecting"); -3399 let mut rng = ChaCha8Rng::seed_from_u64(41); -3400 let ep_id = SecretKey::generate(&mut rng).public(); -3401 -3402 // should likely be an error that states that the -3403 // endpoint is closed instead: -3404 if let ConnectError::Connect { source, .. } = ep.connect(ep_id, b"test").await.unwrap_err() -3405 { -3406 assert!(matches!( -3407 source, -3408 ConnectWithOptsError::EndpointClosed { .. } -3409 )); -3410 } else { -3411 panic!("unexpected error for connect"); -3412 } +3387 fn is_application_closed(close_reason: &ConnectionError, code: u32) -> bool { +3388 matches!( +3389 close_reason, +3390 ConnectionError::ApplicationClosed(f) if f.error_code ==code.into() +3391 ) +3392 } +3393 +3394 #[tokio::test] +3395 #[traced_test] +3396 async fn test_closed_endpoint_behaviour() -> Result { +3397 // create endpoint +3398 // call endpoint.close +3399 // ensure methods behave in the expected way +3400 info!("Creating endpoint"); +3401 let ep = Endpoint::builder().bind().await?; +3402 let closed = ep.closed(); +3403 info!("Closing endpoint"); +3404 let now = Instant::now(); +3405 ep.close().await; +3406 info!("Endpoint closed in {:?}", now.elapsed()); +3407 +3408 // Assert that the `closed` cancellation token is now cancelled +3409 assert_eq!(now_or_never(closed), Some(())); +3410 +3411 info!("Set ALPNS fails silently"); +3412 ep.set_alpns(vec![b"test".into()]); 3413 -3414 info!("Accepting!"); -3415 assert!(ep.accept().await.is_none()); -3416 -3417 // this should work -3418 info!("Addr: {:?}", ep.addr()); -3419 -3420 // create watchers to verify they terminate after the endpoint is dropped. -3421 let mut addrs = ep.watch_addr().stream(); -3422 let mut net_reports = ep.net_report().stream(); -3423 -3424 // returns None -3425 let net_report = ep.last_net_report(); -3426 info!("last Net report {net_report:?}"); -3427 -3428 // this should work -3429 let sockets = ep.bound_sockets(); -3430 info!("Sockets: {sockets:?}"); -3431 -3432 // these should return errors -3433 assert!(ep.dns_resolver().is_err()); -3434 assert!(ep.address_lookup().is_err()); -3435 -3436 // this should work -3437 let metrics = ep.metrics(); -3438 info!("Metrics: {metrics:?}"); -3439 -3440 // this should return none -3441 assert!(ep.remote_info(ep_id).await.is_none()); -3442 -3443 // this should fail silently -3444 ep.network_change().await; -3445 -3446 // this should fail silently -3447 ep.set_user_data_for_address_lookup(Some( -3448 UserData::try_from("TEST".to_string()).expect("valid string"), -3449 )); -3450 drop(ep); -3451 // now that the endpoint is dropped, all watchers should terminate. -3452 tokio::time::timeout(Duration::from_secs(1), async { -3453 while let Some(addr) = addrs.next().await { -3454 info!("Addrs stream: {addr:?}"); -3455 } -3456 while let Some(net_report) = net_reports.next().await { -3457 info!("Net report stream: {net_report:?}"); -3458 } -3459 }) -3460 .await -3461 .expect("watchers not closed"); +3414 info!("Insert Relay returns None"); +3415 let relay_config = crate::defaults::staging::default_na_east_relay(); +3416 assert!( +3417 ep.insert_relay("localhost:300".parse()?, Arc::new(relay_config)) +3418 .await +3419 .is_none() +3420 ); +3421 +3422 info!("Remove Relay returns None"); +3423 assert!(ep.remove_relay(&"localhost:300".parse()?).await.is_none()); +3424 +3425 info!("Connecting"); +3426 let mut rng = ChaCha8Rng::seed_from_u64(41); +3427 let ep_id = SecretKey::generate(&mut rng).public(); +3428 +3429 // should likely be an error that states that the +3430 // endpoint is closed instead: +3431 if let ConnectError::Connect { source, .. } = ep.connect(ep_id, b"test").await.unwrap_err() +3432 { +3433 assert!(matches!( +3434 source, +3435 ConnectWithOptsError::EndpointClosed { .. } +3436 )); +3437 } else { +3438 panic!("unexpected error for connect"); +3439 } +3440 +3441 info!("Accepting!"); +3442 assert!(ep.accept().await.is_none()); +3443 +3444 // this should work +3445 info!("Addr: {:?}", ep.addr()); +3446 +3447 // create watchers to verify they terminate after the endpoint is dropped. +3448 let mut addrs = ep.watch_addr().stream(); +3449 let mut net_reports = ep.net_report().stream(); +3450 +3451 // returns None +3452 let net_report = ep.last_net_report(); +3453 info!("last Net report {net_report:?}"); +3454 +3455 // this should work +3456 let sockets = ep.bound_sockets(); +3457 info!("Sockets: {sockets:?}"); +3458 +3459 // these should return errors +3460 assert!(ep.dns_resolver().is_err()); +3461 assert!(ep.address_lookup().is_err()); 3462 -3463 info!("Done!"); -3464 Ok(()) -3465 } +3463 // this should work +3464 let metrics = ep.metrics(); +3465 info!("Metrics: {metrics:?}"); 3466 -3467 #[tokio::test] -3468 #[traced_test] -3469 async fn test_closed_endpoint_unpolled_accept_fut() -> Result { -3470 info!("Creating endpoint"); -3471 let ep = Endpoint::builder().bind().await?; +3467 // this should return none +3468 assert!(ep.remote_info(ep_id).await.is_none()); +3469 +3470 // this should fail silently +3471 ep.network_change().await; 3472 -3473 info!("Get accept future"); -3474 let accept_fut = ep.accept(); -3475 -3476 info!("Closing endpoint"); -3477 let now = Instant::now(); -3478 tokio::time::timeout(Duration::from_secs(5), ep.close()) -3479 .await -3480 .expect("Endpoint closes in a reasonable time"); -3481 info!("Endpoint closed in {:?}", now.elapsed()); -3482 -3483 info!("Accept future returns None after the endpoint has closed"); -3484 let incoming = accept_fut.await; -3485 assert!(incoming.is_none()); -3486 Ok(()) -3487 } -3488 -3489 #[tokio::test] -3490 #[traced_test] -3491 async fn test_closed_endpoint_polled_accept_fut() -> Result { -3492 info!("Creating endpoint"); -3493 let ep = Endpoint::builder().bind().await?; -3494 -3495 info!("Run an accept task"); -3496 let ep2 = ep.clone(); -3497 let accept_task = tokio::spawn(async move { -3498 info!("Waiting on Accept"); -3499 let res = ep2.accept().await; -3500 info!("Accept await has returned"); -3501 res -3502 }); -3503 -3504 // Try to ensure the accept future is polled at least once. -3505 tokio::time::sleep(Duration::from_millis(10)).await; -3506 -3507 info!("Closing the endpoint"); -3508 tokio::time::timeout(Duration::from_secs(5), ep.close()) -3509 .await -3510 .expect("Endpoint closes in a reasonable time"); -3511 info!("Endpoint closed"); -3512 -3513 info!("Await the accept task"); -3514 let incoming = accept_task.await.expect("accept task panicked"); -3515 assert!(incoming.is_none()); -3516 -3517 Ok(()) -3518 } -3519} \ No newline at end of file +3473 // this should fail silently +3474 ep.set_user_data_for_address_lookup(Some( +3475 UserData::try_from("TEST".to_string()).expect("valid string"), +3476 )); +3477 drop(ep); +3478 // now that the endpoint is dropped, all watchers should terminate. +3479 tokio::time::timeout(Duration::from_secs(1), async { +3480 while let Some(addr) = addrs.next().await { +3481 info!("Addrs stream: {addr:?}"); +3482 } +3483 while let Some(net_report) = net_reports.next().await { +3484 info!("Net report stream: {net_report:?}"); +3485 } +3486 }) +3487 .await +3488 .expect("watchers not closed"); +3489 +3490 info!("Done!"); +3491 Ok(()) +3492 } +3493 +3494 #[tokio::test] +3495 #[traced_test] +3496 async fn test_closed_endpoint_unpolled_accept_fut() -> Result { +3497 info!("Creating endpoint"); +3498 let ep = Endpoint::builder().bind().await?; +3499 +3500 info!("Get accept future"); +3501 let accept_fut = ep.accept(); +3502 +3503 info!("Closing endpoint"); +3504 let now = Instant::now(); +3505 tokio::time::timeout(Duration::from_secs(5), ep.close()) +3506 .await +3507 .expect("Endpoint closes in a reasonable time"); +3508 info!("Endpoint closed in {:?}", now.elapsed()); +3509 +3510 info!("Accept future returns None after the endpoint has closed"); +3511 let incoming = accept_fut.await; +3512 assert!(incoming.is_none()); +3513 Ok(()) +3514 } +3515 +3516 #[tokio::test] +3517 #[traced_test] +3518 async fn test_closed_endpoint_polled_accept_fut() -> Result { +3519 info!("Creating endpoint"); +3520 let ep = Endpoint::builder().bind().await?; +3521 +3522 info!("Run an accept task"); +3523 let ep2 = ep.clone(); +3524 let accept_task = tokio::spawn(async move { +3525 info!("Waiting on Accept"); +3526 let res = ep2.accept().await; +3527 info!("Accept await has returned"); +3528 res +3529 }); +3530 +3531 // Try to ensure the accept future is polled at least once. +3532 tokio::time::sleep(Duration::from_millis(10)).await; +3533 +3534 info!("Closing the endpoint"); +3535 tokio::time::timeout(Duration::from_secs(5), ep.close()) +3536 .await +3537 .expect("Endpoint closes in a reasonable time"); +3538 info!("Endpoint closed"); +3539 +3540 info!("Await the accept task"); +3541 let incoming = accept_task.await.expect("accept task panicked"); +3542 assert!(incoming.is_none()); +3543 +3544 Ok(()) +3545 } +3546} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/endpoint/connection.rs.html b/pr/3958/docs/src/iroh/endpoint/connection.rs.html index 2f7c2d4233..70c29da240 100644 --- a/pr/3958/docs/src/iroh/endpoint/connection.rs.html +++ b/pr/3958/docs/src/iroh/endpoint/connection.rs.html @@ -27,7 +27,7 @@ 27 28use ed25519_dalek::{VerifyingKey, pkcs8::DecodePublicKey}; 29use futures_util::{FutureExt, future::Shared}; -30use iroh_base::EndpointId; +30use iroh_base::{EndpointId, RelayUrl}; 31use n0_error::{e, stack_error}; 32use n0_future::{TryFutureExt, future::Boxed as BoxFuture, time::Duration}; 33use pin_project::pin_project; @@ -50,1458 +50,1506 @@ 50 }, 51}; 52 -53/// Future produced by [`Endpoint::accept`]. -54#[derive(derive_more::Debug)] -55#[pin_project] -56pub struct Accept<'a> { -57 #[pin] -58 #[debug("quinn::Accept")] -59 pub(crate) inner: quinn::Accept<'a>, -60 pub(crate) ep: Endpoint, -61} -62 -63impl Future for Accept<'_> { -64 type Output = Option<Incoming>; -65 -66 fn poll(self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { -67 let this = self.project(); -68 match this.inner.poll(cx) { -69 Poll::Pending => Poll::Pending, -70 Poll::Ready(None) => Poll::Ready(None), -71 Poll::Ready(Some(inner)) => Poll::Ready(Some(Incoming { -72 inner, -73 ep: this.ep.clone(), -74 })), -75 } -76 } -77} -78 -79/// An incoming connection for which the server has not yet begun its parts of the -80/// handshake. -81#[derive(Debug)] -82pub struct Incoming { -83 inner: quinn::Incoming, -84 ep: Endpoint, -85} -86 -87impl Incoming { -88 /// Attempts to accept this incoming connection (an error may still occur). -89 /// -90 /// Errors occurring here are likely not caused by the application or remote. The QUIC -91 /// connection listens on a normal UDP socket and any reachable network endpoint can -92 /// send datagrams to it, solicited or not. Even if the first few bytes look like a -93 /// QUIC packet, it might not even be a QUIC packet that is being received. -94 /// -95 /// Thus it is common to simply log the errors here and accept them as something which -96 /// can happen. -97 pub fn accept(self) -> Result<Accepting, ConnectionError> { -98 self.inner -99 .accept() -100 .map(|conn| Accepting::new(conn, self.ep)) -101 } -102 -103 /// Accepts this incoming connection using a custom configuration. -104 /// -105 /// Use the [`Endpoint::create_server_config_builder`] method to create a [`ServerConfigBuilder`] -106 /// to customize a [`ServerConfig`]. -107 /// -108 /// See [`accept()`] for more details. -109 /// -110 /// [`accept()`]: Incoming::accept -111 /// [`Endpoint::create_server_config_builder`]: crate::Endpoint::create_server_config_builder -112 /// [`ServerConfigBuilder`]: crate::endpoint::ServerConfigBuilder -113 /// [`ServerConfig`]: crate::endpoint::ServerConfig -114 pub fn accept_with( -115 self, -116 server_config: Arc<ServerConfig>, -117 ) -> Result<Accepting, ConnectionError> { -118 self.inner -119 .accept_with(server_config.to_inner_arc()) -120 .map(|conn| Accepting::new(conn, self.ep)) -121 } -122 -123 /// Rejects this incoming connection attempt. -124 pub fn refuse(self) { -125 self.inner.refuse() -126 } -127 -128 /// Responds with a retry packet. -129 /// -130 /// This requires the client to retry with address validation. -131 /// -132 /// Errors if `remote_address_validated()` is true. -133 #[allow(clippy::result_large_err)] -134 pub fn retry(self) -> Result<(), RetryError> { -135 self.inner -136 .retry() -137 .map_err(|err| e!(RetryError { err, ep: self.ep })) -138 } -139 -140 /// Ignores this incoming connection attempt, not sending any packet in response. -141 pub fn ignore(self) { -142 self.inner.ignore() -143 } -144 -145 /// Returns the local IP address which was used when the peer established the -146 /// connection. -147 pub fn local_ip(&self) -> Option<IpAddr> { -148 self.inner.local_ip() -149 } -150 -151 /// Returns the peer's UDP address. -152 pub fn remote_address(&self) -> SocketAddr { -153 self.inner.remote_address() -154 } -155 -156 /// Whether the socket address that is initiating this connection has been validated. -157 /// -158 /// This means that the sender of the initial packet has proved that they can receive -159 /// traffic sent to `self.remote_address()`. -160 pub fn remote_address_validated(&self) -> bool { -161 self.inner.remote_address_validated() -162 } -163} -164 -165impl IntoFuture for Incoming { -166 type Output = Result<Connection, ConnectingError>; -167 type IntoFuture = IncomingFuture; -168 -169 fn into_future(self) -> Self::IntoFuture { -170 IncomingFuture(Box::pin(async move { -171 let quinn_conn = self.inner.into_future().await?; -172 let conn = conn_from_quinn_conn(quinn_conn, &self.ep)?.await?; -173 Ok(conn) -174 })) -175 } -176} +53/// The remote address for an incoming connection. +54/// +55/// When the incoming connection is a direct connection, this is a SocketAddr. +56/// When it is a relay connection, we know both the relay URL and the endpoint ID. +57#[derive(Debug, Clone, PartialEq, Eq)] +58#[non_exhaustive] +59pub enum IncomingAddr { +60 /// A direct connection from an IP address. +61 Ip(SocketAddr), +62 /// A connection via a relay. +63 Relay { +64 /// The URL of the relay. +65 url: RelayUrl, +66 /// The endpoint ID of the remote peer. +67 endpoint_id: EndpointId, +68 }, +69} +70 +71impl From<IncomingAddr> for iroh_base::TransportAddr { +72 fn from(addr: IncomingAddr) -> Self { +73 match addr { +74 IncomingAddr::Ip(addr) => Self::Ip(addr), +75 IncomingAddr::Relay { url, .. } => Self::Relay(url), +76 } +77 } +78} +79 +80impl From<crate::socket::transports::Addr> for IncomingAddr { +81 fn from(addr: crate::socket::transports::Addr) -> Self { +82 match addr { +83 crate::socket::transports::Addr::Ip(addr) => Self::Ip(addr), +84 crate::socket::transports::Addr::Relay(url, endpoint_id) => { +85 Self::Relay { url, endpoint_id } +86 } +87 } +88 } +89} +90 +91/// Future produced by [`Endpoint::accept`]. +92#[derive(derive_more::Debug)] +93#[pin_project] +94pub struct Accept<'a> { +95 #[pin] +96 #[debug("quinn::Accept")] +97 pub(crate) inner: quinn::Accept<'a>, +98 pub(crate) ep: Endpoint, +99} +100 +101impl Future for Accept<'_> { +102 type Output = Option<Incoming>; +103 +104 fn poll(self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { +105 let this = self.project(); +106 match this.inner.poll(cx) { +107 Poll::Pending => Poll::Pending, +108 Poll::Ready(None) => Poll::Ready(None), +109 Poll::Ready(Some(inner)) => Poll::Ready(Some(Incoming { +110 inner, +111 ep: this.ep.clone(), +112 })), +113 } +114 } +115} +116 +117/// An incoming connection for which the server has not yet begun its parts of the +118/// handshake. +119#[derive(Debug)] +120pub struct Incoming { +121 inner: quinn::Incoming, +122 ep: Endpoint, +123} +124 +125impl Incoming { +126 /// Attempts to accept this incoming connection (an error may still occur). +127 /// +128 /// Errors occurring here are likely not caused by the application or remote. The QUIC +129 /// connection listens on a normal UDP socket and any reachable network endpoint can +130 /// send datagrams to it, solicited or not. Even if the first few bytes look like a +131 /// QUIC packet, it might not even be a QUIC packet that is being received. +132 /// +133 /// Thus it is common to simply log the errors here and accept them as something which +134 /// can happen. +135 pub fn accept(self) -> Result<Accepting, ConnectionError> { +136 self.inner +137 .accept() +138 .map(|conn| Accepting::new(conn, self.ep)) +139 } +140 +141 /// Accepts this incoming connection using a custom configuration. +142 /// +143 /// Use the [`Endpoint::create_server_config_builder`] method to create a [`ServerConfigBuilder`] +144 /// to customize a [`ServerConfig`]. +145 /// +146 /// See [`accept()`] for more details. +147 /// +148 /// [`accept()`]: Incoming::accept +149 /// [`Endpoint::create_server_config_builder`]: crate::Endpoint::create_server_config_builder +150 /// [`ServerConfigBuilder`]: crate::endpoint::ServerConfigBuilder +151 /// [`ServerConfig`]: crate::endpoint::ServerConfig +152 pub fn accept_with( +153 self, +154 server_config: Arc<ServerConfig>, +155 ) -> Result<Accepting, ConnectionError> { +156 self.inner +157 .accept_with(server_config.to_inner_arc()) +158 .map(|conn| Accepting::new(conn, self.ep)) +159 } +160 +161 /// Rejects this incoming connection attempt. +162 pub fn refuse(self) { +163 self.inner.refuse() +164 } +165 +166 /// Responds with a retry packet. +167 /// +168 /// This requires the client to retry with address validation. +169 /// +170 /// Errors if `remote_address_validated()` is true. +171 #[allow(clippy::result_large_err)] +172 pub fn retry(self) -> Result<(), RetryError> { +173 self.inner +174 .retry() +175 .map_err(|err| e!(RetryError { err, ep: self.ep })) +176 } 177 -178/// Error for attempting to retry an [`Incoming`] which already bears a token from a previous retry -179#[stack_error(derive, add_meta, from_sources)] -180#[error("retry() with validated Incoming")] -181pub struct RetryError { -182 err: quinn::RetryError, -183 ep: Endpoint, -184} -185 -186impl RetryError { -187 /// Get the [`Incoming`] -188 pub fn into_incoming(self) -> Incoming { -189 Incoming { -190 inner: self.err.into_incoming(), -191 ep: self.ep, -192 } -193 } -194} +178 /// Ignores this incoming connection attempt, not sending any packet in response. +179 pub fn ignore(self) { +180 self.inner.ignore() +181 } +182 +183 /// Returns the local IP address which was used when the peer established the +184 /// connection. +185 pub fn local_ip(&self) -> Option<IpAddr> { +186 self.inner.local_ip() +187 } +188 +189 /// Returns the remote address of this incoming connection. +190 pub fn remote_addr(&self) -> IncomingAddr { +191 self.ep +192 .to_transport_addr(self.inner.remote_address()) +193 .into() +194 } 195 -196/// Adaptor to let [`Incoming`] be `await`ed like a [`Connecting`]. -197#[derive(derive_more::Debug)] -198#[debug("IncomingFuture")] -199pub struct IncomingFuture(BoxFuture<Result<Connection, ConnectingError>>); -200 -201impl Future for IncomingFuture { -202 type Output = Result<Connection, ConnectingError>; -203 -204 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { -205 self.0.poll_unpin(cx) -206 } -207} +196 /// Whether the socket address that is initiating this connection has been validated. +197 /// +198 /// This means that the sender of the initial packet has proved that they can receive +199 /// traffic sent to `self.remote_addr()`. +200 pub fn remote_addr_validated(&self) -> bool { +201 self.inner.remote_address_validated() +202 } +203} +204 +205impl IntoFuture for Incoming { +206 type Output = Result<Connection, ConnectingError>; +207 type IntoFuture = IncomingFuture; 208 -209/// Extracts the ALPN protocol from the peer's handshake data. -210fn alpn_from_quinn_conn(conn: &quinn::Connection) -> Option<Vec<u8>> { -211 let data = conn.handshake_data()?; -212 match data.downcast::<quinn::crypto::rustls::HandshakeData>() { -213 Ok(data) => data.protocol, -214 Err(_) => None, +209 fn into_future(self) -> Self::IntoFuture { +210 IncomingFuture(Box::pin(async move { +211 let quinn_conn = self.inner.into_future().await?; +212 let conn = conn_from_quinn_conn(quinn_conn, &self.ep)?.await?; +213 Ok(conn) +214 })) 215 } 216} 217 -218async fn alpn_from_quinn_connecting(conn: &mut quinn::Connecting) -> Result<Vec<u8>, AlpnError> { -219 let data = conn.handshake_data().await?; -220 match data.downcast::<quinn::crypto::rustls::HandshakeData>() { -221 Ok(data) => match data.protocol { -222 Some(protocol) => Ok(protocol), -223 None => Err(e!(AlpnError::Unavailable)), -224 }, -225 Err(_) => Err(e!(AlpnError::UnknownHandshake)), -226 } -227} -228 -229#[stack_error(add_meta, derive, from_sources)] -230#[allow(missing_docs)] -231#[non_exhaustive] -232#[derive(Clone)] -233pub enum AuthenticationError { -234 #[error(transparent)] -235 RemoteId { source: RemoteEndpointIdError }, -236 #[error("no ALPN provided")] -237 NoAlpn {}, -238} -239 -240/// Converts a `quinn::Connection` to a `Connection`. -241/// -242/// Returns an error if there was a connection error, the handshake data has not completed -243/// or if the remote did not set an ALPN. -244/// -245/// Otherwise returns a future that completes once the connection has been registered with the -246/// socket. This future can return an [`RemoteStateActorStoppedError`], which will only be -247/// emitted if the endpoint is closing. -248/// -249/// The returned future is `'static`, so it can be stored without being lifetime-bound on `&ep`. -250fn conn_from_quinn_conn( -251 conn: quinn::Connection, -252 ep: &Endpoint, -253) -> Result< -254 impl Future<Output = Result<Connection, ConnectingError>> + Send + 'static, -255 ConnectingError, -256> { -257 let info = match static_info_from_conn(&conn) { -258 Ok(val) => val, -259 Err(auth_err) => { -260 // If the authentication error raced with a connection error, the connection -261 // error wins. -262 if let Some(conn_err) = conn.close_reason() { -263 return Err(e!(ConnectingError::ConnectionError { source: conn_err })); -264 } else { -265 return Err(e!(ConnectingError::HandshakeFailure { source: auth_err })); -266 } -267 } -268 }; -269 -270 // Register this connection with the socket. -271 let fut = ep -272 .inner -273 .register_connection(info.endpoint_id, conn.weak_handle()); -274 -275 // Check hooks -276 let inner = ep.inner.clone(); -277 Ok(async move { -278 let paths = fut.await?; -279 let conn = Connection { -280 data: HandshakeCompletedData { info, paths }, -281 inner: conn, -282 }; -283 -284 if let AfterHandshakeOutcome::Reject { error_code, reason } = -285 inner.hooks.after_handshake(&conn.to_info()).await -286 { -287 conn.close(error_code, &reason); -288 return Err(e!(ConnectingError::LocallyRejected)); -289 } -290 -291 Ok(conn) -292 }) -293} -294 -295fn static_info_from_conn(conn: &quinn::Connection) -> Result<StaticInfo, AuthenticationError> { -296 let endpoint_id = remote_id_from_quinn_conn(conn)?; -297 let alpn = alpn_from_quinn_conn(conn).ok_or_else(|| e!(AuthenticationError::NoAlpn))?; -298 Ok(StaticInfo { endpoint_id, alpn }) -299} -300 -301/// Returns the [`EndpointId`] from the peer's TLS certificate. -302/// -303/// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is -304/// included in the TLS certificate presented during the handshake when connecting. -305/// This function allows you to get the [`EndpointId`] of the remote endpoint of this -306/// connection. -307/// -308/// [`PublicKey`]: iroh_base::PublicKey -309fn remote_id_from_quinn_conn( -310 conn: &quinn::Connection, -311) -> Result<EndpointId, RemoteEndpointIdError> { -312 let data = conn.peer_identity(); -313 match data { -314 None => { -315 warn!("no peer certificate found"); -316 Err(RemoteEndpointIdError::new()) -317 } -318 Some(data) => match data.downcast::<Vec<rustls::pki_types::CertificateDer>>() { -319 Ok(certs) => { -320 if certs.len() != 1 { -321 warn!( -322 "expected a single peer certificate, but {} found", -323 certs.len() -324 ); -325 return Err(RemoteEndpointIdError::new()); -326 } -327 -328 let peer_id = EndpointId::from_verifying_key( -329 VerifyingKey::from_public_key_der(&certs[0]) -330 .map_err(|_| RemoteEndpointIdError::new())?, -331 ); -332 -333 Ok(peer_id) -334 } -335 Err(err) => { -336 warn!("invalid peer certificate: {:?}", err); -337 Err(RemoteEndpointIdError::new()) -338 } -339 }, -340 } -341} -342 -343/// An outgoing connection in progress. -344/// -345/// This future resolves to a [`Connection`] once the handshake completes. -346#[derive(derive_more::Debug)] -347pub struct Connecting { -348 inner: quinn::Connecting, -349 /// Future to register the connection with the socket. -350 /// -351 /// This is set and polled after `inner` completes. We are using an option instead of an enum -352 /// because we need infallible access to `inner` in some methods. -353 #[debug("{}", register_with_socket.as_ref().map(|_| "Some(RegisterWithSocketFut)").unwrap_or("None"))] -354 register_with_socket: Option<RegisterWithSocketFut>, -355 ep: Endpoint, -356 /// `Some(remote_id)` if this is an outgoing connection, `None` if this is an incoming conn -357 remote_endpoint_id: EndpointId, -358} -359 -360type RegisterWithSocketFut = BoxFuture<Result<Connection, ConnectingError>>; -361 -362/// In-progress connection attempt future -363#[derive(derive_more::Debug)] -364pub struct Accepting { -365 inner: quinn::Connecting, -366 /// Future to register the connection with the socket. -367 /// -368 /// This is set and polled after `inner` completes. We are using an option instead of an enum -369 /// because we need infallible access to `inner` in some methods. -370 #[debug("{}", register_with_socket.as_ref().map(|_| "Some(RegisterWithSocketFut)").unwrap_or("None"))] -371 register_with_socket: Option<RegisterWithSocketFut>, -372 ep: Endpoint, -373} -374 -375#[stack_error(add_meta, derive, from_sources)] -376#[allow(missing_docs)] -377#[non_exhaustive] -378pub enum AlpnError { -379 #[error(transparent)] -380 ConnectionError { -381 #[error(std_err)] -382 source: ConnectionError, -383 }, -384 #[error("No ALPN available")] -385 Unavailable, -386 #[error("Unknown handshake type")] -387 UnknownHandshake, -388} -389 -390#[stack_error(add_meta, derive, from_sources)] -391#[allow(missing_docs)] -392#[non_exhaustive] -393#[derive(Clone)] -394#[allow(private_interfaces)] -395pub enum ConnectingError { -396 #[error(transparent)] -397 ConnectionError { -398 #[error(std_err)] -399 source: ConnectionError, -400 }, -401 #[error("Failure finalizing the handshake")] -402 HandshakeFailure { source: AuthenticationError }, -403 #[error("internal consistency error")] -404 InternalConsistencyError { -405 /// Private source type, cannot be created publicly. -406 source: RemoteStateActorStoppedError, -407 }, -408 #[error("Connection was rejected locally")] -409 LocallyRejected, -410} -411 -412impl Connecting { -413 pub(crate) fn new( -414 inner: quinn::Connecting, -415 ep: Endpoint, -416 remote_endpoint_id: EndpointId, -417 ) -> Self { -418 Self { -419 inner, -420 ep, -421 remote_endpoint_id, -422 register_with_socket: None, -423 } -424 } -425 -426 /// Converts this [`Connecting`] into a 0-RTT connection at the cost of weakened security. -427 /// -428 /// If 0-RTT can be attempted, returns a [`OutgoingZeroRttConnection`], which represents -429 /// outgoing 0-RTT connection. -430 /// -431 /// If the 0-RTT cannot even be attempted, returns back the same [`Connecting`] without -432 /// changes. You can still `.await` this [`Connecting`] to get a normal [`Connection`]. -433 /// -434 /// The [`OutgoingZeroRttConnection`] will attempt to resume a previous TLS session. However, -435 /// **the remote endpoint may actually _reject_ the 0-RTT data--yet still accept -436 /// the connection attempt in general**, once the handshake has completed. -437 /// -438 /// This possibility of whether the 0-RTT data was accepted or rejected is conveyed -439 /// through the [`ZeroRttStatus`] after calling [`OutgoingZeroRttConnection::handshake_completed`]. -440 /// When the handshake completes, it returns [`ZeroRttStatus::Accepted`] if the 0-RTT data -441 /// was accepted and [`ZeroRttStatus::Rejected`] if it was rejected. If it was rejected, the -442 /// existence of any streams opened and application data sent prior to the handshake -443 /// completing will not be conveyed to the remote application, and local operations on them -444 /// will return `ZeroRttRejected` errors. -445 /// -446 /// A server may reject 0-RTT data at its discretion, but accepting 0-RTT data requires the -447 /// relevant resumption state to be stored in the server, which servers may limit or lose for -448 /// various reasons including not persisting resumption state across server restarts. -449 /// -450 /// ## Security -451 /// -452 /// This enables transmission of 0-RTT data, which is vulnerable to replay attacks, and -453 /// should therefore never invoke non-idempotent operations. -454 /// -455 /// You can use [`RecvStream::is_0rtt`] to check whether a stream has been opened in 0-RTT -456 /// and thus whether parts of the stream are operating under this reduced security level. -457 /// -458 /// See also documentation for [`Accepting::into_0rtt`]. -459 /// -460 /// [`RecvStream::is_0rtt`]: quinn::RecvStream::is_0rtt -461 #[allow(clippy::result_large_err)] -462 pub fn into_0rtt(self) -> Result<OutgoingZeroRttConnection, Connecting> { -463 match self.inner.into_0rtt() { -464 Ok((quinn_conn, zrtt_accepted)) => { -465 let accepted: BoxFuture<_> = Box::pin({ -466 let quinn_conn = quinn_conn.clone(); -467 async move { -468 let accepted = zrtt_accepted.await; -469 let conn = conn_from_quinn_conn(quinn_conn, &self.ep)?.await?; -470 Ok(match accepted { -471 true => ZeroRttStatus::Accepted(conn), -472 false => ZeroRttStatus::Rejected(conn), -473 }) -474 } -475 }); -476 let accepted = accepted.shared(); -477 Ok(Connection { -478 inner: quinn_conn, -479 data: OutgoingZeroRttData { accepted }, -480 }) -481 } -482 Err(inner) => Err(Self { inner, ..self }), -483 } -484 } -485 -486 /// Parameters negotiated during the handshake -487 pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError> { -488 self.inner.handshake_data().await -489 } -490 -491 /// Extracts the ALPN protocol from the peer's handshake data. -492 pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError> { -493 alpn_from_quinn_connecting(&mut self.inner).await -494 } -495 -496 /// Returns the [`EndpointId`] of the endpoint that this connection attempt tries to connect to. -497 pub fn remote_id(&self) -> EndpointId { -498 self.remote_endpoint_id -499 } -500} -501 -502impl Future for Connecting { -503 type Output = Result<Connection, ConnectingError>; -504 -505 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { -506 loop { -507 if let Some(fut) = &mut self.register_with_socket { -508 return fut.poll_unpin(cx).map_err(Into::into); -509 } else { -510 let quinn_conn = std::task::ready!(self.inner.poll_unpin(cx)?); -511 let fut = conn_from_quinn_conn(quinn_conn, &self.ep)?; -512 self.register_with_socket = Some(Box::pin(fut.err_into())); -513 } -514 } -515 } -516} -517 -518impl Accepting { -519 pub(crate) fn new(inner: quinn::Connecting, ep: Endpoint) -> Self { -520 Self { -521 inner, -522 ep, -523 register_with_socket: None, -524 } -525 } -526 -527 /// Converts this [`Accepting`] into a 0-RTT or 0.5-RTT connection at the cost of weakened -528 /// security. -529 /// -530 /// Returns a [`IncomingZeroRttConnection`], which represents an incoming 0-RTT or 0.5-RTT connection. -531 /// -532 /// If the connection was initiated with 0-RTT by the remote endpoint, the local endpoint -533 /// might accept the 0-RTT attempt, allowing the local endpoint to receive application streams -534 /// and data before the handshake finishes. -535 /// -536 /// Otherwise this will enable 0.5-RTT, allowing the [`IncomingZeroRttConnection`] to open streams and send -537 /// data before the handshake finishes. -538 /// -539 /// ## Security -540 /// -541 /// Transmitted 0-RTT data from the client is vulnerable to replay attacks, and should -542 /// therefore never invoke non-idempotent operations. -543 /// -544 /// Transmission of 0.5-RTT data from the server may be sent before TLS client authentication -545 /// has occurred, and should therefore not be used to send data for which client -546 /// authentication is required. -547 /// -548 /// You can use [`RecvStream::is_0rtt`] to check whether a stream has been opened in 0-RTT -549 /// and thus whether parts of the stream are operating under this reduced security level. -550 /// -551 /// See also documentation for [`Connecting::into_0rtt`]. -552 /// -553 /// [`RecvStream::is_0rtt`]: crate::endpoint::RecvStream::is_0rtt -554 pub fn into_0rtt(self) -> IncomingZeroRttConnection { -555 let (quinn_conn, zrtt_accepted) = self -556 .inner -557 .into_0rtt() -558 .expect("incoming connections can always be converted to 0-RTT"); -559 -560 let accepted: BoxFuture<_> = Box::pin({ -561 let quinn_conn = quinn_conn.clone(); -562 async move { -563 let _ = zrtt_accepted.await; -564 let conn = conn_from_quinn_conn(quinn_conn, &self.ep)?.await?; -565 Ok(conn) -566 } -567 }); -568 let accepted = accepted.shared(); -569 -570 IncomingZeroRttConnection { -571 inner: quinn_conn, -572 data: IncomingZeroRttData { accepted }, -573 } -574 } -575 -576 /// Parameters negotiated during the handshake -577 pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError> { -578 self.inner.handshake_data().await -579 } -580 -581 /// Extracts the ALPN protocol from the peer's handshake data. -582 pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError> { -583 alpn_from_quinn_connecting(&mut self.inner).await -584 } -585} -586 -587impl Future for Accepting { -588 type Output = Result<Connection, ConnectingError>; -589 -590 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { -591 loop { -592 if let Some(fut) = &mut self.register_with_socket { -593 return fut.poll_unpin(cx).map_err(Into::into); -594 } else { -595 let quinn_conn = std::task::ready!(self.inner.poll_unpin(cx)?); -596 match conn_from_quinn_conn(quinn_conn, &self.ep) { -597 Err(err) => return Poll::Ready(Err(err)), -598 Ok(fut) => self.register_with_socket = Some(Box::pin(fut.err_into())), -599 }; -600 } -601 } -602 } -603} -604 -605/// The client side of a 0-RTT connection. -606/// -607/// This is created using [`Connecting::into_0rtt`]. -608/// -609/// Creating a `OutgoingZeroRttConnection` means that the endpoint is capable -610/// of attempting a 0-RTT connection with the remote. The remote may still -611/// reject the 0-RTT connection. In which case, any data sent before the -612/// handshake has completed may need to be resent. -613/// -614/// Look at the [`OutgoingZeroRttConnection::handshake_completed`] method for -615/// more details. -616pub type OutgoingZeroRttConnection = Connection<OutgoingZeroRtt>; -617 -618/// Returned from [`OutgoingZeroRttConnection::handshake_completed`]. -619#[derive(Debug, Clone)] -620pub enum ZeroRttStatus { -621 /// If the 0-RTT data was accepted, you can continue to use any streams -622 /// that were created before the handshake was completed. -623 Accepted(Connection), -624 /// If the 0-RTT data was rejected, any streams that were created before -625 /// the handshake was completed will error and any data that was -626 /// previously sent on those streams will need to be resent. -627 Rejected(Connection), -628} -629 -630/// A QUIC connection on the server-side that can possibly accept 0-RTT data. -631/// -632/// It is very similar to a `Connection`, but the `IncomingZeroRttConnection::remote_id` -633/// and `IncomingZeroRttConnection::alpn` may not be set yet, since the handshake has -634/// not necessarily occurred yet. -635/// -636/// If the `IncomingZeroRttConnection` has rejected 0-RTT or does not have enough information -637/// to accept 0-RTT, any received 0-RTT packets will simply be dropped before -638/// reaching any receive streams. -639/// -640/// Any streams that are created to send or receive data can continue to be used -641/// even after the handshake has completed and we are no longer in a 0-RTT -642/// situation. -643/// -644/// Use the [`IncomingZeroRttConnection::handshake_completed`] method to get a [`Connection`] from a -645/// `IncomingZeroRttConnection`. This waits until 0-RTT connection has completed -646/// the handshake and can now confidently derive the ALPN and the -647/// [`EndpointId`] of the remote endpoint. -648pub type IncomingZeroRttConnection = Connection<IncomingZeroRtt>; -649 -650/// A QUIC connection. -651/// -652/// If all references to a connection (including every clone of the Connection handle, -653/// streams of incoming streams, and the various stream types) have been dropped, then the -654/// connection will be automatically closed with an error_code of 0 and an empty reason. You -655/// can also close the connection explicitly by calling [`Connection::close`]. -656/// -657/// Closing the connection immediately abandons efforts to deliver data to the peer. Upon -658/// receiving CONNECTION_CLOSE the peer may drop any stream data not yet delivered to the -659/// application. [`Connection::close`] describes in more detail how to gracefully close a -660/// connection without losing application data. -661/// -662/// May be cloned to obtain another handle to the same connection. -663#[derive(Debug, Clone)] -664pub struct Connection<State: ConnectionState = HandshakeCompleted> { -665 inner: quinn::Connection, -666 /// State-specific information -667 data: State::Data, -668} -669 -670#[doc(hidden)] -671#[derive(Debug, Clone)] -672pub struct HandshakeCompletedData { -673 info: StaticInfo, -674 paths: PathWatchable, +218/// Error for attempting to retry an [`Incoming`] which already bears a token from a previous retry +219#[stack_error(derive, add_meta, from_sources)] +220#[error("retry() with validated Incoming")] +221pub struct RetryError { +222 err: quinn::RetryError, +223 ep: Endpoint, +224} +225 +226impl RetryError { +227 /// Get the [`Incoming`] +228 pub fn into_incoming(self) -> Incoming { +229 Incoming { +230 inner: self.err.into_incoming(), +231 ep: self.ep, +232 } +233 } +234} +235 +236/// Adaptor to let [`Incoming`] be `await`ed like a [`Connecting`]. +237#[derive(derive_more::Debug)] +238#[debug("IncomingFuture")] +239pub struct IncomingFuture(BoxFuture<Result<Connection, ConnectingError>>); +240 +241impl Future for IncomingFuture { +242 type Output = Result<Connection, ConnectingError>; +243 +244 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { +245 self.0.poll_unpin(cx) +246 } +247} +248 +249/// Extracts the ALPN protocol from the peer's handshake data. +250fn alpn_from_quinn_conn(conn: &quinn::Connection) -> Option<Vec<u8>> { +251 let data = conn.handshake_data()?; +252 match data.downcast::<quinn::crypto::rustls::HandshakeData>() { +253 Ok(data) => data.protocol, +254 Err(_) => None, +255 } +256} +257 +258async fn alpn_from_quinn_connecting(conn: &mut quinn::Connecting) -> Result<Vec<u8>, AlpnError> { +259 let data = conn.handshake_data().await?; +260 match data.downcast::<quinn::crypto::rustls::HandshakeData>() { +261 Ok(data) => match data.protocol { +262 Some(protocol) => Ok(protocol), +263 None => Err(e!(AlpnError::Unavailable)), +264 }, +265 Err(_) => Err(e!(AlpnError::UnknownHandshake)), +266 } +267} +268 +269#[stack_error(add_meta, derive, from_sources)] +270#[allow(missing_docs)] +271#[non_exhaustive] +272#[derive(Clone)] +273pub enum AuthenticationError { +274 #[error(transparent)] +275 RemoteId { source: RemoteEndpointIdError }, +276 #[error("no ALPN provided")] +277 NoAlpn {}, +278} +279 +280/// Converts a `quinn::Connection` to a `Connection`. +281/// +282/// Returns an error if there was a connection error, the handshake data has not completed +283/// or if the remote did not set an ALPN. +284/// +285/// Otherwise returns a future that completes once the connection has been registered with the +286/// socket. This future can return an [`RemoteStateActorStoppedError`], which will only be +287/// emitted if the endpoint is closing. +288/// +289/// The returned future is `'static`, so it can be stored without being lifetime-bound on `&ep`. +290fn conn_from_quinn_conn( +291 conn: quinn::Connection, +292 ep: &Endpoint, +293) -> Result< +294 impl Future<Output = Result<Connection, ConnectingError>> + Send + 'static, +295 ConnectingError, +296> { +297 let info = match static_info_from_conn(&conn) { +298 Ok(val) => val, +299 Err(auth_err) => { +300 // If the authentication error raced with a connection error, the connection +301 // error wins. +302 if let Some(conn_err) = conn.close_reason() { +303 return Err(e!(ConnectingError::ConnectionError { source: conn_err })); +304 } else { +305 return Err(e!(ConnectingError::HandshakeFailure { source: auth_err })); +306 } +307 } +308 }; +309 +310 // Register this connection with the socket. +311 let fut = ep +312 .inner +313 .register_connection(info.endpoint_id, conn.weak_handle()); +314 +315 // Check hooks +316 let inner = ep.inner.clone(); +317 Ok(async move { +318 let paths = fut.await?; +319 let conn = Connection { +320 data: HandshakeCompletedData { info, paths }, +321 inner: conn, +322 }; +323 +324 if let AfterHandshakeOutcome::Reject { error_code, reason } = +325 inner.hooks.after_handshake(&conn.to_info()).await +326 { +327 conn.close(error_code, &reason); +328 return Err(e!(ConnectingError::LocallyRejected)); +329 } +330 +331 Ok(conn) +332 }) +333} +334 +335fn static_info_from_conn(conn: &quinn::Connection) -> Result<StaticInfo, AuthenticationError> { +336 let endpoint_id = remote_id_from_quinn_conn(conn)?; +337 let alpn = alpn_from_quinn_conn(conn).ok_or_else(|| e!(AuthenticationError::NoAlpn))?; +338 Ok(StaticInfo { endpoint_id, alpn }) +339} +340 +341/// Returns the [`EndpointId`] from the peer's TLS certificate. +342/// +343/// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is +344/// included in the TLS certificate presented during the handshake when connecting. +345/// This function allows you to get the [`EndpointId`] of the remote endpoint of this +346/// connection. +347/// +348/// [`PublicKey`]: iroh_base::PublicKey +349fn remote_id_from_quinn_conn( +350 conn: &quinn::Connection, +351) -> Result<EndpointId, RemoteEndpointIdError> { +352 let data = conn.peer_identity(); +353 match data { +354 None => { +355 warn!("no peer certificate found"); +356 Err(RemoteEndpointIdError::new()) +357 } +358 Some(data) => match data.downcast::<Vec<rustls::pki_types::CertificateDer>>() { +359 Ok(certs) => { +360 if certs.len() != 1 { +361 warn!( +362 "expected a single peer certificate, but {} found", +363 certs.len() +364 ); +365 return Err(RemoteEndpointIdError::new()); +366 } +367 +368 let peer_id = EndpointId::from_verifying_key( +369 VerifyingKey::from_public_key_der(&certs[0]) +370 .map_err(|_| RemoteEndpointIdError::new())?, +371 ); +372 +373 Ok(peer_id) +374 } +375 Err(err) => { +376 warn!("invalid peer certificate: {:?}", err); +377 Err(RemoteEndpointIdError::new()) +378 } +379 }, +380 } +381} +382 +383/// An outgoing connection in progress. +384/// +385/// This future resolves to a [`Connection`] once the handshake completes. +386#[derive(derive_more::Debug)] +387pub struct Connecting { +388 inner: quinn::Connecting, +389 /// Future to register the connection with the socket. +390 /// +391 /// This is set and polled after `inner` completes. We are using an option instead of an enum +392 /// because we need infallible access to `inner` in some methods. +393 #[debug("{}", register_with_socket.as_ref().map(|_| "Some(RegisterWithSocketFut)").unwrap_or("None"))] +394 register_with_socket: Option<RegisterWithSocketFut>, +395 ep: Endpoint, +396 /// `Some(remote_id)` if this is an outgoing connection, `None` if this is an incoming conn +397 remote_endpoint_id: EndpointId, +398} +399 +400type RegisterWithSocketFut = BoxFuture<Result<Connection, ConnectingError>>; +401 +402/// In-progress connection attempt future +403#[derive(derive_more::Debug)] +404pub struct Accepting { +405 inner: quinn::Connecting, +406 /// Future to register the connection with the socket. +407 /// +408 /// This is set and polled after `inner` completes. We are using an option instead of an enum +409 /// because we need infallible access to `inner` in some methods. +410 #[debug("{}", register_with_socket.as_ref().map(|_| "Some(RegisterWithSocketFut)").unwrap_or("None"))] +411 register_with_socket: Option<RegisterWithSocketFut>, +412 ep: Endpoint, +413} +414 +415#[stack_error(add_meta, derive, from_sources)] +416#[allow(missing_docs)] +417#[non_exhaustive] +418pub enum AlpnError { +419 #[error(transparent)] +420 ConnectionError { +421 #[error(std_err)] +422 source: ConnectionError, +423 }, +424 #[error("No ALPN available")] +425 Unavailable, +426 #[error("Unknown handshake type")] +427 UnknownHandshake, +428} +429 +430#[stack_error(add_meta, derive, from_sources)] +431#[allow(missing_docs)] +432#[non_exhaustive] +433#[derive(Clone)] +434#[allow(private_interfaces)] +435pub enum ConnectingError { +436 #[error(transparent)] +437 ConnectionError { +438 #[error(std_err)] +439 source: ConnectionError, +440 }, +441 #[error("Failure finalizing the handshake")] +442 HandshakeFailure { source: AuthenticationError }, +443 #[error("internal consistency error")] +444 InternalConsistencyError { +445 /// Private source type, cannot be created publicly. +446 source: RemoteStateActorStoppedError, +447 }, +448 #[error("Connection was rejected locally")] +449 LocallyRejected, +450} +451 +452impl Connecting { +453 pub(crate) fn new( +454 inner: quinn::Connecting, +455 ep: Endpoint, +456 remote_endpoint_id: EndpointId, +457 ) -> Self { +458 Self { +459 inner, +460 ep, +461 remote_endpoint_id, +462 register_with_socket: None, +463 } +464 } +465 +466 /// Converts this [`Connecting`] into a 0-RTT connection at the cost of weakened security. +467 /// +468 /// If 0-RTT can be attempted, returns a [`OutgoingZeroRttConnection`], which represents +469 /// outgoing 0-RTT connection. +470 /// +471 /// If the 0-RTT cannot even be attempted, returns back the same [`Connecting`] without +472 /// changes. You can still `.await` this [`Connecting`] to get a normal [`Connection`]. +473 /// +474 /// The [`OutgoingZeroRttConnection`] will attempt to resume a previous TLS session. However, +475 /// **the remote endpoint may actually _reject_ the 0-RTT data--yet still accept +476 /// the connection attempt in general**, once the handshake has completed. +477 /// +478 /// This possibility of whether the 0-RTT data was accepted or rejected is conveyed +479 /// through the [`ZeroRttStatus`] after calling [`OutgoingZeroRttConnection::handshake_completed`]. +480 /// When the handshake completes, it returns [`ZeroRttStatus::Accepted`] if the 0-RTT data +481 /// was accepted and [`ZeroRttStatus::Rejected`] if it was rejected. If it was rejected, the +482 /// existence of any streams opened and application data sent prior to the handshake +483 /// completing will not be conveyed to the remote application, and local operations on them +484 /// will return `ZeroRttRejected` errors. +485 /// +486 /// A server may reject 0-RTT data at its discretion, but accepting 0-RTT data requires the +487 /// relevant resumption state to be stored in the server, which servers may limit or lose for +488 /// various reasons including not persisting resumption state across server restarts. +489 /// +490 /// ## Security +491 /// +492 /// This enables transmission of 0-RTT data, which is vulnerable to replay attacks, and +493 /// should therefore never invoke non-idempotent operations. +494 /// +495 /// You can use [`RecvStream::is_0rtt`] to check whether a stream has been opened in 0-RTT +496 /// and thus whether parts of the stream are operating under this reduced security level. +497 /// +498 /// See also documentation for [`Accepting::into_0rtt`]. +499 /// +500 /// [`RecvStream::is_0rtt`]: quinn::RecvStream::is_0rtt +501 #[allow(clippy::result_large_err)] +502 pub fn into_0rtt(self) -> Result<OutgoingZeroRttConnection, Connecting> { +503 match self.inner.into_0rtt() { +504 Ok((quinn_conn, zrtt_accepted)) => { +505 let accepted: BoxFuture<_> = Box::pin({ +506 let quinn_conn = quinn_conn.clone(); +507 async move { +508 let accepted = zrtt_accepted.await; +509 let conn = conn_from_quinn_conn(quinn_conn, &self.ep)?.await?; +510 Ok(match accepted { +511 true => ZeroRttStatus::Accepted(conn), +512 false => ZeroRttStatus::Rejected(conn), +513 }) +514 } +515 }); +516 let accepted = accepted.shared(); +517 Ok(Connection { +518 inner: quinn_conn, +519 data: OutgoingZeroRttData { accepted }, +520 }) +521 } +522 Err(inner) => Err(Self { inner, ..self }), +523 } +524 } +525 +526 /// Parameters negotiated during the handshake +527 pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError> { +528 self.inner.handshake_data().await +529 } +530 +531 /// Extracts the ALPN protocol from the peer's handshake data. +532 pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError> { +533 alpn_from_quinn_connecting(&mut self.inner).await +534 } +535 +536 /// Returns the [`EndpointId`] of the endpoint that this connection attempt tries to connect to. +537 pub fn remote_id(&self) -> EndpointId { +538 self.remote_endpoint_id +539 } +540} +541 +542impl Future for Connecting { +543 type Output = Result<Connection, ConnectingError>; +544 +545 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { +546 loop { +547 if let Some(fut) = &mut self.register_with_socket { +548 return fut.poll_unpin(cx).map_err(Into::into); +549 } else { +550 let quinn_conn = std::task::ready!(self.inner.poll_unpin(cx)?); +551 let fut = conn_from_quinn_conn(quinn_conn, &self.ep)?; +552 self.register_with_socket = Some(Box::pin(fut.err_into())); +553 } +554 } +555 } +556} +557 +558impl Accepting { +559 pub(crate) fn new(inner: quinn::Connecting, ep: Endpoint) -> Self { +560 Self { +561 inner, +562 ep, +563 register_with_socket: None, +564 } +565 } +566 +567 /// Converts this [`Accepting`] into a 0-RTT or 0.5-RTT connection at the cost of weakened +568 /// security. +569 /// +570 /// Returns a [`IncomingZeroRttConnection`], which represents an incoming 0-RTT or 0.5-RTT connection. +571 /// +572 /// If the connection was initiated with 0-RTT by the remote endpoint, the local endpoint +573 /// might accept the 0-RTT attempt, allowing the local endpoint to receive application streams +574 /// and data before the handshake finishes. +575 /// +576 /// Otherwise this will enable 0.5-RTT, allowing the [`IncomingZeroRttConnection`] to open streams and send +577 /// data before the handshake finishes. +578 /// +579 /// ## Security +580 /// +581 /// Transmitted 0-RTT data from the client is vulnerable to replay attacks, and should +582 /// therefore never invoke non-idempotent operations. +583 /// +584 /// Transmission of 0.5-RTT data from the server may be sent before TLS client authentication +585 /// has occurred, and should therefore not be used to send data for which client +586 /// authentication is required. +587 /// +588 /// You can use [`RecvStream::is_0rtt`] to check whether a stream has been opened in 0-RTT +589 /// and thus whether parts of the stream are operating under this reduced security level. +590 /// +591 /// See also documentation for [`Connecting::into_0rtt`]. +592 /// +593 /// [`RecvStream::is_0rtt`]: crate::endpoint::RecvStream::is_0rtt +594 pub fn into_0rtt(self) -> IncomingZeroRttConnection { +595 let (quinn_conn, zrtt_accepted) = self +596 .inner +597 .into_0rtt() +598 .expect("incoming connections can always be converted to 0-RTT"); +599 +600 let accepted: BoxFuture<_> = Box::pin({ +601 let quinn_conn = quinn_conn.clone(); +602 async move { +603 let _ = zrtt_accepted.await; +604 let conn = conn_from_quinn_conn(quinn_conn, &self.ep)?.await?; +605 Ok(conn) +606 } +607 }); +608 let accepted = accepted.shared(); +609 +610 IncomingZeroRttConnection { +611 inner: quinn_conn, +612 data: IncomingZeroRttData { accepted }, +613 } +614 } +615 +616 /// Returns the remote address of this connection. +617 pub fn remote_addr(&self) -> IncomingAddr { +618 self.ep +619 .to_transport_addr(self.inner.remote_address()) +620 .into() +621 } +622 +623 /// Parameters negotiated during the handshake +624 pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError> { +625 self.inner.handshake_data().await +626 } +627 +628 /// Extracts the ALPN protocol from the peer's handshake data. +629 pub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError> { +630 alpn_from_quinn_connecting(&mut self.inner).await +631 } +632} +633 +634impl Future for Accepting { +635 type Output = Result<Connection, ConnectingError>; +636 +637 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { +638 loop { +639 if let Some(fut) = &mut self.register_with_socket { +640 return fut.poll_unpin(cx).map_err(Into::into); +641 } else { +642 let quinn_conn = std::task::ready!(self.inner.poll_unpin(cx)?); +643 match conn_from_quinn_conn(quinn_conn, &self.ep) { +644 Err(err) => return Poll::Ready(Err(err)), +645 Ok(fut) => self.register_with_socket = Some(Box::pin(fut.err_into())), +646 }; +647 } +648 } +649 } +650} +651 +652/// The client side of a 0-RTT connection. +653/// +654/// This is created using [`Connecting::into_0rtt`]. +655/// +656/// Creating a `OutgoingZeroRttConnection` means that the endpoint is capable +657/// of attempting a 0-RTT connection with the remote. The remote may still +658/// reject the 0-RTT connection. In which case, any data sent before the +659/// handshake has completed may need to be resent. +660/// +661/// Look at the [`OutgoingZeroRttConnection::handshake_completed`] method for +662/// more details. +663pub type OutgoingZeroRttConnection = Connection<OutgoingZeroRtt>; +664 +665/// Returned from [`OutgoingZeroRttConnection::handshake_completed`]. +666#[derive(Debug, Clone)] +667pub enum ZeroRttStatus { +668 /// If the 0-RTT data was accepted, you can continue to use any streams +669 /// that were created before the handshake was completed. +670 Accepted(Connection), +671 /// If the 0-RTT data was rejected, any streams that were created before +672 /// the handshake was completed will error and any data that was +673 /// previously sent on those streams will need to be resent. +674 Rejected(Connection), 675} 676 -677/// Static info from a completed TLS handshake. -678#[derive(Debug, Clone)] -679struct StaticInfo { -680 endpoint_id: EndpointId, -681 alpn: Vec<u8>, -682} -683 -684#[doc(hidden)] -685#[derive(Debug, Clone)] -686pub struct IncomingZeroRttData { -687 accepted: Shared<BoxFuture<Result<Connection, ConnectingError>>>, -688} -689 -690#[doc(hidden)] -691#[derive(Debug, Clone)] -692pub struct OutgoingZeroRttData { -693 accepted: Shared<BoxFuture<Result<ZeroRttStatus, ConnectingError>>>, -694} -695 -696mod sealed { -697 pub trait Sealed {} -698} -699 -700/// Trait to track the state of a [`Connection`] at compile time. -701pub trait ConnectionState: sealed::Sealed { -702 /// State-specific data stored in the [`Connection`]. -703 type Data: std::fmt::Debug + Clone; -704} -705 -706/// Marker type for a connection that has completed the handshake. -707#[derive(Debug, Clone)] -708pub struct HandshakeCompleted; -709 -710/// Marker type for a connection that is in the incoming 0-RTT state. -711#[derive(Debug, Clone)] -712pub struct IncomingZeroRtt; -713 -714/// Marker type for a connection that is in the outgoing 0-RTT state. -715#[derive(Debug, Clone)] -716pub struct OutgoingZeroRtt; -717 -718impl sealed::Sealed for HandshakeCompleted {} -719impl ConnectionState for HandshakeCompleted { -720 type Data = HandshakeCompletedData; -721} -722impl sealed::Sealed for IncomingZeroRtt {} -723impl ConnectionState for IncomingZeroRtt { -724 type Data = IncomingZeroRttData; -725} -726 -727impl sealed::Sealed for OutgoingZeroRtt {} -728impl ConnectionState for OutgoingZeroRtt { -729 type Data = OutgoingZeroRttData; -730} -731 -732#[allow(missing_docs)] -733#[stack_error(add_meta, derive)] -734#[error("Protocol error: no remote id available")] -735#[derive(Clone)] -736pub struct RemoteEndpointIdError; -737 -738impl<T: ConnectionState> Connection<T> { -739 /// Initiates a new outgoing unidirectional stream. -740 /// -741 /// Streams are cheap and instantaneous to open unless blocked by flow control. As a -742 /// consequence, the peer won’t be notified that a stream has been opened until the -743 /// stream is actually used. -744 #[inline] -745 pub fn open_uni(&self) -> OpenUni<'_> { -746 self.inner.open_uni() -747 } -748 -749 /// Initiates a new outgoing bidirectional stream. -750 /// -751 /// Streams are cheap and instantaneous to open unless blocked by flow control. As a -752 /// consequence, the peer won't be notified that a stream has been opened until the -753 /// stream is actually used. Calling [`open_bi`] then waiting on the [`RecvStream`] -754 /// without writing anything to [`SendStream`] will never succeed. -755 /// -756 /// [`open_bi`]: Connection::open_bi -757 /// [`SendStream`]: crate::endpoint::SendStream -758 /// [`RecvStream`]: crate::endpoint::RecvStream -759 #[inline] -760 pub fn open_bi(&self) -> OpenBi<'_> { -761 self.inner.open_bi() -762 } -763 -764 /// Accepts the next incoming uni-directional stream. -765 #[inline] -766 pub fn accept_uni(&self) -> AcceptUni<'_> { -767 self.inner.accept_uni() -768 } -769 -770 /// Accept the next incoming bidirectional stream. -771 /// -772 /// **Important Note**: The peer that calls [`open_bi`] must write to its [`SendStream`] -773 /// before the peer `Connection` is able to accept the stream using -774 /// `accept_bi()`. Calling [`open_bi`] then waiting on the [`RecvStream`] without -775 /// writing anything to the connected [`SendStream`] will never succeed. -776 /// -777 /// [`open_bi`]: Connection::open_bi -778 /// [`SendStream`]: crate::endpoint::SendStream -779 /// [`RecvStream`]: crate::endpoint::RecvStream -780 #[inline] -781 pub fn accept_bi(&self) -> AcceptBi<'_> { -782 self.inner.accept_bi() -783 } +677/// A QUIC connection on the server-side that can possibly accept 0-RTT data. +678/// +679/// It is very similar to a `Connection`, but the `IncomingZeroRttConnection::remote_id` +680/// and `IncomingZeroRttConnection::alpn` may not be set yet, since the handshake has +681/// not necessarily occurred yet. +682/// +683/// If the `IncomingZeroRttConnection` has rejected 0-RTT or does not have enough information +684/// to accept 0-RTT, any received 0-RTT packets will simply be dropped before +685/// reaching any receive streams. +686/// +687/// Any streams that are created to send or receive data can continue to be used +688/// even after the handshake has completed and we are no longer in a 0-RTT +689/// situation. +690/// +691/// Use the [`IncomingZeroRttConnection::handshake_completed`] method to get a [`Connection`] from a +692/// `IncomingZeroRttConnection`. This waits until 0-RTT connection has completed +693/// the handshake and can now confidently derive the ALPN and the +694/// [`EndpointId`] of the remote endpoint. +695pub type IncomingZeroRttConnection = Connection<IncomingZeroRtt>; +696 +697/// A QUIC connection. +698/// +699/// If all references to a connection (including every clone of the Connection handle, +700/// streams of incoming streams, and the various stream types) have been dropped, then the +701/// connection will be automatically closed with an error_code of 0 and an empty reason. You +702/// can also close the connection explicitly by calling [`Connection::close`]. +703/// +704/// Closing the connection immediately abandons efforts to deliver data to the peer. Upon +705/// receiving CONNECTION_CLOSE the peer may drop any stream data not yet delivered to the +706/// application. [`Connection::close`] describes in more detail how to gracefully close a +707/// connection without losing application data. +708/// +709/// May be cloned to obtain another handle to the same connection. +710#[derive(Debug, Clone)] +711pub struct Connection<State: ConnectionState = HandshakeCompleted> { +712 inner: quinn::Connection, +713 /// State-specific information +714 data: State::Data, +715} +716 +717#[doc(hidden)] +718#[derive(Debug, Clone)] +719pub struct HandshakeCompletedData { +720 info: StaticInfo, +721 paths: PathWatchable, +722} +723 +724/// Static info from a completed TLS handshake. +725#[derive(Debug, Clone)] +726struct StaticInfo { +727 endpoint_id: EndpointId, +728 alpn: Vec<u8>, +729} +730 +731#[doc(hidden)] +732#[derive(Debug, Clone)] +733pub struct IncomingZeroRttData { +734 accepted: Shared<BoxFuture<Result<Connection, ConnectingError>>>, +735} +736 +737#[doc(hidden)] +738#[derive(Debug, Clone)] +739pub struct OutgoingZeroRttData { +740 accepted: Shared<BoxFuture<Result<ZeroRttStatus, ConnectingError>>>, +741} +742 +743mod sealed { +744 pub trait Sealed {} +745} +746 +747/// Trait to track the state of a [`Connection`] at compile time. +748pub trait ConnectionState: sealed::Sealed { +749 /// State-specific data stored in the [`Connection`]. +750 type Data: std::fmt::Debug + Clone; +751} +752 +753/// Marker type for a connection that has completed the handshake. +754#[derive(Debug, Clone)] +755pub struct HandshakeCompleted; +756 +757/// Marker type for a connection that is in the incoming 0-RTT state. +758#[derive(Debug, Clone)] +759pub struct IncomingZeroRtt; +760 +761/// Marker type for a connection that is in the outgoing 0-RTT state. +762#[derive(Debug, Clone)] +763pub struct OutgoingZeroRtt; +764 +765impl sealed::Sealed for HandshakeCompleted {} +766impl ConnectionState for HandshakeCompleted { +767 type Data = HandshakeCompletedData; +768} +769impl sealed::Sealed for IncomingZeroRtt {} +770impl ConnectionState for IncomingZeroRtt { +771 type Data = IncomingZeroRttData; +772} +773 +774impl sealed::Sealed for OutgoingZeroRtt {} +775impl ConnectionState for OutgoingZeroRtt { +776 type Data = OutgoingZeroRttData; +777} +778 +779#[allow(missing_docs)] +780#[stack_error(add_meta, derive)] +781#[error("Protocol error: no remote id available")] +782#[derive(Clone)] +783pub struct RemoteEndpointIdError; 784 -785 /// Receives an application datagram. -786 #[inline] -787 pub fn read_datagram(&self) -> ReadDatagram<'_> { -788 self.inner.read_datagram() -789 } -790 -791 /// Wait for the connection to be closed for any reason. -792 /// -793 /// Despite the return type's name, closed connections are often not an error condition -794 /// at the application layer. Cases that might be routine include -795 /// [`ConnectionError::LocallyClosed`] and [`ConnectionError::ApplicationClosed`]. -796 #[inline] -797 pub async fn closed(&self) -> ConnectionError { -798 self.inner.closed().await -799 } -800 -801 /// If the connection is closed, the reason why. +785impl<T: ConnectionState> Connection<T> { +786 /// Initiates a new outgoing unidirectional stream. +787 /// +788 /// Streams are cheap and instantaneous to open unless blocked by flow control. As a +789 /// consequence, the peer won’t be notified that a stream has been opened until the +790 /// stream is actually used. +791 #[inline] +792 pub fn open_uni(&self) -> OpenUni<'_> { +793 self.inner.open_uni() +794 } +795 +796 /// Initiates a new outgoing bidirectional stream. +797 /// +798 /// Streams are cheap and instantaneous to open unless blocked by flow control. As a +799 /// consequence, the peer won't be notified that a stream has been opened until the +800 /// stream is actually used. Calling [`open_bi`] then waiting on the [`RecvStream`] +801 /// without writing anything to [`SendStream`] will never succeed. 802 /// -803 /// Returns `None` if the connection is still open. -804 #[inline] -805 pub fn close_reason(&self) -> Option<ConnectionError> { -806 self.inner.close_reason() -807 } -808 -809 /// Closes the connection immediately. -810 /// -811 /// Pending operations will fail immediately with [`ConnectionError::LocallyClosed`]. No -812 /// more data is sent to the peer and the peer may drop buffered data upon receiving the -813 /// CONNECTION_CLOSE frame. -814 /// -815 /// `error_code` and `reason` are not interpreted, and are provided directly to the -816 /// peer. -817 /// -818 /// `reason` will be truncated to fit in a single packet with overhead; to improve odds -819 /// that it is preserved in full, it should be kept under 1KiB. -820 /// -821 /// # Gracefully closing a connection -822 /// -823 /// Only the peer last receiving application data can be certain that all data is -824 /// delivered. The only reliable action it can then take is to close the connection, -825 /// potentially with a custom error code. The delivery of the final CONNECTION_CLOSE -826 /// frame is very likely if both endpoints stay online long enough, calling -827 /// [`Endpoint::close`] will wait to provide sufficient time. Otherwise, the remote peer -828 /// will time out the connection, provided that the idle timeout is not disabled. -829 /// -830 /// The sending side can not guarantee all stream data is delivered to the remote -831 /// application. It only knows the data is delivered to the QUIC stack of the remote -832 /// endpoint. Once the local side sends a CONNECTION_CLOSE frame in response to calling -833 /// [`close`] the remote endpoint may drop any data it received but is as yet -834 /// undelivered to the application, including data that was acknowledged as received to -835 /// the local endpoint. -836 /// -837 /// [`close`]: Connection::close -838 #[inline] -839 pub fn close(&self, error_code: VarInt, reason: &[u8]) { -840 self.inner.close(error_code, reason) -841 } -842 -843 /// Transmits `data` as an unreliable, unordered application datagram. -844 /// -845 /// Application datagrams are a low-level primitive. They may be lost or delivered out -846 /// of order, and `data` must both fit inside a single QUIC packet and be smaller than -847 /// the maximum dictated by the peer. -848 #[inline] -849 pub fn send_datagram(&self, data: bytes::Bytes) -> Result<(), SendDatagramError> { -850 self.inner.send_datagram(data) -851 } -852 -853 /// Transmits `data` as an unreliable, unordered application datagram -854 /// -855 /// Unlike [`send_datagram()`], this method will wait for buffer space during congestion -856 /// conditions, which effectively prioritizes old datagrams over new datagrams. +803 /// [`open_bi`]: Connection::open_bi +804 /// [`SendStream`]: crate::endpoint::SendStream +805 /// [`RecvStream`]: crate::endpoint::RecvStream +806 #[inline] +807 pub fn open_bi(&self) -> OpenBi<'_> { +808 self.inner.open_bi() +809 } +810 +811 /// Accepts the next incoming uni-directional stream. +812 #[inline] +813 pub fn accept_uni(&self) -> AcceptUni<'_> { +814 self.inner.accept_uni() +815 } +816 +817 /// Accept the next incoming bidirectional stream. +818 /// +819 /// **Important Note**: The peer that calls [`open_bi`] must write to its [`SendStream`] +820 /// before the peer `Connection` is able to accept the stream using +821 /// `accept_bi()`. Calling [`open_bi`] then waiting on the [`RecvStream`] without +822 /// writing anything to the connected [`SendStream`] will never succeed. +823 /// +824 /// [`open_bi`]: Connection::open_bi +825 /// [`SendStream`]: crate::endpoint::SendStream +826 /// [`RecvStream`]: crate::endpoint::RecvStream +827 #[inline] +828 pub fn accept_bi(&self) -> AcceptBi<'_> { +829 self.inner.accept_bi() +830 } +831 +832 /// Receives an application datagram. +833 #[inline] +834 pub fn read_datagram(&self) -> ReadDatagram<'_> { +835 self.inner.read_datagram() +836 } +837 +838 /// Wait for the connection to be closed for any reason. +839 /// +840 /// Despite the return type's name, closed connections are often not an error condition +841 /// at the application layer. Cases that might be routine include +842 /// [`ConnectionError::LocallyClosed`] and [`ConnectionError::ApplicationClosed`]. +843 #[inline] +844 pub async fn closed(&self) -> ConnectionError { +845 self.inner.closed().await +846 } +847 +848 /// If the connection is closed, the reason why. +849 /// +850 /// Returns `None` if the connection is still open. +851 #[inline] +852 pub fn close_reason(&self) -> Option<ConnectionError> { +853 self.inner.close_reason() +854 } +855 +856 /// Closes the connection immediately. 857 /// -858 /// See [`send_datagram()`] for details. -859 /// -860 /// [`send_datagram()`]: Connection::send_datagram -861 #[inline] -862 pub fn send_datagram_wait(&self, data: bytes::Bytes) -> SendDatagram<'_> { -863 self.inner.send_datagram_wait(data) -864 } -865 -866 /// Computes the maximum size of datagrams that may be passed to [`send_datagram`]. +858 /// Pending operations will fail immediately with [`ConnectionError::LocallyClosed`]. No +859 /// more data is sent to the peer and the peer may drop buffered data upon receiving the +860 /// CONNECTION_CLOSE frame. +861 /// +862 /// `error_code` and `reason` are not interpreted, and are provided directly to the +863 /// peer. +864 /// +865 /// `reason` will be truncated to fit in a single packet with overhead; to improve odds +866 /// that it is preserved in full, it should be kept under 1KiB. 867 /// -868 /// Returns `None` if datagrams are unsupported by the peer or disabled locally. +868 /// # Gracefully closing a connection 869 /// -870 /// This may change over the lifetime of a connection according to variation in the path -871 /// MTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the -872 /// peer's limit is large this is guaranteed to be a little over a kilobyte at minimum. -873 /// -874 /// Not necessarily the maximum size of received datagrams. -875 /// -876 /// [`send_datagram`]: Self::send_datagram -877 #[inline] -878 pub fn max_datagram_size(&self) -> Option<usize> { -879 self.inner.max_datagram_size() -880 } -881 -882 /// Bytes available in the outgoing datagram buffer. +870 /// Only the peer last receiving application data can be certain that all data is +871 /// delivered. The only reliable action it can then take is to close the connection, +872 /// potentially with a custom error code. The delivery of the final CONNECTION_CLOSE +873 /// frame is very likely if both endpoints stay online long enough, calling +874 /// [`Endpoint::close`] will wait to provide sufficient time. Otherwise, the remote peer +875 /// will time out the connection, provided that the idle timeout is not disabled. +876 /// +877 /// The sending side can not guarantee all stream data is delivered to the remote +878 /// application. It only knows the data is delivered to the QUIC stack of the remote +879 /// endpoint. Once the local side sends a CONNECTION_CLOSE frame in response to calling +880 /// [`close`] the remote endpoint may drop any data it received but is as yet +881 /// undelivered to the application, including data that was acknowledged as received to +882 /// the local endpoint. 883 /// -884 /// When greater than zero, calling [`send_datagram`] with a -885 /// datagram of at most this size is guaranteed not to cause older datagrams to be -886 /// dropped. -887 /// -888 /// [`send_datagram`]: Self::send_datagram -889 #[inline] -890 pub fn datagram_send_buffer_space(&self) -> usize { -891 self.inner.datagram_send_buffer_space() -892 } -893 -894 /// Current best estimate of this connection's latency (round-trip-time). +884 /// [`close`]: Connection::close +885 #[inline] +886 pub fn close(&self, error_code: VarInt, reason: &[u8]) { +887 self.inner.close(error_code, reason) +888 } +889 +890 /// Transmits `data` as an unreliable, unordered application datagram. +891 /// +892 /// Application datagrams are a low-level primitive. They may be lost or delivered out +893 /// of order, and `data` must both fit inside a single QUIC packet and be smaller than +894 /// the maximum dictated by the peer. 895 #[inline] -896 pub fn rtt(&self, path_id: PathId) -> Option<Duration> { -897 self.inner.rtt(path_id) +896 pub fn send_datagram(&self, data: bytes::Bytes) -> Result<(), SendDatagramError> { +897 self.inner.send_datagram(data) 898 } 899 -900 /// Returns connection statistics. -901 #[inline] -902 pub fn stats(&self) -> ConnectionStats { -903 self.inner.stats() -904 } -905 -906 /// Current state of the congestion control algorithm, for debugging purposes. -907 #[inline] -908 pub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>> { -909 self.inner.congestion_state(path_id) -910 } -911 -912 /// Parameters negotiated during the handshake. -913 /// -914 /// Guaranteed to return `Some` on fully established connections or after -915 /// [`Connecting::handshake_data()`] succeeds. See that method's documentations for -916 /// details on the returned value. -917 /// -918 /// [`Connection::handshake_data()`]: crate::endpoint::Connecting::handshake_data -919 #[inline] -920 pub fn handshake_data(&self) -> Option<Box<dyn Any>> { -921 self.inner.handshake_data() -922 } -923 -924 /// Cryptographic identity of the peer. -925 /// -926 /// The dynamic type returned is determined by the configured [`Session`]. For the -927 /// default `rustls` session, the return value can be [`downcast`] to a -928 /// <code>Vec<[rustls::pki_types::CertificateDer]></code> -929 /// -930 /// [`Session`]: quinn_proto::crypto::Session -931 /// [`downcast`]: Box::downcast -932 #[inline] -933 pub fn peer_identity(&self) -> Option<Box<dyn Any>> { -934 self.inner.peer_identity() -935 } -936 -937 /// A stable identifier for this connection. -938 /// -939 /// Peer addresses and connection IDs can change, but this value will remain fixed for -940 /// the lifetime of the connection. -941 #[inline] -942 pub fn stable_id(&self) -> usize { -943 self.inner.stable_id() -944 } -945 -946 /// Derives keying material from this connection's TLS session secrets. -947 /// -948 /// When both peers call this method with the same `label` and `context` -949 /// arguments and `output` buffers of equal length, they will get the -950 /// same sequence of bytes in `output`. These bytes are cryptographically -951 /// strong and pseudorandom, and are suitable for use as keying material. -952 /// -953 /// See [RFC5705](https://tools.ietf.org/html/rfc5705) for more information. +900 /// Transmits `data` as an unreliable, unordered application datagram +901 /// +902 /// Unlike [`send_datagram()`], this method will wait for buffer space during congestion +903 /// conditions, which effectively prioritizes old datagrams over new datagrams. +904 /// +905 /// See [`send_datagram()`] for details. +906 /// +907 /// [`send_datagram()`]: Connection::send_datagram +908 #[inline] +909 pub fn send_datagram_wait(&self, data: bytes::Bytes) -> SendDatagram<'_> { +910 self.inner.send_datagram_wait(data) +911 } +912 +913 /// Computes the maximum size of datagrams that may be passed to [`send_datagram`]. +914 /// +915 /// Returns `None` if datagrams are unsupported by the peer or disabled locally. +916 /// +917 /// This may change over the lifetime of a connection according to variation in the path +918 /// MTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the +919 /// peer's limit is large this is guaranteed to be a little over a kilobyte at minimum. +920 /// +921 /// Not necessarily the maximum size of received datagrams. +922 /// +923 /// [`send_datagram`]: Self::send_datagram +924 #[inline] +925 pub fn max_datagram_size(&self) -> Option<usize> { +926 self.inner.max_datagram_size() +927 } +928 +929 /// Bytes available in the outgoing datagram buffer. +930 /// +931 /// When greater than zero, calling [`send_datagram`] with a +932 /// datagram of at most this size is guaranteed not to cause older datagrams to be +933 /// dropped. +934 /// +935 /// [`send_datagram`]: Self::send_datagram +936 #[inline] +937 pub fn datagram_send_buffer_space(&self) -> usize { +938 self.inner.datagram_send_buffer_space() +939 } +940 +941 /// Current best estimate of this connection's latency (round-trip-time). +942 #[inline] +943 pub fn rtt(&self, path_id: PathId) -> Option<Duration> { +944 self.inner.rtt(path_id) +945 } +946 +947 /// Returns connection statistics. +948 #[inline] +949 pub fn stats(&self) -> ConnectionStats { +950 self.inner.stats() +951 } +952 +953 /// Current state of the congestion control algorithm, for debugging purposes. 954 #[inline] -955 pub fn export_keying_material( -956 &self, -957 output: &mut [u8], -958 label: &[u8], -959 context: &[u8], -960 ) -> Result<(), ExportKeyingMaterialError> { -961 self.inner.export_keying_material(output, label, context) -962 } -963 -964 /// Modifies the number of unidirectional streams that may be concurrently opened. -965 /// -966 /// No streams may be opened by the peer unless fewer than `count` are already -967 /// open. Large `count`s increase both minimum and worst-case memory consumption. -968 #[inline] -969 pub fn set_max_concurrent_uni_streams(&self, count: VarInt) { -970 self.inner.set_max_concurrent_uni_streams(count) -971 } -972 -973 /// See [`quinn_proto::TransportConfig::receive_window`]. -974 #[inline] -975 pub fn set_receive_window(&self, receive_window: VarInt) { -976 self.inner.set_receive_window(receive_window) -977 } -978 -979 /// Modifies the number of bidirectional streams that may be concurrently opened. -980 /// -981 /// No streams may be opened by the peer unless fewer than `count` are already -982 /// open. Large `count`s increase both minimum and worst-case memory consumption. -983 #[inline] -984 pub fn set_max_concurrent_bi_streams(&self, count: VarInt) { -985 self.inner.set_max_concurrent_bi_streams(count) -986 } -987} -988 -989impl Connection<HandshakeCompleted> { -990 /// Extracts the ALPN protocol from the peer's handshake data. -991 pub fn alpn(&self) -> &[u8] { -992 &self.data.info.alpn -993 } -994 -995 /// Returns the [`EndpointId`] from the peer's TLS certificate. -996 /// -997 /// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is -998 /// included in the TLS certificate presented during the handshake when connecting. -999 /// This function allows you to get the [`EndpointId`] of the remote endpoint of this -1000 /// connection. -1001 /// -1002 /// [`PublicKey`]: iroh_base::PublicKey -1003 pub fn remote_id(&self) -> EndpointId { -1004 self.data.info.endpoint_id -1005 } -1006 -1007 /// Returns a [`Watcher`] for the network paths of this connection. -1008 /// -1009 /// A connection can have several network paths to the remote endpoint, commonly there -1010 /// will be a path via the relay server and a holepunched path. -1011 /// -1012 /// Returns a [`PathWatcher`], which implements the [`Watcher`] trait. The watcher is updated -1013 /// whenever a path is opened or closed, or when the path selected for transmission changes -1014 /// (see [`PathInfo::is_selected`]). -1015 /// -1016 /// The [`PathInfoList`] returned from the watcher contains a [`PathInfo`] for each -1017 /// network path. -1018 /// -1019 /// As long as a [`PathWatcher`] is alive, the list of paths will only grow. If paths -1020 /// are closed, they will be marked as closed (see [`PathInfo::is_closed`]) but will -1021 /// not be removed from the list of paths. This allows to reliably retrieve stats for -1022 /// closed paths. -1023 /// -1024 /// A [`PathWatcher`] does not keep the [`Connection`] itself alive. If all references to -1025 /// a connection are dropped, the [`PathWatcher`] will start to return an error when -1026 /// updating. Its last value may still be used - note however that accessing -1027 /// stats for a path via [`PathInfo::stats`] returns `None` if all references to a -1028 /// [`Connection`] have been dropped. To reliably access path stats when a connection closes, -1029 /// wait for [`Connection::closed`] and then call [`Connection::paths`] and directly -1030 /// iterate over the path stats while the [`Connection`] struct is still in scope. -1031 /// -1032 /// [`PathInfoList`]: crate::endpoint::PathInfoList -1033 /// [`Watcher`]: crate::Watcher -1034 pub fn paths(&self) -> PathWatcher { -1035 self.data.paths.watch() -1036 } -1037 -1038 /// Returns the side of the connection (client or server). -1039 pub fn side(&self) -> Side { -1040 self.inner.side() -1041 } -1042 -1043 /// Returns a connection info struct. -1044 /// -1045 /// A [`ConnectionInfo`] is a weak handle to the connection that does not keep the connection alive, -1046 /// but does allow to access some information about the connection and to wait for the connection to be closed. -1047 pub fn to_info(&self) -> ConnectionInfo { -1048 ConnectionInfo { -1049 data: self.data.clone(), -1050 inner: self.inner.weak_handle(), -1051 side: self.side(), -1052 } -1053 } -1054} -1055 -1056impl Connection<IncomingZeroRtt> { -1057 /// Extracts the ALPN protocol from the peer's handshake data. -1058 pub fn alpn(&self) -> Option<Vec<u8>> { -1059 alpn_from_quinn_conn(&self.inner) -1060 } -1061 -1062 /// Waits until the full handshake occurs and then returns a [`Connection`]. -1063 /// -1064 /// This may fail with [`ConnectingError::ConnectionError`], if there was -1065 /// some general failure with the connection, such as a network timeout since -1066 /// we accepted the connection. -1067 /// -1068 /// This may fail with [`ConnectingError::HandshakeFailure`], if the other side -1069 /// doesn't use the right TLS authentication, which usually every iroh endpoint -1070 /// uses and requires. -1071 /// -1072 /// Thus, those errors should only occur if someone connects to you with a -1073 /// modified iroh endpoint or with a plain QUIC client. -1074 pub async fn handshake_completed(&self) -> Result<Connection, ConnectingError> { -1075 self.data.accepted.clone().await -1076 } -1077 -1078 /// Returns the [`EndpointId`] from the peer's TLS certificate. -1079 /// -1080 /// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is -1081 /// included in the TLS certificate presented during the handshake when connecting. -1082 /// This function allows you to get the [`EndpointId`] of the remote endpoint of this -1083 /// connection. -1084 /// -1085 /// [`PublicKey`]: iroh_base::PublicKey -1086 pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError> { -1087 remote_id_from_quinn_conn(&self.inner) +955 pub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>> { +956 self.inner.congestion_state(path_id) +957 } +958 +959 /// Parameters negotiated during the handshake. +960 /// +961 /// Guaranteed to return `Some` on fully established connections or after +962 /// [`Connecting::handshake_data()`] succeeds. See that method's documentations for +963 /// details on the returned value. +964 /// +965 /// [`Connection::handshake_data()`]: crate::endpoint::Connecting::handshake_data +966 #[inline] +967 pub fn handshake_data(&self) -> Option<Box<dyn Any>> { +968 self.inner.handshake_data() +969 } +970 +971 /// Cryptographic identity of the peer. +972 /// +973 /// The dynamic type returned is determined by the configured [`Session`]. For the +974 /// default `rustls` session, the return value can be [`downcast`] to a +975 /// <code>Vec<[rustls::pki_types::CertificateDer]></code> +976 /// +977 /// [`Session`]: quinn_proto::crypto::Session +978 /// [`downcast`]: Box::downcast +979 #[inline] +980 pub fn peer_identity(&self) -> Option<Box<dyn Any>> { +981 self.inner.peer_identity() +982 } +983 +984 /// A stable identifier for this connection. +985 /// +986 /// Peer addresses and connection IDs can change, but this value will remain fixed for +987 /// the lifetime of the connection. +988 #[inline] +989 pub fn stable_id(&self) -> usize { +990 self.inner.stable_id() +991 } +992 +993 /// Derives keying material from this connection's TLS session secrets. +994 /// +995 /// When both peers call this method with the same `label` and `context` +996 /// arguments and `output` buffers of equal length, they will get the +997 /// same sequence of bytes in `output`. These bytes are cryptographically +998 /// strong and pseudorandom, and are suitable for use as keying material. +999 /// +1000 /// See [RFC5705](https://tools.ietf.org/html/rfc5705) for more information. +1001 #[inline] +1002 pub fn export_keying_material( +1003 &self, +1004 output: &mut [u8], +1005 label: &[u8], +1006 context: &[u8], +1007 ) -> Result<(), ExportKeyingMaterialError> { +1008 self.inner.export_keying_material(output, label, context) +1009 } +1010 +1011 /// Modifies the number of unidirectional streams that may be concurrently opened. +1012 /// +1013 /// No streams may be opened by the peer unless fewer than `count` are already +1014 /// open. Large `count`s increase both minimum and worst-case memory consumption. +1015 #[inline] +1016 pub fn set_max_concurrent_uni_streams(&self, count: VarInt) { +1017 self.inner.set_max_concurrent_uni_streams(count) +1018 } +1019 +1020 /// See [`quinn_proto::TransportConfig::receive_window`]. +1021 #[inline] +1022 pub fn set_receive_window(&self, receive_window: VarInt) { +1023 self.inner.set_receive_window(receive_window) +1024 } +1025 +1026 /// Modifies the number of bidirectional streams that may be concurrently opened. +1027 /// +1028 /// No streams may be opened by the peer unless fewer than `count` are already +1029 /// open. Large `count`s increase both minimum and worst-case memory consumption. +1030 #[inline] +1031 pub fn set_max_concurrent_bi_streams(&self, count: VarInt) { +1032 self.inner.set_max_concurrent_bi_streams(count) +1033 } +1034} +1035 +1036impl Connection<HandshakeCompleted> { +1037 /// Extracts the ALPN protocol from the peer's handshake data. +1038 pub fn alpn(&self) -> &[u8] { +1039 &self.data.info.alpn +1040 } +1041 +1042 /// Returns the [`EndpointId`] from the peer's TLS certificate. +1043 /// +1044 /// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is +1045 /// included in the TLS certificate presented during the handshake when connecting. +1046 /// This function allows you to get the [`EndpointId`] of the remote endpoint of this +1047 /// connection. +1048 /// +1049 /// [`PublicKey`]: iroh_base::PublicKey +1050 pub fn remote_id(&self) -> EndpointId { +1051 self.data.info.endpoint_id +1052 } +1053 +1054 /// Returns a [`Watcher`] for the network paths of this connection. +1055 /// +1056 /// A connection can have several network paths to the remote endpoint, commonly there +1057 /// will be a path via the relay server and a holepunched path. +1058 /// +1059 /// Returns a [`PathWatcher`], which implements the [`Watcher`] trait. The watcher is updated +1060 /// whenever a path is opened or closed, or when the path selected for transmission changes +1061 /// (see [`PathInfo::is_selected`]). +1062 /// +1063 /// The [`PathInfoList`] returned from the watcher contains a [`PathInfo`] for each +1064 /// network path. +1065 /// +1066 /// As long as a [`PathWatcher`] is alive, the list of paths will only grow. If paths +1067 /// are closed, they will be marked as closed (see [`PathInfo::is_closed`]) but will +1068 /// not be removed from the list of paths. This allows to reliably retrieve stats for +1069 /// closed paths. +1070 /// +1071 /// A [`PathWatcher`] does not keep the [`Connection`] itself alive. If all references to +1072 /// a connection are dropped, the [`PathWatcher`] will start to return an error when +1073 /// updating. Its last value may still be used - note however that accessing +1074 /// stats for a path via [`PathInfo::stats`] returns `None` if all references to a +1075 /// [`Connection`] have been dropped. To reliably access path stats when a connection closes, +1076 /// wait for [`Connection::closed`] and then call [`Connection::paths`] and directly +1077 /// iterate over the path stats while the [`Connection`] struct is still in scope. +1078 /// +1079 /// [`PathInfoList`]: crate::endpoint::PathInfoList +1080 /// [`Watcher`]: crate::Watcher +1081 pub fn paths(&self) -> PathWatcher { +1082 self.data.paths.watch() +1083 } +1084 +1085 /// Returns the side of the connection (client or server). +1086 pub fn side(&self) -> Side { +1087 self.inner.side() 1088 } -1089} -1090 -1091impl Connection<OutgoingZeroRtt> { -1092 /// Extracts the ALPN protocol from the peer's handshake data. -1093 pub fn alpn(&self) -> Option<Vec<u8>> { -1094 alpn_from_quinn_conn(&self.inner) -1095 } -1096 -1097 /// Waits until the full handshake occurs and returns a [`ZeroRttStatus`]. -1098 /// -1099 /// If `ZeroRttStatus::Accepted` is returned, than any streams created before -1100 /// the handshake has completed can still be used. -1101 /// -1102 /// If `ZeroRttStatus::Rejected` is returned, than any streams created before -1103 /// the handshake will error and any data sent should be re-sent on a -1104 /// new stream. -1105 /// -1106 /// This may fail with [`ConnectingError::ConnectionError`], if there was -1107 /// some general failure with the connection, such as a network timeout since -1108 /// we initiated the connection. -1109 /// -1110 /// This may fail with [`ConnectingError::HandshakeFailure`], if the other side -1111 /// doesn't use the right TLS authentication, which usually every iroh endpoint -1112 /// uses and requires. -1113 /// -1114 /// Thus, those errors should only occur if someone connects to you with a -1115 /// modified iroh endpoint or with a plain QUIC client. -1116 pub async fn handshake_completed(&self) -> Result<ZeroRttStatus, ConnectingError> { -1117 self.data.accepted.clone().await -1118 } -1119 -1120 /// Returns the [`EndpointId`] from the peer's TLS certificate. -1121 /// -1122 /// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is -1123 /// included in the TLS certificate presented during the handshake when connecting. -1124 /// This function allows you to get the [`EndpointId`] of the remote endpoint of this -1125 /// connection. +1089 +1090 /// Returns a connection info struct. +1091 /// +1092 /// A [`ConnectionInfo`] is a weak handle to the connection that does not keep the connection alive, +1093 /// but does allow to access some information about the connection and to wait for the connection to be closed. +1094 pub fn to_info(&self) -> ConnectionInfo { +1095 ConnectionInfo { +1096 data: self.data.clone(), +1097 inner: self.inner.weak_handle(), +1098 side: self.side(), +1099 } +1100 } +1101} +1102 +1103impl Connection<IncomingZeroRtt> { +1104 /// Extracts the ALPN protocol from the peer's handshake data. +1105 pub fn alpn(&self) -> Option<Vec<u8>> { +1106 alpn_from_quinn_conn(&self.inner) +1107 } +1108 +1109 /// Waits until the full handshake occurs and then returns a [`Connection`]. +1110 /// +1111 /// This may fail with [`ConnectingError::ConnectionError`], if there was +1112 /// some general failure with the connection, such as a network timeout since +1113 /// we accepted the connection. +1114 /// +1115 /// This may fail with [`ConnectingError::HandshakeFailure`], if the other side +1116 /// doesn't use the right TLS authentication, which usually every iroh endpoint +1117 /// uses and requires. +1118 /// +1119 /// Thus, those errors should only occur if someone connects to you with a +1120 /// modified iroh endpoint or with a plain QUIC client. +1121 pub async fn handshake_completed(&self) -> Result<Connection, ConnectingError> { +1122 self.data.accepted.clone().await +1123 } +1124 +1125 /// Returns the [`EndpointId`] from the peer's TLS certificate. 1126 /// -1127 /// [`PublicKey`]: iroh_base::PublicKey -1128 pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError> { -1129 remote_id_from_quinn_conn(&self.inner) -1130 } -1131} -1132 -1133/// Information about a connection. -1134/// -1135/// A [`ConnectionInfo`] is a weak handle to a connection that exposes some information about the connection, -1136/// but does not keep the connection alive. -1137#[derive(Debug, Clone)] -1138pub struct ConnectionInfo { -1139 side: Side, -1140 data: HandshakeCompletedData, -1141 inner: WeakConnectionHandle, -1142} +1127 /// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is +1128 /// included in the TLS certificate presented during the handshake when connecting. +1129 /// This function allows you to get the [`EndpointId`] of the remote endpoint of this +1130 /// connection. +1131 /// +1132 /// [`PublicKey`]: iroh_base::PublicKey +1133 pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError> { +1134 remote_id_from_quinn_conn(&self.inner) +1135 } +1136} +1137 +1138impl Connection<OutgoingZeroRtt> { +1139 /// Extracts the ALPN protocol from the peer's handshake data. +1140 pub fn alpn(&self) -> Option<Vec<u8>> { +1141 alpn_from_quinn_conn(&self.inner) +1142 } 1143 -1144#[allow(missing_docs)] -1145impl ConnectionInfo { -1146 pub fn alpn(&self) -> &[u8] { -1147 &self.data.info.alpn -1148 } -1149 -1150 pub fn remote_id(&self) -> EndpointId { -1151 self.data.info.endpoint_id -1152 } -1153 -1154 pub fn is_alive(&self) -> bool { -1155 self.inner.upgrade().is_some() -1156 } -1157 -1158 /// Returns a watcher for the network paths of this connection. -1159 /// -1160 /// See [`Connection::paths`] for details. -1161 pub fn paths(&self) -> PathWatcher { -1162 self.data.paths.watch() -1163 } -1164 -1165 /// Returns connection statistics. -1166 /// -1167 /// Returns `None` if the connection has been dropped. -1168 pub fn stats(&self) -> Option<ConnectionStats> { -1169 self.inner.upgrade().map(|conn| conn.stats()) -1170 } -1171 -1172 /// Returns the side of the connection (client or server). -1173 pub fn side(&self) -> Side { -1174 self.side -1175 } -1176 -1177 /// Waits for the connection to be closed, and returns the close reason and final connection stats. -1178 /// -1179 /// Returns `None` if the connection has been dropped already before this call. -1180 pub async fn closed(&self) -> Option<(ConnectionError, ConnectionStats)> { -1181 let fut = self.inner.upgrade()?.on_closed(); -1182 Some(fut.await) -1183 } -1184 -1185 /// Returns the currently selected path. -1186 pub fn selected_path(&self) -> Option<PathInfo> { -1187 self.paths().into_iter().find(|path| path.is_selected()) -1188 } +1144 /// Waits until the full handshake occurs and returns a [`ZeroRttStatus`]. +1145 /// +1146 /// If `ZeroRttStatus::Accepted` is returned, than any streams created before +1147 /// the handshake has completed can still be used. +1148 /// +1149 /// If `ZeroRttStatus::Rejected` is returned, than any streams created before +1150 /// the handshake will error and any data sent should be re-sent on a +1151 /// new stream. +1152 /// +1153 /// This may fail with [`ConnectingError::ConnectionError`], if there was +1154 /// some general failure with the connection, such as a network timeout since +1155 /// we initiated the connection. +1156 /// +1157 /// This may fail with [`ConnectingError::HandshakeFailure`], if the other side +1158 /// doesn't use the right TLS authentication, which usually every iroh endpoint +1159 /// uses and requires. +1160 /// +1161 /// Thus, those errors should only occur if someone connects to you with a +1162 /// modified iroh endpoint or with a plain QUIC client. +1163 pub async fn handshake_completed(&self) -> Result<ZeroRttStatus, ConnectingError> { +1164 self.data.accepted.clone().await +1165 } +1166 +1167 /// Returns the [`EndpointId`] from the peer's TLS certificate. +1168 /// +1169 /// The [`PublicKey`] of an endpoint is also known as an [`EndpointId`]. This [`PublicKey`] is +1170 /// included in the TLS certificate presented during the handshake when connecting. +1171 /// This function allows you to get the [`EndpointId`] of the remote endpoint of this +1172 /// connection. +1173 /// +1174 /// [`PublicKey`]: iroh_base::PublicKey +1175 pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError> { +1176 remote_id_from_quinn_conn(&self.inner) +1177 } +1178} +1179 +1180/// Information about a connection. +1181/// +1182/// A [`ConnectionInfo`] is a weak handle to a connection that exposes some information about the connection, +1183/// but does not keep the connection alive. +1184#[derive(Debug, Clone)] +1185pub struct ConnectionInfo { +1186 side: Side, +1187 data: HandshakeCompletedData, +1188 inner: WeakConnectionHandle, 1189} 1190 -1191#[cfg(test)] -1192mod tests { -1193 use std::time::Duration; -1194 -1195 use iroh_base::{EndpointAddr, SecretKey}; -1196 use n0_error::{Result, StackResultExt, StdResultExt}; -1197 use n0_future::StreamExt; -1198 use n0_tracing_test::traced_test; -1199 use n0_watcher::Watcher; -1200 use rand::SeedableRng; -1201 use tracing::{Instrument, error_span, info, info_span, trace_span}; -1202 -1203 use super::Endpoint; -1204 use crate::{ -1205 RelayMode, -1206 endpoint::{ConnectOptions, Incoming, PathInfo, PathInfoList, ZeroRttStatus}, -1207 test_utils::run_relay_server, -1208 }; -1209 -1210 const TEST_ALPN: &[u8] = b"n0/iroh/test"; +1191#[allow(missing_docs)] +1192impl ConnectionInfo { +1193 pub fn alpn(&self) -> &[u8] { +1194 &self.data.info.alpn +1195 } +1196 +1197 pub fn remote_id(&self) -> EndpointId { +1198 self.data.info.endpoint_id +1199 } +1200 +1201 pub fn is_alive(&self) -> bool { +1202 self.inner.upgrade().is_some() +1203 } +1204 +1205 /// Returns a watcher for the network paths of this connection. +1206 /// +1207 /// See [`Connection::paths`] for details. +1208 pub fn paths(&self) -> PathWatcher { +1209 self.data.paths.watch() +1210 } 1211 -1212 async fn spawn_0rtt_server(secret_key: SecretKey, log_span: tracing::Span) -> Result<Endpoint> { -1213 let server = Endpoint::empty_builder(RelayMode::Disabled) -1214 .secret_key(secret_key) -1215 .alpns(vec![TEST_ALPN.to_vec()]) -1216 .bind() -1217 .instrument(log_span.clone()) -1218 .await?; -1219 -1220 async fn handle_incoming(incoming: Incoming) -> Result { -1221 let accepting = incoming -1222 .accept() -1223 .std_context("Failed to accept incoming connection")?; -1224 -1225 // accept a possible 0-RTT connection -1226 let zrtt_conn = accepting.into_0rtt(); -1227 -1228 let (mut send, mut recv) = zrtt_conn -1229 .accept_bi() -1230 .await -1231 .std_context("failed to accept bi stream")?; -1232 -1233 let data = recv -1234 .read_to_end(10_000_000) -1235 .await -1236 .std_context("Failed to read data")?; +1212 /// Returns connection statistics. +1213 /// +1214 /// Returns `None` if the connection has been dropped. +1215 pub fn stats(&self) -> Option<ConnectionStats> { +1216 self.inner.upgrade().map(|conn| conn.stats()) +1217 } +1218 +1219 /// Returns the side of the connection (client or server). +1220 pub fn side(&self) -> Side { +1221 self.side +1222 } +1223 +1224 /// Waits for the connection to be closed, and returns the close reason and final connection stats. +1225 /// +1226 /// Returns `None` if the connection has been dropped already before this call. +1227 pub async fn closed(&self) -> Option<(ConnectionError, ConnectionStats)> { +1228 let fut = self.inner.upgrade()?.on_closed(); +1229 Some(fut.await) +1230 } +1231 +1232 /// Returns the currently selected path. +1233 pub fn selected_path(&self) -> Option<PathInfo> { +1234 self.paths().into_iter().find(|path| path.is_selected()) +1235 } +1236} 1237 -1238 send.write_all(&data) -1239 .await -1240 .std_context("Failed to write data")?; -1241 send.finish().std_context("Failed to finish send")?; -1242 -1243 // Stay alive until the other side closes the connection. -1244 zrtt_conn.closed().await; -1245 Ok(()) -1246 } -1247 -1248 // Gets aborted via the endpoint closing causing an `Err` -1249 // a simple echo server -1250 tokio::spawn({ -1251 let server = server.clone(); -1252 async move { -1253 tracing::trace!("Server accept loop started"); -1254 while let Some(incoming) = server.accept().await { -1255 tracing::trace!("Server received incoming connection"); -1256 // Handle connection errors gracefully instead of exiting the task -1257 if let Err(e) = handle_incoming(incoming).await { -1258 tracing::warn!("Failure while handling connection: {e:#}"); -1259 } -1260 tracing::trace!("Connection closed, ready for next"); -1261 } -1262 tracing::trace!("Server accept loop exiting"); -1263 n0_error::Ok(()) -1264 } -1265 .instrument(log_span) -1266 }); +1238#[cfg(test)] +1239mod tests { +1240 use std::time::Duration; +1241 +1242 use iroh_base::{EndpointAddr, SecretKey}; +1243 use iroh_relay::tls::CaRootsConfig; +1244 use n0_error::{Result, StackResultExt, StdResultExt}; +1245 use n0_future::StreamExt; +1246 use n0_tracing_test::traced_test; +1247 use n0_watcher::Watcher; +1248 use rand::SeedableRng; +1249 use tracing::{Instrument, error_span, info, info_span, trace_span}; +1250 +1251 use super::Endpoint; +1252 use crate::{ +1253 RelayMode, +1254 endpoint::{ConnectOptions, Incoming, PathInfo, PathInfoList, ZeroRttStatus}, +1255 test_utils::run_relay_server, +1256 }; +1257 +1258 const TEST_ALPN: &[u8] = b"n0/iroh/test"; +1259 +1260 async fn spawn_0rtt_server(secret_key: SecretKey, log_span: tracing::Span) -> Result<Endpoint> { +1261 let server = Endpoint::empty_builder(RelayMode::Disabled) +1262 .secret_key(secret_key) +1263 .alpns(vec![TEST_ALPN.to_vec()]) +1264 .bind() +1265 .instrument(log_span.clone()) +1266 .await?; 1267 -1268 Ok(server) -1269 } -1270 -1271 async fn connect_client_0rtt_expect_err( -1272 client: &Endpoint, -1273 server_addr: EndpointAddr, -1274 ) -> Result { -1275 let conn = client -1276 .connect_with_opts(server_addr, TEST_ALPN, ConnectOptions::new()) -1277 .await? -1278 .into_0rtt() -1279 .expect_err("expected 0-RTT to fail") -1280 .await?; -1281 -1282 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; -1283 send.write_all(b"hello").await.anyerr()?; -1284 send.finish().anyerr()?; -1285 let received = recv.read_to_end(1_000).await.anyerr()?; -1286 assert_eq!(&received, b"hello"); -1287 conn.close(0u32.into(), b"thx"); -1288 Ok(()) -1289 } +1268 async fn handle_incoming(incoming: Incoming) -> Result { +1269 let accepting = incoming +1270 .accept() +1271 .std_context("Failed to accept incoming connection")?; +1272 +1273 // accept a possible 0-RTT connection +1274 let zrtt_conn = accepting.into_0rtt(); +1275 +1276 let (mut send, mut recv) = zrtt_conn +1277 .accept_bi() +1278 .await +1279 .std_context("failed to accept bi stream")?; +1280 +1281 let data = recv +1282 .read_to_end(10_000_000) +1283 .await +1284 .std_context("Failed to read data")?; +1285 +1286 send.write_all(&data) +1287 .await +1288 .std_context("Failed to write data")?; +1289 send.finish().std_context("Failed to finish send")?; 1290 -1291 async fn connect_client_0rtt_expect_ok( -1292 client: &Endpoint, -1293 server_addr: EndpointAddr, -1294 expect_server_accepts: bool, -1295 ) -> Result { -1296 tracing::trace!(?server_addr, "Client connecting with 0-RTT"); -1297 let zrtt_conn = client -1298 .connect_with_opts(server_addr, TEST_ALPN, ConnectOptions::new()) -1299 .await -1300 .context("connect")? -1301 .into_0rtt() -1302 .ok() -1303 .context("into_0rtt")?; -1304 -1305 tracing::trace!("Client established 0-RTT connection"); -1306 // This is how we send data in 0-RTT: -1307 let (mut send, mut recv) = zrtt_conn.open_bi().await.anyerr()?; -1308 send.write_all(b"hello").await.anyerr()?; -1309 send.finish().anyerr()?; -1310 tracing::trace!("Client sent 0-RTT data, waiting for server response"); -1311 // When this resolves, we've gotten a response from the server about whether the 0-RTT data above was accepted: -1312 let zrtt_res = zrtt_conn.handshake_completed().await; -1313 tracing::trace!(?zrtt_res, "Server responded to 0-RTT"); -1314 let zrtt_res = zrtt_res.context("handshake completed")?; -1315 let conn = match zrtt_res { -1316 ZeroRttStatus::Accepted(conn) => { -1317 assert!(expect_server_accepts); -1318 conn -1319 } -1320 ZeroRttStatus::Rejected(conn) => { -1321 assert!(!expect_server_accepts); -1322 // in this case we need to re-send data by re-creating the stream. -1323 let (mut send, r) = conn.open_bi().await.anyerr()?; -1324 send.write_all(b"hello").await.anyerr()?; -1325 send.finish().anyerr()?; -1326 recv = r; -1327 conn -1328 } -1329 }; -1330 let received = recv.read_to_end(1_000).await.anyerr()?; -1331 assert_eq!(&received, b"hello"); -1332 conn.close(0u32.into(), b"thx"); -1333 Ok(()) -1334 } -1335 -1336 #[tokio::test] -1337 #[traced_test] -1338 async fn test_0rtt() -> Result { -1339 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); -1340 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; -1341 let server = spawn_0rtt_server(SecretKey::generate(&mut rng), info_span!("server")).await?; -1342 -1343 connect_client_0rtt_expect_err(&client, server.addr()).await?; -1344 // The second 0rtt attempt should work -1345 connect_client_0rtt_expect_ok(&client, server.addr(), true).await?; -1346 -1347 client.close().await; -1348 server.close().await; -1349 -1350 Ok(()) -1351 } +1291 // Stay alive until the other side closes the connection. +1292 zrtt_conn.closed().await; +1293 Ok(()) +1294 } +1295 +1296 // Gets aborted via the endpoint closing causing an `Err` +1297 // a simple echo server +1298 tokio::spawn({ +1299 let server = server.clone(); +1300 async move { +1301 tracing::trace!("Server accept loop started"); +1302 while let Some(incoming) = server.accept().await { +1303 tracing::trace!("Server received incoming connection"); +1304 // Handle connection errors gracefully instead of exiting the task +1305 if let Err(e) = handle_incoming(incoming).await { +1306 tracing::warn!("Failure while handling connection: {e:#}"); +1307 } +1308 tracing::trace!("Connection closed, ready for next"); +1309 } +1310 tracing::trace!("Server accept loop exiting"); +1311 n0_error::Ok(()) +1312 } +1313 .instrument(log_span) +1314 }); +1315 +1316 Ok(server) +1317 } +1318 +1319 async fn connect_client_0rtt_expect_err( +1320 client: &Endpoint, +1321 server_addr: EndpointAddr, +1322 ) -> Result { +1323 let conn = client +1324 .connect_with_opts(server_addr, TEST_ALPN, ConnectOptions::new()) +1325 .await? +1326 .into_0rtt() +1327 .expect_err("expected 0-RTT to fail") +1328 .await?; +1329 +1330 let (mut send, mut recv) = conn.open_bi().await.anyerr()?; +1331 send.write_all(b"hello").await.anyerr()?; +1332 send.finish().anyerr()?; +1333 let received = recv.read_to_end(1_000).await.anyerr()?; +1334 assert_eq!(&received, b"hello"); +1335 conn.close(0u32.into(), b"thx"); +1336 Ok(()) +1337 } +1338 +1339 async fn connect_client_0rtt_expect_ok( +1340 client: &Endpoint, +1341 server_addr: EndpointAddr, +1342 expect_server_accepts: bool, +1343 ) -> Result { +1344 tracing::trace!(?server_addr, "Client connecting with 0-RTT"); +1345 let zrtt_conn = client +1346 .connect_with_opts(server_addr, TEST_ALPN, ConnectOptions::new()) +1347 .await +1348 .context("connect")? +1349 .into_0rtt() +1350 .ok() +1351 .context("into_0rtt")?; 1352 -1353 // We have this test, as this would've failed at some point. -1354 // This effectively tests that we correctly categorize the TLS session tickets we -1355 // receive into the respective "bucket" for the recipient. -1356 #[tokio::test] -1357 #[traced_test] -1358 async fn test_0rtt_non_consecutive() -> Result { -1359 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); -1360 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; -1361 let server = spawn_0rtt_server(SecretKey::generate(&mut rng), info_span!("server")).await?; -1362 -1363 connect_client_0rtt_expect_err(&client, server.addr()).await?; -1364 -1365 // connecting with another endpoint should not interfere with our -1366 // TLS session ticket cache for the first endpoint: -1367 let another = -1368 spawn_0rtt_server(SecretKey::generate(&mut rng), info_span!("another")).await?; -1369 connect_client_0rtt_expect_err(&client, another.addr()).await?; -1370 another.close().await; -1371 -1372 connect_client_0rtt_expect_ok(&client, server.addr(), true).await?; -1373 -1374 client.close().await; -1375 server.close().await; -1376 -1377 Ok(()) -1378 } -1379 -1380 // Test whether 0-RTT is possible after a restart: -1381 #[tokio::test] -1382 #[traced_test] -1383 async fn test_0rtt_after_server_restart() -> Result { -1384 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); -1385 let client = Endpoint::empty_builder(RelayMode::Disabled) -1386 .bind() -1387 .instrument(info_span!("client")) -1388 .await?; -1389 let server_key = SecretKey::generate(&mut rng); -1390 let server = spawn_0rtt_server(server_key.clone(), info_span!("server-initial")).await?; -1391 -1392 connect_client_0rtt_expect_err(&client, server.addr()) -1393 .instrument(trace_span!("connect1")) -1394 .await -1395 .context("client connect 1")?; -1396 connect_client_0rtt_expect_ok(&client, server.addr(), true) -1397 .instrument(trace_span!("connect2")) -1398 .await -1399 .context("client connect 2")?; +1353 tracing::trace!("Client established 0-RTT connection"); +1354 // This is how we send data in 0-RTT: +1355 let (mut send, mut recv) = zrtt_conn.open_bi().await.anyerr()?; +1356 send.write_all(b"hello").await.anyerr()?; +1357 send.finish().anyerr()?; +1358 tracing::trace!("Client sent 0-RTT data, waiting for server response"); +1359 // When this resolves, we've gotten a response from the server about whether the 0-RTT data above was accepted: +1360 let zrtt_res = zrtt_conn.handshake_completed().await; +1361 tracing::trace!(?zrtt_res, "Server responded to 0-RTT"); +1362 let zrtt_res = zrtt_res.context("handshake completed")?; +1363 let conn = match zrtt_res { +1364 ZeroRttStatus::Accepted(conn) => { +1365 assert!(expect_server_accepts); +1366 conn +1367 } +1368 ZeroRttStatus::Rejected(conn) => { +1369 assert!(!expect_server_accepts); +1370 // in this case we need to re-send data by re-creating the stream. +1371 let (mut send, r) = conn.open_bi().await.anyerr()?; +1372 send.write_all(b"hello").await.anyerr()?; +1373 send.finish().anyerr()?; +1374 recv = r; +1375 conn +1376 } +1377 }; +1378 let received = recv.read_to_end(1_000).await.anyerr()?; +1379 assert_eq!(&received, b"hello"); +1380 conn.close(0u32.into(), b"thx"); +1381 Ok(()) +1382 } +1383 +1384 #[tokio::test] +1385 #[traced_test] +1386 async fn test_0rtt() -> Result { +1387 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); +1388 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; +1389 let server = spawn_0rtt_server(SecretKey::generate(&mut rng), info_span!("server")).await?; +1390 +1391 connect_client_0rtt_expect_err(&client, server.addr()).await?; +1392 // The second 0rtt attempt should work +1393 connect_client_0rtt_expect_ok(&client, server.addr(), true).await?; +1394 +1395 client.close().await; +1396 server.close().await; +1397 +1398 Ok(()) +1399 } 1400 -1401 // adds time to the test, but we need to ensure the server is fully closed before spawning the next one. -1402 server.close().await; -1403 -1404 let server = spawn_0rtt_server(server_key, info_span!("server-restart")).await?; -1405 -1406 // we expect the client to *believe* it can 0-RTT connect to the server (hence expect_ok), -1407 // but the server will reject the early data because it discarded necessary state -1408 // to decrypt it when restarting. -1409 connect_client_0rtt_expect_ok(&client, server.addr(), false) -1410 .instrument(trace_span!("connect3")) -1411 .await -1412 .context("client connect 3")?; -1413 -1414 tokio::join!(client.close(), server.close()); -1415 Ok(()) -1416 } -1417 -1418 #[tokio::test] -1419 #[traced_test] -1420 async fn test_paths_watcher() -> Result { -1421 const ALPN: &[u8] = b"test"; -1422 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -1423 let (relay_map, _relay_map, _guard) = run_relay_server().await?; -1424 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -1425 .secret_key(SecretKey::generate(&mut rng)) -1426 .insecure_skip_relay_cert_verify(true) -1427 .alpns(vec![ALPN.to_vec()]) -1428 .bind() -1429 .await?; -1430 -1431 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) -1432 .secret_key(SecretKey::generate(&mut rng)) -1433 .insecure_skip_relay_cert_verify(true) +1401 // We have this test, as this would've failed at some point. +1402 // This effectively tests that we correctly categorize the TLS session tickets we +1403 // receive into the respective "bucket" for the recipient. +1404 #[tokio::test] +1405 #[traced_test] +1406 async fn test_0rtt_non_consecutive() -> Result { +1407 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); +1408 let client = Endpoint::empty_builder(RelayMode::Disabled).bind().await?; +1409 let server = spawn_0rtt_server(SecretKey::generate(&mut rng), info_span!("server")).await?; +1410 +1411 connect_client_0rtt_expect_err(&client, server.addr()).await?; +1412 +1413 // connecting with another endpoint should not interfere with our +1414 // TLS session ticket cache for the first endpoint: +1415 let another = +1416 spawn_0rtt_server(SecretKey::generate(&mut rng), info_span!("another")).await?; +1417 connect_client_0rtt_expect_err(&client, another.addr()).await?; +1418 another.close().await; +1419 +1420 connect_client_0rtt_expect_ok(&client, server.addr(), true).await?; +1421 +1422 client.close().await; +1423 server.close().await; +1424 +1425 Ok(()) +1426 } +1427 +1428 // Test whether 0-RTT is possible after a restart: +1429 #[tokio::test] +1430 #[traced_test] +1431 async fn test_0rtt_after_server_restart() -> Result { +1432 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42); +1433 let client = Endpoint::empty_builder(RelayMode::Disabled) 1434 .bind() -1435 .await?; -1436 -1437 server.online().await; -1438 let server_addr = server.addr(); -1439 info!("server addr: {server_addr:?}"); -1440 -1441 let (conn_client, conn_server) = tokio::join!( -1442 async { client.connect(server_addr, ALPN).await.unwrap() }, -1443 async { server.accept().await.unwrap().await.unwrap() } -1444 ); -1445 info!("connected"); -1446 let mut paths_client = conn_client.paths().stream(); -1447 let mut paths_server = conn_server.paths().stream(); +1435 .instrument(info_span!("client")) +1436 .await?; +1437 let server_key = SecretKey::generate(&mut rng); +1438 let server = spawn_0rtt_server(server_key.clone(), info_span!("server-initial")).await?; +1439 +1440 connect_client_0rtt_expect_err(&client, server.addr()) +1441 .instrument(trace_span!("connect1")) +1442 .await +1443 .context("client connect 1")?; +1444 connect_client_0rtt_expect_ok(&client, server.addr(), true) +1445 .instrument(trace_span!("connect2")) +1446 .await +1447 .context("client connect 2")?; 1448 -1449 /// Advances the path stream until at least one IP and one relay paths are available. -1450 /// -1451 /// Panics if the path stream finishes before that happens. -1452 async fn wait_for_paths( -1453 stream: &mut n0_watcher::Stream<impl n0_watcher::Watcher<Value = PathInfoList> + Unpin>, -1454 ) { -1455 loop { -1456 let paths = stream.next().await.expect("paths stream ended"); -1457 info!(?paths, "paths"); -1458 if paths.len() >= 2 -1459 && paths.iter().any(PathInfo::is_relay) -1460 && paths.iter().any(PathInfo::is_ip) -1461 { -1462 info!("break"); -1463 return; -1464 } -1465 } -1466 } -1467 -1468 // Verify that both connections are notified of path changes and get an IP and a relay path. -1469 tokio::join!( -1470 async { -1471 tokio::time::timeout(Duration::from_secs(1), wait_for_paths(&mut paths_server)) -1472 .instrument(error_span!("paths-server")) -1473 .await -1474 .unwrap() -1475 }, -1476 async { -1477 tokio::time::timeout(Duration::from_secs(1), wait_for_paths(&mut paths_client)) -1478 .instrument(error_span!("paths-client")) -1479 .await -1480 .unwrap() -1481 } -1482 ); -1483 -1484 tokio::time::pause(); -1485 -1486 // Close the client connection. -1487 info!("close client conn"); -1488 conn_client.close(0u32.into(), b""); -1489 -1490 // Verify that the path watch streams close shortly after the connection is closed -1491 tokio::time::timeout(Duration::from_nanos(1), async { -1492 while paths_client.next().await.is_some() {} -1493 }) -1494 .await -1495 .expect("client paths watcher did not close within 1s of connection close"); -1496 tokio::time::timeout(Duration::from_nanos(1), async { -1497 while paths_client.next().await.is_some() {} -1498 }) -1499 .await -1500 .expect("server paths watcher did not close within 1s of connection close"); -1501 -1502 server.close().await; -1503 client.close().await; -1504 -1505 Ok(()) -1506 } -1507} \ No newline at end of file +1449 // adds time to the test, but we need to ensure the server is fully closed before spawning the next one. +1450 server.close().await; +1451 +1452 let server = spawn_0rtt_server(server_key, info_span!("server-restart")).await?; +1453 +1454 // we expect the client to *believe* it can 0-RTT connect to the server (hence expect_ok), +1455 // but the server will reject the early data because it discarded necessary state +1456 // to decrypt it when restarting. +1457 connect_client_0rtt_expect_ok(&client, server.addr(), false) +1458 .instrument(trace_span!("connect3")) +1459 .await +1460 .context("client connect 3")?; +1461 +1462 tokio::join!(client.close(), server.close()); +1463 Ok(()) +1464 } +1465 +1466 #[tokio::test] +1467 #[traced_test] +1468 async fn test_paths_watcher() -> Result { +1469 const ALPN: &[u8] = b"test"; +1470 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1471 let (relay_map, _relay_map, _guard) = run_relay_server().await?; +1472 let server = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1473 .secret_key(SecretKey::generate(&mut rng)) +1474 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1475 .alpns(vec![ALPN.to_vec()]) +1476 .bind() +1477 .await?; +1478 +1479 let client = Endpoint::empty_builder(RelayMode::Custom(relay_map.clone())) +1480 .secret_key(SecretKey::generate(&mut rng)) +1481 .ca_roots_config(CaRootsConfig::insecure_skip_verify()) +1482 .bind() +1483 .await?; +1484 +1485 server.online().await; +1486 let server_addr = server.addr(); +1487 info!("server addr: {server_addr:?}"); +1488 +1489 let (conn_client, conn_server) = tokio::join!( +1490 async { client.connect(server_addr, ALPN).await.unwrap() }, +1491 async { server.accept().await.unwrap().await.unwrap() } +1492 ); +1493 info!("connected"); +1494 let mut paths_client = conn_client.paths().stream(); +1495 let mut paths_server = conn_server.paths().stream(); +1496 +1497 /// Advances the path stream until at least one IP and one relay paths are available. +1498 /// +1499 /// Panics if the path stream finishes before that happens. +1500 async fn wait_for_paths( +1501 stream: &mut n0_watcher::Stream<impl n0_watcher::Watcher<Value = PathInfoList> + Unpin>, +1502 ) { +1503 loop { +1504 let paths = stream.next().await.expect("paths stream ended"); +1505 info!(?paths, "paths"); +1506 if paths.len() >= 2 +1507 && paths.iter().any(PathInfo::is_relay) +1508 && paths.iter().any(PathInfo::is_ip) +1509 { +1510 info!("break"); +1511 return; +1512 } +1513 } +1514 } +1515 +1516 // Verify that both connections are notified of path changes and get an IP and a relay path. +1517 tokio::join!( +1518 async { +1519 tokio::time::timeout(Duration::from_secs(1), wait_for_paths(&mut paths_server)) +1520 .instrument(error_span!("paths-server")) +1521 .await +1522 .unwrap() +1523 }, +1524 async { +1525 tokio::time::timeout(Duration::from_secs(1), wait_for_paths(&mut paths_client)) +1526 .instrument(error_span!("paths-client")) +1527 .await +1528 .unwrap() +1529 } +1530 ); +1531 +1532 tokio::time::pause(); +1533 +1534 // Close the client connection. +1535 info!("close client conn"); +1536 conn_client.close(0u32.into(), b""); +1537 +1538 // Verify that the path watch streams close shortly after the connection is closed +1539 tokio::time::timeout(Duration::from_nanos(1), async { +1540 while paths_client.next().await.is_some() {} +1541 }) +1542 .await +1543 .expect("client paths watcher did not close within 1s of connection close"); +1544 tokio::time::timeout(Duration::from_nanos(1), async { +1545 while paths_client.next().await.is_some() {} +1546 }) +1547 .await +1548 .expect("server paths watcher did not close within 1s of connection close"); +1549 +1550 server.close().await; +1551 client.close().await; +1552 +1553 Ok(()) +1554 } +1555} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/endpoint/presets.rs.html b/pr/3958/docs/src/iroh/endpoint/presets.rs.html index 565eee6224..9ae87016b8 100644 --- a/pr/3958/docs/src/iroh/endpoint/presets.rs.html +++ b/pr/3958/docs/src/iroh/endpoint/presets.rs.html @@ -1,4 +1,4 @@ -presets.rs - source

    iroh/endpoint/
    presets.rs

    1//! Presets allow configuring an endpoint quickly with a chosen set of defaults.
    +presets.rs - source

    iroh/endpoint/
    presets.rs

    1//! Presets allow configuring an endpoint quickly with a chosen set of defaults.
     2//!
     3//! # Example
     4//!
    @@ -16,56 +16,117 @@
     16//! ```
     17
     18use crate::{
    -19    address_lookup::PkarrPublisher,
    -20    endpoint::{Builder, default_relay_mode},
    -21};
    -22
    -23/// Defines a preset
    -24pub trait Preset {
    -25    /// Applies the configuration to the passed in [`Builder`].
    -26    fn apply(self, builder: Builder) -> Builder;
    -27}
    -28
    -29/// Configures the endpoint to use the n0 defaults
    -30///
    -31/// Currently this consists of
    -32/// - the DNS Address Lookup service.
    -33/// - the default relay servers provided by Number 0.
    -34///
    -35/// The default address lookup service publishes to and resolves from the
    -36/// n0.computer dns server `iroh.link`.
    -37///
    -38/// This is equivalent to adding both a [`crate::address_lookup::PkarrPublisher`]
    -39/// and a [`crate::address_lookup::DnsAddressLookup`], both configured to use the
    -40/// n0.computer dns server.
    -41///
    -42/// This will by default use [`N0_DNS_PKARR_RELAY_PROD`].
    -43/// When in tests, or when the `test-utils` feature is enabled, this will use the
    -44/// [`N0_DNS_PKARR_RELAY_STAGING`].
    -45///
    -46/// [`N0_DNS_PKARR_RELAY_PROD`]: crate::address_lookup::N0_DNS_PKARR_RELAY_PROD
    -47/// [`N0_DNS_PKARR_RELAY_STAGING`]: crate::address_lookup::N0_DNS_PKARR_RELAY_STAGING
    -48#[derive(Debug, Copy, Clone, Default)]
    -49pub struct N0;
    -50
    -51impl Preset for N0 {
    -52    fn apply(self, mut builder: Builder) -> Builder {
    -53        builder = builder.address_lookup(PkarrPublisher::n0_dns());
    -54        // Resolve using HTTPS requests to our DNS server's /pkarr path in browsers
    -55        #[cfg(wasm_browser)]
    -56        {
    -57            use crate::address_lookup::PkarrResolver;
    -58
    -59            builder = builder.address_lookup(PkarrResolver::n0_dns());
    -60        }
    -61        // Resolve using DNS queries outside browsers.
    -62        #[cfg(not(wasm_browser))]
    -63        {
    -64            builder = builder.address_lookup(crate::address_lookup::DnsAddressLookup::n0_dns());
    -65        }
    -66
    -67        builder = builder.relay_mode(default_relay_mode());
    -68
    -69        builder
    -70    }
    -71}
    \ No newline at end of file +19 RelayMode, +20 address_lookup::{AddrFilter, AddressLookupBuilder, PkarrPublisher}, +21 endpoint::{Builder, default_relay_mode}, +22}; +23 +24/// Defines a preset +25pub trait Preset { +26 /// Applies the configuration to the passed in [`Builder`]. +27 fn apply(self, builder: Builder) -> Builder; +28} +29 +30/// Configures the endpoint to use the n0 defaults +31/// +32/// Currently this consists of +33/// - the DNS Address Lookup service. +34/// - the default relay servers provided by Number 0. +35/// +36/// The default address lookup service publishes to and resolves from the +37/// n0.computer dns server `iroh.link`. +38/// +39/// This is equivalent to adding both a [`crate::address_lookup::PkarrPublisher`] +40/// and a [`crate::address_lookup::DnsAddressLookup`], both configured to use the +41/// n0.computer dns server. +42/// +43/// This will by default use [`N0_DNS_PKARR_RELAY_PROD`]. +44/// When in tests, or when the `test-utils` feature is enabled, this will use the +45/// [`N0_DNS_PKARR_RELAY_STAGING`]. +46/// +47/// This preset includes an [`AddrFilter`] for the address lookup services that only publishes +48/// the endpoint's relay address, by default. +49/// +50/// [`N0_DNS_PKARR_RELAY_PROD`]: crate::address_lookup::N0_DNS_PKARR_RELAY_PROD +51/// [`N0_DNS_PKARR_RELAY_STAGING`]: crate::address_lookup::N0_DNS_PKARR_RELAY_STAGING +52#[derive(Debug, Copy, Clone, Default)] +53pub struct N0; +54 +55impl Preset for N0 { +56 fn apply(self, mut builder: Builder) -> Builder { +57 let filter = AddrFilter::relay_only(); +58 builder = builder.address_lookup(PkarrPublisher::n0_dns().with_addr_filter(filter.clone())); +59 +60 // Resolve using HTTPS requests to our DNS server's /pkarr path in browsers +61 #[cfg(wasm_browser)] +62 { +63 use crate::address_lookup::PkarrResolver; +64 +65 builder = +66 builder.address_lookup(PkarrResolver::n0_dns().with_addr_filter(filter.clone())); +67 } +68 // Resolve using DNS queries outside browsers. +69 #[cfg(not(wasm_browser))] +70 { +71 builder = builder.address_lookup( +72 crate::address_lookup::DnsAddressLookup::n0_dns().with_addr_filter(filter.clone()), +73 ); +74 } +75 +76 builder = builder.relay_mode(default_relay_mode()); +77 +78 builder +79 } +80} +81 +82/// Configures the endpoint to use the n0 defaults, but with relay mode disabled. +83/// +84/// Currently this consists of +85/// - setting `RelayMode::Disabled` +86/// - the DNS Address Lookup service, that publishes IP addresses rather than +87/// relay urls. +88/// +89/// The default address lookup service publishes to and resolves from the +90/// n0.computer dns server `iroh.link`. +91/// +92/// This is equivalent to adding both a [`crate::address_lookup::PkarrPublisher`] +93/// and a [`crate::address_lookup::DnsAddressLookup`], both configured to use the +94/// n0.computer dns server. +95/// +96/// This will by default use [`N0_DNS_PKARR_RELAY_PROD`]. +97/// When in tests, or when the `test-utils` feature is enabled, this will use the +98/// [`N0_DNS_PKARR_RELAY_STAGING`]. +99/// +100/// This preset includes an [`AddrFilter`] for the address lookup services that only publishes +101/// the endpoint's IP addresses. +102/// +103/// [`N0_DNS_PKARR_RELAY_PROD`]: crate::address_lookup::N0_DNS_PKARR_RELAY_PROD +104/// [`N0_DNS_PKARR_RELAY_STAGING`]: crate::address_lookup::N0_DNS_PKARR_RELAY_STAGING +105#[derive(Debug, Copy, Clone, Default)] +106pub struct N0DisableRelay; +107 +108impl Preset for N0DisableRelay { +109 fn apply(self, mut builder: Builder) -> Builder { +110 let filter = AddrFilter::ip_only(); +111 builder = builder.address_lookup(PkarrPublisher::n0_dns().with_addr_filter(filter.clone())); +112 // Resolve using HTTPS requests to our DNS server's /pkarr path in browsers +113 #[cfg(wasm_browser)] +114 { +115 use crate::address_lookup::PkarrResolver; +116 +117 builder = +118 builder.address_lookup(PkarrResolver::n0_dns().with_addr_filter(filter.clone())); +119 } +120 // Resolve using DNS queries outside browsers. +121 #[cfg(not(wasm_browser))] +122 { +123 builder = builder.address_lookup( +124 crate::address_lookup::DnsAddressLookup::n0_dns().with_addr_filter(filter.clone()), +125 ); +126 } +127 +128 builder = builder.relay_mode(RelayMode::Disabled); +129 +130 builder +131 } +132}
    \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/lib.rs.html b/pr/3958/docs/src/iroh/lib.rs.html index e354b1f72b..c4d9849662 100644 --- a/pr/3958/docs/src/iroh/lib.rs.html +++ b/pr/3958/docs/src/iroh/lib.rs.html @@ -254,7 +254,7 @@ 254#![cfg_attr(iroh_docsrs, feature(doc_cfg))] 255 256mod socket; -257mod tls; +257pub mod tls; 258 259pub(crate) mod runtime; 260pub(crate) mod util; diff --git a/pr/3958/docs/src/iroh/net_report.rs.html b/pr/3958/docs/src/iroh/net_report.rs.html index 2daaaba901..6be69323c1 100644 --- a/pr/3958/docs/src/iroh/net_report.rs.html +++ b/pr/3958/docs/src/iroh/net_report.rs.html @@ -117,875 +117,875 @@ 117 relay_map: RelayMap, 118 #[cfg(not(wasm_browser))] 119 qad_conns: QadConns, -120 #[cfg(any(test, feature = "test-utils"))] -121 insecure_skip_relay_cert_verify: bool, -122 -123 /// A collection of previously generated reports. -124 /// -125 /// Sometimes it is useful to look at past reports to decide what to do. -126 reports: Reports, -127} -128 -129#[cfg(not(wasm_browser))] -130#[derive(Debug, Default)] -131struct QadConns { -132 v4: Option<(RelayUrl, QadConn)>, -133 v6: Option<(RelayUrl, QadConn)>, -134} -135 -136#[cfg(not(wasm_browser))] -137impl QadConns { -138 fn clear(&mut self) { -139 if let Some((_, conn)) = self.v4.take() { -140 conn.conn -141 .close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); -142 } -143 if let Some((_, conn)) = self.v6.take() { -144 conn.conn -145 .close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); -146 } -147 } -148 -149 fn current_v4(&self) -> Option<ProbeReport> { -150 if let Some((_, ref conn)) = self.v4 -151 && let Some(mut r) = conn.observer.get() -152 { -153 // grab latest rtt -154 -155 use quinn_proto::PathId; -156 if let Some(latency) = conn.conn.rtt(PathId::ZERO) { -157 r.latency = latency; -158 } -159 return Some(ProbeReport::QadIpv4(r)); -160 } -161 None -162 } -163 -164 fn current_v6(&self) -> Option<ProbeReport> { -165 if let Some((_, ref conn)) = self.v6 -166 && let Some(mut r) = conn.observer.get() -167 { -168 // grab latest rtt -169 -170 use quinn_proto::PathId; -171 if let Some(latency) = conn.conn.rtt(PathId::ZERO) { -172 r.latency = latency; -173 } -174 return Some(ProbeReport::QadIpv6(r)); -175 } -176 None -177 } -178 -179 fn watch_v4(&self) -> impl n0_future::Stream<Item = Option<QadProbeReport>> + Unpin + use<> { -180 let watcher = self.v4.as_ref().map(|(_url, conn)| conn.observer.watch()); -181 -182 if let Some(watcher) = watcher { -183 watcher.stream_updates_only().boxed() -184 } else { -185 n0_future::stream::empty().boxed() -186 } -187 } -188 -189 fn watch_v6(&self) -> impl n0_future::Stream<Item = Option<QadProbeReport>> + Unpin + use<> { -190 let watcher = self.v6.as_ref().map(|(_url, conn)| conn.observer.watch()); -191 if let Some(watcher) = watcher { -192 watcher.stream_updates_only().boxed() -193 } else { -194 n0_future::stream::empty().boxed() -195 } -196 } -197} -198 -199#[cfg(not(wasm_browser))] -200#[derive(Debug)] -201struct QadConn { -202 conn: quinn::Connection, -203 observer: Watchable<Option<QadProbeReport>>, -204 _handle: AbortOnDropHandle<Option<()>>, -205} -206 -207#[derive(Debug)] -208struct Reports { -209 /// Do a full relay scan, even if last is `Some`. -210 next_full: bool, -211 /// Some previous reports. -212 prev: BTreeMap<Instant, Report>, -213 /// Most recent report. -214 last: Option<Report>, -215 /// Time of last full (non-incremental) report. -216 last_full: Instant, -217} -218 -219impl Default for Reports { -220 fn default() -> Self { -221 Self { -222 next_full: true, -223 prev: Default::default(), -224 last: Default::default(), -225 last_full: Instant::now(), -226 } -227 } -228} -229 -230impl Client { -231 /// Creates a new net_report client. -232 pub(crate) fn new( -233 #[cfg(not(wasm_browser))] dns_resolver: DnsResolver, -234 relay_map: RelayMap, -235 opts: Options, -236 metrics: Arc<Metrics>, -237 ) -> Self { -238 let probes = opts.as_protocols(); -239 #[cfg(any(test, feature = "test-utils"))] -240 let insecure_skip_relay_cert_verify = opts.insecure_skip_relay_cert_verify; -241 -242 #[cfg(not(wasm_browser))] -243 let quic_client = opts -244 .quic_config -245 .map(|c| iroh_relay::quic::QuicClient::new(c.ep, c.client_config)); -246 -247 #[cfg(not(wasm_browser))] -248 let socket_state = SocketState { -249 quic_client, -250 dns_resolver, -251 }; -252 -253 Client { -254 #[cfg(not(wasm_browser))] -255 socket_state, -256 metrics, -257 reports: Reports::default(), -258 probes, -259 relay_map, -260 #[cfg(not(wasm_browser))] -261 qad_conns: QadConns::default(), -262 #[cfg(any(test, feature = "test-utils"))] -263 insecure_skip_relay_cert_verify, -264 } -265 } -266 -267 /// Generates a [`Report`]. -268 /// -269 /// Look at [`Options`] for the different configuration options. -270 pub(crate) async fn get_report( -271 &mut self, -272 if_state: IfStateDetails, -273 is_major: bool, -274 shutdown_token: CancellationToken, -275 ) -> Report { -276 let now = Instant::now(); -277 -278 let mut do_full = is_major -279 || self.reports.next_full -280 || now.duration_since(self.reports.last_full) > FULL_REPORT_INTERVAL; -281 -282 debug!(%do_full, "net_report starting"); -283 -284 // If the last report had a captive portal and reported no UDP access, -285 // it's possible that we didn't get a useful net_report due to the -286 // captive portal blocking us. If so, make this report a full (non-incremental) one. -287 if !do_full -288 && let Some(ref last) = self.reports.last -289 && !last.has_udp() -290 && last.captive_portal == Some(true) -291 { -292 do_full = true; -293 } -294 if do_full { -295 self.reports.last = None; // causes ProbePlan::new below to do a full (initial) plan -296 self.reports.next_full = false; -297 self.reports.last_full = now; -298 self.metrics.reports_full.inc(); -299 } -300 self.metrics.reports.inc(); -301 -302 let num_relays = self.relay_map.len(); -303 let enough_relays = std::cmp::min(num_relays, ENOUGH_ENDPOINTS); -304 #[cfg(wasm_browser)] -305 let if_state = IfStateDetails::default(); -306 #[cfg(not(wasm_browser))] -307 let if_state = IfStateDetails { -308 have_v4: if_state.have_v4, -309 have_v6: if_state.have_v6, -310 }; -311 -312 let mut report = Report::default(); -313 -314 // Start the reportgen client to start any needed probes -315 let (actor, mut probe_rx) = reportgen::Client::new( -316 self.reports.last.clone(), -317 self.relay_map.clone(), -318 self.probes.clone(), -319 if_state.clone(), -320 shutdown_token.child_token(), -321 #[cfg(not(wasm_browser))] -322 self.socket_state.clone(), -323 #[cfg(any(test, feature = "test-utils"))] -324 self.insecure_skip_relay_cert_verify, -325 ); -326 -327 #[cfg(not(wasm_browser))] -328 let reports = self -329 .spawn_qad_probes( -330 &if_state, -331 enough_relays, -332 do_full, -333 shutdown_token.child_token(), -334 ) -335 .await; -336 -337 #[cfg(not(wasm_browser))] -338 for r in reports { -339 report.update(&r); -340 } -341 -342 if self.have_enough_reports(&if_state, do_full, num_relays, &report) { -343 // check if we already have enough probes immediately after QAD returns -344 trace!("have enough probe reports, aborting further probes"); -345 // shuts down the probes -346 drop(actor); -347 } else { -348 #[cfg(not(wasm_browser))] -349 let mut qad_v4_stream = self.qad_conns.watch_v4(); -350 #[cfg(wasm_browser)] -351 let mut qad_v4_stream = n0_future::stream::empty::<Option<()>>(); -352 #[cfg(not(wasm_browser))] -353 let mut qad_v6_stream = self.qad_conns.watch_v6(); -354 #[cfg(wasm_browser)] -355 let mut qad_v6_stream = n0_future::stream::empty::<Option<()>>(); -356 -357 loop { -358 tokio::select! { -359 biased; -360 -361 Some(Some(r)) = qad_v4_stream.next() => { -362 #[cfg(not(wasm_browser))] -363 { -364 trace!(?r, "new report from QAD V4"); -365 report.update(&ProbeReport::QadIpv4(r)); -366 } -367 } -368 -369 Some(Some(r)) = qad_v6_stream.next() => { -370 #[cfg(not(wasm_browser))] -371 { -372 trace!(?r, "new report from QAD V6"); -373 report.update(&ProbeReport::QadIpv6(r)); -374 } -375 } -376 -377 maybe_probe = probe_rx.recv() => { -378 let Some(probe_res) = maybe_probe else { -379 break; -380 }; -381 match probe_res { -382 ProbeFinished::Regular(probe) => match probe { -383 Ok(probe) => { -384 report.update(&probe); -385 if self.have_enough_reports(&if_state, do_full, num_relays, &report) { -386 trace!("have enough probe reports, aborting further probes"); -387 // shuts down the probes -388 drop(actor); -389 break; -390 } +120 #[cfg(not(wasm_browser))] +121 tls_config: rustls::ClientConfig, +122 /// A collection of previously generated reports. +123 /// +124 /// Sometimes it is useful to look at past reports to decide what to do. +125 reports: Reports, +126} +127 +128#[cfg(not(wasm_browser))] +129#[derive(Debug, Default)] +130struct QadConns { +131 v4: Option<(RelayUrl, QadConn)>, +132 v6: Option<(RelayUrl, QadConn)>, +133} +134 +135#[cfg(not(wasm_browser))] +136impl QadConns { +137 fn clear(&mut self) { +138 if let Some((_, conn)) = self.v4.take() { +139 conn.conn +140 .close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); +141 } +142 if let Some((_, conn)) = self.v6.take() { +143 conn.conn +144 .close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); +145 } +146 } +147 +148 fn current_v4(&self) -> Option<ProbeReport> { +149 if let Some((_, ref conn)) = self.v4 +150 && let Some(mut r) = conn.observer.get() +151 { +152 // grab latest rtt +153 +154 use quinn_proto::PathId; +155 if let Some(latency) = conn.conn.rtt(PathId::ZERO) { +156 r.latency = latency; +157 } +158 return Some(ProbeReport::QadIpv4(r)); +159 } +160 None +161 } +162 +163 fn current_v6(&self) -> Option<ProbeReport> { +164 if let Some((_, ref conn)) = self.v6 +165 && let Some(mut r) = conn.observer.get() +166 { +167 // grab latest rtt +168 +169 use quinn_proto::PathId; +170 if let Some(latency) = conn.conn.rtt(PathId::ZERO) { +171 r.latency = latency; +172 } +173 return Some(ProbeReport::QadIpv6(r)); +174 } +175 None +176 } +177 +178 fn watch_v4(&self) -> impl n0_future::Stream<Item = Option<QadProbeReport>> + Unpin + use<> { +179 let watcher = self.v4.as_ref().map(|(_url, conn)| conn.observer.watch()); +180 +181 if let Some(watcher) = watcher { +182 watcher.stream_updates_only().boxed() +183 } else { +184 n0_future::stream::empty().boxed() +185 } +186 } +187 +188 fn watch_v6(&self) -> impl n0_future::Stream<Item = Option<QadProbeReport>> + Unpin + use<> { +189 let watcher = self.v6.as_ref().map(|(_url, conn)| conn.observer.watch()); +190 if let Some(watcher) = watcher { +191 watcher.stream_updates_only().boxed() +192 } else { +193 n0_future::stream::empty().boxed() +194 } +195 } +196} +197 +198#[cfg(not(wasm_browser))] +199#[derive(Debug)] +200struct QadConn { +201 conn: quinn::Connection, +202 observer: Watchable<Option<QadProbeReport>>, +203 _handle: AbortOnDropHandle<Option<()>>, +204} +205 +206#[derive(Debug)] +207struct Reports { +208 /// Do a full relay scan, even if last is `Some`. +209 next_full: bool, +210 /// Some previous reports. +211 prev: BTreeMap<Instant, Report>, +212 /// Most recent report. +213 last: Option<Report>, +214 /// Time of last full (non-incremental) report. +215 last_full: Instant, +216} +217 +218impl Default for Reports { +219 fn default() -> Self { +220 Self { +221 next_full: true, +222 prev: Default::default(), +223 last: Default::default(), +224 last_full: Instant::now(), +225 } +226 } +227} +228 +229impl Client { +230 /// Creates a new net_report client. +231 pub(crate) fn new( +232 #[cfg(not(wasm_browser))] dns_resolver: DnsResolver, +233 relay_map: RelayMap, +234 opts: Options, +235 metrics: Arc<Metrics>, +236 ) -> Self { +237 let probes = opts.as_protocols(); +238 +239 #[cfg(not(wasm_browser))] +240 let quic_client = opts +241 .quic_config +242 .map(|c| iroh_relay::quic::QuicClient::new(c.ep, c.client_config)); +243 +244 #[cfg(not(wasm_browser))] +245 let socket_state = SocketState { +246 quic_client, +247 dns_resolver, +248 }; +249 +250 Client { +251 #[cfg(not(wasm_browser))] +252 socket_state, +253 metrics, +254 reports: Reports::default(), +255 probes, +256 relay_map, +257 #[cfg(not(wasm_browser))] +258 qad_conns: QadConns::default(), +259 #[cfg(not(wasm_browser))] +260 tls_config: opts.tls_config, +261 } +262 } +263 +264 /// Generates a [`Report`]. +265 /// +266 /// Look at [`Options`] for the different configuration options. +267 pub(crate) async fn get_report( +268 &mut self, +269 if_state: IfStateDetails, +270 is_major: bool, +271 shutdown_token: CancellationToken, +272 ) -> Report { +273 let now = Instant::now(); +274 +275 let mut do_full = is_major +276 || self.reports.next_full +277 || now.duration_since(self.reports.last_full) > FULL_REPORT_INTERVAL; +278 +279 debug!(%do_full, "net_report starting"); +280 +281 // If the last report had a captive portal and reported no UDP access, +282 // it's possible that we didn't get a useful net_report due to the +283 // captive portal blocking us. If so, make this report a full (non-incremental) one. +284 if !do_full +285 && let Some(ref last) = self.reports.last +286 && !last.has_udp() +287 && last.captive_portal == Some(true) +288 { +289 do_full = true; +290 } +291 if do_full { +292 self.reports.last = None; // causes ProbePlan::new below to do a full (initial) plan +293 self.reports.next_full = false; +294 self.reports.last_full = now; +295 self.metrics.reports_full.inc(); +296 } +297 self.metrics.reports.inc(); +298 +299 let num_relays = self.relay_map.len(); +300 let enough_relays = std::cmp::min(num_relays, ENOUGH_ENDPOINTS); +301 #[cfg(wasm_browser)] +302 let if_state = IfStateDetails::default(); +303 #[cfg(not(wasm_browser))] +304 let if_state = IfStateDetails { +305 have_v4: if_state.have_v4, +306 have_v6: if_state.have_v6, +307 }; +308 +309 let mut report = Report::default(); +310 +311 // Start the reportgen client to start any needed probes +312 let (actor, mut probe_rx) = reportgen::Client::new( +313 self.reports.last.clone(), +314 self.relay_map.clone(), +315 self.probes.clone(), +316 if_state.clone(), +317 shutdown_token.child_token(), +318 #[cfg(not(wasm_browser))] +319 self.socket_state.clone(), +320 #[cfg(not(wasm_browser))] +321 self.tls_config.clone(), +322 ); +323 +324 #[cfg(not(wasm_browser))] +325 let reports = self +326 .spawn_qad_probes( +327 &if_state, +328 enough_relays, +329 do_full, +330 shutdown_token.child_token(), +331 ) +332 .await; +333 +334 #[cfg(not(wasm_browser))] +335 for r in reports { +336 report.update(&r); +337 } +338 +339 if self.have_enough_reports(&if_state, do_full, num_relays, &report) { +340 // check if we already have enough probes immediately after QAD returns +341 trace!("have enough probe reports, aborting further probes"); +342 // shuts down the probes +343 drop(actor); +344 } else { +345 #[cfg(not(wasm_browser))] +346 let mut qad_v4_stream = self.qad_conns.watch_v4(); +347 #[cfg(wasm_browser)] +348 let mut qad_v4_stream = n0_future::stream::empty::<Option<()>>(); +349 #[cfg(not(wasm_browser))] +350 let mut qad_v6_stream = self.qad_conns.watch_v6(); +351 #[cfg(wasm_browser)] +352 let mut qad_v6_stream = n0_future::stream::empty::<Option<()>>(); +353 +354 loop { +355 tokio::select! { +356 biased; +357 +358 Some(Some(r)) = qad_v4_stream.next() => { +359 #[cfg(not(wasm_browser))] +360 { +361 trace!(?r, "new report from QAD V4"); +362 report.update(&ProbeReport::QadIpv4(r)); +363 } +364 } +365 +366 Some(Some(r)) = qad_v6_stream.next() => { +367 #[cfg(not(wasm_browser))] +368 { +369 trace!(?r, "new report from QAD V6"); +370 report.update(&ProbeReport::QadIpv6(r)); +371 } +372 } +373 +374 maybe_probe = probe_rx.recv() => { +375 let Some(probe_res) = maybe_probe else { +376 break; +377 }; +378 match probe_res { +379 ProbeFinished::Regular(probe) => match probe { +380 Ok(probe) => { +381 report.update(&probe); +382 if self.have_enough_reports(&if_state, do_full, num_relays, &report) { +383 trace!("have enough probe reports, aborting further probes"); +384 // shuts down the probes +385 drop(actor); +386 break; +387 } +388 } +389 Err(err) => { +390 trace!("probe failed: {:?}", err); 391 } -392 Err(err) => { -393 trace!("probe failed: {:?}", err); -394 } -395 }, -396 #[cfg(not(wasm_browser))] -397 ProbeFinished::CaptivePortal(portal) => { -398 report.captive_portal = portal; -399 } -400 } -401 } -402 } -403 } -404 } -405 self.add_report_history_and_set_preferred_relay(&mut report); -406 debug!( -407 ?report, -408 "generated report in {:02}ms", -409 now.elapsed().as_millis() -410 ); +392 }, +393 #[cfg(not(wasm_browser))] +394 ProbeFinished::CaptivePortal(portal) => { +395 report.captive_portal = portal; +396 } +397 } +398 } +399 } +400 } +401 } +402 self.add_report_history_and_set_preferred_relay(&mut report); +403 debug!( +404 ?report, +405 "generated report in {:02}ms", +406 now.elapsed().as_millis() +407 ); +408 +409 report +410 } 411 -412 report -413 } -414 -415 #[cfg(not(wasm_browser))] -416 async fn spawn_qad_probes( -417 &mut self, -418 if_state: &IfStateDetails, -419 enough_relays: usize, -420 do_full: bool, -421 shutdown_token: CancellationToken, -422 ) -> Vec<ProbeReport> { -423 use tracing::{Instrument, warn_span}; -424 -425 let Some(ref quic_client) = self.socket_state.quic_client else { -426 return Vec::new(); -427 }; -428 -429 if do_full { -430 // clear out existing connections if we are doing a full reset -431 self.qad_conns.clear(); -432 } -433 -434 if let Some((url, conn)) = &self.qad_conns.v4 { -435 // verify conn is still around -436 if let Some(reason) = conn.conn.close_reason() { -437 trace!(?url, "QAD v4 conn closed: {}", reason); -438 self.qad_conns.v4.take(); -439 } -440 } -441 if let Some((url, conn)) = &self.qad_conns.v6 { -442 // verify conn is still around -443 if let Some(reason) = conn.conn.close_reason() { -444 trace!(?url, "QAD v6 conn closed: {}", reason); -445 self.qad_conns.v6.take(); -446 } -447 } -448 -449 let v4_report = self.qad_conns.current_v4(); -450 let v6_report = self.qad_conns.current_v6(); -451 let needs_v4_probe = v4_report.is_none(); -452 let needs_v6_probe = v6_report.is_some() != if_state.have_v6; -453 -454 let mut reports = Vec::new(); -455 -456 if let Some(report) = v4_report { +412 #[cfg(not(wasm_browser))] +413 async fn spawn_qad_probes( +414 &mut self, +415 if_state: &IfStateDetails, +416 enough_relays: usize, +417 do_full: bool, +418 shutdown_token: CancellationToken, +419 ) -> Vec<ProbeReport> { +420 use tracing::{Instrument, warn_span}; +421 +422 let Some(ref quic_client) = self.socket_state.quic_client else { +423 return Vec::new(); +424 }; +425 +426 if do_full { +427 // clear out existing connections if we are doing a full reset +428 self.qad_conns.clear(); +429 } +430 +431 if let Some((url, conn)) = &self.qad_conns.v4 { +432 // verify conn is still around +433 if let Some(reason) = conn.conn.close_reason() { +434 trace!(?url, "QAD v4 conn closed: {}", reason); +435 self.qad_conns.v4.take(); +436 } +437 } +438 if let Some((url, conn)) = &self.qad_conns.v6 { +439 // verify conn is still around +440 if let Some(reason) = conn.conn.close_reason() { +441 trace!(?url, "QAD v6 conn closed: {}", reason); +442 self.qad_conns.v6.take(); +443 } +444 } +445 +446 let v4_report = self.qad_conns.current_v4(); +447 let v6_report = self.qad_conns.current_v6(); +448 let needs_v4_probe = v4_report.is_none(); +449 let needs_v6_probe = v6_report.is_some() != if_state.have_v6; +450 +451 let mut reports = Vec::new(); +452 +453 if let Some(report) = v4_report { +454 reports.push(report); +455 } +456 if let Some(report) = v6_report { 457 reports.push(report); 458 } -459 if let Some(report) = v6_report { -460 reports.push(report); -461 } -462 -463 if !needs_v4_probe && !needs_v6_probe { -464 return reports; -465 } -466 -467 trace!("spawning QAD probes"); +459 +460 if !needs_v4_probe && !needs_v6_probe { +461 return reports; +462 } +463 +464 trace!("spawning QAD probes"); +465 +466 // TODO: randomize choice? +467 const MAX_RELAYS: usize = 5; 468 -469 // TODO: randomize choice? -470 const MAX_RELAYS: usize = 5; -471 -472 let mut v4_buf = JoinSet::new(); -473 let cancel_v4 = shutdown_token.child_token(); -474 let mut v6_buf = JoinSet::new(); -475 let cancel_v6 = shutdown_token.child_token(); -476 -477 let relays = self.relay_map.relays::<Vec<_>>(); -478 for relay in relays.into_iter().take(MAX_RELAYS) { -479 if if_state.have_v4 && needs_v4_probe { -480 debug!(?relay.url, "v4 QAD probe"); -481 let relay = relay.clone(); -482 let dns_resolver = self.socket_state.dns_resolver.clone(); -483 let quic_client = quic_client.clone(); -484 let relay_url = relay.url.clone(); -485 let inner_token = cancel_v4.child_token(); -486 v4_buf.spawn( -487 cancel_v4 -488 .child_token() -489 .run_until_cancelled_owned(time::timeout( -490 PROBES_TIMEOUT, -491 run_probe_v4(relay, quic_client, dns_resolver, inner_token), -492 )) -493 .instrument(warn_span!("QADv4", %relay_url)), -494 ); -495 } -496 if if_state.have_v6 && needs_v6_probe { -497 debug!(?relay.url, "v6 QAD probe"); -498 let relay = relay.clone(); -499 let dns_resolver = self.socket_state.dns_resolver.clone(); -500 let quic_client = quic_client.clone(); -501 let relay_url = relay.url.clone(); -502 let inner_token = cancel_v6.child_token(); -503 v6_buf.spawn( -504 cancel_v6 -505 .child_token() -506 .run_until_cancelled_owned(time::timeout( -507 PROBES_TIMEOUT, -508 run_probe_v6(relay, quic_client, dns_resolver, inner_token), -509 )) -510 .instrument(warn_span!("QADv6", %relay_url)), -511 ); -512 } -513 } -514 -515 // We set _pending to true if at least one report was started for each category. -516 // If we did not start any report for either category, _pending is set to false right away -517 // (it "completed" in the sense that nothing will ever run). If we did start at least one report, -518 // _pending is set to true, and will be set to false further down once the first task -519 // completed. -520 let mut ipv4_pending = !v4_buf.is_empty(); -521 let mut ipv6_pending = !v6_buf.is_empty(); -522 -523 while !v4_buf.is_empty() || !v6_buf.is_empty() { -524 // We early-abort the tasks once we have at least `enough_relays` reports, -525 // and at least one ipv4 and one ipv6 report completed (if they were started, see comment above). -526 -527 if reports.len() >= enough_relays && !ipv4_pending && !ipv6_pending { -528 debug!("enough probes: {}", reports.len()); -529 cancel_v4.cancel(); -530 cancel_v6.cancel(); -531 break; -532 } +469 let mut v4_buf = JoinSet::new(); +470 let cancel_v4 = shutdown_token.child_token(); +471 let mut v6_buf = JoinSet::new(); +472 let cancel_v6 = shutdown_token.child_token(); +473 +474 let relays = self.relay_map.relays::<Vec<_>>(); +475 for relay in relays.into_iter().take(MAX_RELAYS) { +476 if if_state.have_v4 && needs_v4_probe { +477 debug!(?relay.url, "v4 QAD probe"); +478 let relay = relay.clone(); +479 let dns_resolver = self.socket_state.dns_resolver.clone(); +480 let quic_client = quic_client.clone(); +481 let relay_url = relay.url.clone(); +482 let inner_token = cancel_v4.child_token(); +483 v4_buf.spawn( +484 cancel_v4 +485 .child_token() +486 .run_until_cancelled_owned(time::timeout( +487 PROBES_TIMEOUT, +488 run_probe_v4(relay, quic_client, dns_resolver, inner_token), +489 )) +490 .instrument(warn_span!("QADv4", %relay_url)), +491 ); +492 } +493 if if_state.have_v6 && needs_v6_probe { +494 debug!(?relay.url, "v6 QAD probe"); +495 let relay = relay.clone(); +496 let dns_resolver = self.socket_state.dns_resolver.clone(); +497 let quic_client = quic_client.clone(); +498 let relay_url = relay.url.clone(); +499 let inner_token = cancel_v6.child_token(); +500 v6_buf.spawn( +501 cancel_v6 +502 .child_token() +503 .run_until_cancelled_owned(time::timeout( +504 PROBES_TIMEOUT, +505 run_probe_v6(relay, quic_client, dns_resolver, inner_token), +506 )) +507 .instrument(warn_span!("QADv6", %relay_url)), +508 ); +509 } +510 } +511 +512 // We set _pending to true if at least one report was started for each category. +513 // If we did not start any report for either category, _pending is set to false right away +514 // (it "completed" in the sense that nothing will ever run). If we did start at least one report, +515 // _pending is set to true, and will be set to false further down once the first task +516 // completed. +517 let mut ipv4_pending = !v4_buf.is_empty(); +518 let mut ipv6_pending = !v6_buf.is_empty(); +519 +520 while !v4_buf.is_empty() || !v6_buf.is_empty() { +521 // We early-abort the tasks once we have at least `enough_relays` reports, +522 // and at least one ipv4 and one ipv6 report completed (if they were started, see comment above). +523 +524 if reports.len() >= enough_relays && !ipv4_pending && !ipv6_pending { +525 debug!("enough probes: {}", reports.len()); +526 cancel_v4.cancel(); +527 cancel_v6.cancel(); +528 break; +529 } +530 +531 tokio::select! { +532 biased; 533 -534 tokio::select! { -535 biased; -536 -537 _ = shutdown_token.cancelled() => { -538 trace!("qad report cancelled"); -539 break; -540 } -541 -542 val = v4_buf.join_next(), if !v4_buf.is_empty() => { -543 let span = warn_span!("QADv4"); -544 let _guard = span.enter(); -545 ipv4_pending = false; -546 match val { -547 Some(Ok(Some(Ok(res)))) => { -548 match res { -549 Ok((r, conn)) => { -550 debug!(?r, "probe report"); -551 let url = r.relay.clone(); -552 reports.push(ProbeReport::QadIpv4(r)); -553 if self.qad_conns.v4.is_none() { -554 self.qad_conns.v4.replace((url, conn)); -555 } else { -556 conn.conn.close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); -557 } +534 _ = shutdown_token.cancelled() => { +535 trace!("qad report cancelled"); +536 break; +537 } +538 +539 val = v4_buf.join_next(), if !v4_buf.is_empty() => { +540 let span = warn_span!("QADv4"); +541 let _guard = span.enter(); +542 ipv4_pending = false; +543 match val { +544 Some(Ok(Some(Ok(res)))) => { +545 match res { +546 Ok((r, conn)) => { +547 debug!(?r, "probe report"); +548 let url = r.relay.clone(); +549 reports.push(ProbeReport::QadIpv4(r)); +550 if self.qad_conns.v4.is_none() { +551 self.qad_conns.v4.replace((url, conn)); +552 } else { +553 conn.conn.close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); +554 } +555 } +556 Err(err) => { +557 debug!("probe failed: {err:#}"); 558 } -559 Err(err) => { -560 debug!("probe failed: {err:#}"); -561 } -562 } -563 } -564 Some(Err(err)) => { -565 if err.is_panic() { -566 panic!("probe panicked: {err:#}"); -567 } -568 warn!("probe failed: {err:#}"); +559 } +560 } +561 Some(Err(err)) => { +562 if err.is_panic() { +563 panic!("probe panicked: {err:#}"); +564 } +565 warn!("probe failed: {err:#}"); +566 } +567 Some(Ok(None)) => { +568 debug!("probe canceled"); 569 } -570 Some(Ok(None)) => { -571 debug!("probe canceled"); +570 Some(Ok(Some(Err(time::Elapsed { .. })))) => { +571 debug!("probe timed out"); 572 } -573 Some(Ok(Some(Err(time::Elapsed { .. })))) => { -574 debug!("probe timed out"); +573 None => { +574 trace!("report canceled"); 575 } -576 None => { -577 trace!("report canceled"); -578 } -579 } -580 } -581 val = v6_buf.join_next(), if !v6_buf.is_empty() => { -582 let span = warn_span!("QADv6"); -583 let _guard = span.enter(); -584 ipv6_pending = false; -585 match val { -586 Some(Ok(Some(Ok(res)))) => { -587 match res { -588 Ok((r, conn)) => { -589 debug!(?r, "probe report"); -590 let url = r.relay.clone(); -591 reports.push(ProbeReport::QadIpv6(r)); -592 if self.qad_conns.v6.is_none() { -593 self.qad_conns.v6.replace((url, conn)); -594 } else { -595 conn.conn.close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); -596 } +576 } +577 } +578 val = v6_buf.join_next(), if !v6_buf.is_empty() => { +579 let span = warn_span!("QADv6"); +580 let _guard = span.enter(); +581 ipv6_pending = false; +582 match val { +583 Some(Ok(Some(Ok(res)))) => { +584 match res { +585 Ok((r, conn)) => { +586 debug!(?r, "probe report"); +587 let url = r.relay.clone(); +588 reports.push(ProbeReport::QadIpv6(r)); +589 if self.qad_conns.v6.is_none() { +590 self.qad_conns.v6.replace((url, conn)); +591 } else { +592 conn.conn.close(QUIC_ADDR_DISC_CLOSE_CODE, QUIC_ADDR_DISC_CLOSE_REASON); +593 } +594 } +595 Err(err) => { +596 debug!("probe failed: {err:#}"); 597 } -598 Err(err) => { -599 debug!("probe failed: {err:#}"); -600 } -601 } -602 } -603 Some(Err(err)) => { -604 if err.is_panic() { -605 panic!("probe panicked: {err:#}"); -606 } -607 warn!("probe failed: {err:#}"); +598 } +599 } +600 Some(Err(err)) => { +601 if err.is_panic() { +602 panic!("probe panicked: {err:#}"); +603 } +604 warn!("probe failed: {err:#}"); +605 } +606 Some(Ok(None)) => { +607 debug!("probe canceled"); 608 } -609 Some(Ok(None)) => { -610 debug!("probe canceled"); +609 Some(Ok(Some(Err(time::Elapsed { .. })))) => { +610 debug!("probe timed out"); 611 } -612 Some(Ok(Some(Err(time::Elapsed { .. })))) => { -613 debug!("probe timed out"); +612 None => { +613 trace!("report canceled"); 614 } -615 None => { -616 trace!("report canceled"); -617 } -618 } +615 } +616 } +617 else => { +618 break; 619 } -620 else => { -621 break; -622 } -623 } -624 } -625 -626 // make sure to cancel all outstanding reports -627 v4_buf.abort_all(); -628 v6_buf.abort_all(); +620 } +621 } +622 +623 // make sure to cancel all outstanding reports +624 v4_buf.abort_all(); +625 v6_buf.abort_all(); +626 +627 reports +628 } 629 -630 reports -631 } -632 -633 /// Check if we have enough information to consider the current report "good enough". -634 fn have_enough_reports( -635 &self, -636 state: &IfStateDetails, -637 do_full: bool, -638 num_relays: usize, -639 report: &Report, -640 ) -> bool { -641 #[cfg_attr(wasm_browser, allow(unused_mut))] -642 let mut num_ipv4 = 0; -643 #[cfg_attr(wasm_browser, allow(unused_mut))] -644 let mut num_ipv6 = 0; -645 let mut num_https = 0; -646 for (typ, _, _) in report.relay_latency.iter() { -647 match typ { -648 #[cfg(not(wasm_browser))] -649 Probe::QadIpv4 => { -650 num_ipv4 += 1; -651 } -652 #[cfg(not(wasm_browser))] -653 Probe::QadIpv6 => { -654 num_ipv6 += 1; +630 /// Check if we have enough information to consider the current report "good enough". +631 fn have_enough_reports( +632 &self, +633 state: &IfStateDetails, +634 do_full: bool, +635 num_relays: usize, +636 report: &Report, +637 ) -> bool { +638 #[cfg_attr(wasm_browser, allow(unused_mut))] +639 let mut num_ipv4 = 0; +640 #[cfg_attr(wasm_browser, allow(unused_mut))] +641 let mut num_ipv6 = 0; +642 let mut num_https = 0; +643 for (typ, _, _) in report.relay_latency.iter() { +644 match typ { +645 #[cfg(not(wasm_browser))] +646 Probe::QadIpv4 => { +647 num_ipv4 += 1; +648 } +649 #[cfg(not(wasm_browser))] +650 Probe::QadIpv6 => { +651 num_ipv6 += 1; +652 } +653 Probe::Https => { +654 num_https += 1; 655 } -656 Probe::Https => { -657 num_https += 1; -658 } -659 } -660 } -661 -662 if do_full { -663 // Full report, require more probes -664 match (state.have_v4, state.have_v6) { -665 (true, true) => { -666 // Both IPv4 and IPv6 are expected to be available -667 if num_ipv4 >= 2 && num_ipv6 >= 1 || num_ipv6 >= 2 && num_ipv4 >= 1 { -668 return true; -669 } -670 } -671 (true, false) => { -672 // Just Ipv4 is expected -673 if num_ipv4 >= 2 { -674 return true; -675 } -676 } -677 (false, true) => { -678 // Just Ipv6 is expected -679 if num_ipv6 >= 2 { -680 return true; -681 } -682 } -683 (false, false) => {} -684 } -685 if num_https >= num_relays { -686 // If we have at least one https probe per relay, we are happy -687 return true; -688 } -689 false -690 } else { -691 // Incremental reports, here the requirements are reduced further -692 match (state.have_v4, state.have_v6) { -693 (true, true) => { -694 // Both IPv4 and IPv6 are expected to be available -695 if num_ipv4 >= 1 && num_ipv6 >= 1 { -696 return true; -697 } -698 } -699 (true, false) => { -700 // Just Ipv4 is expected -701 if num_ipv4 >= 1 { -702 return true; -703 } -704 } -705 (false, true) => { -706 // Just Ipv6 is expected -707 if num_ipv6 >= 1 { -708 return true; -709 } -710 } -711 (false, false) => {} -712 } -713 if num_https >= num_relays { -714 // If we have at least one https probe per relay, we are happy -715 return true; -716 } -717 false -718 } -719 } -720 -721 /// Adds `r` to the set of recent Reports and mutates `r.preferred_relay` to contain the best recent one. -722 fn add_report_history_and_set_preferred_relay(&mut self, r: &mut Report) { -723 let mut prev_relay = None; -724 if let Some(ref last) = self.reports.last { -725 prev_relay.clone_from(&last.preferred_relay); -726 -727 // If we don't have new information, copy this from the last report -728 if r.mapping_varies_by_dest_ipv4.is_none() { -729 r.mapping_varies_by_dest_ipv4 = last.mapping_varies_by_dest_ipv4; +656 } +657 } +658 +659 if do_full { +660 // Full report, require more probes +661 match (state.have_v4, state.have_v6) { +662 (true, true) => { +663 // Both IPv4 and IPv6 are expected to be available +664 if num_ipv4 >= 2 && num_ipv6 >= 1 || num_ipv6 >= 2 && num_ipv4 >= 1 { +665 return true; +666 } +667 } +668 (true, false) => { +669 // Just Ipv4 is expected +670 if num_ipv4 >= 2 { +671 return true; +672 } +673 } +674 (false, true) => { +675 // Just Ipv6 is expected +676 if num_ipv6 >= 2 { +677 return true; +678 } +679 } +680 (false, false) => {} +681 } +682 if num_https >= num_relays { +683 // If we have at least one https probe per relay, we are happy +684 return true; +685 } +686 false +687 } else { +688 // Incremental reports, here the requirements are reduced further +689 match (state.have_v4, state.have_v6) { +690 (true, true) => { +691 // Both IPv4 and IPv6 are expected to be available +692 if num_ipv4 >= 1 && num_ipv6 >= 1 { +693 return true; +694 } +695 } +696 (true, false) => { +697 // Just Ipv4 is expected +698 if num_ipv4 >= 1 { +699 return true; +700 } +701 } +702 (false, true) => { +703 // Just Ipv6 is expected +704 if num_ipv6 >= 1 { +705 return true; +706 } +707 } +708 (false, false) => {} +709 } +710 if num_https >= num_relays { +711 // If we have at least one https probe per relay, we are happy +712 return true; +713 } +714 false +715 } +716 } +717 +718 /// Adds `r` to the set of recent Reports and mutates `r.preferred_relay` to contain the best recent one. +719 fn add_report_history_and_set_preferred_relay(&mut self, r: &mut Report) { +720 let mut prev_relay = None; +721 if let Some(ref last) = self.reports.last { +722 prev_relay.clone_from(&last.preferred_relay); +723 +724 // If we don't have new information, copy this from the last report +725 if r.mapping_varies_by_dest_ipv4.is_none() { +726 r.mapping_varies_by_dest_ipv4 = last.mapping_varies_by_dest_ipv4; +727 } +728 if r.mapping_varies_by_dest_ipv6.is_none() { +729 r.mapping_varies_by_dest_ipv6 = last.mapping_varies_by_dest_ipv6; 730 } -731 if r.mapping_varies_by_dest_ipv6.is_none() { -732 r.mapping_varies_by_dest_ipv6 = last.mapping_varies_by_dest_ipv6; -733 } -734 } +731 } +732 +733 let now = Instant::now(); +734 const MAX_AGE: Duration = Duration::from_secs(5 * 60); 735 -736 let now = Instant::now(); -737 const MAX_AGE: Duration = Duration::from_secs(5 * 60); +736 // relay ID => its best recent latency in last MAX_AGE +737 let mut best_recent = RelayLatencies::default(); 738 -739 // relay ID => its best recent latency in last MAX_AGE -740 let mut best_recent = RelayLatencies::default(); -741 -742 // chain the current report as we are still mutating it -743 let prevs_iter = self -744 .reports -745 .prev -746 .iter() -747 .map(|(a, b)| -> (&Instant, &Report) { (a, b) }); -748 -749 let mut to_remove = Vec::new(); -750 for (t, pr) in prevs_iter { -751 if now.duration_since(*t) > MAX_AGE { -752 to_remove.push(*t); -753 continue; -754 } -755 best_recent.merge(&pr.relay_latency); -756 } -757 // merge in current run -758 best_recent.merge(&r.relay_latency); -759 -760 for t in to_remove { -761 self.reports.prev.remove(&t); -762 } -763 -764 // Then, pick which currently-alive relay server from the -765 // current report has the best latency over the past MAX_AGE. -766 let mut best_any = Duration::default(); -767 let mut old_relay_cur_latency = Duration::default(); -768 { -769 for (_, url, duration) in r.relay_latency.iter() { -770 if Some(url) == prev_relay.as_ref() { -771 old_relay_cur_latency = duration; -772 } -773 if let Some(best) = best_recent.get(url) -774 && (r.preferred_relay.is_none() || best < best_any) -775 { -776 best_any = best; -777 r.preferred_relay.replace(url.clone()); -778 } -779 } -780 -781 // If we're changing our preferred relay but the old one's still -782 // accessible and the new one's not much better, just stick with -783 // where we are. -784 if prev_relay.is_some() -785 && r.preferred_relay != prev_relay -786 && !old_relay_cur_latency.is_zero() -787 && best_any > old_relay_cur_latency / 3 * 2 -788 { -789 r.preferred_relay = prev_relay; -790 } -791 } -792 -793 self.reports.prev.insert(now, r.clone()); -794 self.reports.last = Some(r.clone()); -795 } -796} -797 -798#[cfg(not(wasm_browser))] -799async fn run_probe_v4( -800 relay: Arc<RelayConfig>, -801 quic_client: QuicClient, -802 dns_resolver: DnsResolver, -803 shutdown_token: CancellationToken, -804) -> n0_error::Result<(QadProbeReport, QadConn), QadProbeError> { -805 use quinn_proto::PathId; -806 -807 let relay_addr = reportgen::get_relay_addr_ipv4(&dns_resolver, &relay) -808 .await -809 .map_err(|source| e!(QadProbeError::GetRelayAddr { source }))?; -810 -811 trace!(?relay_addr, "resolved relay server address"); -812 let host = relay -813 .url -814 .host_str() -815 .ok_or_else(|| e!(QadProbeError::MissingHost))?; -816 let conn = quic_client -817 .create_conn(relay_addr.into(), host) -818 .await -819 .map_err(|source| e!(QadProbeError::Quic { source }))?; -820 -821 let mut receiver = conn.observed_external_addr(); -822 -823 // wait for an addr -824 let addr = receiver -825 .wait_for(|addr| addr.is_some()) -826 .await -827 .map_err(|_| e!(QadProbeError::ReceiverDropped))? -828 .expect("known"); -829 let report = QadProbeReport { -830 relay: relay.url.clone(), -831 addr: SocketAddr::new(addr.ip().to_canonical(), addr.port()), -832 latency: conn.rtt(PathId::ZERO).unwrap_or_default(), -833 }; -834 -835 let observer = Watchable::new(None); -836 let endpoint = relay.url.clone(); -837 let handle = task::spawn(shutdown_token.run_until_cancelled_owned({ -838 let conn = conn.clone(); -839 let observer = observer.clone(); -840 async move { -841 loop { -842 let val = *receiver.borrow(); -843 // if we've sent to an ipv4 address, but received an observed address -844 // that is ivp6 then the address is an [IPv4-Mapped IPv6 Addresses](https://doc.rust-lang.org/beta/std/net/struct.Ipv6Addr.html#ipv4-mapped-ipv6-addresses) -845 let val = val.map(|val| SocketAddr::new(val.ip().to_canonical(), val.port())); -846 let latency = conn.rtt(PathId::ZERO).unwrap_or_default(); -847 observer -848 .set(val.map(|addr| QadProbeReport { -849 relay: endpoint.clone(), -850 addr, -851 latency, -852 })) -853 .ok(); -854 if receiver.changed().await.is_err() { -855 break; -856 } -857 } -858 } -859 })); -860 let handle = AbortOnDropHandle::new(handle); -861 -862 Ok(( -863 report, -864 QadConn { -865 conn, -866 observer, -867 _handle: handle, -868 }, -869 )) -870} -871 -872#[cfg(not(wasm_browser))] -873async fn run_probe_v6( -874 relay: Arc<RelayConfig>, -875 quic_client: QuicClient, -876 dns_resolver: DnsResolver, -877 shutdown_token: CancellationToken, -878) -> n0_error::Result<(QadProbeReport, QadConn), QadProbeError> { -879 use quinn_proto::PathId; -880 -881 let relay_addr = reportgen::get_relay_addr_ipv6(&dns_resolver, &relay) -882 .await -883 .map_err(|source| e!(QadProbeError::GetRelayAddr { source }))?; -884 -885 trace!(?relay_addr, "resolved relay server address"); -886 let host = relay -887 .url -888 .host_str() -889 .ok_or_else(|| e!(QadProbeError::MissingHost))?; -890 let conn = quic_client -891 .create_conn(relay_addr.into(), host) -892 .await -893 .map_err(|source| e!(QadProbeError::Quic { source }))?; -894 -895 let mut receiver = conn.observed_external_addr(); -896 -897 // wait for an addr -898 let addr = receiver -899 .wait_for(|addr| addr.is_some()) -900 .await -901 .map_err(|_| e!(QadProbeError::ReceiverDropped))? -902 .expect("known"); -903 let report = QadProbeReport { -904 relay: relay.url.clone(), -905 addr: SocketAddr::new(addr.ip().to_canonical(), addr.port()), -906 latency: conn.rtt(PathId::ZERO).unwrap_or_default(), -907 }; -908 -909 let observer = Watchable::new(None); -910 let endpoint = relay.url.clone(); -911 let handle = task::spawn(shutdown_token.run_until_cancelled_owned({ -912 let observer = observer.clone(); -913 let conn = conn.clone(); -914 async move { -915 loop { -916 let val = *receiver.borrow(); -917 // if we've sent to an ipv4 address, but received an observed address -918 // that is ivp6 then the address is an [IPv4-Mapped IPv6 Addresses](https://doc.rust-lang.org/beta/std/net/struct.Ipv6Addr.html#ipv4-mapped-ipv6-addresses) -919 let val = val.map(|val| SocketAddr::new(val.ip().to_canonical(), val.port())); -920 let latency = conn.rtt(PathId::ZERO).unwrap_or_default(); -921 observer -922 .set(val.map(|addr| QadProbeReport { -923 relay: endpoint.clone(), -924 addr, -925 latency, -926 })) -927 .ok(); -928 if receiver.changed().await.is_err() { -929 break; -930 } -931 } -932 } -933 })); -934 let handle = AbortOnDropHandle::new(handle); -935 -936 Ok(( -937 report, -938 QadConn { -939 conn, -940 observer, -941 _handle: handle, -942 }, -943 )) -944} -945 -946#[cfg(test)] -947mod test_utils { -948 //! Creates a relay server against which to perform tests -949 -950 use iroh_relay::{RelayConfig, RelayQuicConfig, server}; -951 -952 pub(crate) async fn relay() -> (server::Server, RelayConfig) { -953 let server = server::Server::spawn(server::testing::server_config()) -954 .await -955 .expect("should serve relay"); -956 let quic = Some(RelayQuicConfig { -957 port: server.quic_addr().expect("server should run quic").port(), -958 }); -959 let endpoint_desc = RelayConfig { -960 url: server.https_url().expect("should work as relay"), -961 quic, -962 }; +739 // chain the current report as we are still mutating it +740 let prevs_iter = self +741 .reports +742 .prev +743 .iter() +744 .map(|(a, b)| -> (&Instant, &Report) { (a, b) }); +745 +746 let mut to_remove = Vec::new(); +747 for (t, pr) in prevs_iter { +748 if now.duration_since(*t) > MAX_AGE { +749 to_remove.push(*t); +750 continue; +751 } +752 best_recent.merge(&pr.relay_latency); +753 } +754 // merge in current run +755 best_recent.merge(&r.relay_latency); +756 +757 for t in to_remove { +758 self.reports.prev.remove(&t); +759 } +760 +761 // Then, pick which currently-alive relay server from the +762 // current report has the best latency over the past MAX_AGE. +763 let mut best_any = Duration::default(); +764 let mut old_relay_cur_latency = Duration::default(); +765 { +766 for (_, url, duration) in r.relay_latency.iter() { +767 if Some(url) == prev_relay.as_ref() { +768 old_relay_cur_latency = duration; +769 } +770 if let Some(best) = best_recent.get(url) +771 && (r.preferred_relay.is_none() || best < best_any) +772 { +773 best_any = best; +774 r.preferred_relay.replace(url.clone()); +775 } +776 } +777 +778 // If we're changing our preferred relay but the old one's still +779 // accessible and the new one's not much better, just stick with +780 // where we are. +781 if prev_relay.is_some() +782 && r.preferred_relay != prev_relay +783 && !old_relay_cur_latency.is_zero() +784 && best_any > old_relay_cur_latency / 3 * 2 +785 { +786 r.preferred_relay = prev_relay; +787 } +788 } +789 +790 self.reports.prev.insert(now, r.clone()); +791 self.reports.last = Some(r.clone()); +792 } +793} +794 +795#[cfg(not(wasm_browser))] +796async fn run_probe_v4( +797 relay: Arc<RelayConfig>, +798 quic_client: QuicClient, +799 dns_resolver: DnsResolver, +800 shutdown_token: CancellationToken, +801) -> n0_error::Result<(QadProbeReport, QadConn), QadProbeError> { +802 use quinn_proto::PathId; +803 +804 let relay_addr = reportgen::get_relay_addr_ipv4(&dns_resolver, &relay) +805 .await +806 .map_err(|source| e!(QadProbeError::GetRelayAddr { source }))?; +807 +808 trace!(?relay_addr, "resolved relay server address"); +809 let host = relay +810 .url +811 .host_str() +812 .ok_or_else(|| e!(QadProbeError::MissingHost))?; +813 let conn = quic_client +814 .create_conn(relay_addr.into(), host) +815 .await +816 .map_err(|source| e!(QadProbeError::Quic { source }))?; +817 +818 let mut receiver = conn.observed_external_addr(); +819 +820 // wait for an addr +821 let addr = receiver +822 .wait_for(|addr| addr.is_some()) +823 .await +824 .map_err(|_| e!(QadProbeError::ReceiverDropped))? +825 .expect("known"); +826 let report = QadProbeReport { +827 relay: relay.url.clone(), +828 addr: SocketAddr::new(addr.ip().to_canonical(), addr.port()), +829 latency: conn.rtt(PathId::ZERO).unwrap_or_default(), +830 }; +831 +832 let observer = Watchable::new(None); +833 let endpoint = relay.url.clone(); +834 let handle = task::spawn(shutdown_token.run_until_cancelled_owned({ +835 let conn = conn.clone(); +836 let observer = observer.clone(); +837 async move { +838 loop { +839 let val = *receiver.borrow(); +840 // if we've sent to an ipv4 address, but received an observed address +841 // that is ivp6 then the address is an [IPv4-Mapped IPv6 Addresses](https://doc.rust-lang.org/beta/std/net/struct.Ipv6Addr.html#ipv4-mapped-ipv6-addresses) +842 let val = val.map(|val| SocketAddr::new(val.ip().to_canonical(), val.port())); +843 let latency = conn.rtt(PathId::ZERO).unwrap_or_default(); +844 observer +845 .set(val.map(|addr| QadProbeReport { +846 relay: endpoint.clone(), +847 addr, +848 latency, +849 })) +850 .ok(); +851 if receiver.changed().await.is_err() { +852 break; +853 } +854 } +855 } +856 })); +857 let handle = AbortOnDropHandle::new(handle); +858 +859 Ok(( +860 report, +861 QadConn { +862 conn, +863 observer, +864 _handle: handle, +865 }, +866 )) +867} +868 +869#[cfg(not(wasm_browser))] +870async fn run_probe_v6( +871 relay: Arc<RelayConfig>, +872 quic_client: QuicClient, +873 dns_resolver: DnsResolver, +874 shutdown_token: CancellationToken, +875) -> n0_error::Result<(QadProbeReport, QadConn), QadProbeError> { +876 use quinn_proto::PathId; +877 +878 let relay_addr = reportgen::get_relay_addr_ipv6(&dns_resolver, &relay) +879 .await +880 .map_err(|source| e!(QadProbeError::GetRelayAddr { source }))?; +881 +882 trace!(?relay_addr, "resolved relay server address"); +883 let host = relay +884 .url +885 .host_str() +886 .ok_or_else(|| e!(QadProbeError::MissingHost))?; +887 let conn = quic_client +888 .create_conn(relay_addr.into(), host) +889 .await +890 .map_err(|source| e!(QadProbeError::Quic { source }))?; +891 +892 let mut receiver = conn.observed_external_addr(); +893 +894 // wait for an addr +895 let addr = receiver +896 .wait_for(|addr| addr.is_some()) +897 .await +898 .map_err(|_| e!(QadProbeError::ReceiverDropped))? +899 .expect("known"); +900 let report = QadProbeReport { +901 relay: relay.url.clone(), +902 addr: SocketAddr::new(addr.ip().to_canonical(), addr.port()), +903 latency: conn.rtt(PathId::ZERO).unwrap_or_default(), +904 }; +905 +906 let observer = Watchable::new(None); +907 let endpoint = relay.url.clone(); +908 let handle = task::spawn(shutdown_token.run_until_cancelled_owned({ +909 let observer = observer.clone(); +910 let conn = conn.clone(); +911 async move { +912 loop { +913 let val = *receiver.borrow(); +914 // if we've sent to an ipv4 address, but received an observed address +915 // that is ivp6 then the address is an [IPv4-Mapped IPv6 Addresses](https://doc.rust-lang.org/beta/std/net/struct.Ipv6Addr.html#ipv4-mapped-ipv6-addresses) +916 let val = val.map(|val| SocketAddr::new(val.ip().to_canonical(), val.port())); +917 let latency = conn.rtt(PathId::ZERO).unwrap_or_default(); +918 observer +919 .set(val.map(|addr| QadProbeReport { +920 relay: endpoint.clone(), +921 addr, +922 latency, +923 })) +924 .ok(); +925 if receiver.changed().await.is_err() { +926 break; +927 } +928 } +929 } +930 })); +931 let handle = AbortOnDropHandle::new(handle); +932 +933 Ok(( +934 report, +935 QadConn { +936 conn, +937 observer, +938 _handle: handle, +939 }, +940 )) +941} +942 +943#[cfg(test)] +944mod test_utils { +945 //! Creates a relay server against which to perform tests +946 +947 use iroh_relay::{RelayConfig, RelayQuicConfig, server}; +948 +949 pub(crate) async fn relay() -> (server::Server, RelayConfig) { +950 let server = server::Server::spawn(server::testing::server_config()) +951 .await +952 .expect("should serve relay"); +953 let quic = Some(RelayQuicConfig { +954 port: server.quic_addr().expect("server should run quic").port(), +955 }); +956 let endpoint_desc = RelayConfig { +957 url: server.https_url().expect("should work as relay"), +958 quic, +959 }; +960 +961 (server, endpoint_desc) +962 } 963 -964 (server, endpoint_desc) -965 } -966 -967 /// Create a [`crate::RelayMap`] of the given size. -968 /// -969 /// This function uses [`relay`]. Note that the returned map uses internal order that will -970 /// often _not_ match the order of the servers. -971 pub(crate) async fn relay_map(relays: usize) -> (Vec<server::Server>, crate::RelayMap) { -972 let mut servers = Vec::with_capacity(relays); -973 let mut endpoints = Vec::with_capacity(relays); -974 for _ in 0..relays { -975 let (relay_server, endpoint) = relay().await; -976 servers.push(relay_server); -977 endpoints.push(endpoint); -978 } -979 (servers, crate::RelayMap::from_iter(endpoints)) -980 } -981} -982 -983#[cfg(test)] -984mod tests { -985 use std::net::{Ipv4Addr, SocketAddr}; -986 -987 use iroh_base::RelayUrl; -988 use iroh_relay::dns::DnsResolver; +964 /// Create a [`crate::RelayMap`] of the given size. +965 /// +966 /// This function uses [`relay`]. Note that the returned map uses internal order that will +967 /// often _not_ match the order of the servers. +968 pub(crate) async fn relay_map(relays: usize) -> (Vec<server::Server>, crate::RelayMap) { +969 let mut servers = Vec::with_capacity(relays); +970 let mut endpoints = Vec::with_capacity(relays); +971 for _ in 0..relays { +972 let (relay_server, endpoint) = relay().await; +973 servers.push(relay_server); +974 endpoints.push(endpoint); +975 } +976 (servers, crate::RelayMap::from_iter(endpoints)) +977 } +978} +979 +980#[cfg(test)] +981mod tests { +982 use std::net::{Ipv4Addr, SocketAddr}; +983 +984 use iroh_base::RelayUrl; +985 use iroh_relay::{ +986 dns::DnsResolver, +987 tls::{CaRootsConfig, default_provider}, +988 }; 989 use n0_error::{Result, StdResultExt}; 990 use n0_tracing_test::traced_test; 991 use tokio_util::sync::CancellationToken; @@ -1009,228 +1009,232 @@ 1009 let relay_map = RelayMap::from(relay); 1010 1011 let resolver = DnsResolver::new(); -1012 let opts = Options::default() -1013 .quic_config(Some(quic_addr_disc.clone())) -1014 .insecure_skip_relay_cert_verify(true); -1015 let mut client = Client::new( -1016 resolver.clone(), -1017 relay_map.clone(), -1018 opts.clone(), -1019 Default::default(), -1020 ); -1021 let if_state = IfStateDetails::fake(); -1022 -1023 // Note that the ProbePlan will change with each iteration. -1024 for i in 0..5 { -1025 let cancel = CancellationToken::new(); -1026 println!("--round {i}"); -1027 let r = client -1028 .get_report(if_state.clone(), false, cancel.child_token()) -1029 .await; -1030 -1031 assert!(r.has_udp(), "want UDP"); -1032 dbg!(&r); -1033 assert!( -1034 !r.relay_latency.is_empty(), -1035 "expected at least 1 key in RelayLatency; got none", -1036 ); -1037 assert!( -1038 r.relay_latency.iter().next().is_some(), -1039 "expected key 1 in RelayLatency; got {:?}", -1040 r.relay_latency -1041 ); -1042 assert!(r.global_v4.is_some(), "expected globalV4 set"); -1043 assert!(r.preferred_relay.is_some(),); -1044 cancel.cancel(); -1045 } -1046 -1047 drop(client); -1048 ep.wait_idle().await; -1049 server.shutdown().await?; -1050 -1051 Ok(()) -1052 } -1053 -1054 #[tokio::test(flavor = "current_thread", start_paused = true)] -1055 async fn test_add_report_history_set_preferred_relay() -> Result { -1056 fn relay_url(i: u16) -> RelayUrl { -1057 format!("http://{i}.com").parse().unwrap() -1058 } -1059 -1060 // report returns a *Report from (relay host, Duration)+ pairs. -1061 fn report(a: impl IntoIterator<Item = (&'static str, u64)>) -> Option<Report> { -1062 let mut report = Report::default(); -1063 for (s, d) in a { -1064 assert!(s.starts_with('d'), "invalid relay server key"); -1065 let id: u16 = s[1..].parse().unwrap(); -1066 report.relay_latency.update_relay( -1067 relay_url(id), -1068 Duration::from_secs(d), -1069 Probe::QadIpv4, -1070 ); -1071 } -1072 -1073 Some(report) -1074 } -1075 struct Step { -1076 /// Delay in seconds -1077 after: u64, -1078 r: Option<Report>, -1079 } -1080 struct Test { -1081 name: &'static str, -1082 steps: Vec<Step>, -1083 /// want PreferredRelay on final step -1084 want_relay: Option<RelayUrl>, -1085 // wanted len(c.prev) -1086 want_prev_len: usize, -1087 } -1088 -1089 let tests = [ -1090 Test { -1091 name: "first_reading", -1092 steps: vec![Step { -1093 after: 0, -1094 r: report([("d1", 2), ("d2", 3)]), -1095 }], -1096 want_prev_len: 1, -1097 want_relay: Some(relay_url(1)), -1098 }, -1099 Test { -1100 name: "with_two", -1101 steps: vec![ -1102 Step { -1103 after: 0, -1104 r: report([("d1", 2), ("d2", 3)]), -1105 }, -1106 Step { -1107 after: 1, -1108 r: report([("d1", 4), ("d2", 3)]), -1109 }, -1110 ], -1111 want_prev_len: 2, -1112 want_relay: Some(relay_url(1)), // t0's d1 of 2 is still best -1113 }, -1114 Test { -1115 name: "but_now_d1_gone", -1116 steps: vec![ -1117 Step { -1118 after: 0, -1119 r: report([("d1", 2), ("d2", 3)]), -1120 }, -1121 Step { -1122 after: 1, -1123 r: report([("d1", 4), ("d2", 3)]), -1124 }, -1125 Step { -1126 after: 2, -1127 r: report([("d2", 3)]), -1128 }, -1129 ], -1130 want_prev_len: 3, -1131 want_relay: Some(relay_url(2)), // only option -1132 }, -1133 Test { -1134 name: "d1_is_back", -1135 steps: vec![ -1136 Step { -1137 after: 0, -1138 r: report([("d1", 2), ("d2", 3)]), -1139 }, -1140 Step { -1141 after: 1, -1142 r: report([("d1", 4), ("d2", 3)]), -1143 }, -1144 Step { -1145 after: 2, -1146 r: report([("d2", 3)]), -1147 }, -1148 Step { -1149 after: 3, -1150 r: report([("d1", 4), ("d2", 3)]), -1151 }, // same as 2 seconds ago -1152 ], -1153 want_prev_len: 4, -1154 want_relay: Some(relay_url(1)), // t0's d1 of 2 is still best -1155 }, -1156 Test { -1157 name: "things_clean_up", -1158 steps: vec![ -1159 Step { -1160 after: 0, -1161 r: report([("d1", 1), ("d2", 2)]), -1162 }, -1163 Step { -1164 after: 1, -1165 r: report([("d1", 1), ("d2", 2)]), -1166 }, -1167 Step { -1168 after: 2, -1169 r: report([("d1", 1), ("d2", 2)]), -1170 }, -1171 Step { -1172 after: 3, -1173 r: report([("d1", 1), ("d2", 2)]), -1174 }, -1175 Step { -1176 after: 10 * 60, -1177 r: report([("d3", 3)]), -1178 }, -1179 ], -1180 want_prev_len: 1, // t=[0123]s all gone. (too old, older than 10 min) -1181 want_relay: Some(relay_url(3)), // only option -1182 }, -1183 Test { -1184 name: "preferred_relay_hysteresis_no_switch", -1185 steps: vec![ -1186 Step { -1187 after: 0, -1188 r: report([("d1", 4), ("d2", 5)]), -1189 }, -1190 Step { -1191 after: 1, -1192 r: report([("d1", 4), ("d2", 3)]), -1193 }, -1194 ], -1195 want_prev_len: 2, -1196 want_relay: Some(relay_url(1)), // 2 didn't get fast enough -1197 }, -1198 Test { -1199 name: "preferred_relay_hysteresis_do_switch", -1200 steps: vec![ -1201 Step { -1202 after: 0, -1203 r: report([("d1", 4), ("d2", 5)]), -1204 }, -1205 Step { -1206 after: 1, -1207 r: report([("d1", 4), ("d2", 1)]), -1208 }, -1209 ], -1210 want_prev_len: 2, -1211 want_relay: Some(relay_url(2)), // 2 got fast enough -1212 }, -1213 ]; -1214 let resolver = DnsResolver::new(); -1215 for mut tt in tests { -1216 println!("test: {}", tt.name); -1217 let relay_map = RelayMap::empty(); -1218 let opts = Options::default(); -1219 let mut client = Client::new(resolver.clone(), relay_map, opts, Default::default()); -1220 for s in &mut tt.steps { -1221 // trigger the timer -1222 tokio::time::advance(Duration::from_secs(s.after)).await; -1223 client.add_report_history_and_set_preferred_relay(s.r.as_mut().unwrap()); -1224 } -1225 let last_report = tt.steps.last().unwrap().r.clone().unwrap(); -1226 let got = client.reports.prev.len(); -1227 let want = tt.want_prev_len; -1228 assert_eq!(got, want, "prev length"); -1229 let got = &last_report.preferred_relay; -1230 let want = &tt.want_relay; -1231 assert_eq!(got, want, "preferred_relay"); -1232 } -1233 -1234 Ok(()) -1235 } -1236} \ No newline at end of file +1012 let tls_config = CaRootsConfig::insecure_skip_verify() +1013 .client_config(default_provider()) +1014 .expect("infallible"); +1015 let opts = Options::new(tls_config).quic_config(Some(quic_addr_disc.clone())); +1016 let mut client = Client::new( +1017 resolver.clone(), +1018 relay_map.clone(), +1019 opts.clone(), +1020 Default::default(), +1021 ); +1022 let if_state = IfStateDetails::fake(); +1023 +1024 // Note that the ProbePlan will change with each iteration. +1025 for i in 0..5 { +1026 let cancel = CancellationToken::new(); +1027 println!("--round {i}"); +1028 let r = client +1029 .get_report(if_state.clone(), false, cancel.child_token()) +1030 .await; +1031 +1032 assert!(r.has_udp(), "want UDP"); +1033 dbg!(&r); +1034 assert!( +1035 !r.relay_latency.is_empty(), +1036 "expected at least 1 key in RelayLatency; got none", +1037 ); +1038 assert!( +1039 r.relay_latency.iter().next().is_some(), +1040 "expected key 1 in RelayLatency; got {:?}", +1041 r.relay_latency +1042 ); +1043 assert!(r.global_v4.is_some(), "expected globalV4 set"); +1044 assert!(r.preferred_relay.is_some(),); +1045 cancel.cancel(); +1046 } +1047 +1048 drop(client); +1049 ep.wait_idle().await; +1050 server.shutdown().await?; +1051 +1052 Ok(()) +1053 } +1054 +1055 #[tokio::test(flavor = "current_thread", start_paused = true)] +1056 async fn test_add_report_history_set_preferred_relay() -> Result { +1057 fn relay_url(i: u16) -> RelayUrl { +1058 format!("http://{i}.com").parse().unwrap() +1059 } +1060 +1061 // report returns a *Report from (relay host, Duration)+ pairs. +1062 fn report(a: impl IntoIterator<Item = (&'static str, u64)>) -> Option<Report> { +1063 let mut report = Report::default(); +1064 for (s, d) in a { +1065 assert!(s.starts_with('d'), "invalid relay server key"); +1066 let id: u16 = s[1..].parse().unwrap(); +1067 report.relay_latency.update_relay( +1068 relay_url(id), +1069 Duration::from_secs(d), +1070 Probe::QadIpv4, +1071 ); +1072 } +1073 +1074 Some(report) +1075 } +1076 struct Step { +1077 /// Delay in seconds +1078 after: u64, +1079 r: Option<Report>, +1080 } +1081 struct Test { +1082 name: &'static str, +1083 steps: Vec<Step>, +1084 /// want PreferredRelay on final step +1085 want_relay: Option<RelayUrl>, +1086 // wanted len(c.prev) +1087 want_prev_len: usize, +1088 } +1089 +1090 let tests = [ +1091 Test { +1092 name: "first_reading", +1093 steps: vec![Step { +1094 after: 0, +1095 r: report([("d1", 2), ("d2", 3)]), +1096 }], +1097 want_prev_len: 1, +1098 want_relay: Some(relay_url(1)), +1099 }, +1100 Test { +1101 name: "with_two", +1102 steps: vec![ +1103 Step { +1104 after: 0, +1105 r: report([("d1", 2), ("d2", 3)]), +1106 }, +1107 Step { +1108 after: 1, +1109 r: report([("d1", 4), ("d2", 3)]), +1110 }, +1111 ], +1112 want_prev_len: 2, +1113 want_relay: Some(relay_url(1)), // t0's d1 of 2 is still best +1114 }, +1115 Test { +1116 name: "but_now_d1_gone", +1117 steps: vec![ +1118 Step { +1119 after: 0, +1120 r: report([("d1", 2), ("d2", 3)]), +1121 }, +1122 Step { +1123 after: 1, +1124 r: report([("d1", 4), ("d2", 3)]), +1125 }, +1126 Step { +1127 after: 2, +1128 r: report([("d2", 3)]), +1129 }, +1130 ], +1131 want_prev_len: 3, +1132 want_relay: Some(relay_url(2)), // only option +1133 }, +1134 Test { +1135 name: "d1_is_back", +1136 steps: vec![ +1137 Step { +1138 after: 0, +1139 r: report([("d1", 2), ("d2", 3)]), +1140 }, +1141 Step { +1142 after: 1, +1143 r: report([("d1", 4), ("d2", 3)]), +1144 }, +1145 Step { +1146 after: 2, +1147 r: report([("d2", 3)]), +1148 }, +1149 Step { +1150 after: 3, +1151 r: report([("d1", 4), ("d2", 3)]), +1152 }, // same as 2 seconds ago +1153 ], +1154 want_prev_len: 4, +1155 want_relay: Some(relay_url(1)), // t0's d1 of 2 is still best +1156 }, +1157 Test { +1158 name: "things_clean_up", +1159 steps: vec![ +1160 Step { +1161 after: 0, +1162 r: report([("d1", 1), ("d2", 2)]), +1163 }, +1164 Step { +1165 after: 1, +1166 r: report([("d1", 1), ("d2", 2)]), +1167 }, +1168 Step { +1169 after: 2, +1170 r: report([("d1", 1), ("d2", 2)]), +1171 }, +1172 Step { +1173 after: 3, +1174 r: report([("d1", 1), ("d2", 2)]), +1175 }, +1176 Step { +1177 after: 10 * 60, +1178 r: report([("d3", 3)]), +1179 }, +1180 ], +1181 want_prev_len: 1, // t=[0123]s all gone. (too old, older than 10 min) +1182 want_relay: Some(relay_url(3)), // only option +1183 }, +1184 Test { +1185 name: "preferred_relay_hysteresis_no_switch", +1186 steps: vec![ +1187 Step { +1188 after: 0, +1189 r: report([("d1", 4), ("d2", 5)]), +1190 }, +1191 Step { +1192 after: 1, +1193 r: report([("d1", 4), ("d2", 3)]), +1194 }, +1195 ], +1196 want_prev_len: 2, +1197 want_relay: Some(relay_url(1)), // 2 didn't get fast enough +1198 }, +1199 Test { +1200 name: "preferred_relay_hysteresis_do_switch", +1201 steps: vec![ +1202 Step { +1203 after: 0, +1204 r: report([("d1", 4), ("d2", 5)]), +1205 }, +1206 Step { +1207 after: 1, +1208 r: report([("d1", 4), ("d2", 1)]), +1209 }, +1210 ], +1211 want_prev_len: 2, +1212 want_relay: Some(relay_url(2)), // 2 got fast enough +1213 }, +1214 ]; +1215 let resolver = DnsResolver::new(); +1216 let tls_config = CaRootsConfig::insecure_skip_verify() +1217 .client_config(default_provider()) +1218 .expect("infallible"); +1219 for mut tt in tests { +1220 println!("test: {}", tt.name); +1221 let relay_map = RelayMap::empty(); +1222 let opts = Options::new(tls_config.clone()); +1223 let mut client = Client::new(resolver.clone(), relay_map, opts, Default::default()); +1224 for s in &mut tt.steps { +1225 // trigger the timer +1226 tokio::time::advance(Duration::from_secs(s.after)).await; +1227 client.add_report_history_and_set_preferred_relay(s.r.as_mut().unwrap()); +1228 } +1229 let last_report = tt.steps.last().unwrap().r.clone().unwrap(); +1230 let got = client.reports.prev.len(); +1231 let want = tt.want_prev_len; +1232 assert_eq!(got, want, "prev length"); +1233 let got = &last_report.preferred_relay; +1234 let want = &tt.want_relay; +1235 assert_eq!(got, want, "preferred_relay"); +1236 } +1237 +1238 Ok(()) +1239 } +1240} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/net_report/options.rs.html b/pr/3958/docs/src/iroh/net_report/options.rs.html index 7acd749242..658a041559 100644 --- a/pr/3958/docs/src/iroh/net_report/options.rs.html +++ b/pr/3958/docs/src/iroh/net_report/options.rs.html @@ -19,102 +19,83 @@ 19 /// 20 /// If not provided, will not run QUIC address discovery. 21 pub(crate) quic_config: Option<QuicConfig>, -22 /// Enable https probes -23 /// -24 /// On by default -25 pub(crate) https: bool, -26 -27 #[cfg(any(test, feature = "test-utils"))] -28 pub(crate) insecure_skip_relay_cert_verify: bool, -29 } -30 -31 impl Default for Options { -32 fn default() -> Self { -33 Self { -34 quic_config: None, -35 https: true, -36 #[cfg(any(test, feature = "test-utils"))] -37 insecure_skip_relay_cert_verify: false, -38 } -39 } -40 } -41 -42 impl Options { -43 /// Enable quic probes -44 pub(crate) fn quic_config(mut self, quic_config: Option<QuicConfig>) -> Self { -45 self.quic_config = quic_config; -46 self -47 } -48 -49 /// Skip cert verification -50 #[cfg(any(test, feature = "test-utils"))] -51 pub(crate) fn insecure_skip_relay_cert_verify(mut self, skip: bool) -> Self { -52 self.insecure_skip_relay_cert_verify = skip; -53 self -54 } +22 /// TLS config for HTTPS probes. +23 pub(crate) tls_config: rustls::ClientConfig, +24 } +25 +26 impl Options { +27 pub(crate) fn new(tls_config: rustls::ClientConfig) -> Self { +28 Self { +29 quic_config: None, +30 tls_config, +31 } +32 } +33 /// Enable quic probes +34 pub(crate) fn quic_config(mut self, quic_config: Option<QuicConfig>) -> Self { +35 self.quic_config = quic_config; +36 self +37 } +38 +39 /// Turn the options into set of valid protocols +40 pub(crate) fn as_protocols(&self) -> BTreeSet<Probe> { +41 let mut protocols = BTreeSet::new(); +42 if let Some(ref quic) = self.quic_config { +43 if quic.ipv4 { +44 protocols.insert(Probe::QadIpv4); +45 } +46 if quic.ipv6 { +47 protocols.insert(Probe::QadIpv6); +48 } +49 } +50 protocols.insert(Probe::Https); +51 protocols +52 } +53 } +54} 55 -56 /// Turn the options into set of valid protocols -57 pub(crate) fn as_protocols(&self) -> BTreeSet<Probe> { -58 let mut protocols = BTreeSet::new(); -59 if let Some(ref quic) = self.quic_config { -60 if quic.ipv4 { -61 protocols.insert(Probe::QadIpv4); -62 } -63 if quic.ipv6 { -64 protocols.insert(Probe::QadIpv6); -65 } -66 } -67 if self.https { -68 protocols.insert(Probe::Https); -69 } -70 protocols -71 } +56#[cfg(wasm_browser)] +57mod imp { +58 use std::collections::BTreeSet; +59 +60 use crate::net_report::Probe; +61 +62 /// Options for running probes (in browsers). +63 /// +64 /// Only HTTPS probes are supported in browsers. +65 /// These are run by default. +66 #[derive(Debug, Clone)] +67 pub(crate) struct Options { +68 /// Enable https probes +69 /// +70 /// On by default +71 pub(crate) https: bool, 72 } -73} -74 -75#[cfg(wasm_browser)] -76mod imp { -77 use std::collections::BTreeSet; -78 -79 use crate::net_report::Probe; -80 -81 /// Options for running probes (in browsers). -82 /// -83 /// Only HTTPS probes are supported in browsers. -84 /// These are run by default. -85 #[derive(Debug, Clone)] -86 pub(crate) struct Options { -87 /// Enable https probes -88 /// -89 /// On by default -90 pub(crate) https: bool, -91 } -92 -93 impl Default for Options { -94 fn default() -> Self { -95 Self { https: true } -96 } -97 } -98 -99 impl Options { -100 /// Create an [`Options`] that disables all probes -101 pub(crate) fn disabled() -> Self { -102 Self { https: false } -103 } -104 -105 /// Enable or disable https probe -106 pub(crate) fn https(mut self, enable: bool) -> Self { -107 self.https = enable; -108 self -109 } -110 -111 /// Turn the options into set of valid protocols -112 pub(crate) fn as_protocols(&self) -> BTreeSet<Probe> { -113 let mut protocols = BTreeSet::new(); -114 if self.https { -115 protocols.insert(Probe::Https); -116 } -117 protocols -118 } -119 } -120} \ No newline at end of file +73 +74 impl Default for Options { +75 fn default() -> Self { +76 Self { https: true } +77 } +78 } +79 +80 impl Options { +81 /// Create an [`Options`] that disables all probes +82 pub(crate) fn disabled() -> Self { +83 Self { https: false } +84 } +85 +86 /// Enable or disable https probe +87 pub(crate) fn https(mut self, enable: bool) -> Self { +88 self.https = enable; +89 self +90 } +91 +92 /// Turn the options into set of valid protocols +93 pub(crate) fn as_protocols(&self) -> BTreeSet<Probe> { +94 let mut protocols = BTreeSet::new(); +95 if self.https { +96 protocols.insert(Probe::Https); +97 } +98 protocols +99 } +100 } +101} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/net_report/reportgen.rs.html b/pr/3958/docs/src/iroh/net_report/reportgen.rs.html index a447042ff6..cd8d9cb708 100644 --- a/pr/3958/docs/src/iroh/net_report/reportgen.rs.html +++ b/pr/3958/docs/src/iroh/net_report/reportgen.rs.html @@ -124,7 +124,7 @@ 124 if_state: IfStateDetails, 125 shutdown_token: CancellationToken, 126 #[cfg(not(wasm_browser))] socket_state: SocketState, -127 #[cfg(any(test, feature = "test-utils"))] insecure_skip_relay_cert_verify: bool, +127 #[cfg(not(wasm_browser))] tls_config: rustls::ClientConfig, 128 ) -> (Self, mpsc::Receiver<ProbeFinished>) { 129 let (msg_tx, msg_rx) = mpsc::channel(32); 130 let actor = Actor { @@ -134,8 +134,8 @@ 134 protocols, 135 #[cfg(not(wasm_browser))] 136 socket_state, -137 #[cfg(any(test, feature = "test-utils"))] -138 insecure_skip_relay_cert_verify, +137 #[cfg(not(wasm_browser))] +138 tls_config, 139 if_state, 140 }; 141 let task = task::spawn( @@ -173,8 +173,8 @@ 173 /// Any socket-related state that doesn't exist/work in browsers 174 #[cfg(not(wasm_browser))] 175 socket_state: SocketState, -176 #[cfg(any(test, feature = "test-utils"))] -177 insecure_skip_relay_cert_verify: bool, +176 #[cfg(not(wasm_browser))] +177 tls_config: rustls::ClientConfig, 178 if_state: IfStateDetails, 179} 180 @@ -289,630 +289,649 @@ 289 let dns_resolver = self.socket_state.dns_resolver.clone(); 290 let dm = self.relay_map.clone(); 291 let token = token.clone(); -292 tasks.spawn( -293 async move { -294 let res = token -295 .run_until_cancelled_owned(async move { -296 time::sleep(CAPTIVE_PORTAL_DELAY).await; -297 trace!("check started after {CAPTIVE_PORTAL_DELAY:?}"); -298 time::timeout( -299 CAPTIVE_PORTAL_TIMEOUT, -300 check_captive_portal(&dns_resolver, &dm, preferred_relay), -301 ) -302 .await -303 }) -304 .await; -305 let res = match res { -306 Some(Ok(Ok(found))) => Some(found), -307 Some(Ok(Err(err))) => { -308 match err { -309 CaptivePortalError::CreateReqwestClient { source, .. } -310 | CaptivePortalError::HttpRequest { source, .. } -311 if source.is_connect() => -312 { -313 debug!("check_captive_portal failed: {source:#}"); -314 } -315 err => warn!("check_captive_portal error: {err:#}"), -316 } -317 None -318 } -319 Some(Err(time::Elapsed { .. })) => { -320 warn!("probe timed out"); -321 None -322 } -323 None => { -324 trace!("probe cancelled"); -325 None -326 } -327 }; -328 ProbeFinished::CaptivePortal(res) -329 } -330 .instrument(warn_span!("captive-portal")), -331 ); -332 } -333 token -334 } -335 -336 /// Prepares the future which will run all the probes as per generated ProbePlan. -337 /// -338 /// Probes operate like the following: -339 /// -340 /// - A future is created for each probe in all probe sets. -341 /// - All probes in a set are grouped in [`JoinSet`]. -342 /// - All those probe sets are grouped in one overall [`JoinSet`]. -343 /// - This future is polled by the main actor loop to make progress. -344 /// - Once a probe future is polled: -345 /// - Many probes start with a delay, they sleep during this time. -346 /// - When a probe starts it first asks the reportgen [`Actor`] if it is still useful -347 /// to run. If not it aborts the entire probe set. -348 /// - When a probe finishes, its [`ProbeReport`] is yielded to the reportgen actor. -349 /// - Probes get aborted in several ways: -350 /// - A running it can fail and abort the entire probe set if it deems the -351 /// failure permanent. Probes in a probe set are essentially retries. -352 /// - Once there are [`ProbeReport`]s from enough relays, all remaining probes are -353 /// aborted. That is, the main actor loop stops polling them. -354 fn spawn_probes_task( -355 &self, -356 if_state: IfStateDetails, -357 probes: &mut JoinSet<ProbeFinished>, -358 ) -> CancellationToken { -359 trace!(?if_state, "local interface details"); -360 let plan = match self.last_report { -361 Some(ref report) => { -362 ProbePlan::with_last_report(&self.relay_map, report, &self.protocols) -363 } -364 None => ProbePlan::initial(&self.relay_map, &self.protocols), -365 }; -366 trace!(%plan, "probe plan"); -367 -368 let token = CancellationToken::new(); -369 -370 for probe_set in plan.iter() { -371 let set_token = token.child_token(); -372 let proto = probe_set.proto(); -373 for (delay, relay) in probe_set.params() { -374 let probe_token = set_token.child_token(); -375 -376 let fut = probe_token.run_until_cancelled_owned(time::timeout( -377 PROBES_TIMEOUT, -378 proto.run( -379 *delay, -380 relay.clone(), -381 #[cfg(not(wasm_browser))] -382 self.socket_state.clone(), -383 #[cfg(any(test, feature = "test-utils"))] -384 self.insecure_skip_relay_cert_verify, -385 ), -386 )); -387 probes.spawn( -388 async move { -389 let res = fut.await; -390 let res = match res { -391 Some(Ok(Ok(report))) => Ok(report), -392 Some(Ok(Err(err))) => { -393 warn!("probe failed: {:#}", err); -394 Err(e!(ProbesError::ProbeFailure, err)) -395 } -396 Some(Err(time::Elapsed { .. })) => Err(e!(ProbesError::Timeout)), -397 None => Err(e!(ProbesError::Cancelled)), -398 }; -399 ProbeFinished::Regular(res) -400 } -401 .instrument(warn_span!( -402 "run-probe", -403 ?proto, -404 ?delay, -405 ?relay, -406 )), -407 ); -408 } -409 } -410 -411 token -412 } -413} -414 -415/// The result of running a probe. -416#[derive(Debug, Clone)] -417pub(super) enum ProbeReport { -418 #[cfg(not(wasm_browser))] -419 QadIpv4(QadProbeReport), -420 #[cfg(not(wasm_browser))] -421 QadIpv6(QadProbeReport), -422 Https(HttpsProbeReport), -423} -424 -425impl ProbeReport { -426 #[cfg(not(wasm_browser))] -427 pub(super) fn is_udp(&self) -> bool { -428 matches!(self, Self::QadIpv4(_) | Self::QadIpv6(_)) -429 } -430 -431 #[cfg(wasm_browser)] -432 pub(super) fn is_udp(&self) -> bool { -433 false -434 } -435} -436 -437#[cfg(not(wasm_browser))] -438#[derive(Debug, Clone, PartialEq, Eq)] -439pub(super) struct QadProbeReport { -440 /// The relay that was probed -441 pub(super) relay: RelayUrl, -442 /// The latency to the relay. -443 pub(super) latency: Duration, -444 /// The discovered public address. -445 pub(super) addr: SocketAddr, -446} -447 -448#[derive(Debug, Clone)] -449pub(super) struct HttpsProbeReport { -450 /// The relay that was probed -451 pub(super) relay: RelayUrl, -452 /// The latency to the relay. -453 pub(super) latency: Duration, -454} -455 -456#[allow(missing_docs)] -457#[stack_error(derive, add_meta)] -458#[non_exhaustive] -459pub(super) enum ProbeError { -460 #[error("Client is gone")] -461 ClientGone, -462 #[error("Probe is no longer useful")] -463 NotUseful, -464 #[error("Failed to run HTTPS probe")] -465 Https { source: MeasureHttpsLatencyError }, -466} -467 -468#[allow(missing_docs)] -469#[stack_error(derive, add_meta)] -470#[non_exhaustive] -471pub(super) enum QuicError { -472 #[error("No relay available")] -473 NoRelay, -474 #[error("URL must have 'host' to use QUIC address discovery probes")] -475 InvalidUrl, -476} -477 -478/// Pieces needed to do QUIC address discovery. -479#[derive(derive_more::Debug, Clone)] -480pub(crate) struct QuicConfig { -481 /// A QUIC Endpoint -482 #[debug("quinn::Endpoint")] -483 pub(crate) ep: quinn::Endpoint, -484 /// A client config. -485 pub(crate) client_config: rustls::ClientConfig, -486 /// Enable ipv4 QUIC address discovery probes -487 pub(crate) ipv4: bool, -488 /// Enable ipv6 QUIC address discovery probes -489 pub(crate) ipv6: bool, -490} -491 -492impl Probe { -493 /// Executes this particular [`Probe`], including using a delayed start if needed. -494 async fn run( -495 self, -496 delay: Duration, -497 relay: Arc<RelayConfig>, -498 #[cfg(not(wasm_browser))] socket_state: SocketState, -499 #[cfg(any(test, feature = "test-utils"))] insecure_skip_relay_cert_verify: bool, -500 ) -> Result<ProbeReport, ProbeError> { -501 if !delay.is_zero() { -502 trace!("delaying probe"); -503 time::sleep(delay).await; -504 } -505 debug!("starting probe"); -506 -507 match self { -508 Probe::Https => { -509 match run_https_probe( -510 #[cfg(not(wasm_browser))] -511 &socket_state.dns_resolver, -512 relay.url.clone(), -513 #[cfg(any(test, feature = "test-utils"))] -514 insecure_skip_relay_cert_verify, -515 ) -516 .await -517 { -518 Ok(report) => Ok(ProbeReport::Https(report)), -519 Err(err) => Err(e!(ProbeError::Https, err)), -520 } -521 } -522 #[cfg(not(wasm_browser))] -523 Probe::QadIpv4 | Probe::QadIpv6 => unreachable!("must not be used"), -524 } -525 } -526} -527 -528#[cfg(not(wasm_browser))] -529#[stack_error(derive, add_meta)] -530#[non_exhaustive] -531enum CaptivePortalError { -532 #[error(transparent)] -533 DnsLookup { -534 #[error(from)] -535 source: StaggeredError<DnsError>, -536 }, -537 #[error("Creating HTTP client failed")] -538 CreateReqwestClient { -539 #[error(std_err)] -540 source: reqwest::Error, -541 }, -542 #[error("HTTP request failed")] -543 HttpRequest { -544 #[error(std_err)] -545 source: reqwest::Error, -546 }, -547} -548 -549/// Reports whether or not we think the system is behind a -550/// captive portal, detected by making a request to a URL that we know should -551/// return a "204 No Content" response and checking if that's what we get. -552/// -553/// The boolean return is whether we think we have a captive portal. -554#[cfg(not(wasm_browser))] -555async fn check_captive_portal( -556 dns_resolver: &DnsResolver, -557 dm: &RelayMap, -558 preferred_relay: Option<RelayUrl>, -559) -> Result<bool, CaptivePortalError> { -560 // If we have a preferred relay and we can use it for non-QAD requests, try that; -561 // otherwise, pick a random one suitable for non-STUN requests. -562 -563 use crate::util::reqwest_client_builder; -564 -565 let preferred_relay = preferred_relay.and_then(|url| dm.get(&url).map(|_| url)); -566 -567 let url = match preferred_relay { -568 Some(url) => url, -569 None => { -570 let urls: Vec<_> = dm.urls(); -571 if urls.is_empty() { -572 debug!("No suitable relay for captive portal check"); -573 return Ok(false); -574 } -575 -576 let i = (0..urls.len()).choose(&mut rand::rng()).unwrap_or_default(); -577 urls[i].clone() -578 } -579 }; -580 -581 let mut builder = reqwest_client_builder().redirect(reqwest::redirect::Policy::none()); -582 -583 if let Some(Host::Domain(domain)) = url.host() { -584 // Use our own resolver rather than getaddrinfo -585 // -586 // Be careful, a non-zero port will override the port in the URI. -587 // -588 // Ideally we would try to resolve **both** IPv4 and IPv6 rather than purely race -589 // them. But our resolver doesn't support that yet. -590 let addrs: Vec<_> = dns_resolver -591 .lookup_ipv4_ipv6_staggered(domain, DNS_TIMEOUT, DNS_STAGGERING_MS) -592 .await? -593 .map(|ipaddr| SocketAddr::new(ipaddr, 0)) -594 .collect(); -595 builder = builder.resolve_to_addrs(domain, &addrs); -596 } -597 let client = builder -598 .build() -599 .map_err(|err| e!(CaptivePortalError::CreateReqwestClient, err))?; -600 -601 // Note: the set of valid characters in a challenge and the total -602 // length is limited; see is_challenge_char in bin/iroh-relay for more -603 // details. -604 -605 let host_name = url.host_str().unwrap_or_default(); -606 let challenge = format!("ts_{host_name}"); -607 let portal_url = format!("http://{host_name}/generate_204"); -608 let res = client -609 .request(reqwest::Method::GET, portal_url) -610 .header("X-Iroh-Challenge", &challenge) -611 .send() -612 .await -613 .map_err(|err| e!(CaptivePortalError::HttpRequest, err))?; -614 -615 let expected_response = format!("response {challenge}"); -616 let is_valid_response = res -617 .headers() -618 .get("X-Iroh-Response") -619 .map(|s| s.to_str().unwrap_or_default()) -620 == Some(&expected_response); -621 -622 debug!( -623 "check_captive_portal url={} status_code={} valid_response={}", -624 res.url(), -625 res.status(), -626 is_valid_response, -627 ); -628 let has_captive = res.status() != 204 || !is_valid_response; -629 -630 Ok(has_captive) -631} -632 -633/// Returns the proper port based on the protocol of the probe. -634#[cfg(not(wasm_browser))] -635fn get_quic_port(relay: &RelayConfig) -> Option<u16> { -636 if let Some(ref quic) = relay.quic { -637 if quic.port == 0 { -638 Some(DEFAULT_RELAY_QUIC_PORT) -639 } else { -640 Some(quic.port) -641 } -642 } else { -643 None -644 } -645} -646 -647#[cfg(not(wasm_browser))] -648#[stack_error(derive, add_meta)] -649#[non_exhaustive] -650pub(super) enum GetRelayAddrError { -651 #[error("No valid hostname in the relay URL")] -652 InvalidHostname, -653 #[error("No suitable relay address found for {url} ({addr_type})")] -654 NoAddrFound { -655 url: RelayUrl, -656 addr_type: &'static str, -657 }, -658 #[error("DNS lookup failed")] -659 DnsLookup { source: StaggeredError<DnsError> }, -660 #[error("Relay is not suitable")] -661 UnsupportedRelay, -662 #[error("HTTPS probes are not implemented")] -663 UnsupportedHttps, -664 #[error("No port available for this protocol")] -665 MissingPort, -666} -667 -668/// Returns the IP address to use to communicate to this relay for quic. -669#[cfg(not(wasm_browser))] -670pub(super) async fn get_relay_addr_ipv4( -671 dns_resolver: &DnsResolver, -672 relay: &RelayConfig, -673) -> Result<SocketAddrV4, GetRelayAddrError> { -674 let port = get_quic_port(relay).ok_or_else(|| e!(GetRelayAddrError::MissingPort))?; -675 relay_lookup_ipv4_staggered(dns_resolver, relay, port).await -676} -677 -678#[cfg(not(wasm_browser))] -679pub(super) async fn get_relay_addr_ipv6( +292 #[cfg(not(wasm_browser))] +293 let tls_config = self.tls_config.clone(); +294 tasks.spawn( +295 async move { +296 let res = token +297 .run_until_cancelled_owned(async move { +298 time::sleep(CAPTIVE_PORTAL_DELAY).await; +299 trace!("check started after {CAPTIVE_PORTAL_DELAY:?}"); +300 time::timeout( +301 CAPTIVE_PORTAL_TIMEOUT, +302 check_captive_portal( +303 &dns_resolver, +304 &dm, +305 preferred_relay, +306 tls_config, +307 ), +308 ) +309 .await +310 }) +311 .await; +312 let res = match res { +313 Some(Ok(Ok(found))) => Some(found), +314 Some(Ok(Err(err))) => { +315 match err { +316 CaptivePortalError::CreateReqwestClient { source, .. } +317 | CaptivePortalError::HttpRequest { source, .. } +318 if source.is_connect() => +319 { +320 debug!("check_captive_portal failed: {source:#}"); +321 } +322 err => warn!("check_captive_portal error: {err:#}"), +323 } +324 None +325 } +326 Some(Err(time::Elapsed { .. })) => { +327 warn!("probe timed out"); +328 None +329 } +330 None => { +331 trace!("probe cancelled"); +332 None +333 } +334 }; +335 ProbeFinished::CaptivePortal(res) +336 } +337 .instrument(warn_span!("captive-portal")), +338 ); +339 } +340 token +341 } +342 +343 /// Prepares the future which will run all the probes as per generated ProbePlan. +344 /// +345 /// Probes operate like the following: +346 /// +347 /// - A future is created for each probe in all probe sets. +348 /// - All probes in a set are grouped in [`JoinSet`]. +349 /// - All those probe sets are grouped in one overall [`JoinSet`]. +350 /// - This future is polled by the main actor loop to make progress. +351 /// - Once a probe future is polled: +352 /// - Many probes start with a delay, they sleep during this time. +353 /// - When a probe starts it first asks the reportgen [`Actor`] if it is still useful +354 /// to run. If not it aborts the entire probe set. +355 /// - When a probe finishes, its [`ProbeReport`] is yielded to the reportgen actor. +356 /// - Probes get aborted in several ways: +357 /// - A running it can fail and abort the entire probe set if it deems the +358 /// failure permanent. Probes in a probe set are essentially retries. +359 /// - Once there are [`ProbeReport`]s from enough relays, all remaining probes are +360 /// aborted. That is, the main actor loop stops polling them. +361 fn spawn_probes_task( +362 &self, +363 if_state: IfStateDetails, +364 probes: &mut JoinSet<ProbeFinished>, +365 ) -> CancellationToken { +366 trace!(?if_state, "local interface details"); +367 let plan = match self.last_report { +368 Some(ref report) => { +369 ProbePlan::with_last_report(&self.relay_map, report, &self.protocols) +370 } +371 None => ProbePlan::initial(&self.relay_map, &self.protocols), +372 }; +373 trace!(%plan, "probe plan"); +374 +375 let token = CancellationToken::new(); +376 +377 for probe_set in plan.iter() { +378 let set_token = token.child_token(); +379 let proto = probe_set.proto(); +380 for (delay, relay) in probe_set.params() { +381 let probe_token = set_token.child_token(); +382 +383 let fut = probe_token.run_until_cancelled_owned(time::timeout( +384 PROBES_TIMEOUT, +385 proto.run( +386 *delay, +387 relay.clone(), +388 #[cfg(not(wasm_browser))] +389 self.socket_state.clone(), +390 #[cfg(not(wasm_browser))] +391 self.tls_config.clone(), +392 ), +393 )); +394 probes.spawn( +395 async move { +396 let res = fut.await; +397 let res = match res { +398 Some(Ok(Ok(report))) => Ok(report), +399 Some(Ok(Err(err))) => { +400 warn!("probe failed: {:#}", err); +401 Err(e!(ProbesError::ProbeFailure, err)) +402 } +403 Some(Err(time::Elapsed { .. })) => Err(e!(ProbesError::Timeout)), +404 None => Err(e!(ProbesError::Cancelled)), +405 }; +406 ProbeFinished::Regular(res) +407 } +408 .instrument(warn_span!( +409 "run-probe", +410 ?proto, +411 ?delay, +412 ?relay, +413 )), +414 ); +415 } +416 } +417 +418 token +419 } +420} +421 +422/// The result of running a probe. +423#[derive(Debug, Clone)] +424pub(super) enum ProbeReport { +425 #[cfg(not(wasm_browser))] +426 QadIpv4(QadProbeReport), +427 #[cfg(not(wasm_browser))] +428 QadIpv6(QadProbeReport), +429 Https(HttpsProbeReport), +430} +431 +432impl ProbeReport { +433 #[cfg(not(wasm_browser))] +434 pub(super) fn is_udp(&self) -> bool { +435 matches!(self, Self::QadIpv4(_) | Self::QadIpv6(_)) +436 } +437 +438 #[cfg(wasm_browser)] +439 pub(super) fn is_udp(&self) -> bool { +440 false +441 } +442} +443 +444#[cfg(not(wasm_browser))] +445#[derive(Debug, Clone, PartialEq, Eq)] +446pub(super) struct QadProbeReport { +447 /// The relay that was probed +448 pub(super) relay: RelayUrl, +449 /// The latency to the relay. +450 pub(super) latency: Duration, +451 /// The discovered public address. +452 pub(super) addr: SocketAddr, +453} +454 +455#[derive(Debug, Clone)] +456pub(super) struct HttpsProbeReport { +457 /// The relay that was probed +458 pub(super) relay: RelayUrl, +459 /// The latency to the relay. +460 pub(super) latency: Duration, +461} +462 +463#[allow(missing_docs)] +464#[stack_error(derive, add_meta)] +465#[non_exhaustive] +466pub(super) enum ProbeError { +467 #[error("Client is gone")] +468 ClientGone, +469 #[error("Probe is no longer useful")] +470 NotUseful, +471 #[error("Failed to run HTTPS probe")] +472 Https { source: MeasureHttpsLatencyError }, +473} +474 +475#[allow(missing_docs)] +476#[stack_error(derive, add_meta)] +477#[non_exhaustive] +478pub(super) enum QuicError { +479 #[error("No relay available")] +480 NoRelay, +481 #[error("URL must have 'host' to use QUIC address discovery probes")] +482 InvalidUrl, +483} +484 +485/// Pieces needed to do QUIC address discovery. +486#[derive(derive_more::Debug, Clone)] +487pub(crate) struct QuicConfig { +488 /// A QUIC Endpoint +489 #[debug("quinn::Endpoint")] +490 pub(crate) ep: quinn::Endpoint, +491 /// A client config. +492 pub(crate) client_config: rustls::ClientConfig, +493 /// Enable ipv4 QUIC address discovery probes +494 pub(crate) ipv4: bool, +495 /// Enable ipv6 QUIC address discovery probes +496 pub(crate) ipv6: bool, +497} +498 +499impl Probe { +500 /// Executes this particular [`Probe`], including using a delayed start if needed. +501 async fn run( +502 self, +503 delay: Duration, +504 relay: Arc<RelayConfig>, +505 #[cfg(not(wasm_browser))] socket_state: SocketState, +506 #[cfg(not(wasm_browser))] tls_config: rustls::ClientConfig, +507 ) -> Result<ProbeReport, ProbeError> { +508 if !delay.is_zero() { +509 trace!("delaying probe"); +510 time::sleep(delay).await; +511 } +512 debug!("starting probe"); +513 +514 match self { +515 Probe::Https => { +516 match run_https_probe( +517 #[cfg(not(wasm_browser))] +518 &socket_state.dns_resolver, +519 relay.url.clone(), +520 #[cfg(not(wasm_browser))] +521 tls_config, +522 ) +523 .await +524 { +525 Ok(report) => Ok(ProbeReport::Https(report)), +526 Err(err) => Err(e!(ProbeError::Https, err)), +527 } +528 } +529 #[cfg(not(wasm_browser))] +530 Probe::QadIpv4 | Probe::QadIpv6 => unreachable!("must not be used"), +531 } +532 } +533} +534 +535#[cfg(not(wasm_browser))] +536#[stack_error(derive, add_meta)] +537#[non_exhaustive] +538enum CaptivePortalError { +539 #[error(transparent)] +540 DnsLookup { +541 #[error(from)] +542 source: StaggeredError<DnsError>, +543 }, +544 #[error("Creating HTTP client failed")] +545 CreateReqwestClient { +546 #[error(std_err)] +547 source: reqwest::Error, +548 }, +549 #[error("HTTP request failed")] +550 HttpRequest { +551 #[error(std_err)] +552 source: reqwest::Error, +553 }, +554} +555 +556/// Reports whether or not we think the system is behind a +557/// captive portal, detected by making a request to a URL that we know should +558/// return a "204 No Content" response and checking if that's what we get. +559/// +560/// The boolean return is whether we think we have a captive portal. +561#[cfg(not(wasm_browser))] +562async fn check_captive_portal( +563 dns_resolver: &DnsResolver, +564 dm: &RelayMap, +565 preferred_relay: Option<RelayUrl>, +566 tls_config: rustls::ClientConfig, +567) -> Result<bool, CaptivePortalError> { +568 // If we have a preferred relay and we can use it for non-QAD requests, try that; +569 // otherwise, pick a random one suitable for non-STUN requests. +570 +571 use crate::util::reqwest_client_builder; +572 +573 let preferred_relay = preferred_relay.and_then(|url| dm.get(&url).map(|_| url)); +574 +575 let url = match preferred_relay { +576 Some(url) => url, +577 None => { +578 let urls: Vec<_> = dm.urls(); +579 if urls.is_empty() { +580 debug!("No suitable relay for captive portal check"); +581 return Ok(false); +582 } +583 +584 let i = (0..urls.len()).choose(&mut rand::rng()).unwrap_or_default(); +585 urls[i].clone() +586 } +587 }; +588 +589 let mut builder = +590 reqwest_client_builder(Some(tls_config)).redirect(reqwest::redirect::Policy::none()); +591 +592 if let Some(Host::Domain(domain)) = url.host() { +593 // Use our own resolver rather than getaddrinfo +594 // +595 // Be careful, a non-zero port will override the port in the URI. +596 // +597 // Ideally we would try to resolve **both** IPv4 and IPv6 rather than purely race +598 // them. But our resolver doesn't support that yet. +599 let addrs: Vec<_> = dns_resolver +600 .lookup_ipv4_ipv6_staggered(domain, DNS_TIMEOUT, DNS_STAGGERING_MS) +601 .await? +602 .map(|ipaddr| SocketAddr::new(ipaddr, 0)) +603 .collect(); +604 builder = builder.resolve_to_addrs(domain, &addrs); +605 } +606 let client = builder +607 .build() +608 .map_err(|err| e!(CaptivePortalError::CreateReqwestClient, err))?; +609 +610 // Note: the set of valid characters in a challenge and the total +611 // length is limited; see is_challenge_char in bin/iroh-relay for more +612 // details. +613 +614 let host_name = url.host_str().unwrap_or_default(); +615 let challenge = format!("ts_{host_name}"); +616 let portal_url = format!("http://{host_name}/generate_204"); +617 let res = client +618 .request(reqwest::Method::GET, portal_url) +619 .header("X-Iroh-Challenge", &challenge) +620 .send() +621 .await +622 .map_err(|err| e!(CaptivePortalError::HttpRequest, err))?; +623 +624 let expected_response = format!("response {challenge}"); +625 let is_valid_response = res +626 .headers() +627 .get("X-Iroh-Response") +628 .map(|s| s.to_str().unwrap_or_default()) +629 == Some(&expected_response); +630 +631 debug!( +632 "check_captive_portal url={} status_code={} valid_response={}", +633 res.url(), +634 res.status(), +635 is_valid_response, +636 ); +637 let has_captive = res.status() != 204 || !is_valid_response; +638 +639 Ok(has_captive) +640} +641 +642/// Returns the proper port based on the protocol of the probe. +643#[cfg(not(wasm_browser))] +644fn get_quic_port(relay: &RelayConfig) -> Option<u16> { +645 if let Some(ref quic) = relay.quic { +646 if quic.port == 0 { +647 Some(DEFAULT_RELAY_QUIC_PORT) +648 } else { +649 Some(quic.port) +650 } +651 } else { +652 None +653 } +654} +655 +656#[cfg(not(wasm_browser))] +657#[stack_error(derive, add_meta)] +658#[non_exhaustive] +659pub(super) enum GetRelayAddrError { +660 #[error("No valid hostname in the relay URL")] +661 InvalidHostname, +662 #[error("No suitable relay address found for {url} ({addr_type})")] +663 NoAddrFound { +664 url: RelayUrl, +665 addr_type: &'static str, +666 }, +667 #[error("DNS lookup failed")] +668 DnsLookup { source: StaggeredError<DnsError> }, +669 #[error("Relay is not suitable")] +670 UnsupportedRelay, +671 #[error("HTTPS probes are not implemented")] +672 UnsupportedHttps, +673 #[error("No port available for this protocol")] +674 MissingPort, +675} +676 +677/// Returns the IP address to use to communicate to this relay for quic. +678#[cfg(not(wasm_browser))] +679pub(super) async fn get_relay_addr_ipv4( 680 dns_resolver: &DnsResolver, 681 relay: &RelayConfig, -682) -> Result<SocketAddrV6, GetRelayAddrError> { +682) -> Result<SocketAddrV4, GetRelayAddrError> { 683 let port = get_quic_port(relay).ok_or_else(|| e!(GetRelayAddrError::MissingPort))?; -684 relay_lookup_ipv6_staggered(dns_resolver, relay, port).await +684 relay_lookup_ipv4_staggered(dns_resolver, relay, port).await 685} 686 -687/// Do a staggared ipv4 DNS lookup based on [`RelayConfig`] -688/// -689/// `port` is combined with the resolved [`std::net::Ipv4Addr`] to return a [`SocketAddr`] -690#[cfg(not(wasm_browser))] -691async fn relay_lookup_ipv4_staggered( -692 dns_resolver: &DnsResolver, -693 relay: &RelayConfig, -694 port: u16, -695) -> Result<SocketAddrV4, GetRelayAddrError> { -696 match relay.url.host() { -697 Some(url::Host::Domain(hostname)) => { -698 trace!(%hostname, "Performing DNS A lookup for relay addr"); -699 match dns_resolver -700 .lookup_ipv4_staggered(hostname, DNS_TIMEOUT, DNS_STAGGERING_MS) -701 .await -702 { -703 Ok(mut addrs) => addrs -704 .next() -705 .map(|ip| ip.to_canonical()) -706 .map(|addr| match addr { -707 IpAddr::V4(ip) => SocketAddrV4::new(ip, port), -708 IpAddr::V6(_) => unreachable!("bad DNS lookup: {:?}", addr), -709 }) -710 .ok_or_else(|| { -711 e!(GetRelayAddrError::NoAddrFound { -712 url: relay.url.clone(), -713 addr_type: "A", -714 }) -715 }), -716 Err(err) => Err(e!(GetRelayAddrError::DnsLookup, err)), -717 } -718 } -719 Some(url::Host::Ipv4(addr)) => Ok(SocketAddrV4::new(addr, port)), -720 Some(url::Host::Ipv6(_addr)) => Err(e!(GetRelayAddrError::NoAddrFound { -721 url: relay.url.clone(), -722 addr_type: "A", -723 })), -724 None => Err(e!(GetRelayAddrError::InvalidHostname)), -725 } -726} -727 -728/// Do a staggared ipv6 DNS lookup based on [`RelayConfig`] -729/// -730/// `port` is combined with the resolved [`std::net::Ipv6Addr`] to return a [`SocketAddr`] -731#[cfg(not(wasm_browser))] -732async fn relay_lookup_ipv6_staggered( -733 dns_resolver: &DnsResolver, -734 relay: &RelayConfig, -735 port: u16, -736) -> Result<SocketAddrV6, GetRelayAddrError> { -737 match relay.url.host() { -738 Some(url::Host::Domain(hostname)) => { -739 trace!(%hostname, "Performing DNS AAAA lookup for relay addr"); -740 match dns_resolver -741 .lookup_ipv6_staggered(hostname, DNS_TIMEOUT, DNS_STAGGERING_MS) -742 .await -743 { -744 Ok(mut addrs) => addrs -745 .next() -746 .map(|addr| match addr { -747 IpAddr::V4(_) => unreachable!("bad DNS lookup: {:?}", addr), -748 IpAddr::V6(ip) => SocketAddrV6::new(ip, port, 0, 0), -749 }) -750 .ok_or_else(|| { -751 e!(GetRelayAddrError::NoAddrFound { -752 url: relay.url.clone(), -753 addr_type: "AAAA", -754 }) -755 }), -756 Err(err) => Err(e!(GetRelayAddrError::DnsLookup, err)), -757 } -758 } -759 Some(url::Host::Ipv4(_addr)) => Err(e!(GetRelayAddrError::NoAddrFound { -760 url: relay.url.clone(), -761 addr_type: "AAAA", -762 })), -763 Some(url::Host::Ipv6(addr)) => Ok(SocketAddrV6::new(addr, port, 0, 0)), -764 None => Err(e!(GetRelayAddrError::InvalidHostname)), -765 } -766} -767 -768#[stack_error(derive, add_meta)] -769#[non_exhaustive] -770pub(super) enum MeasureHttpsLatencyError { -771 #[error(transparent)] -772 InvalidUrl { -773 #[error(std_err, from)] -774 source: url::ParseError, -775 }, -776 #[cfg(not(wasm_browser))] -777 #[error(transparent)] -778 DnsLookup { -779 #[error(from)] -780 source: StaggeredError<DnsError>, -781 }, -782 #[error("Creating HTTP client failed")] -783 CreateReqwestClient { -784 #[error(std_err)] -785 source: reqwest::Error, -786 }, -787 #[error("HTTP request failed")] -788 HttpRequest { -789 #[error(std_err)] -790 source: reqwest::Error, -791 }, -792 #[error("Error response from server {status}: {:?}", status.canonical_reason())] -793 InvalidResponse { status: StatusCode }, -794} -795 -796/// Executes an HTTPS probe. -797/// -798/// If `certs` is provided they will be added to the trusted root certificates, allowing the -799/// use of self-signed certificates for servers. Currently this is used for testing. -800#[allow(clippy::unused_async)] -801async fn run_https_probe( -802 #[cfg(not(wasm_browser))] dns_resolver: &DnsResolver, -803 relay: RelayUrl, -804 #[cfg(any(test, feature = "test-utils"))] insecure_skip_relay_cert_verify: bool, -805) -> Result<HttpsProbeReport, MeasureHttpsLatencyError> { -806 trace!("HTTPS probe start"); -807 let url = relay.join(RELAY_PROBE_PATH)?; -808 -809 // This should also use same connection establishment as relay client itself, which -810 // needs to be more configurable so users can do more crazy things: -811 // https://github.com/n0-computer/iroh/issues/2901 -812 let mut builder = reqwest_client_builder(); -813 -814 #[cfg(not(wasm_browser))] -815 { -816 builder = builder.redirect(reqwest::redirect::Policy::none()); -817 } -818 -819 #[cfg(not(wasm_browser))] -820 if let Some(Host::Domain(domain)) = url.host() { -821 // Use our own resolver rather than getaddrinfo -822 // -823 // Be careful, a non-zero port will override the port in the URI. -824 // -825 // The relay Client uses `.lookup_ipv4_ipv6` to connect, so use the same function -826 // but staggered for reliability. Ideally this tries to resolve **both** IPv4 and -827 // IPv6 though. But our resolver does not have a function for that yet. -828 let addrs: Vec<_> = dns_resolver -829 .lookup_ipv4_ipv6_staggered(domain, DNS_TIMEOUT, DNS_STAGGERING_MS) -830 .await? -831 .map(|ipaddr| SocketAddr::new(ipaddr, 0)) -832 .collect(); -833 trace!(?addrs, "resolved addrs"); -834 builder = builder.resolve_to_addrs(domain, &addrs); -835 } -836 -837 #[cfg(all(not(wasm_browser), any(test, feature = "test-utils")))] -838 let builder = builder.danger_accept_invalid_certs(insecure_skip_relay_cert_verify); -839 -840 let client = builder -841 .build() -842 .map_err(|err| e!(MeasureHttpsLatencyError::CreateReqwestClient, err))?; -843 -844 let start = Instant::now(); -845 let response = client -846 .request(reqwest::Method::GET, url) -847 .send() -848 .await -849 .map_err(|err| e!(MeasureHttpsLatencyError::HttpRequest, err))?; -850 let latency = start.elapsed(); -851 if response.status().is_success() { -852 // Drain the response body to be nice to the server, up to a limit. -853 const MAX_BODY_SIZE: usize = 8 << 10; // 8 KiB -854 let mut body_size = 0; -855 let mut stream = response.bytes_stream(); -856 // ignore failing frames -857 while let Some(Ok(chunk)) = stream.next().await { -858 body_size += chunk.len(); -859 if body_size >= MAX_BODY_SIZE { -860 break; -861 } -862 } -863 -864 Ok(HttpsProbeReport { relay, latency }) -865 } else { -866 Err(e!(MeasureHttpsLatencyError::InvalidResponse { -867 status: response.status() -868 })) -869 } -870} -871 -872#[cfg(test)] -873mod tests { -874 use std::net::Ipv4Addr; -875 -876 use iroh_relay::dns::DnsResolver; -877 use n0_error::{Result, StdResultExt}; -878 use n0_tracing_test::traced_test; -879 -880 use super::{super::test_utils, *}; -881 -882 #[tokio::test] -883 async fn test_measure_https_latency() -> Result { -884 let (_server, relay) = test_utils::relay().await; -885 let dns_resolver = DnsResolver::new(); -886 tracing::info!(relay_url = ?relay.url , "RELAY_URL"); -887 let report = run_https_probe(&dns_resolver, relay.url, true).await?; -888 -889 assert!(report.latency > Duration::ZERO); -890 -891 Ok(()) -892 } +687#[cfg(not(wasm_browser))] +688pub(super) async fn get_relay_addr_ipv6( +689 dns_resolver: &DnsResolver, +690 relay: &RelayConfig, +691) -> Result<SocketAddrV6, GetRelayAddrError> { +692 let port = get_quic_port(relay).ok_or_else(|| e!(GetRelayAddrError::MissingPort))?; +693 relay_lookup_ipv6_staggered(dns_resolver, relay, port).await +694} +695 +696/// Do a staggared ipv4 DNS lookup based on [`RelayConfig`] +697/// +698/// `port` is combined with the resolved [`std::net::Ipv4Addr`] to return a [`SocketAddr`] +699#[cfg(not(wasm_browser))] +700async fn relay_lookup_ipv4_staggered( +701 dns_resolver: &DnsResolver, +702 relay: &RelayConfig, +703 port: u16, +704) -> Result<SocketAddrV4, GetRelayAddrError> { +705 match relay.url.host() { +706 Some(url::Host::Domain(hostname)) => { +707 trace!(%hostname, "Performing DNS A lookup for relay addr"); +708 match dns_resolver +709 .lookup_ipv4_staggered(hostname, DNS_TIMEOUT, DNS_STAGGERING_MS) +710 .await +711 { +712 Ok(mut addrs) => addrs +713 .next() +714 .map(|ip| ip.to_canonical()) +715 .map(|addr| match addr { +716 IpAddr::V4(ip) => SocketAddrV4::new(ip, port), +717 IpAddr::V6(_) => unreachable!("bad DNS lookup: {:?}", addr), +718 }) +719 .ok_or_else(|| { +720 e!(GetRelayAddrError::NoAddrFound { +721 url: relay.url.clone(), +722 addr_type: "A", +723 }) +724 }), +725 Err(err) => Err(e!(GetRelayAddrError::DnsLookup, err)), +726 } +727 } +728 Some(url::Host::Ipv4(addr)) => Ok(SocketAddrV4::new(addr, port)), +729 Some(url::Host::Ipv6(_addr)) => Err(e!(GetRelayAddrError::NoAddrFound { +730 url: relay.url.clone(), +731 addr_type: "A", +732 })), +733 None => Err(e!(GetRelayAddrError::InvalidHostname)), +734 } +735} +736 +737/// Do a staggared ipv6 DNS lookup based on [`RelayConfig`] +738/// +739/// `port` is combined with the resolved [`std::net::Ipv6Addr`] to return a [`SocketAddr`] +740#[cfg(not(wasm_browser))] +741async fn relay_lookup_ipv6_staggered( +742 dns_resolver: &DnsResolver, +743 relay: &RelayConfig, +744 port: u16, +745) -> Result<SocketAddrV6, GetRelayAddrError> { +746 match relay.url.host() { +747 Some(url::Host::Domain(hostname)) => { +748 trace!(%hostname, "Performing DNS AAAA lookup for relay addr"); +749 match dns_resolver +750 .lookup_ipv6_staggered(hostname, DNS_TIMEOUT, DNS_STAGGERING_MS) +751 .await +752 { +753 Ok(mut addrs) => addrs +754 .next() +755 .map(|addr| match addr { +756 IpAddr::V4(_) => unreachable!("bad DNS lookup: {:?}", addr), +757 IpAddr::V6(ip) => SocketAddrV6::new(ip, port, 0, 0), +758 }) +759 .ok_or_else(|| { +760 e!(GetRelayAddrError::NoAddrFound { +761 url: relay.url.clone(), +762 addr_type: "AAAA", +763 }) +764 }), +765 Err(err) => Err(e!(GetRelayAddrError::DnsLookup, err)), +766 } +767 } +768 Some(url::Host::Ipv4(_addr)) => Err(e!(GetRelayAddrError::NoAddrFound { +769 url: relay.url.clone(), +770 addr_type: "AAAA", +771 })), +772 Some(url::Host::Ipv6(addr)) => Ok(SocketAddrV6::new(addr, port, 0, 0)), +773 None => Err(e!(GetRelayAddrError::InvalidHostname)), +774 } +775} +776 +777#[stack_error(derive, add_meta)] +778#[non_exhaustive] +779pub(super) enum MeasureHttpsLatencyError { +780 #[error(transparent)] +781 InvalidUrl { +782 #[error(std_err, from)] +783 source: url::ParseError, +784 }, +785 #[cfg(not(wasm_browser))] +786 #[error(transparent)] +787 DnsLookup { +788 #[error(from)] +789 source: StaggeredError<DnsError>, +790 }, +791 #[error("Creating HTTP client failed")] +792 CreateReqwestClient { +793 #[error(std_err)] +794 source: reqwest::Error, +795 }, +796 #[error("HTTP request failed")] +797 HttpRequest { +798 #[error(std_err)] +799 source: reqwest::Error, +800 }, +801 #[error("Error response from server {status}: {:?}", status.canonical_reason())] +802 InvalidResponse { status: StatusCode }, +803} +804 +805/// Executes an HTTPS probe. +806/// +807/// If `certs` is provided they will be added to the trusted root certificates, allowing the +808/// use of self-signed certificates for servers. Currently this is used for testing. +809#[allow(clippy::unused_async)] +810async fn run_https_probe( +811 #[cfg(not(wasm_browser))] dns_resolver: &DnsResolver, +812 relay: RelayUrl, +813 #[cfg(not(wasm_browser))] tls_config: rustls::ClientConfig, +814) -> Result<HttpsProbeReport, MeasureHttpsLatencyError> { +815 trace!("HTTPS probe start"); +816 let url = relay.join(RELAY_PROBE_PATH)?; +817 +818 // This should also use same connection establishment as relay client itself, which +819 // needs to be more configurable so users can do more crazy things: +820 // https://github.com/n0-computer/iroh/issues/2901 +821 #[cfg(not(wasm_browser))] +822 let mut builder = reqwest_client_builder(Some(tls_config)); +823 #[cfg(wasm_browser)] +824 let mut builder = reqwest_client_builder(None); +825 +826 #[cfg(not(wasm_browser))] +827 { +828 builder = builder.redirect(reqwest::redirect::Policy::none()); +829 } +830 +831 #[cfg(not(wasm_browser))] +832 if let Some(Host::Domain(domain)) = url.host() { +833 // Use our own resolver rather than getaddrinfo +834 // +835 // Be careful, a non-zero port will override the port in the URI. +836 // +837 // The relay Client uses `.lookup_ipv4_ipv6` to connect, so use the same function +838 // but staggered for reliability. Ideally this tries to resolve **both** IPv4 and +839 // IPv6 though. But our resolver does not have a function for that yet. +840 let addrs: Vec<_> = dns_resolver +841 .lookup_ipv4_ipv6_staggered(domain, DNS_TIMEOUT, DNS_STAGGERING_MS) +842 .await? +843 .map(|ipaddr| SocketAddr::new(ipaddr, 0)) +844 .collect(); +845 trace!(?addrs, "resolved addrs"); +846 builder = builder.resolve_to_addrs(domain, &addrs); +847 } +848 +849 let client = builder +850 .build() +851 .map_err(|err| e!(MeasureHttpsLatencyError::CreateReqwestClient, err))?; +852 +853 let start = Instant::now(); +854 let response = client +855 .request(reqwest::Method::GET, url) +856 .send() +857 .await +858 .map_err(|err| e!(MeasureHttpsLatencyError::HttpRequest, err))?; +859 let latency = start.elapsed(); +860 if response.status().is_success() { +861 // Drain the response body to be nice to the server, up to a limit. +862 const MAX_BODY_SIZE: usize = 8 << 10; // 8 KiB +863 let mut body_size = 0; +864 let mut stream = response.bytes_stream(); +865 // ignore failing frames +866 while let Some(Ok(chunk)) = stream.next().await { +867 body_size += chunk.len(); +868 if body_size >= MAX_BODY_SIZE { +869 break; +870 } +871 } +872 +873 Ok(HttpsProbeReport { relay, latency }) +874 } else { +875 Err(e!(MeasureHttpsLatencyError::InvalidResponse { +876 status: response.status() +877 })) +878 } +879} +880 +881#[cfg(test)] +882mod tests { +883 use std::net::Ipv4Addr; +884 +885 use iroh_relay::{ +886 dns::DnsResolver, +887 tls::{CaRootsConfig, default_provider}, +888 }; +889 use n0_error::{Result, StdResultExt}; +890 use n0_tracing_test::traced_test; +891 +892 use super::{super::test_utils, *}; 893 894 #[tokio::test] -895 #[traced_test] -896 async fn test_qad_probe_v4() -> Result { -897 let (server, relay) = test_utils::relay().await; -898 let relay = Arc::new(relay); -899 let client_config = iroh_relay::client::make_dangerous_client_config(); -900 let ep = -901 quinn::Endpoint::client(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0)).anyerr()?; -902 let client_addr = ep.local_addr().anyerr()?; -903 -904 let quic_client = iroh_relay::quic::QuicClient::new(ep.clone(), client_config); -905 let dns_resolver = DnsResolver::default(); -906 -907 let (report, conn) = -908 super::super::run_probe_v4(relay, quic_client, dns_resolver, CancellationToken::new()) -909 .await -910 .unwrap(); -911 -912 assert_eq!(report.addr, client_addr); -913 drop(conn); -914 ep.wait_idle().await; -915 server.shutdown().await?; -916 Ok(()) -917 } -918} \ No newline at end of file +895 async fn test_measure_https_latency() -> Result { +896 let (_server, relay) = test_utils::relay().await; +897 let dns_resolver = DnsResolver::new(); +898 tracing::info!(relay_url = ?relay.url , "RELAY_URL"); +899 let report = run_https_probe( +900 &dns_resolver, +901 relay.url, +902 CaRootsConfig::insecure_skip_verify() +903 .client_config(default_provider()) +904 .expect("infallible"), +905 ) +906 .await?; +907 +908 assert!(report.latency > Duration::ZERO); +909 +910 Ok(()) +911 } +912 +913 #[tokio::test] +914 #[traced_test] +915 async fn test_qad_probe_v4() -> Result { +916 let (server, relay) = test_utils::relay().await; +917 let relay = Arc::new(relay); +918 let client_config = iroh_relay::client::make_dangerous_client_config(); +919 let ep = +920 quinn::Endpoint::client(SocketAddr::new(Ipv4Addr::LOCALHOST.into(), 0)).anyerr()?; +921 let client_addr = ep.local_addr().anyerr()?; +922 +923 let quic_client = iroh_relay::quic::QuicClient::new(ep.clone(), client_config); +924 let dns_resolver = DnsResolver::default(); +925 +926 let (report, conn) = +927 super::super::run_probe_v4(relay, quic_client, dns_resolver, CancellationToken::new()) +928 .await +929 .unwrap(); +930 +931 assert_eq!(report.addr, client_addr); +932 drop(conn); +933 ep.wait_idle().await; +934 server.shutdown().await?; +935 Ok(()) +936 } +937} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/socket.rs.html b/pr/3958/docs/src/iroh/socket.rs.html index b3c963b103..6f2c4845ca 100644 --- a/pr/3958/docs/src/iroh/socket.rs.html +++ b/pr/3958/docs/src/iroh/socket.rs.html @@ -138,2275 +138,2308 @@ 138 /// Proxy configuration. 139 pub(crate) proxy_url: Option<Url>, 140 -141 /// ServerConfig for the internal QUIC endpoint -142 pub(crate) server_config: quinn_proto::ServerConfig, +141 /// TLS configuration for HTTPS and non-iroh-QUIC connections. +142 pub(crate) tls_config: rustls::ClientConfig, 143 -144 /// Skip verification of SSL certificates from relay servers -145 /// -146 /// May only be used in tests. -147 #[cfg(any(test, feature = "test-utils"))] -148 pub(crate) insecure_skip_relay_cert_verify: bool, -149 pub(crate) metrics: EndpointMetrics, -150 pub(crate) hooks: EndpointHooksList, -151 -152 /// Static configuration for the endpoint. -153 pub(crate) static_config: StaticConfig, -154} -155 -156/// Inner state for an iroh [`crate::Endpoint`]. -157/// -158/// Dereferences to [`Socket`], and handles closing. -159#[derive(Debug, derive_more::Deref)] -160pub(crate) struct EndpointInner { -161 #[deref(forward)] -162 sock: Arc<Socket>, -163 // empty when shutdown -164 actor_task: Mutex<Option<AbortOnDropHandle<()>>>, -165 /// Channel to send to the internal actor. -166 actor_sender: mpsc::Sender<ActorMessage>, -167 // quinn endpoint -168 endpoint: quinn::Endpoint, -169 // Runtime used by quinn -170 runtime: Arc<Runtime>, -171 /// Static configuration for the endpoint. -172 pub(crate) static_config: StaticConfig, -173} -174 -175impl Drop for EndpointInner { -176 fn drop(&mut self) { -177 if self.sock.is_closed() { -178 return; -179 } -180 tracing::error!( -181 "Endpoint dropped without calling `Endpoint::close`. Aborting ungracefully." -182 ); -183 self.abort(); -184 } -185} -186 -187/// Configuration for a [`quinn::Endpoint`] that cannot be changed at runtime. -188#[derive(Debug)] -189pub(crate) struct StaticConfig { -190 pub(crate) tls_config: tls::TlsConfig, -191 pub(crate) transport_config: QuicTransportConfig, -192 pub(crate) keylog: bool, -193} -194 -195impl StaticConfig { -196 /// Create a [`quinn_proto::ServerConfig`] with the specified ALPN protocols. -197 pub(crate) fn create_server_config( -198 &self, -199 alpn_protocols: Vec<Vec<u8>>, -200 ) -> quinn_proto::ServerConfig { -201 let quic_server_config = self -202 .tls_config -203 .make_server_config(alpn_protocols, self.keylog); -204 let mut inner = quinn::ServerConfig::with_crypto(Arc::new(quic_server_config)); -205 inner.transport_config(self.transport_config.to_inner_arc()); -206 inner -207 } -208} -209 -210#[derive(Debug)] -211struct ShutdownState { -212 at_close_start: CancellationToken, -213 at_endpoint_closed: CancellationToken, -214 closed: AtomicBool, -215} -216 -217impl Default for ShutdownState { -218 fn default() -> Self { -219 Self { -220 at_close_start: CancellationToken::new(), -221 at_endpoint_closed: CancellationToken::new(), -222 closed: AtomicBool::new(false), -223 } -224 } -225} -226 -227impl ShutdownState { -228 fn is_closing(&self) -> bool { -229 self.at_close_start.is_cancelled() -230 } -231 -232 fn is_closed(&self) -> bool { -233 self.closed.load(Ordering::Relaxed) -234 } -235} -236 -237/// Iroh connectivity layer. -238/// -239/// This is responsible for routing packets to endpoints based on endpoint IDs, it will initially -240/// route packets via a relay and transparently try and establish an endpoint-to-endpoint -241/// connection and upgrade to it. It will also keep looking for better connections as the -242/// network details of both endpoints change. -243/// -244/// It is usually only necessary to use a single [`Socket`] instance in an application, it -245/// means any QUIC endpoints on top will be sharing as much information about endpoints as -246/// possible. -247#[derive(Debug)] -248pub(crate) struct Socket { -249 /// Channels for sending time-crucial messages to `RemoteStateActors`. +144 /// ServerConfig for the internal QUIC endpoint +145 pub(crate) server_config: quinn_proto::ServerConfig, +146 +147 pub(crate) metrics: EndpointMetrics, +148 pub(crate) hooks: EndpointHooksList, +149 +150 /// Static configuration for the endpoint. +151 pub(crate) static_config: StaticConfig, +152} +153 +154/// Inner state for an iroh [`crate::Endpoint`]. +155/// +156/// Dereferences to [`Socket`], and handles closing. +157#[derive(Debug, derive_more::Deref)] +158pub(crate) struct EndpointInner { +159 #[deref(forward)] +160 sock: Arc<Socket>, +161 // empty when shutdown +162 actor_task: Mutex<Option<AbortOnDropHandle<()>>>, +163 /// Channel to send to the internal actor. +164 actor_sender: mpsc::Sender<ActorMessage>, +165 // quinn endpoint +166 endpoint: quinn::Endpoint, +167 // Runtime used by quinn +168 runtime: Arc<Runtime>, +169 /// Static configuration for the endpoint. +170 pub(crate) static_config: StaticConfig, +171} +172 +173impl Drop for EndpointInner { +174 fn drop(&mut self) { +175 if self.sock.is_closed() { +176 return; +177 } +178 tracing::error!( +179 "Endpoint dropped without calling `Endpoint::close`. Aborting ungracefully." +180 ); +181 self.abort(); +182 } +183} +184 +185/// Configuration for a [`quinn::Endpoint`] that cannot be changed at runtime. +186#[derive(Debug)] +187pub(crate) struct StaticConfig { +188 pub(crate) tls_config: tls::TlsConfig, +189 pub(crate) transport_config: QuicTransportConfig, +190 pub(crate) keylog: bool, +191} +192 +193impl StaticConfig { +194 /// Create a [`quinn_proto::ServerConfig`] with the specified ALPN protocols. +195 pub(crate) fn create_server_config( +196 &self, +197 alpn_protocols: Vec<Vec<u8>>, +198 ) -> quinn_proto::ServerConfig { +199 let quic_server_config = self +200 .tls_config +201 .make_server_config(alpn_protocols, self.keylog); +202 let mut inner = quinn::ServerConfig::with_crypto(Arc::new(quic_server_config)); +203 inner.transport_config(self.transport_config.to_inner_arc()); +204 inner +205 } +206} +207 +208/// This coordinates the shutdown of the [`Socket`] and all its tasks. +209/// +210/// It also tightly binds to the [`EndpointInner`] and [`Actor`] closing as that is where +211/// most of the logic lives. +212#[derive(Debug)] +213struct ShutdownState { +214 /// Token that is cancelled at the moment [`crate::Endpoint::close`] is called. +215 /// +216 /// Currently cancelled from [`EndpointInner::close`]. +217 at_close_start: CancellationToken, +218 /// Token that is cancelled once the [`quinn::Endpoint`] is drained. +219 /// +220 /// Only 100ms after this is cancelled will the [`Actor`] task be cancelled, it should +221 /// have exited already by then as it is considered an error if it was still running. +222 at_endpoint_closed: CancellationToken, +223 /// Set if the endpoint is closed and all tasks are stopped. +224 /// +225 /// This is only set once both [`Self::at_close_start`] and [`Self::at_endpoint_closed`] +226 /// are cancelled **and** the [`Actor`] task is no longer running. +227 closed: AtomicBool, +228} +229 +230impl Default for ShutdownState { +231 fn default() -> Self { +232 Self { +233 at_close_start: CancellationToken::new(), +234 at_endpoint_closed: CancellationToken::new(), +235 closed: AtomicBool::new(false), +236 } +237 } +238} +239 +240impl ShutdownState { +241 /// Whether the endpoint has started closing, or is already closed. +242 /// +243 /// This is true once [`crate::Endpoint::close`] is called, and remains true forever +244 /// after. Tasks might still be shutting down. +245 fn is_closing(&self) -> bool { +246 self.at_close_start.is_cancelled() +247 } +248 +249 /// Whether the endpoint is fully closed and all tasks stopped. 250 /// -251 /// Currently only exists to support sending `SendDatagram` messages. -252 remote_actors: ReadOnlyMap<EndpointId, mpsc::Sender<RemoteStateMessage>>, -253 -254 /// EndpointId of this endpoint. -255 public_key: PublicKey, +251 /// The endpoint will be drained, all transports and sockets will be closed. +252 fn is_closed(&self) -> bool { +253 self.closed.load(Ordering::Relaxed) +254 } +255} 256 -257 // - Shutdown Management -258 shutdown: ShutdownState, -259 -260 // - Networking Info -261 /// Our discovered direct addresses. -262 direct_addrs: DiscoveredDirectAddrs, -263 /// Our latest net-report -264 net_report: Watchable<(Option<Report>, UpdateReason)>, -265 /// If the last net_report report, reports IPv6 to be available. -266 ipv6_reported: Arc<AtomicBool>, -267 /// Maps for resolving mapped addrs to/from IP and relay addresses. -268 mapped_addrs: MappedAddrs, -269 -270 /// Local addresses -271 local_addrs_watch: LocalAddrsWatch, -272 /// Currently bound IP addresses of all sockets -273 #[cfg(not(wasm_browser))] -274 ip_bind_addrs: Vec<SocketAddr>, -275 /// The DNS resolver to be used in this socket. -276 #[cfg(not(wasm_browser))] -277 dns_resolver: DnsResolver, -278 relay_map: RelayMap, +257/// Iroh connectivity layer. +258/// +259/// This is responsible for routing packets to endpoints based on endpoint IDs, it will initially +260/// route packets via a relay and transparently try and establish an endpoint-to-endpoint +261/// connection and upgrade to it. It will also keep looking for better connections as the +262/// network details of both endpoints change. +263/// +264/// It is usually only necessary to use a single [`Socket`] instance in an application, it +265/// means any QUIC endpoints on top will be sharing as much information about endpoints as +266/// possible. +267#[derive(Debug)] +268pub(crate) struct Socket { +269 /// Channels for sending time-crucial messages to `RemoteStateActors`. +270 /// +271 /// Currently only exists to support sending `SendDatagram` messages. +272 remote_actors: ReadOnlyMap<EndpointId, mpsc::Sender<RemoteStateMessage>>, +273 +274 /// EndpointId of this endpoint. +275 public_key: PublicKey, +276 +277 // - Shutdown Management +278 shutdown: ShutdownState, 279 -280 /// Optional Address Lookup -281 address_lookup: address_lookup::ConcurrentAddressLookup, -282 /// Optional user-defined discover data. -283 address_lookup_user_data: RwLock<Option<UserData>>, -284 -285 /// Metrics -286 pub(crate) metrics: EndpointMetrics, -287 pub(crate) hooks: EndpointHooksList, -288} +280 // - Networking Info +281 /// Our discovered direct addresses. +282 direct_addrs: DiscoveredDirectAddrs, +283 /// Our latest net-report +284 net_report: Watchable<(Option<Report>, UpdateReason)>, +285 /// If the last net_report report, reports IPv6 to be available. +286 ipv6_reported: Arc<AtomicBool>, +287 /// Maps for resolving mapped addrs to/from IP and relay addresses. +288 mapped_addrs: MappedAddrs, 289 -290impl Socket { -291 /// Creates a [`Socket`] listening. -292 pub(crate) async fn spawn(opts: Options) -> Result<EndpointInner, BindError> { -293 EndpointInner::new(opts).await -294 } -295 -296 /// Returns the relay endpoint we are connected to, that has the best latency. -297 /// -298 /// If `None`, then we are not connected to any relay endpoints. -299 pub(crate) fn my_relay(&self) -> Option<RelayUrl> { -300 self.local_addr().into_iter().find_map(|a| { -301 if let transports::Addr::Relay(url, _) = a { -302 Some(url) -303 } else { -304 None -305 } -306 }) -307 } -308 -309 pub(crate) fn is_closed(&self) -> bool { -310 self.shutdown.is_closed() -311 } -312 -313 fn is_closing(&self) -> bool { -314 self.shutdown.is_closing() -315 } -316 -317 /// Returns a future that resolves once endpoint shutdown has started. -318 pub(crate) fn closed(&self) -> WaitForCancellationFutureOwned { -319 self.shutdown.at_close_start.clone().cancelled_owned() -320 } -321 -322 /// Get the cached version of addresses. -323 pub(crate) fn local_addr(&self) -> Vec<transports::Addr> { -324 self.local_addrs_watch.clone().get() -325 } -326 -327 #[cfg(not(wasm_browser))] -328 fn ip_bind_addrs(&self) -> &[SocketAddr] { -329 &self.ip_bind_addrs -330 } -331 -332 fn ip_local_addrs(&self) -> impl Iterator<Item = SocketAddr> + use<> { -333 self.local_addr() -334 .into_iter() -335 .filter_map(|addr| addr.into_socket_addr()) -336 } -337 -338 /// Tries to send a [`RemoteStateMessage`] to the `RemoteStateActor` for given [`EndpointId`]. -339 /// -340 /// Returns an error if there currently is no remote state actor running for this, or when it -341 /// is currently shutting down. -342 pub(crate) fn try_send_remote_state_msg( -343 &self, -344 endpoint_id: EndpointId, -345 message: RemoteStateMessage, -346 ) -> Result<(), RemoteStateMessage> { -347 let Some(sender) = self.remote_actors.get(&endpoint_id) else { -348 return Err(message); -349 }; -350 sender.try_send(message).map_err(|err| err.into_inner()) -351 } -352 -353 /// Returns a [`Watcher`] for this socket's direct addresses. -354 /// -355 /// The [`Socket`] continuously monitors the direct addresses, the network addresses -356 /// it might be able to be contacted on, for changes. Whenever changes are detected -357 /// this [`Watcher`] will yield a new list of addresses. -358 /// -359 /// Upon the first creation on the [`Socket`] it may not yet have completed a first -360 /// net report to discover IP addresses, in this case the current item in this [`Watcher`] will be -361 /// [`None`]. Once the first set of ip addresses are discovered the [`Watcher`] will -362 /// store [`Some`] set of addresses. +290 /// Local addresses +291 local_addrs_watch: LocalAddrsWatch, +292 /// Currently bound IP addresses of all sockets +293 #[cfg(not(wasm_browser))] +294 ip_bind_addrs: Vec<SocketAddr>, +295 /// The DNS resolver to be used in this socket. +296 #[cfg(not(wasm_browser))] +297 dns_resolver: DnsResolver, +298 relay_map: RelayMap, +299 +300 /// Optional Address Lookup +301 address_lookup: address_lookup::ConcurrentAddressLookup, +302 /// Optional user-defined discover data. +303 address_lookup_user_data: RwLock<Option<UserData>>, +304 +305 pub(crate) tls_config: rustls::ClientConfig, +306 +307 /// Metrics +308 pub(crate) metrics: EndpointMetrics, +309 pub(crate) hooks: EndpointHooksList, +310} +311 +312impl Socket { +313 /// Creates a [`Socket`] listening. +314 pub(crate) async fn spawn(opts: Options) -> Result<EndpointInner, BindError> { +315 EndpointInner::new(opts).await +316 } +317 +318 /// Returns the relay endpoint we are connected to, that has the best latency. +319 /// +320 /// If `None`, then we are not connected to any relay endpoints. +321 pub(crate) fn my_relay(&self) -> Option<RelayUrl> { +322 self.local_addr().into_iter().find_map(|a| { +323 if let transports::Addr::Relay(url, _) = a { +324 Some(url) +325 } else { +326 None +327 } +328 }) +329 } +330 +331 /// Whether the iroh endpoint is closed and all its actors stopped. +332 pub(crate) fn is_closed(&self) -> bool { +333 self.shutdown.is_closed() +334 } +335 +336 /// Whether [`crate::Endpoint::close`] has been called. +337 fn is_closing(&self) -> bool { +338 self.shutdown.is_closing() +339 } +340 +341 /// Returns a future that resolves once endpoint shutdown has started. +342 pub(crate) fn closed(&self) -> WaitForCancellationFutureOwned { +343 self.shutdown.at_close_start.clone().cancelled_owned() +344 } +345 +346 /// Get the cached version of addresses. +347 pub(crate) fn local_addr(&self) -> Vec<transports::Addr> { +348 self.local_addrs_watch.clone().get() +349 } +350 +351 #[cfg(not(wasm_browser))] +352 fn ip_bind_addrs(&self) -> &[SocketAddr] { +353 &self.ip_bind_addrs +354 } +355 +356 fn ip_local_addrs(&self) -> impl Iterator<Item = SocketAddr> + use<> { +357 self.local_addr() +358 .into_iter() +359 .filter_map(|addr| addr.into_socket_addr()) +360 } +361 +362 /// Tries to send a [`RemoteStateMessage`] to the `RemoteStateActor` for given [`EndpointId`]. 363 /// -364 /// To get the current direct addresses, use [`Watcher::initialized`]. -365 /// -366 /// [`Watcher`]: n0_watcher::Watcher -367 /// [`Watcher::initialized`]: n0_watcher::Watcher::initialized -368 pub(crate) fn ip_addrs(&self) -> n0_watcher::Direct<BTreeSet<DirectAddr>> { -369 self.direct_addrs.addrs.watch() -370 } -371 -372 /// Returns a [`Watcher`] for this socket's net-report. -373 /// -374 /// The [`Socket`] continuously monitors the network conditions for changes. -375 /// Whenever changes are detected this [`Watcher`] will yield a new report. -376 /// -377 /// Upon the first creation on the [`Socket`] it may not yet have completed -378 /// a first net-report. In this case, the current item in this [`Watcher`] will -379 /// be [`None`]. Once the first report has been run, the [`Watcher`] will -380 /// store [`Some`] report. -381 /// -382 /// To get the current `net-report`, use [`Watcher::initialized`]. -383 /// -384 /// [`Watcher`]: n0_watcher::Watcher -385 /// [`Watcher::initialized`]: n0_watcher::Watcher::initialized -386 pub(crate) fn net_report(&self) -> impl Watcher<Value = Option<Report>> + use<> { -387 self.net_report.watch().map(|(r, _)| r) -388 } -389 -390 /// Watch for changes to the home relay. -391 /// -392 /// Note that this can be used to wait for the initial home relay to be known using -393 /// [`Watcher::initialized`]. -394 pub(crate) fn home_relay(&self) -> impl Watcher<Value = Vec<RelayUrl>> + use<> { -395 self.local_addrs_watch.clone().map(|addrs| { -396 addrs -397 .into_iter() -398 .filter_map(|addr| { -399 if let transports::Addr::Relay(url, _) = addr { -400 Some(url) -401 } else { -402 None -403 } -404 }) -405 .collect() -406 }) -407 } -408 -409 /// Stores a new set of direct addresses. -410 /// -411 /// If the direct addresses have changed from the previous set, they are published to -412 /// the address lookup system. -413 fn store_direct_addresses(&self, addrs: BTreeSet<DirectAddr>) { -414 let updated = self.direct_addrs.update(addrs); -415 if updated { -416 self.publish_my_addr(); -417 } -418 } -419 -420 /// Get a reference to the DNS resolver used in this [`Socket`]. -421 #[cfg(not(wasm_browser))] -422 pub(crate) fn dns_resolver(&self) -> &DnsResolver { -423 &self.dns_resolver -424 } -425 -426 /// Reference to the internal Address Lookup -427 pub(crate) fn address_lookup(&self) -> &address_lookup::ConcurrentAddressLookup { -428 &self.address_lookup -429 } -430 -431 /// Updates the user-defined Address Lookup data for this endpoint. -432 pub(crate) fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>) { -433 let mut guard = self -434 .address_lookup_user_data -435 .write() -436 .expect("lock poisened"); -437 if *guard != user_data { -438 *guard = user_data; -439 drop(guard); +364 /// Returns an error if there currently is no remote state actor running for this, or when it +365 /// is currently shutting down. +366 pub(crate) fn try_send_remote_state_msg( +367 &self, +368 endpoint_id: EndpointId, +369 message: RemoteStateMessage, +370 ) -> Result<(), RemoteStateMessage> { +371 let Some(sender) = self.remote_actors.get(&endpoint_id) else { +372 return Err(message); +373 }; +374 sender.try_send(message).map_err(|err| err.into_inner()) +375 } +376 +377 /// Returns a [`Watcher`] for this socket's direct addresses. +378 /// +379 /// The [`Socket`] continuously monitors the direct addresses, the network addresses +380 /// it might be able to be contacted on, for changes. Whenever changes are detected +381 /// this [`Watcher`] will yield a new list of addresses. +382 /// +383 /// Upon the first creation on the [`Socket`] it may not yet have completed a first +384 /// net report to discover IP addresses, in this case the current item in this [`Watcher`] will be +385 /// [`None`]. Once the first set of ip addresses are discovered the [`Watcher`] will +386 /// store [`Some`] set of addresses. +387 /// +388 /// To get the current direct addresses, use [`Watcher::initialized`]. +389 /// +390 /// [`Watcher`]: n0_watcher::Watcher +391 /// [`Watcher::initialized`]: n0_watcher::Watcher::initialized +392 pub(crate) fn ip_addrs(&self) -> n0_watcher::Direct<BTreeSet<DirectAddr>> { +393 self.direct_addrs.addrs.watch() +394 } +395 +396 /// Returns a [`Watcher`] for this socket's net-report. +397 /// +398 /// The [`Socket`] continuously monitors the network conditions for changes. +399 /// Whenever changes are detected this [`Watcher`] will yield a new report. +400 /// +401 /// Upon the first creation on the [`Socket`] it may not yet have completed +402 /// a first net-report. In this case, the current item in this [`Watcher`] will +403 /// be [`None`]. Once the first report has been run, the [`Watcher`] will +404 /// store [`Some`] report. +405 /// +406 /// To get the current `net-report`, use [`Watcher::initialized`]. +407 /// +408 /// [`Watcher`]: n0_watcher::Watcher +409 /// [`Watcher::initialized`]: n0_watcher::Watcher::initialized +410 pub(crate) fn net_report(&self) -> impl Watcher<Value = Option<Report>> + use<> { +411 self.net_report.watch().map(|(r, _)| r) +412 } +413 +414 /// Watch for changes to the home relay. +415 /// +416 /// Note that this can be used to wait for the initial home relay to be known using +417 /// [`Watcher::initialized`]. +418 pub(crate) fn home_relay(&self) -> impl Watcher<Value = Vec<RelayUrl>> + use<> { +419 self.local_addrs_watch.clone().map(|addrs| { +420 addrs +421 .into_iter() +422 .filter_map(|addr| { +423 if let transports::Addr::Relay(url, _) = addr { +424 Some(url) +425 } else { +426 None +427 } +428 }) +429 .collect() +430 }) +431 } +432 +433 /// Stores a new set of direct addresses. +434 /// +435 /// If the direct addresses have changed from the previous set, they are published to +436 /// the address lookup system. +437 fn store_direct_addresses(&self, addrs: BTreeSet<DirectAddr>) { +438 let updated = self.direct_addrs.update(addrs); +439 if updated { 440 self.publish_my_addr(); 441 } 442 } 443 -444 /// Process datagrams received from all the transports. -445 /// -446 /// All the `bufs` and `metas` should have initialized packets in them. -447 /// -448 /// This fixes up the datagrams to use the correct [`MultipathMappedAddr`] and extracts -449 /// DISCO packets, processing them inside the socket. -450 /// -451 /// [`MultipathMappedAddr`]: mapped_addrs::MultipathMappedAddr -452 fn process_datagrams( -453 &self, -454 bufs: &mut [io::IoSliceMut<'_>], -455 metas: &mut [quinn_udp::RecvMeta], -456 source_addrs: &[transports::Addr], -457 ) { -458 debug_assert_eq!(bufs.len(), metas.len(), "non matching bufs & metas"); -459 debug_assert_eq!( -460 bufs.len(), -461 source_addrs.len(), -462 "non matching bufs & source_addrs" -463 ); -464 -465 // zip is slow :( -466 for i in 0..metas.len() { -467 let quinn_meta = &mut metas[i]; -468 let source_addr = &source_addrs[i]; -469 -470 let datagram_count = quinn_meta.len.div_ceil(quinn_meta.stride); -471 self.metrics -472 .socket -473 .recv_datagrams -474 .inc_by(datagram_count as _); -475 if quinn_meta.len > quinn_meta.stride { -476 trace!( -477 src = ?source_addr, -478 len = quinn_meta.len, -479 stride = %quinn_meta.stride, -480 datagram_count = quinn_meta.len.div_ceil(quinn_meta.stride), -481 "GRO datagram received", -482 ); -483 self.metrics.socket.recv_gro_datagrams.inc(); -484 } else { -485 trace!(src = ?source_addr, len = quinn_meta.len, "datagram received"); -486 } -487 match source_addr { -488 transports::Addr::Ip(SocketAddr::V4(..)) => { -489 self.metrics -490 .socket -491 .recv_data_ipv4 -492 .inc_by(quinn_meta.len as _); -493 } -494 transports::Addr::Ip(SocketAddr::V6(..)) => { -495 self.metrics -496 .socket -497 .recv_data_ipv6 -498 .inc_by(quinn_meta.len as _); -499 } -500 transports::Addr::Relay(src_url, src_node) => { -501 self.metrics -502 .socket -503 .recv_data_relay -504 .inc_by(quinn_meta.len as _); -505 -506 // Fill in the correct mapped address -507 let mapped_addr = self -508 .mapped_addrs -509 .relay_addrs -510 .get(&(src_url.clone(), *src_node)); -511 quinn_meta.addr = mapped_addr.private_socket_addr(); -512 } -513 } -514 } -515 } -516 -517 /// Publishes our address to an address lookup service, if configured. -518 /// -519 /// Called whenever our addresses or home relay endpoint changes. -520 fn publish_my_addr(&self) { -521 let relay_url = self.my_relay(); -522 let mut addrs: BTreeSet<_> = self -523 .direct_addrs -524 .sockaddrs() -525 .map(TransportAddr::Ip) -526 .collect(); -527 -528 let user_data = self -529 .address_lookup_user_data -530 .read() -531 .expect("lock poisened") -532 .clone(); -533 if relay_url.is_none() && addrs.is_empty() && user_data.is_none() { -534 // do not bother publishing if we don't have any information -535 return; -536 } -537 if let Some(url) = relay_url { -538 addrs.insert(TransportAddr::Relay(url)); -539 } -540 -541 let data = EndpointData::new(addrs).with_user_data(user_data); -542 self.address_lookup.publish(&data); -543 } -544} -545 -546/// Manages currently running [`crate::NetReport`] to learn this endpoint's IP addresses. -547/// -548/// Invariants: -549/// - only one direct addr update must be running at a time -550/// - if an update is scheduled while another one is running, remember that -551/// and start a new one when the current one has finished -552#[derive(Debug)] -553struct DirectAddrUpdateState { -554 /// If set, start a new update as soon as the current one is finished. -555 want_update: Option<UpdateReason>, -556 sock: Arc<Socket>, -557 #[cfg(not(wasm_browser))] -558 port_mapper: portmapper::Client, -559 /// The prober that discovers local network conditions, including the closest relay relay and NAT mappings. -560 net_reporter: Arc<AsyncMutex<net_report::Client>>, -561 relay_map: RelayMap, -562 run_done: mpsc::Sender<()>, -563 shutdown_token: CancellationToken, -564} -565 -566#[derive(Default, Debug, PartialEq, Eq, Clone, Copy)] -567enum UpdateReason { -568 /// Initial state -569 #[default] -570 None, -571 Periodic, -572 PortmapUpdated, -573 LinkChangeMajor, -574 LinkChangeMinor, -575 RelayMapChange, -576} -577 -578impl UpdateReason { -579 fn is_major(self) -> bool { -580 matches!(self, Self::LinkChangeMajor | Self::RelayMapChange) -581 } -582} -583 -584impl DirectAddrUpdateState { -585 fn new( -586 sock: Arc<Socket>, -587 #[cfg(not(wasm_browser))] port_mapper: portmapper::Client, -588 net_reporter: Arc<AsyncMutex<net_report::Client>>, -589 relay_map: RelayMap, -590 run_done: mpsc::Sender<()>, -591 shutdown_token: CancellationToken, -592 ) -> Self { -593 DirectAddrUpdateState { -594 want_update: Default::default(), -595 #[cfg(not(wasm_browser))] -596 port_mapper, -597 net_reporter, -598 sock, -599 relay_map, -600 run_done, -601 shutdown_token, -602 } -603 } -604 -605 /// Schedules a new run, either starting it immediately if none is running or -606 /// scheduling it for later. -607 fn schedule_run(&mut self, why: UpdateReason, if_state: IfStateDetails) { -608 match self.net_reporter.clone().try_lock_owned() { -609 Ok(net_reporter) => { -610 self.run(why, if_state, net_reporter); -611 } -612 Err(_) => { -613 let _ = self.want_update.insert(why); -614 } -615 } -616 } -617 -618 /// If another run is needed, triggers this run, otherwise does nothing. -619 fn try_run(&mut self, if_state: IfStateDetails) { -620 match self.net_reporter.clone().try_lock_owned() { -621 Ok(net_reporter) => { -622 if let Some(why) = self.want_update.take() { -623 self.run(why, if_state, net_reporter); -624 } -625 } -626 Err(_) => { -627 // do nothing -628 } -629 } -630 } -631 -632 /// Trigger a new run. -633 fn run( -634 &mut self, -635 why: UpdateReason, -636 if_state: IfStateDetails, -637 mut net_reporter: tokio::sync::OwnedMutexGuard<net_report::Client>, -638 ) { -639 debug!("starting direct addr update ({:?})", why); -640 // Don't start a net report probe if we know -641 // we are shutting down -642 if self.shutdown_token.is_cancelled() { -643 debug!("skipping net_report, socket is shutting down"); -644 // deactivate portmapper -645 #[cfg(not(wasm_browser))] -646 self.port_mapper.deactivate(); -647 return; -648 } -649 if self.relay_map.is_empty() { -650 debug!("skipping net_report, empty RelayMap"); -651 self.sock.net_report.set((None, why)).ok(); -652 return; -653 } -654 -655 #[cfg(not(wasm_browser))] -656 self.port_mapper.procure_mapping(); -657 -658 debug!("requesting net_report report"); -659 let sock = self.sock.clone(); -660 -661 let run_done = self.run_done.clone(); -662 -663 // Ensure that reports are cancelled when we shutdown -664 let token = self.shutdown_token.child_token(); -665 let inner_token = token.child_token(); -666 task::spawn( -667 async move { -668 let fut = token.run_until_cancelled(time::timeout( -669 NET_REPORT_TIMEOUT, -670 net_reporter.get_report(if_state, why.is_major(), inner_token), -671 )); -672 -673 match fut.await { -674 Some(Ok(report)) => { -675 sock.net_report.set((Some(report), why)).ok(); -676 } -677 Some(Err(time::Elapsed { .. })) => { -678 warn!("net_report report timed out"); -679 } -680 None => { -681 trace!("net_report cancelled"); -682 } -683 } -684 -685 // mark run as finished -686 debug!("direct addr update done ({:?})", why); -687 run_done.send(()).await.ok(); -688 } -689 .instrument(tracing::Span::current()), -690 ); -691 } -692} -693 -694#[allow(missing_docs)] -695#[stack_error(derive, add_meta)] -696#[non_exhaustive] -697pub enum BindError { -698 #[error("Failed to bind sockets")] -699 Sockets { source: io::Error }, -700 #[error("Failed to create internal QUIC endpoint")] -701 CreateQuicEndpoint { source: io::Error }, -702 #[error("Failed to create netmon monitor")] -703 CreateNetmonMonitor { source: netmon::Error }, -704 #[error("Invalid transport configuration")] -705 InvalidTransportConfig, -706 #[error("Failed to create an address lookup service")] -707 AddressLookup { -708 #[error(from)] -709 source: crate::address_lookup::IntoAddressLookupError, -710 }, -711} -712 -713impl EndpointInner { -714 /// Creates a [`Socket`]. -715 async fn new(opts: Options) -> Result<Self, BindError> { -716 let Options { -717 secret_key, -718 transports: transport_configs, -719 address_lookup_user_data, -720 #[cfg(not(wasm_browser))] -721 dns_resolver, -722 proxy_url, -723 server_config, -724 #[cfg(any(test, feature = "test-utils"))] -725 insecure_skip_relay_cert_verify, -726 metrics, -727 hooks, -728 static_config, -729 } = opts; -730 -731 let address_lookup = address_lookup::ConcurrentAddressLookup::default(); -732 #[cfg(not(wasm_browser))] -733 let port_mapper = -734 portmapper::Client::with_metrics(Default::default(), metrics.portmapper.clone()); +444 /// Get a reference to the DNS resolver used in this [`Socket`]. +445 #[cfg(not(wasm_browser))] +446 pub(crate) fn dns_resolver(&self) -> &DnsResolver { +447 &self.dns_resolver +448 } +449 +450 /// Translates a raw [`SocketAddr`] (which may be a synthetic mapped address) into +451 /// a [`transports::Addr`]. +452 /// +453 /// For regular IP addresses this returns `Addr::Ip`. For synthetic relay-mapped +454 /// IPv6 addresses this performs a reverse lookup and returns `Addr::Relay`. +455 /// +456 /// This lookup only makes sense for a remote address of the +457 /// underlying QUIC connection. +458 /// +459 /// If you call this with a mapped address for which no mapping exists, +460 /// it will return the address as an `Addr::Ip`. +461 pub(crate) fn to_transport_addr(&self, addr: SocketAddr) -> transports::Addr { +462 self.mapped_addrs +463 .relay_addrs +464 .to_transport_addr(addr) +465 .unwrap_or(transports::Addr::Ip(addr)) +466 } +467 +468 /// Reference to the internal Address Lookup +469 pub(crate) fn address_lookup(&self) -> &address_lookup::ConcurrentAddressLookup { +470 &self.address_lookup +471 } +472 +473 /// Updates the user-defined Address Lookup data for this endpoint. +474 pub(crate) fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>) { +475 let mut guard = self +476 .address_lookup_user_data +477 .write() +478 .expect("lock poisened"); +479 if *guard != user_data { +480 *guard = user_data; +481 drop(guard); +482 self.publish_my_addr(); +483 } +484 } +485 +486 /// Process datagrams received from all the transports. +487 /// +488 /// All the `bufs` and `metas` should have initialized packets in them. +489 /// +490 /// This fixes up the datagrams to use the correct [`MultipathMappedAddr`] and extracts +491 /// DISCO packets, processing them inside the socket. +492 /// +493 /// [`MultipathMappedAddr`]: mapped_addrs::MultipathMappedAddr +494 fn process_datagrams( +495 &self, +496 bufs: &mut [io::IoSliceMut<'_>], +497 metas: &mut [quinn_udp::RecvMeta], +498 source_addrs: &[transports::Addr], +499 ) { +500 debug_assert_eq!(bufs.len(), metas.len(), "non matching bufs & metas"); +501 debug_assert_eq!( +502 bufs.len(), +503 source_addrs.len(), +504 "non matching bufs & source_addrs" +505 ); +506 +507 // zip is slow :( +508 for i in 0..metas.len() { +509 let quinn_meta = &mut metas[i]; +510 let source_addr = &source_addrs[i]; +511 +512 let datagram_count = quinn_meta.len.div_ceil(quinn_meta.stride); +513 self.metrics +514 .socket +515 .recv_datagrams +516 .inc_by(datagram_count as _); +517 if quinn_meta.len > quinn_meta.stride { +518 trace!( +519 src = ?source_addr, +520 len = quinn_meta.len, +521 stride = %quinn_meta.stride, +522 datagram_count = quinn_meta.len.div_ceil(quinn_meta.stride), +523 "GRO datagram received", +524 ); +525 self.metrics.socket.recv_gro_datagrams.inc(); +526 } else { +527 trace!(src = ?source_addr, len = quinn_meta.len, "datagram received"); +528 } +529 match source_addr { +530 transports::Addr::Ip(SocketAddr::V4(..)) => { +531 self.metrics +532 .socket +533 .recv_data_ipv4 +534 .inc_by(quinn_meta.len as _); +535 } +536 transports::Addr::Ip(SocketAddr::V6(..)) => { +537 self.metrics +538 .socket +539 .recv_data_ipv6 +540 .inc_by(quinn_meta.len as _); +541 } +542 transports::Addr::Relay(src_url, src_node) => { +543 self.metrics +544 .socket +545 .recv_data_relay +546 .inc_by(quinn_meta.len as _); +547 +548 // Fill in the correct mapped address +549 let mapped_addr = self +550 .mapped_addrs +551 .relay_addrs +552 .get(&(src_url.clone(), *src_node)); +553 quinn_meta.addr = mapped_addr.private_socket_addr(); +554 } +555 } +556 } +557 } +558 +559 /// Publishes our address to an address lookup service, if configured. +560 /// +561 /// Called whenever our addresses or home relay endpoint changes. +562 fn publish_my_addr(&self) { +563 let relay_url = self.my_relay(); +564 let mut addrs: BTreeSet<_> = self +565 .direct_addrs +566 .sockaddrs() +567 .map(TransportAddr::Ip) +568 .collect(); +569 +570 let user_data = self +571 .address_lookup_user_data +572 .read() +573 .expect("lock poisened") +574 .clone(); +575 if relay_url.is_none() && addrs.is_empty() && user_data.is_none() { +576 // do not bother publishing if we don't have any information +577 return; +578 } +579 if let Some(url) = relay_url { +580 addrs.insert(TransportAddr::Relay(url)); +581 } +582 +583 let data = EndpointData::new(addrs).with_user_data(user_data); +584 self.address_lookup.publish(&data); +585 } +586} +587 +588/// Manages currently running [`crate::NetReport`] to learn this endpoint's IP addresses. +589/// +590/// Invariants: +591/// - only one direct addr update must be running at a time +592/// - if an update is scheduled while another one is running, remember that +593/// and start a new one when the current one has finished +594#[derive(Debug)] +595struct DirectAddrUpdateState { +596 /// If set, start a new update as soon as the current one is finished. +597 want_update: Option<UpdateReason>, +598 sock: Arc<Socket>, +599 #[cfg(not(wasm_browser))] +600 port_mapper: portmapper::Client, +601 /// The prober that discovers local network conditions, including the closest relay relay and NAT mappings. +602 net_reporter: Arc<AsyncMutex<net_report::Client>>, +603 relay_map: RelayMap, +604 run_done: mpsc::Sender<()>, +605 shutdown_token: CancellationToken, +606} +607 +608#[derive(Default, Debug, PartialEq, Eq, Clone, Copy)] +609enum UpdateReason { +610 /// Initial state +611 #[default] +612 None, +613 Periodic, +614 PortmapUpdated, +615 LinkChangeMajor, +616 LinkChangeMinor, +617 RelayMapChange, +618} +619 +620impl UpdateReason { +621 fn is_major(self) -> bool { +622 matches!(self, Self::LinkChangeMajor | Self::RelayMapChange) +623 } +624} +625 +626impl DirectAddrUpdateState { +627 fn new( +628 sock: Arc<Socket>, +629 #[cfg(not(wasm_browser))] port_mapper: portmapper::Client, +630 net_reporter: Arc<AsyncMutex<net_report::Client>>, +631 relay_map: RelayMap, +632 run_done: mpsc::Sender<()>, +633 shutdown_token: CancellationToken, +634 ) -> Self { +635 DirectAddrUpdateState { +636 want_update: Default::default(), +637 #[cfg(not(wasm_browser))] +638 port_mapper, +639 net_reporter, +640 sock, +641 relay_map, +642 run_done, +643 shutdown_token, +644 } +645 } +646 +647 /// Schedules a new run, either starting it immediately if none is running or +648 /// scheduling it for later. +649 fn schedule_run(&mut self, why: UpdateReason, if_state: IfStateDetails) { +650 match self.net_reporter.clone().try_lock_owned() { +651 Ok(net_reporter) => { +652 self.run(why, if_state, net_reporter); +653 } +654 Err(_) => { +655 let _ = self.want_update.insert(why); +656 } +657 } +658 } +659 +660 /// If another run is needed, triggers this run, otherwise does nothing. +661 fn try_run(&mut self, if_state: IfStateDetails) { +662 match self.net_reporter.clone().try_lock_owned() { +663 Ok(net_reporter) => { +664 if let Some(why) = self.want_update.take() { +665 self.run(why, if_state, net_reporter); +666 } +667 } +668 Err(_) => { +669 // do nothing +670 } +671 } +672 } +673 +674 /// Trigger a new run. +675 fn run( +676 &mut self, +677 why: UpdateReason, +678 if_state: IfStateDetails, +679 mut net_reporter: tokio::sync::OwnedMutexGuard<net_report::Client>, +680 ) { +681 debug!("starting direct addr update ({:?})", why); +682 // Don't start a net report probe if we know +683 // we are shutting down +684 if self.shutdown_token.is_cancelled() { +685 debug!("skipping net_report, socket is shutting down"); +686 // deactivate portmapper +687 #[cfg(not(wasm_browser))] +688 self.port_mapper.deactivate(); +689 return; +690 } +691 if self.relay_map.is_empty() { +692 debug!("skipping net_report, empty RelayMap"); +693 self.sock.net_report.set((None, why)).ok(); +694 return; +695 } +696 +697 #[cfg(not(wasm_browser))] +698 self.port_mapper.procure_mapping(); +699 +700 debug!("requesting net_report report"); +701 let sock = self.sock.clone(); +702 +703 let run_done = self.run_done.clone(); +704 +705 // Ensure that reports are cancelled when we shutdown +706 let token = self.shutdown_token.child_token(); +707 let inner_token = token.child_token(); +708 task::spawn( +709 async move { +710 let fut = token.run_until_cancelled(time::timeout( +711 NET_REPORT_TIMEOUT, +712 net_reporter.get_report(if_state, why.is_major(), inner_token), +713 )); +714 +715 match fut.await { +716 Some(Ok(report)) => { +717 sock.net_report.set((Some(report), why)).ok(); +718 } +719 Some(Err(time::Elapsed { .. })) => { +720 warn!("net_report report timed out"); +721 } +722 None => { +723 trace!("net_report cancelled"); +724 } +725 } +726 +727 // mark run as finished +728 debug!("direct addr update done ({:?})", why); +729 run_done.send(()).await.ok(); +730 } +731 .instrument(tracing::Span::current()), +732 ); +733 } +734} 735 -736 let relay_transport_configs: Vec<_> = transport_configs -737 .iter() -738 .filter(|t| matches!(t, TransportConfig::Relay { .. })) -739 .collect(); -740 -741 // Currently we only support a single relay transport -742 if relay_transport_configs.len() > 1 { -743 bail!(BindError::InvalidTransportConfig); -744 } -745 let relay_map = relay_transport_configs -746 .iter() -747 .filter_map(|t| { -748 #[allow(irrefutable_let_patterns)] -749 if let TransportConfig::Relay { relay_map, .. } = t { -750 Some(relay_map.clone()) -751 } else { -752 None -753 } -754 }) -755 .next() -756 .unwrap_or_else(RelayMap::empty); -757 -758 let my_relay = Watchable::new(None); -759 let ipv6_reported = Arc::new(AtomicBool::new(false)); -760 -761 let relay_actor_config = RelayActorConfig { -762 my_relay: my_relay.clone(), -763 secret_key: secret_key.clone(), +736#[allow(missing_docs)] +737#[stack_error(derive, add_meta)] +738#[non_exhaustive] +739pub enum BindError { +740 #[error("Failed to bind sockets")] +741 Sockets { source: io::Error }, +742 #[error("Failed to create internal QUIC endpoint")] +743 CreateQuicEndpoint { source: io::Error }, +744 #[error("Failed to create netmon monitor")] +745 CreateNetmonMonitor { source: netmon::Error }, +746 #[error("Invalid transport configuration")] +747 InvalidTransportConfig, +748 #[error("Invalid CA root configuration")] +749 InvalidCaRootConfig { source: io::Error }, +750 #[error("Failed to create an address lookup service")] +751 AddressLookup { +752 #[error(from)] +753 source: crate::address_lookup::AddressLookupBuilderError, +754 }, +755} +756 +757impl EndpointInner { +758 /// Creates a [`Socket`]. +759 async fn new(opts: Options) -> Result<Self, BindError> { +760 let Options { +761 secret_key, +762 transports: transport_configs, +763 address_lookup_user_data, 764 #[cfg(not(wasm_browser))] -765 dns_resolver: dns_resolver.clone(), -766 proxy_url: proxy_url.clone(), -767 ipv6_reported: ipv6_reported.clone(), -768 #[cfg(any(test, feature = "test-utils"))] -769 insecure_skip_relay_cert_verify, -770 metrics: metrics.socket.clone(), -771 }; -772 -773 let shutdown_state = ShutdownState::default(); -774 let shutdown_token = shutdown_state.at_endpoint_closed.child_token(); -775 -776 let transports = Transports::bind( -777 &transport_configs, -778 relay_actor_config, -779 &metrics, -780 shutdown_token.child_token(), -781 ) -782 .map_err(|err| e!(BindError::Sockets, err))?; +765 dns_resolver, +766 proxy_url, +767 server_config, +768 tls_config, +769 metrics, +770 hooks, +771 static_config, +772 } = opts; +773 +774 let address_lookup = address_lookup::ConcurrentAddressLookup::default(); +775 #[cfg(not(wasm_browser))] +776 let port_mapper = +777 portmapper::Client::with_metrics(Default::default(), metrics.portmapper.clone()); +778 +779 let relay_transport_configs: Vec<_> = transport_configs +780 .iter() +781 .filter(|t| matches!(t, TransportConfig::Relay { .. })) +782 .collect(); 783 -784 #[cfg(not(wasm_browser))] -785 { -786 if let Some(v4_port) = transports.local_addrs().into_iter().find_map(|t| { -787 if let transports::Addr::Ip(SocketAddr::V4(addr)) = t { -788 Some(addr.port()) -789 } else { -790 None -791 } -792 }) { -793 // NOTE: we can end up with a zero port if `netwatch::UdpSocket::socket_addr` fails -794 match v4_port.try_into() { -795 Ok(non_zero_port) => { -796 port_mapper.update_local_port(non_zero_port); -797 } -798 Err(_zero_port) => debug!("Skipping port mapping with zero local port"), -799 } -800 } -801 } -802 -803 let (actor_sender, actor_receiver) = mpsc::channel(256); -804 -805 #[cfg(not(wasm_browser))] -806 let has_ipv6_transport = transports -807 .ip_bind_addrs() -808 .into_iter() -809 .any(|addr| addr.is_ipv6()); -810 -811 #[cfg(not(wasm_browser))] -812 let has_ip_transports = !transports.ip_bind_addrs().is_empty(); -813 -814 let direct_addrs = DiscoveredDirectAddrs::default(); -815 -816 let remote_map = { -817 RemoteMap::new( -818 secret_key.public(), -819 metrics.socket.clone(), -820 direct_addrs.addrs.watch(), -821 address_lookup.clone(), -822 shutdown_token.child_token(), -823 ) -824 }; +784 // Currently we only support a single relay transport +785 if relay_transport_configs.len() > 1 { +786 bail!(BindError::InvalidTransportConfig); +787 } +788 let relay_map = relay_transport_configs +789 .iter() +790 .filter_map(|t| { +791 #[allow(irrefutable_let_patterns)] +792 if let TransportConfig::Relay { relay_map, .. } = t { +793 Some(relay_map.clone()) +794 } else { +795 None +796 } +797 }) +798 .next() +799 .unwrap_or_else(RelayMap::empty); +800 +801 let my_relay = Watchable::new(None); +802 let ipv6_reported = Arc::new(AtomicBool::new(false)); +803 +804 let relay_actor_config = RelayActorConfig { +805 my_relay: my_relay.clone(), +806 secret_key: secret_key.clone(), +807 #[cfg(not(wasm_browser))] +808 dns_resolver: dns_resolver.clone(), +809 proxy_url: proxy_url.clone(), +810 ipv6_reported: ipv6_reported.clone(), +811 tls_config: tls_config.clone(), +812 metrics: metrics.socket.clone(), +813 }; +814 +815 let shutdown_state = ShutdownState::default(); +816 let shutdown_token = shutdown_state.at_endpoint_closed.child_token(); +817 +818 let transports = Transports::bind( +819 &transport_configs, +820 relay_actor_config, +821 &metrics, +822 shutdown_token.child_token(), +823 ) +824 .map_err(|err| e!(BindError::Sockets, err))?; 825 -826 let sock = Arc::new(Socket { -827 public_key: secret_key.public(), -828 remote_actors: remote_map.senders(), -829 shutdown: shutdown_state, -830 ipv6_reported, -831 mapped_addrs: remote_map.mapped_addrs.clone(), -832 address_lookup, -833 relay_map: relay_map.clone(), -834 address_lookup_user_data: RwLock::new(address_lookup_user_data), -835 direct_addrs, -836 net_report: Watchable::new((None, UpdateReason::None)), -837 #[cfg(not(wasm_browser))] -838 dns_resolver: dns_resolver.clone(), -839 metrics: metrics.clone(), -840 local_addrs_watch: transports.local_addrs_watch(), -841 #[cfg(not(wasm_browser))] -842 ip_bind_addrs: transports.ip_bind_addrs(), -843 hooks, -844 }); -845 -846 let mut endpoint_config = quinn::EndpointConfig::default(); -847 // Setting this to false means that quinn will ignore packets that have the QUIC fixed bit -848 // set to 0. The fixed bit is the 3rd bit of the first byte of a packet. -849 // For performance reasons and to not rewrite buffers we pass non-QUIC UDP packets straight -850 // through to quinn. We set the first byte of the packet to zero, which makes quinn ignore -851 // the packet if grease_quic_bit is set to false. -852 endpoint_config.grease_quic_bit(false); -853 -854 let local_addrs_watch = transports.local_addrs_watch(); -855 let network_change_sender = transports.create_network_change_sender(); -856 -857 let runtime = Arc::new(Runtime::new(secret_key.public())); -858 -859 let endpoint = quinn::Endpoint::new_with_abstract_socket( -860 endpoint_config, -861 Some(server_config), -862 Box::new(Transport::new(sock.clone(), transports)), -863 runtime.clone(), -864 ) -865 .map_err(|err| e!(BindError::CreateQuicEndpoint, err))?; -866 -867 let network_monitor = netmon::Monitor::new() -868 .await -869 .map_err(|err| e!(BindError::CreateNetmonMonitor, err))?; -870 -871 #[cfg(any(test, feature = "test-utils"))] -872 let client_config = if insecure_skip_relay_cert_verify { -873 iroh_relay::client::make_dangerous_client_config() -874 } else { -875 default_quic_client_config() -876 }; -877 #[cfg(not(any(test, feature = "test-utils")))] -878 let client_config = default_quic_client_config(); -879 -880 let net_report_config = net_report::Options::default(); -881 -882 #[cfg(not(wasm_browser))] -883 let net_report_config = { -884 // Set a `QuicConfig` for address discovery (QAD), but only if we have IP transports. -885 // -886 // If there are no IP transports configured, then we don't set a QuicConfig. -887 // If we would, the `quinn::Endpoint` passed along will not have IP connectivity, -888 // and the QAD probes that connect to the relay's QUIC endpoints would time out -889 // because all outgoing packets to IP destinations would be dropped. -890 let qad_config = has_ip_transports.then(|| QuicConfig { -891 ep: endpoint.clone(), -892 client_config, -893 ipv4: true, -894 ipv6: has_ipv6_transport, -895 }); -896 net_report_config.quic_config(qad_config) -897 }; -898 -899 #[cfg(any(test, feature = "test-utils"))] -900 let net_report_config = -901 net_report_config.insecure_skip_relay_cert_verify(insecure_skip_relay_cert_verify); -902 -903 let net_reporter = net_report::Client::new( -904 #[cfg(not(wasm_browser))] -905 dns_resolver, -906 relay_map.clone(), -907 net_report_config, -908 metrics.net_report.clone(), -909 ); -910 -911 let (direct_addr_done_tx, direct_addr_done_rx) = mpsc::channel(8); -912 let direct_addr_update_state = DirectAddrUpdateState::new( -913 sock.clone(), -914 #[cfg(not(wasm_browser))] -915 port_mapper, -916 Arc::new(AsyncMutex::new(net_reporter)), -917 relay_map, -918 direct_addr_done_tx, -919 sock.shutdown.at_close_start.child_token(), -920 ); -921 -922 let netmon_watcher = network_monitor.interface_state(); -923 -924 #[cfg_attr(not(wasm_browser), allow(unused_mut))] -925 let mut actor = Actor { -926 sock: sock.clone(), -927 remote_map, -928 periodic_re_stun_timer: new_re_stun_timer(false), -929 network_monitor, -930 netmon_watcher, -931 direct_addr_update_state, -932 network_change_sender, -933 direct_addr_done_rx, -934 }; -935 // Initialize addresses -936 #[cfg(not(wasm_browser))] -937 actor.update_direct_addresses(None); -938 -939 let actor_task = task::spawn( -940 actor -941 .run( -942 actor_receiver, -943 shutdown_token.child_token(), -944 local_addrs_watch, -945 ) -946 .instrument(info_span!("actor")), -947 ); -948 -949 let actor_task = Mutex::new(Some(AbortOnDropHandle::new(actor_task))); -950 -951 Ok(EndpointInner { -952 sock, -953 actor_sender, -954 actor_task, -955 endpoint, -956 runtime, -957 static_config, -958 }) -959 } -960 -961 /// Returns a reference to the underlying [`quinn::Endpoint`]. -962 pub(crate) fn quinn_endpoint(&self) -> &quinn::Endpoint { -963 &self.endpoint -964 } -965 -966 /// Closes the connection. -967 /// -968 /// Only the first close does anything. Any later closes return nil. Polling the socket -969 /// ([`quinn::AsyncUdpSocket::poll_recv`]) will return [`Poll::Pending`] indefinitely -970 /// after this call. -971 /// -972 /// [`Poll::Pending`]: std::task::Poll::Pending -973 #[instrument(skip_all)] -974 pub(crate) async fn close(&self) { -975 if self.sock.is_closed() || self.sock.is_closing() { -976 return; -977 } -978 trace!(me = ?self.public_key, "socket closing..."); +826 #[cfg(not(wasm_browser))] +827 { +828 if let Some(v4_port) = transports.local_addrs().into_iter().find_map(|t| { +829 if let transports::Addr::Ip(SocketAddr::V4(addr)) = t { +830 Some(addr.port()) +831 } else { +832 None +833 } +834 }) { +835 // NOTE: we can end up with a zero port if `netwatch::UdpSocket::socket_addr` fails +836 match v4_port.try_into() { +837 Ok(non_zero_port) => { +838 port_mapper.update_local_port(non_zero_port); +839 } +840 Err(_zero_port) => debug!("Skipping port mapping with zero local port"), +841 } +842 } +843 } +844 +845 let (actor_sender, actor_receiver) = mpsc::channel(256); +846 +847 #[cfg(not(wasm_browser))] +848 let has_ipv6_transport = transports +849 .ip_bind_addrs() +850 .into_iter() +851 .any(|addr| addr.is_ipv6()); +852 +853 #[cfg(not(wasm_browser))] +854 let has_ip_transports = !transports.ip_bind_addrs().is_empty(); +855 +856 let direct_addrs = DiscoveredDirectAddrs::default(); +857 +858 let remote_map = { +859 RemoteMap::new( +860 secret_key.public(), +861 metrics.socket.clone(), +862 direct_addrs.addrs.watch(), +863 address_lookup.clone(), +864 shutdown_token.child_token(), +865 ) +866 }; +867 +868 let sock = Arc::new(Socket { +869 public_key: secret_key.public(), +870 remote_actors: remote_map.senders(), +871 shutdown: shutdown_state, +872 ipv6_reported, +873 mapped_addrs: remote_map.mapped_addrs.clone(), +874 address_lookup, +875 relay_map: relay_map.clone(), +876 address_lookup_user_data: RwLock::new(address_lookup_user_data), +877 direct_addrs, +878 net_report: Watchable::new((None, UpdateReason::None)), +879 #[cfg(not(wasm_browser))] +880 dns_resolver: dns_resolver.clone(), +881 metrics: metrics.clone(), +882 local_addrs_watch: transports.local_addrs_watch(), +883 #[cfg(not(wasm_browser))] +884 ip_bind_addrs: transports.ip_bind_addrs(), +885 tls_config: tls_config.clone(), +886 hooks, +887 }); +888 +889 let mut endpoint_config = quinn::EndpointConfig::default(); +890 // Setting this to false means that quinn will ignore packets that have the QUIC fixed bit +891 // set to 0. The fixed bit is the 3rd bit of the first byte of a packet. +892 // For performance reasons and to not rewrite buffers we pass non-QUIC UDP packets straight +893 // through to quinn. We set the first byte of the packet to zero, which makes quinn ignore +894 // the packet if grease_quic_bit is set to false. +895 endpoint_config.grease_quic_bit(false); +896 +897 let local_addrs_watch = transports.local_addrs_watch(); +898 let transports_network_change = transports.create_network_change_sender(); +899 +900 let runtime = Arc::new(Runtime::new(secret_key.public())); +901 +902 let endpoint = quinn::Endpoint::new_with_abstract_socket( +903 endpoint_config, +904 Some(server_config), +905 Box::new(Transport::new(sock.clone(), transports)), +906 runtime.clone(), +907 ) +908 .map_err(|err| e!(BindError::CreateQuicEndpoint, err))?; +909 +910 let network_monitor = netmon::Monitor::new() +911 .await +912 .map_err(|err| e!(BindError::CreateNetmonMonitor, err))?; +913 +914 #[cfg(not(wasm_browser))] +915 let net_report_config = { +916 // Set a `QuicConfig` for address discovery (QAD), but only if we have IP transports. +917 // +918 // If there are no IP transports configured, then we don't set a QuicConfig. +919 // If we would, the `quinn::Endpoint` passed along will not have IP connectivity, +920 // and the QAD probes that connect to the relay's QUIC endpoints would time out +921 // because all outgoing packets to IP destinations would be dropped. +922 let qad_config = has_ip_transports.then(|| QuicConfig { +923 ep: endpoint.clone(), +924 client_config: tls_config.clone(), +925 ipv4: true, +926 ipv6: has_ipv6_transport, +927 }); +928 net_report::Options::new(tls_config.clone()).quic_config(qad_config) +929 }; +930 +931 #[cfg(wasm_browser)] +932 let net_report_config = net_report::Options::default(); +933 +934 let net_reporter = net_report::Client::new( +935 #[cfg(not(wasm_browser))] +936 dns_resolver, +937 relay_map.clone(), +938 net_report_config, +939 metrics.net_report.clone(), +940 ); +941 +942 let (direct_addr_done_tx, direct_addr_done_rx) = mpsc::channel(8); +943 let direct_addr_update_state = DirectAddrUpdateState::new( +944 sock.clone(), +945 #[cfg(not(wasm_browser))] +946 port_mapper, +947 Arc::new(AsyncMutex::new(net_reporter)), +948 relay_map, +949 direct_addr_done_tx, +950 sock.shutdown.at_close_start.child_token(), +951 ); +952 +953 let local_interfaces_watcher = network_monitor.interface_state(); +954 +955 #[cfg_attr(not(wasm_browser), allow(unused_mut))] +956 let mut actor = Actor { +957 sock: sock.clone(), +958 remote_map, +959 periodic_re_stun_timer: new_re_stun_timer(false), +960 network_monitor, +961 local_interfaces_watcher, +962 direct_addr_update_state, +963 transports_network_change, +964 direct_addr_done_rx, +965 }; +966 // Initialize addresses +967 #[cfg(not(wasm_browser))] +968 actor.update_direct_addresses(None); +969 +970 let actor_task = task::spawn( +971 actor +972 .run( +973 actor_receiver, +974 shutdown_token.child_token(), +975 local_addrs_watch, +976 ) +977 .instrument(info_span!("actor")), +978 ); 979 -980 // Cancel at_close_start token, which cancels running netreports. -981 self.sock.shutdown.at_close_start.cancel(); -982 -983 // Remove address lookup services -984 self.sock.address_lookup().clear(); -985 -986 // Initiate closing all connections, and refuse future connections. -987 self.quinn_endpoint().close(0u16.into(), b""); -988 -989 // In the history of this code, this call had been -990 // - removed: https://github.com/n0-computer/iroh/pull/1753 -991 // - then added back in: https://github.com/n0-computer/iroh/pull/2227/files#diff-ba27e40e2986a3919b20f6b412ad4fe63154af648610ea5d9ed0b5d5b0e2d780R573 -992 // - then removed again: https://github.com/n0-computer/iroh/pull/3165 -993 // and finally added back in together with this comment. -994 // So before removing this call, please consider carefully. -995 // Among other things, this call tries its best to make sure that any queued close frames -996 // (e.g. via the call to `endpoint.close(...)` above), are flushed out to the sockets -997 // *and acknowledged* (or time out with the "probe timeout" of usually 3 seconds). -998 // This allows the other endpoints for these connections to be notified to release -999 // their resources, or - depending on the protocol - that all data was received. -1000 // With the current quinn API, this is the only way to ensure protocol code can use -1001 // connection close codes, and close the endpoint properly. -1002 // If this call is skipped, then connections that protocols close just shortly before the -1003 // call to `Endpoint::close` will in most cases cause connection time-outs on remote ends. -1004 trace!("wait_idle start"); -1005 self.quinn_endpoint().wait_idle().await; -1006 trace!("wait_idle done"); -1007 -1008 // Start cancellation of all actors. -1009 self.sock.shutdown.at_endpoint_closed.cancel(); +980 let actor_task = Mutex::new(Some(AbortOnDropHandle::new(actor_task))); +981 +982 Ok(EndpointInner { +983 sock, +984 actor_sender, +985 actor_task, +986 endpoint, +987 runtime, +988 static_config, +989 }) +990 } +991 +992 /// Returns a reference to the underlying [`quinn::Endpoint`]. +993 pub(crate) fn quinn_endpoint(&self) -> &quinn::Endpoint { +994 &self.endpoint +995 } +996 +997 /// Closes the iroh endpoint. +998 /// +999 /// Only the first close does anything. Any later closes return nil. Polling the socket +1000 /// ([`quinn::AsyncUdpSocket::poll_recv`]) will return [`Poll::Pending`] indefinitely +1001 /// after this call. +1002 /// +1003 /// [`Poll::Pending`]: std::task::Poll::Pending +1004 #[instrument(skip_all)] +1005 pub(crate) async fn close(&self) { +1006 if self.sock.is_closed() || self.sock.is_closing() { +1007 return; +1008 } +1009 trace!(me = ?self.public_key, "socket closing..."); 1010 -1011 // MutexGuard is not held across await points -1012 let task = self.actor_task.lock().expect("poisoned").take(); -1013 if let Some(task) = task { -1014 // give the tasks a moment to shutdown cleanly -1015 let shutdown_done = time::timeout(Duration::from_millis(100), async move { -1016 if let Err(err) = task.await { -1017 warn!("unexpected error in task shutdown: {:?}", err); -1018 } -1019 }) -1020 .await; -1021 match shutdown_done { -1022 Ok(_) => trace!("tasks finished in time, shutdown complete"), -1023 Err(time::Elapsed { .. }) => { -1024 // Dropping the task will abort it -1025 warn!("tasks didn't finish in time, aborting"); -1026 } -1027 } -1028 } -1029 -1030 // Waits for the EndpointDriver and all ConnectionDrivers to shut down -1031 // Expects that the `quinn::Endpoint` has been closed before this call, -1032 // otherwise, the runtime will never shutdown. -1033 self.runtime.shutdown().await; -1034 -1035 self.sock.shutdown.closed.store(true, Ordering::SeqCst); -1036 -1037 trace!("socket closed"); -1038 } -1039 -1040 /// Aborts the endpoint ungracefully: -1041 /// -1042 /// - Calls cancellation token that stops running net reports -1043 /// - Removes all address lookup services -1044 /// - Calls cancellation token that stops all the Socket actors -1045 /// - Aborts the runtime -1046 /// - Drops the actor task -1047 /// - Sets the `Socket::is_closed` state to true -1048 /// -1049 /// This does not wait for any current connections or tasks to close gracefully. -1050 /// -1051 /// This should only be called in the `iroh::Endpoint` `Drop` impl when the -1052 /// `iroh::Endpoint` is dropped without first calling `Endpoint::close`. -1053 #[instrument(skip_all)] -1054 pub(crate) fn abort(&self) { -1055 if self.sock.is_closed() || self.sock.is_closing() { -1056 return; -1057 } -1058 trace!(me = ?self.public_key, "aborting socket..."); -1059 -1060 // Cancel at_close_start token, which cancels running netreports. -1061 self.sock.shutdown.at_close_start.cancel(); -1062 -1063 self.sock.address_lookup().clear(); -1064 -1065 // Cancel all actors. -1066 self.sock.shutdown.at_endpoint_closed.cancel(); +1011 // Cancel at_close_start token, which cancels running netreports. +1012 self.sock.shutdown.at_close_start.cancel(); +1013 +1014 // Remove address lookup services +1015 self.sock.address_lookup().clear(); +1016 +1017 // Initiate closing all connections, and refuse future connections. +1018 self.quinn_endpoint().close(0u16.into(), b""); +1019 +1020 // In the history of this code, this call had been +1021 // - removed: https://github.com/n0-computer/iroh/pull/1753 +1022 // - then added back in: https://github.com/n0-computer/iroh/pull/2227/files#diff-ba27e40e2986a3919b20f6b412ad4fe63154af648610ea5d9ed0b5d5b0e2d780R573 +1023 // - then removed again: https://github.com/n0-computer/iroh/pull/3165 +1024 // and finally added back in together with this comment. +1025 // So before removing this call, please consider carefully. +1026 // Among other things, this call tries its best to make sure that any queued close frames +1027 // (e.g. via the call to `endpoint.close(...)` above), are flushed out to the sockets +1028 // *and acknowledged* (or time out with the "probe timeout" of usually 3 seconds). +1029 // This allows the other endpoints for these connections to be notified to release +1030 // their resources, or - depending on the protocol - that all data was received. +1031 // With the current quinn API, this is the only way to ensure protocol code can use +1032 // connection close codes, and close the endpoint properly. +1033 // If this call is skipped, then connections that protocols close just shortly before the +1034 // call to `Endpoint::close` will in most cases cause connection time-outs on remote ends. +1035 trace!("wait_idle start"); +1036 self.quinn_endpoint().wait_idle().await; +1037 trace!("wait_idle done"); +1038 +1039 // Start cancellation of all actors. +1040 self.sock.shutdown.at_endpoint_closed.cancel(); +1041 +1042 // MutexGuard is not held across await points +1043 let task = self.actor_task.lock().expect("poisoned").take(); +1044 if let Some(task) = task { +1045 // give the tasks a moment to shutdown cleanly +1046 let shutdown_done = time::timeout(Duration::from_millis(100), async move { +1047 if let Err(err) = task.await { +1048 warn!("unexpected error in task shutdown: {:?}", err); +1049 } +1050 }) +1051 .await; +1052 match shutdown_done { +1053 Ok(_) => trace!("tasks finished in time, shutdown complete"), +1054 Err(time::Elapsed { .. }) => { +1055 // Dropping the task will abort it +1056 warn!("tasks didn't finish in time, aborting"); +1057 } +1058 } +1059 } +1060 +1061 // Waits for the EndpointDriver and all ConnectionDrivers to shut down +1062 // Expects that the `quinn::Endpoint` has been closed before this call, +1063 // otherwise, the runtime will never shutdown. +1064 self.runtime.shutdown().await; +1065 +1066 self.sock.shutdown.closed.store(true, Ordering::SeqCst); 1067 -1068 // Aborts all tasks, not waiting for any to close gracefully. -1069 self.runtime.abort(); +1068 trace!("socket closed"); +1069 } 1070 -1071 self.actor_task.lock().expect("poisoned").take(); -1072 -1073 self.sock.shutdown.closed.store(true, Ordering::SeqCst); -1074 trace!("socket closed"); -1075 } -1076 -1077 pub(crate) async fn insert_relay( -1078 &self, -1079 relay: RelayUrl, -1080 endpoint: Arc<RelayConfig>, -1081 ) -> Option<Arc<RelayConfig>> { -1082 let res = self.relay_map.insert(relay, endpoint); -1083 self.actor_sender -1084 .send(ActorMessage::RelayMapChange) -1085 .await -1086 .ok(); -1087 res -1088 } -1089 -1090 pub(crate) async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>> { -1091 let res = self.relay_map.remove(relay); -1092 self.actor_sender -1093 .send(ActorMessage::RelayMapChange) -1094 .await -1095 .ok(); -1096 res -1097 } +1071 /// Aborts the endpoint ungracefully: +1072 /// +1073 /// - Calls cancellation token that stops running net reports +1074 /// - Removes all address lookup services +1075 /// - Calls cancellation token that stops all the Socket actors +1076 /// - Aborts the runtime +1077 /// - Drops the actor task +1078 /// - Sets the `Socket::is_closed` state to true +1079 /// +1080 /// This does not wait for any current connections or tasks to close gracefully. +1081 /// +1082 /// This should only be called in the `iroh::Endpoint` `Drop` impl when the +1083 /// `iroh::Endpoint` is dropped without first calling `Endpoint::close`. +1084 #[instrument(skip_all)] +1085 pub(crate) fn abort(&self) { +1086 if self.sock.is_closed() || self.sock.is_closing() { +1087 return; +1088 } +1089 trace!(me = ?self.public_key, "aborting socket..."); +1090 +1091 // Cancel at_close_start token, which cancels running netreports. +1092 self.sock.shutdown.at_close_start.cancel(); +1093 +1094 self.sock.address_lookup().clear(); +1095 +1096 // Cancel all actors. +1097 self.sock.shutdown.at_endpoint_closed.cancel(); 1098 -1099 /// Call to notify the system of potential network changes. -1100 pub(crate) async fn network_change(&self) { -1101 self.actor_sender -1102 .send(ActorMessage::NetworkChange) -1103 .await -1104 .ok(); -1105 } -1106 -1107 #[cfg(test)] -1108 async fn force_network_change(&self, is_major: bool) { -1109 self.actor_sender -1110 .send(ActorMessage::ForceNetworkChange(is_major)) -1111 .await -1112 .ok(); -1113 } -1114 -1115 /// Resolves an [`EndpointAddr`] to an [`EndpointIdMappedAddr`] to connect to via [`EndpointInner::endpoint`]. -1116 /// -1117 /// This starts a `RemoteStateActor` for the remote if not running already, and then checks -1118 /// if the actor has any known paths to the remote. If not, it starts address lookup and waits for -1119 /// at least one result to arrive. -1120 /// -1121 /// Returns `Ok(Ok(EndpointIdMappedAddr))` if there is a known path or Address Lookup produced -1122 /// at least one result. This does not mean there is a working path, only that we have at least -1123 /// one transport address we can try to connect to. -1124 /// -1125 /// Returns `Ok(Err(address_lookup_error))` if there are no known paths to the remote and Address Lookup -1126 /// failed or produced no results. This means that we don't have any transport address for -1127 /// the remote, thus there is no point in trying to connect over the quinn endpoint. -1128 /// -1129 /// Returns `Err(RemoteStateActorStoppedError)` if the `RemoteStateActor` for the remote has stopped, -1130 /// which may never happen and thus is a bug if it does. -1131 pub(crate) async fn resolve_remote( -1132 &self, -1133 addr: EndpointAddr, -1134 ) -> Result<Result<EndpointIdMappedAddr, AddressLookupError>, RemoteStateActorStoppedError> -1135 { -1136 let (tx, rx) = oneshot::channel(); -1137 self.actor_sender -1138 .send(ActorMessage::ResolveRemote(addr, tx)) -1139 .await -1140 .ok(); -1141 rx.await.map_err(|_| RemoteStateActorStoppedError::new())? -1142 } -1143 -1144 /// Fetches the [`RemoteInfo`] about a remote from the `RemoteStateActor`. -1145 /// -1146 /// Returns `None` if no actor is running for the remote. -1147 pub(crate) async fn remote_info(&self, id: EndpointId) -> Option<RemoteInfo> { -1148 let (tx, rx) = oneshot::channel(); -1149 self.actor_sender -1150 .send(ActorMessage::RemoteInfo(id, tx)) -1151 .await -1152 .ok()?; -1153 rx.await.ok() -1154 } -1155 -1156 /// Registers the connection in the `RemoteStateActor`. -1157 /// -1158 /// The actor is responsible for holepunching and opening additional paths to this -1159 /// connection. -1160 /// -1161 /// Returns a future that resolves to [`PathWatchable`]. -1162 /// -1163 /// The returned future is `'static`, so it can be stored without being liftetime-bound to `&self`. -1164 pub(crate) fn register_connection( -1165 &self, -1166 remote: EndpointId, -1167 conn: WeakConnectionHandle, -1168 ) -> impl Future<Output = Result<PathWatchable, RemoteStateActorStoppedError>> + Send + 'static -1169 { -1170 let (tx, rx) = oneshot::channel(); -1171 let sender = self.actor_sender.clone(); -1172 async move { -1173 sender -1174 .send(ActorMessage::AddConnection(remote, conn, tx)) -1175 .await -1176 .map_err(|_| RemoteStateActorStoppedError::new())?; -1177 rx.await.map_err(|_| RemoteStateActorStoppedError::new()) -1178 } -1179 } -1180} -1181 -1182fn default_quic_client_config() -> rustls::ClientConfig { -1183 // create a client config for the endpoint to use for QUIC address discovery -1184 let root_store = -1185 rustls::RootCertStore::from_iter(webpki_roots::TLS_SERVER_ROOTS.iter().cloned()); -1186 rustls::client::ClientConfig::builder_with_provider(Arc::new( -1187 rustls::crypto::ring::default_provider(), -1188 )) -1189 .with_safe_default_protocol_versions() -1190 .expect("ring supports these") -1191 .with_root_certificates(root_store) -1192 .with_no_client_auth() -1193} -1194 -1195#[derive(derive_more::Debug)] -1196#[allow(clippy::enum_variant_names)] -1197enum ActorMessage { -1198 NetworkChange, -1199 RelayMapChange, -1200 #[debug("ResolveRemote(..)")] -1201 ResolveRemote( -1202 EndpointAddr, -1203 oneshot::Sender< -1204 Result<Result<EndpointIdMappedAddr, AddressLookupError>, RemoteStateActorStoppedError>, -1205 >, -1206 ), -1207 #[debug("AddConnection(..)")] -1208 AddConnection( -1209 EndpointId, -1210 WeakConnectionHandle, -1211 oneshot::Sender<PathWatchable>, -1212 ), -1213 #[debug("RemoteInfo(..)")] -1214 RemoteInfo(EndpointId, oneshot::Sender<RemoteInfo>), -1215 #[cfg(test)] -1216 ForceNetworkChange(bool), -1217} -1218 -1219struct Actor { -1220 sock: Arc<Socket>, -1221 /// Tracks the networkmap endpoint entity for each endpoint discovery key. -1222 remote_map: RemoteMap, -1223 /// When set, is an AfterFunc timer that will call Socket::do_periodic_stun. -1224 periodic_re_stun_timer: time::Interval, -1225 -1226 network_monitor: netmon::Monitor, -1227 netmon_watcher: n0_watcher::Direct<netmon::State>, -1228 network_change_sender: transports::NetworkChangeSender, -1229 /// Indicates the direct addr update state. -1230 direct_addr_update_state: DirectAddrUpdateState, -1231 direct_addr_done_rx: mpsc::Receiver<()>, -1232} -1233 -1234impl Actor { -1235 async fn run( -1236 mut self, -1237 mut msg_receiver: mpsc::Receiver<ActorMessage>, -1238 shutdown_token: CancellationToken, -1239 mut local_addrs_watcher: impl Watcher<Value = Vec<transports::Addr>> + Send + Sync, -1240 ) { -1241 // Setup network monitoring -1242 let mut current_netmon_state = self.netmon_watcher.get(); -1243 -1244 #[cfg(not(wasm_browser))] -1245 let mut portmap_watcher = self -1246 .direct_addr_update_state -1247 .port_mapper -1248 .watch_external_address(); -1249 -1250 let mut receiver_closed = false; -1251 #[cfg_attr(wasm_browser, allow(unused_mut))] -1252 let mut portmap_watcher_closed = false; -1253 -1254 let mut net_report_watcher = self.sock.net_report.watch(); -1255 -1256 // ensure we are doing an initial publish of our addresses -1257 self.sock.publish_my_addr(); +1099 // Aborts all tasks, not waiting for any to close gracefully. +1100 self.runtime.abort(); +1101 +1102 self.actor_task.lock().expect("poisoned").take(); +1103 +1104 self.sock.shutdown.closed.store(true, Ordering::SeqCst); +1105 trace!("socket closed"); +1106 } +1107 +1108 pub(crate) async fn insert_relay( +1109 &self, +1110 relay: RelayUrl, +1111 endpoint: Arc<RelayConfig>, +1112 ) -> Option<Arc<RelayConfig>> { +1113 let res = self.relay_map.insert(relay, endpoint); +1114 self.actor_sender +1115 .send(ActorMessage::RelayMapChange) +1116 .await +1117 .ok(); +1118 res +1119 } +1120 +1121 pub(crate) async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>> { +1122 let res = self.relay_map.remove(relay); +1123 self.actor_sender +1124 .send(ActorMessage::RelayMapChange) +1125 .await +1126 .ok(); +1127 res +1128 } +1129 +1130 /// Call to notify the system of potential network changes. +1131 pub(crate) async fn network_change(&self) { +1132 self.actor_sender +1133 .send(ActorMessage::NetworkChange) +1134 .await +1135 .ok(); +1136 } +1137 +1138 #[cfg(test)] +1139 async fn force_network_change(&self, is_major: bool) { +1140 self.actor_sender +1141 .send(ActorMessage::ForceNetworkChange(is_major)) +1142 .await +1143 .ok(); +1144 } +1145 +1146 /// Resolves an [`EndpointAddr`] to an [`EndpointIdMappedAddr`] to connect to via [`EndpointInner::endpoint`]. +1147 /// +1148 /// This starts a `RemoteStateActor` for the remote if not running already, and then checks +1149 /// if the actor has any known paths to the remote. If not, it starts address lookup and waits for +1150 /// at least one result to arrive. +1151 /// +1152 /// Returns `Ok(Ok(EndpointIdMappedAddr))` if there is a known path or Address Lookup produced +1153 /// at least one result. This does not mean there is a working path, only that we have at least +1154 /// one transport address we can try to connect to. +1155 /// +1156 /// Returns `Ok(Err(address_lookup_error))` if there are no known paths to the remote and Address Lookup +1157 /// failed or produced no results. This means that we don't have any transport address for +1158 /// the remote, thus there is no point in trying to connect over the quinn endpoint. +1159 /// +1160 /// Returns `Err(RemoteStateActorStoppedError)` if the `RemoteStateActor` for the remote has stopped, +1161 /// which may never happen and thus is a bug if it does. +1162 pub(crate) async fn resolve_remote( +1163 &self, +1164 addr: EndpointAddr, +1165 ) -> Result<Result<EndpointIdMappedAddr, AddressLookupError>, RemoteStateActorStoppedError> +1166 { +1167 let (tx, rx) = oneshot::channel(); +1168 self.actor_sender +1169 .send(ActorMessage::ResolveRemote(addr, tx)) +1170 .await +1171 .ok(); +1172 rx.await.map_err(|_| RemoteStateActorStoppedError::new())? +1173 } +1174 +1175 /// Fetches the [`RemoteInfo`] about a remote from the `RemoteStateActor`. +1176 /// +1177 /// Returns `None` if no actor is running for the remote. +1178 pub(crate) async fn remote_info(&self, id: EndpointId) -> Option<RemoteInfo> { +1179 let (tx, rx) = oneshot::channel(); +1180 self.actor_sender +1181 .send(ActorMessage::RemoteInfo(id, tx)) +1182 .await +1183 .ok()?; +1184 rx.await.ok() +1185 } +1186 +1187 /// Registers the connection in the `RemoteStateActor`. +1188 /// +1189 /// The actor is responsible for holepunching and opening additional paths to this +1190 /// connection. +1191 /// +1192 /// Returns a future that resolves to [`PathWatchable`]. +1193 /// +1194 /// The returned future is `'static`, so it can be stored without being liftetime-bound to `&self`. +1195 pub(crate) fn register_connection( +1196 &self, +1197 remote: EndpointId, +1198 conn: WeakConnectionHandle, +1199 ) -> impl Future<Output = Result<PathWatchable, RemoteStateActorStoppedError>> + Send + 'static +1200 { +1201 let (tx, rx) = oneshot::channel(); +1202 let sender = self.actor_sender.clone(); +1203 async move { +1204 sender +1205 .send(ActorMessage::AddConnection(remote, conn, tx)) +1206 .await +1207 .map_err(|_| RemoteStateActorStoppedError::new())?; +1208 rx.await.map_err(|_| RemoteStateActorStoppedError::new()) +1209 } +1210 } +1211} +1212 +1213#[derive(derive_more::Debug)] +1214#[allow(clippy::enum_variant_names)] +1215enum ActorMessage { +1216 NetworkChange, +1217 RelayMapChange, +1218 #[debug("ResolveRemote(..)")] +1219 ResolveRemote( +1220 EndpointAddr, +1221 oneshot::Sender< +1222 Result<Result<EndpointIdMappedAddr, AddressLookupError>, RemoteStateActorStoppedError>, +1223 >, +1224 ), +1225 #[debug("AddConnection(..)")] +1226 AddConnection( +1227 EndpointId, +1228 WeakConnectionHandle, +1229 oneshot::Sender<PathWatchable>, +1230 ), +1231 #[debug("RemoteInfo(..)")] +1232 RemoteInfo(EndpointId, oneshot::Sender<RemoteInfo>), +1233 #[cfg(test)] +1234 ForceNetworkChange(bool), +1235} +1236 +1237struct Actor { +1238 /// Shared state between an awful lot of iroh subsystems. +1239 /// +1240 /// In particular both the [`EndpointInner`] as well as this actor itself have a +1241 /// copy. But also other subsystems that consequently have access to way to much state. +1242 sock: Arc<Socket>, +1243 /// Tracks the networkmap endpoint entity for each endpoint discovery key. +1244 remote_map: RemoteMap, +1245 /// When set, is an AfterFunc timer that will call Socket::do_periodic_stun. +1246 periodic_re_stun_timer: time::Interval, +1247 /// An actor watching the local network interfaces. +1248 /// +1249 /// The monitored changes are emitted via [`Self::local_interfaces_watcher`]. +1250 network_monitor: netmon::Monitor, +1251 /// Watcher for changes to the local network interfaces, IP addresses and routes. +1252 local_interfaces_watcher: n0_watcher::Direct<netmon::State>, +1253 transports_network_change: transports::NetworkChangeSender, +1254 /// Indicates the direct addr update state. +1255 direct_addr_update_state: DirectAddrUpdateState, +1256 direct_addr_done_rx: mpsc::Receiver<()>, +1257} 1258 -1259 while !shutdown_token.is_cancelled() { -1260 self.sock.metrics.socket.actor_tick_main.inc(); -1261 #[cfg(not(wasm_browser))] -1262 let portmap_watcher_changed = portmap_watcher.changed(); -1263 #[cfg(wasm_browser)] -1264 let portmap_watcher_changed = n0_future::future::pending(); -1265 -1266 tokio::select! { -1267 _ = shutdown_token.cancelled() => { -1268 debug!("tick: shutting down"); -1269 return; -1270 } -1271 msg = msg_receiver.recv(), if !receiver_closed => { -1272 let Some(msg) = msg else { -1273 trace!("tick: socket receiver closed"); -1274 self.sock.metrics.socket.actor_tick_other.inc(); -1275 -1276 receiver_closed = true; -1277 continue; -1278 }; -1279 -1280 trace!(?msg, "tick: msg"); -1281 self.sock.metrics.socket.actor_tick_msg.inc(); -1282 self.handle_actor_message(msg).await; -1283 } -1284 tick = self.periodic_re_stun_timer.tick() => { -1285 trace!("tick: re_stun {:?}", tick); -1286 self.sock.metrics.socket.actor_tick_re_stun.inc(); -1287 self.re_stun(UpdateReason::Periodic); -1288 } -1289 new_addr = local_addrs_watcher.updated() => { -1290 match new_addr { -1291 Ok(addrs) => { -1292 if !addrs.is_empty() { -1293 trace!(?addrs, "local addrs"); -1294 self.sock.publish_my_addr(); -1295 } -1296 } -1297 Err(_) => { -1298 warn!("local addr watcher stopped"); -1299 } -1300 } -1301 } -1302 report = net_report_watcher.updated() => { -1303 match report { -1304 Ok((report, _)) => { -1305 self.handle_net_report_report(report); -1306 #[cfg(not(wasm_browser))] -1307 { -1308 self.periodic_re_stun_timer = new_re_stun_timer(true); -1309 } -1310 } -1311 Err(_) => { -1312 warn!("net report watcher stopped"); -1313 } -1314 } -1315 } -1316 reason = self.direct_addr_done_rx.recv() => { -1317 match reason { -1318 Some(()) => { -1319 // check if a new run needs to be scheduled -1320 let state = self.netmon_watcher.get(); -1321 self.direct_addr_update_state.try_run(state.into()); -1322 } -1323 None => { -1324 warn!("direct addr watcher died"); -1325 } -1326 } -1327 } -1328 change = portmap_watcher_changed, if !portmap_watcher_closed => { -1329 #[cfg(not(wasm_browser))] -1330 { -1331 if change.is_err() { -1332 trace!("tick: portmap watcher closed"); -1333 self.sock.metrics.socket.actor_tick_other.inc(); -1334 -1335 portmap_watcher_closed = true; -1336 continue; -1337 } -1338 -1339 trace!("tick: portmap changed"); -1340 self.sock.metrics.socket.actor_tick_portmap_changed.inc(); -1341 let new_external_address = *portmap_watcher.borrow(); -1342 debug!("external address updated: {new_external_address:?}"); -1343 self.re_stun(UpdateReason::PortmapUpdated); -1344 } -1345 #[cfg(wasm_browser)] -1346 let _unused_in_browsers = change; -1347 }, -1348 state = self.netmon_watcher.updated() => { -1349 let Ok(state) = state else { -1350 trace!("tick: link change receiver closed"); -1351 self.sock.metrics.socket.actor_tick_other.inc(); -1352 continue; -1353 }; -1354 let is_major = state.is_major_change(&current_netmon_state); -1355 event!( -1356 target: "iroh::_events::link_change", -1357 Level::DEBUG, -1358 ?state, -1359 is_major -1360 ); -1361 current_netmon_state = state; -1362 self.sock.metrics.socket.actor_link_change.inc(); -1363 self.handle_network_change(is_major).await; -1364 } -1365 eid = poll_fn(|cx| self.remote_map.poll_cleanup(cx)) => { -1366 trace!(%eid, "cleaned up RemoteStateActor"); -1367 } -1368 else => { -1369 trace!("tick: else"); -1370 } -1371 } -1372 } -1373 } -1374 -1375 async fn handle_network_change(&mut self, is_major: bool) { -1376 debug!(is_major, "link change detected"); -1377 -1378 if is_major { -1379 if let Err(err) = self.network_change_sender.rebind() { -1380 warn!("failed to rebind transports: {err:?}"); -1381 } -1382 -1383 #[cfg(not(wasm_browser))] -1384 self.sock.dns_resolver.reset().await; -1385 self.re_stun(UpdateReason::LinkChangeMajor); -1386 } else { -1387 self.re_stun(UpdateReason::LinkChangeMinor); -1388 } -1389 -1390 self.remote_map.on_network_change(is_major); -1391 } -1392 -1393 fn handle_relay_map_change(&mut self) { -1394 self.re_stun(UpdateReason::RelayMapChange); -1395 } -1396 -1397 fn re_stun(&mut self, why: UpdateReason) { -1398 let state = self.netmon_watcher.get(); -1399 self.direct_addr_update_state -1400 .schedule_run(why, state.into()); -1401 } -1402 -1403 /// Processes an incoming actor message. -1404 /// -1405 /// Returns `true` if it was a shutdown. -1406 async fn handle_actor_message(&mut self, msg: ActorMessage) { -1407 match msg { -1408 ActorMessage::NetworkChange => { -1409 self.network_monitor.network_change().await.ok(); +1259impl Actor { +1260 async fn run( +1261 mut self, +1262 mut msg_receiver: mpsc::Receiver<ActorMessage>, +1263 shutdown_token: CancellationToken, +1264 mut local_addrs_watcher: impl Watcher<Value = Vec<transports::Addr>> + Send + Sync, +1265 ) { +1266 // Setup network monitoring +1267 let mut current_netmon_state = self.local_interfaces_watcher.get(); +1268 +1269 #[cfg(not(wasm_browser))] +1270 let mut portmap_watcher = self +1271 .direct_addr_update_state +1272 .port_mapper +1273 .watch_external_address(); +1274 +1275 let mut receiver_closed = false; +1276 #[cfg_attr(wasm_browser, allow(unused_mut))] +1277 let mut portmap_watcher_closed = false; +1278 +1279 let mut net_report_watcher = self.sock.net_report.watch(); +1280 +1281 // ensure we are doing an initial publish of our addresses +1282 self.sock.publish_my_addr(); +1283 +1284 while !shutdown_token.is_cancelled() { +1285 self.sock.metrics.socket.actor_tick_main.inc(); +1286 #[cfg(not(wasm_browser))] +1287 let portmap_watcher_changed = portmap_watcher.changed(); +1288 #[cfg(wasm_browser)] +1289 let portmap_watcher_changed = n0_future::future::pending(); +1290 +1291 tokio::select! { +1292 _ = shutdown_token.cancelled() => { +1293 debug!("tick: shutting down"); +1294 return; +1295 } +1296 msg = msg_receiver.recv(), if !receiver_closed => { +1297 let Some(msg) = msg else { +1298 trace!("tick: socket receiver closed"); +1299 self.sock.metrics.socket.actor_tick_other.inc(); +1300 +1301 receiver_closed = true; +1302 continue; +1303 }; +1304 +1305 trace!(?msg, "tick: msg"); +1306 self.sock.metrics.socket.actor_tick_msg.inc(); +1307 self.handle_actor_message(msg).await; +1308 } +1309 tick = self.periodic_re_stun_timer.tick() => { +1310 trace!("tick: re_stun {:?}", tick); +1311 self.sock.metrics.socket.actor_tick_re_stun.inc(); +1312 self.re_stun(UpdateReason::Periodic); +1313 } +1314 new_addr = local_addrs_watcher.updated() => { +1315 match new_addr { +1316 Ok(addrs) => { +1317 if !addrs.is_empty() { +1318 trace!(?addrs, "local addrs"); +1319 self.sock.publish_my_addr(); +1320 } +1321 } +1322 Err(_) => { +1323 warn!("local addr watcher stopped"); +1324 } +1325 } +1326 } +1327 report = net_report_watcher.updated() => { +1328 match report { +1329 Ok((report, _)) => { +1330 self.handle_net_report_report(report); +1331 #[cfg(not(wasm_browser))] +1332 { +1333 self.periodic_re_stun_timer = new_re_stun_timer(true); +1334 } +1335 } +1336 Err(_) => { +1337 warn!("net report watcher stopped"); +1338 } +1339 } +1340 } +1341 reason = self.direct_addr_done_rx.recv() => { +1342 match reason { +1343 Some(()) => { +1344 // check if a new run needs to be scheduled +1345 let state = self.local_interfaces_watcher.get(); +1346 self.direct_addr_update_state.try_run(state.into()); +1347 } +1348 None => { +1349 warn!("direct addr watcher died"); +1350 } +1351 } +1352 } +1353 change = portmap_watcher_changed, if !portmap_watcher_closed => { +1354 #[cfg(not(wasm_browser))] +1355 { +1356 if change.is_err() { +1357 trace!("tick: portmap watcher closed"); +1358 self.sock.metrics.socket.actor_tick_other.inc(); +1359 +1360 portmap_watcher_closed = true; +1361 continue; +1362 } +1363 +1364 trace!("tick: portmap changed"); +1365 self.sock.metrics.socket.actor_tick_portmap_changed.inc(); +1366 let new_external_address = *portmap_watcher.borrow(); +1367 debug!("external address updated: {new_external_address:?}"); +1368 self.re_stun(UpdateReason::PortmapUpdated); +1369 } +1370 #[cfg(wasm_browser)] +1371 let _unused_in_browsers = change; +1372 }, +1373 state = self.local_interfaces_watcher.updated() => { +1374 let Ok(state) = state else { +1375 trace!("tick: link change receiver closed"); +1376 self.sock.metrics.socket.actor_tick_other.inc(); +1377 continue; +1378 }; +1379 let is_major = state.is_major_change(&current_netmon_state); +1380 event!( +1381 target: "iroh::_events::link_change", +1382 Level::DEBUG, +1383 ?state, +1384 is_major +1385 ); +1386 current_netmon_state = state; +1387 self.sock.metrics.socket.actor_link_change.inc(); +1388 self.handle_network_change(is_major).await; +1389 } +1390 eid = poll_fn(|cx| self.remote_map.poll_cleanup(cx)) => { +1391 trace!(%eid, "cleaned up RemoteStateActor"); +1392 } +1393 else => { +1394 trace!("tick: else"); +1395 } +1396 } +1397 } +1398 } +1399 +1400 /// Handles a change detected in the local network conditions. +1401 /// +1402 /// This is triggered when the netmon actor detects a change in the local network +1403 /// interfaces, assigned IP addresses and routes. +1404 async fn handle_network_change(&mut self, is_major: bool) { +1405 debug!(is_major, "link change detected"); +1406 +1407 if is_major { +1408 if let Err(err) = self.transports_network_change.rebind() { +1409 warn!("failed to rebind transports: {err:?}"); 1410 } -1411 ActorMessage::RelayMapChange => { -1412 self.handle_relay_map_change(); -1413 } -1414 ActorMessage::ResolveRemote(addr, tx) => { -1415 tx.send(self.remote_map.resolve_remote(addr).await).ok(); -1416 } -1417 ActorMessage::RemoteInfo(id, tx) => { -1418 if let Some(info) = self.remote_map.remote_info(id).await { -1419 tx.send(info).ok(); -1420 } -1421 } -1422 ActorMessage::AddConnection(remote, conn, tx) => { -1423 if let Some(watcher) = self.remote_map.add_connection(remote, conn).await { -1424 tx.send(watcher).ok(); -1425 } -1426 } -1427 #[cfg(test)] -1428 ActorMessage::ForceNetworkChange(is_major) => { -1429 self.handle_network_change(is_major).await; -1430 } -1431 } -1432 } -1433 -1434 /// Updates the direct addresses of this socket. -1435 /// -1436 /// Updates the [`DiscoveredDirectAddrs`] of this [`Socket`] with the current set of -1437 /// direct addresses from: -1438 /// -1439 /// - The portmapper. -1440 /// - A net_report report. -1441 /// - The local interfaces IP addresses. -1442 #[cfg(not(wasm_browser))] -1443 fn update_direct_addresses(&mut self, net_report_report: Option<&net_report::Report>) { -1444 let portmap_watcher = self -1445 .direct_addr_update_state -1446 .port_mapper -1447 .watch_external_address(); -1448 -1449 // We only want to have one DirectAddr for each SocketAddr we have. So we store -1450 // this as a map of SocketAddr -> DirectAddrType. At the end we will construct a -1451 // DirectAddr from each entry. -1452 let mut addrs: BTreeMap<SocketAddr, DirectAddrType> = BTreeMap::new(); -1453 -1454 // First add PortMapper provided addresses. -1455 let maybe_port_mapped = *portmap_watcher.borrow(); -1456 if let Some(portmap_ext) = maybe_port_mapped.map(SocketAddr::V4) { -1457 addrs -1458 .entry(portmap_ext) -1459 .or_insert(DirectAddrType::Portmapped); +1411 +1412 #[cfg(not(wasm_browser))] +1413 self.sock.dns_resolver.reset().await; +1414 self.re_stun(UpdateReason::LinkChangeMajor); +1415 } else { +1416 self.re_stun(UpdateReason::LinkChangeMinor); +1417 } +1418 +1419 self.remote_map.on_network_change(is_major); +1420 } +1421 +1422 fn handle_relay_map_change(&mut self) { +1423 self.re_stun(UpdateReason::RelayMapChange); +1424 } +1425 +1426 fn re_stun(&mut self, why: UpdateReason) { +1427 let state = self.local_interfaces_watcher.get(); +1428 self.direct_addr_update_state +1429 .schedule_run(why, state.into()); +1430 } +1431 +1432 /// Processes an incoming actor message. +1433 /// +1434 /// Returns `true` if it was a shutdown. +1435 async fn handle_actor_message(&mut self, msg: ActorMessage) { +1436 match msg { +1437 ActorMessage::NetworkChange => { +1438 self.network_monitor.network_change().await.ok(); +1439 } +1440 ActorMessage::RelayMapChange => { +1441 self.handle_relay_map_change(); +1442 } +1443 ActorMessage::ResolveRemote(addr, tx) => { +1444 tx.send(self.remote_map.resolve_remote(addr).await).ok(); +1445 } +1446 ActorMessage::RemoteInfo(id, tx) => { +1447 if let Some(info) = self.remote_map.remote_info(id).await { +1448 tx.send(info).ok(); +1449 } +1450 } +1451 ActorMessage::AddConnection(remote, conn, tx) => { +1452 if let Some(watcher) = self.remote_map.add_connection(remote, conn).await { +1453 tx.send(watcher).ok(); +1454 } +1455 } +1456 #[cfg(test)] +1457 ActorMessage::ForceNetworkChange(is_major) => { +1458 self.handle_network_change(is_major).await; +1459 } 1460 } -1461 -1462 // Next add STUN addresses from the net_report report. -1463 if let Some(net_report_report) = net_report_report { -1464 if let Some(global_v4) = net_report_report.global_v4 { -1465 addrs.entry(global_v4.into()).or_insert(DirectAddrType::Qad); -1466 -1467 // If they're behind a hard NAT and are using a fixed -1468 // port locally, assume they might've added a static -1469 // port mapping on their router to the same explicit -1470 // port that we are running with. Worst case it's an invalid candidate mapping. -1471 let port = self.sock.ip_bind_addrs().iter().find_map(|addr| { -1472 if addr.port() != 0 { -1473 Some(addr.port()) -1474 } else { -1475 None -1476 } -1477 }); -1478 -1479 if let Some(port) = port -1480 && net_report_report -1481 .mapping_varies_by_dest() -1482 .unwrap_or_default() -1483 { -1484 let mut addr = global_v4; -1485 addr.set_port(port); -1486 addrs -1487 .entry(addr.into()) -1488 .or_insert(DirectAddrType::Qad4LocalPort); -1489 } -1490 } -1491 if let Some(global_v6) = net_report_report.global_v6 { -1492 addrs.entry(global_v6.into()).or_insert(DirectAddrType::Qad); -1493 } -1494 } +1461 } +1462 +1463 /// Updates the direct addresses of this socket. +1464 /// +1465 /// Updates the [`DiscoveredDirectAddrs`] of this [`Socket`] with the current set of +1466 /// direct addresses from: +1467 /// +1468 /// - The portmapper. +1469 /// - A net_report report. +1470 /// - The local interfaces IP addresses. +1471 #[cfg(not(wasm_browser))] +1472 fn update_direct_addresses(&mut self, net_report_report: Option<&net_report::Report>) { +1473 let portmap_watcher = self +1474 .direct_addr_update_state +1475 .port_mapper +1476 .watch_external_address(); +1477 +1478 // We only want to have one DirectAddr for each SocketAddr we have. So we store +1479 // this as a map of SocketAddr -> DirectAddrType. At the end we will construct a +1480 // DirectAddr from each entry. +1481 let mut addrs: BTreeMap<SocketAddr, DirectAddrType> = BTreeMap::new(); +1482 +1483 // First add PortMapper provided addresses. +1484 let maybe_port_mapped = *portmap_watcher.borrow(); +1485 if let Some(portmap_ext) = maybe_port_mapped.map(SocketAddr::V4) { +1486 addrs +1487 .entry(portmap_ext) +1488 .or_insert(DirectAddrType::Portmapped); +1489 } +1490 +1491 // Next add STUN addresses from the net_report report. +1492 if let Some(net_report_report) = net_report_report { +1493 if let Some(global_v4) = net_report_report.global_v4 { +1494 addrs.entry(global_v4.into()).or_insert(DirectAddrType::Qad); 1495 -1496 self.collect_local_addresses(&mut addrs); -1497 -1498 // Finally create and store store all these direct addresses and send any -1499 // queued call-me-maybe messages. -1500 self.sock.store_direct_addresses( -1501 addrs -1502 .iter() -1503 .map(|(addr, typ)| DirectAddr { -1504 addr: *addr, -1505 typ: *typ, -1506 }) -1507 .collect(), -1508 ); -1509 } -1510 -1511 #[cfg(not(wasm_browser))] -1512 fn collect_local_addresses(&mut self, addrs: &mut BTreeMap<SocketAddr, DirectAddrType>) { -1513 // Matches the addresses that have been bound vs the requested ones. -1514 let local_addrs: Vec<(SocketAddr, SocketAddr)> = self -1515 .sock -1516 .ip_bind_addrs() -1517 .iter() -1518 .copied() -1519 .zip(self.sock.ip_local_addrs()) -1520 .collect(); -1521 -1522 // Do we listen on any IPv4 unspecified address? -1523 let has_ipv4_unspecified = local_addrs.iter().find_map(|(_, a)| { -1524 if a.is_ipv4() && a.ip().is_unspecified() { -1525 Some(a.port()) -1526 } else { -1527 None -1528 } -1529 }); -1530 // Do we listen on any IPv6 unspecified address? -1531 let has_ipv6_unspecified = local_addrs.iter().find_map(|(_, a)| { -1532 if a.is_ipv6() && a.ip().is_unspecified() { -1533 Some(a.port()) -1534 } else { -1535 None -1536 } -1537 }); -1538 -1539 // If a socket is bound to the unspecified address, create SocketAddrs for -1540 // each local IP address by pairing it with the port the socket is bound on. -1541 if local_addrs -1542 .iter() -1543 .any(|(_, local)| local.ip().is_unspecified()) -1544 { -1545 let LocalAddresses { -1546 regular: mut ips, -1547 loopback, -1548 } = self.netmon_watcher.get().local_addresses; -1549 if ips.is_empty() && addrs.is_empty() { -1550 // Include loopback addresses only if there are no other interfaces -1551 // or public addresses, this allows testing offline. -1552 ips = loopback; -1553 } -1554 -1555 for ip in ips { -1556 let port_if_unspecified = match ip { -1557 IpAddr::V4(_) => has_ipv4_unspecified, -1558 IpAddr::V6(_) => has_ipv6_unspecified, -1559 }; -1560 if let Some(port) = port_if_unspecified { -1561 let addr = SocketAddr::new(ip, port); -1562 addrs.entry(addr).or_insert(DirectAddrType::Local); -1563 } -1564 } -1565 } -1566 -1567 // If a socket is bound to a specific address, add it. -1568 for (bound, local) in local_addrs { -1569 if !bound.ip().is_unspecified() { -1570 addrs.entry(local).or_insert(DirectAddrType::Local); -1571 } -1572 } -1573 } -1574 -1575 fn handle_net_report_report(&mut self, mut report: Option<net_report::Report>) { -1576 if let Some(ref mut r) = report { -1577 self.sock.ipv6_reported.store(r.udp_v6, Ordering::Relaxed); -1578 if r.preferred_relay.is_none() -1579 && let Some(my_relay) = self.sock.my_relay() -1580 { -1581 r.preferred_relay.replace(my_relay); +1496 // If they're behind a hard NAT and are using a fixed +1497 // port locally, assume they might've added a static +1498 // port mapping on their router to the same explicit +1499 // port that we are running with. Worst case it's an invalid candidate mapping. +1500 let port = self.sock.ip_bind_addrs().iter().find_map(|addr| { +1501 if addr.port() != 0 { +1502 Some(addr.port()) +1503 } else { +1504 None +1505 } +1506 }); +1507 +1508 if let Some(port) = port +1509 && net_report_report +1510 .mapping_varies_by_dest() +1511 .unwrap_or_default() +1512 { +1513 let mut addr = global_v4; +1514 addr.set_port(port); +1515 addrs +1516 .entry(addr.into()) +1517 .or_insert(DirectAddrType::Qad4LocalPort); +1518 } +1519 } +1520 if let Some(global_v6) = net_report_report.global_v6 { +1521 addrs.entry(global_v6.into()).or_insert(DirectAddrType::Qad); +1522 } +1523 } +1524 +1525 self.collect_local_addresses(&mut addrs); +1526 +1527 // Finally create and store store all these direct addresses and send any +1528 // queued call-me-maybe messages. +1529 self.sock.store_direct_addresses( +1530 addrs +1531 .iter() +1532 .map(|(addr, typ)| DirectAddr { +1533 addr: *addr, +1534 typ: *typ, +1535 }) +1536 .collect(), +1537 ); +1538 } +1539 +1540 #[cfg(not(wasm_browser))] +1541 fn collect_local_addresses(&mut self, addrs: &mut BTreeMap<SocketAddr, DirectAddrType>) { +1542 // Matches the addresses that have been bound vs the requested ones. +1543 let local_addrs: Vec<(SocketAddr, SocketAddr)> = self +1544 .sock +1545 .ip_bind_addrs() +1546 .iter() +1547 .copied() +1548 .zip(self.sock.ip_local_addrs()) +1549 .collect(); +1550 +1551 // Do we listen on any IPv4 unspecified address? +1552 let has_ipv4_unspecified = local_addrs.iter().find_map(|(_, a)| { +1553 if a.is_ipv4() && a.ip().is_unspecified() { +1554 Some(a.port()) +1555 } else { +1556 None +1557 } +1558 }); +1559 // Do we listen on any IPv6 unspecified address? +1560 let has_ipv6_unspecified = local_addrs.iter().find_map(|(_, a)| { +1561 if a.is_ipv6() && a.ip().is_unspecified() { +1562 Some(a.port()) +1563 } else { +1564 None +1565 } +1566 }); +1567 +1568 // If a socket is bound to the unspecified address, create SocketAddrs for +1569 // each local IP address by pairing it with the port the socket is bound on. +1570 if local_addrs +1571 .iter() +1572 .any(|(_, local)| local.ip().is_unspecified()) +1573 { +1574 let LocalAddresses { +1575 regular: mut ips, +1576 loopback, +1577 } = self.local_interfaces_watcher.get().local_addresses; +1578 if ips.is_empty() && addrs.is_empty() { +1579 // Include loopback addresses only if there are no other interfaces +1580 // or public addresses, this allows testing offline. +1581 ips = loopback; 1582 } 1583 -1584 // Notify all transports -1585 self.network_change_sender.on_network_change(r); -1586 } -1587 -1588 #[cfg(not(wasm_browser))] -1589 self.update_direct_addresses(report.as_ref()); -1590 } -1591} -1592 -1593fn new_re_stun_timer(initial_delay: bool) -> time::Interval { -1594 // Pick a random duration between 20 and 26 seconds (just under 30s, -1595 // a common UDP NAT timeout on Linux,etc) -1596 let mut rng = rand::rng(); -1597 let d: Duration = rng.random_range(Duration::from_secs(20)..=Duration::from_secs(26)); -1598 if initial_delay { -1599 debug!("scheduling periodic_stun to run in {}s", d.as_secs()); -1600 time::interval_at(time::Instant::now() + d, d) -1601 } else { -1602 debug!( -1603 "scheduling periodic_stun to run immediately and in {}s", -1604 d.as_secs() -1605 ); -1606 time::interval(d) -1607 } -1608} -1609 -1610/// The discovered direct addresses of this [`Socket`]. -1611/// -1612/// These are all the [`DirectAddr`]s that this [`Socket`] is aware of for itself. -1613/// They include all locally bound ones as well as those discovered by other mechanisms like -1614/// QAD. -1615#[derive(derive_more::Debug, Clone, Default)] -1616struct DiscoveredDirectAddrs { -1617 /// The last set of discovered direct addresses. -1618 addrs: Watchable<BTreeSet<DirectAddr>>, -1619 -1620 /// The last time the direct addresses were updated, even if there was no change. -1621 /// -1622 /// This is only ever None at startup. -1623 updated_at: Arc<RwLock<Option<Instant>>>, -1624} -1625 -1626impl DiscoveredDirectAddrs { -1627 /// Updates the direct addresses, returns `true` if they changed, `false` if not. -1628 fn update(&self, addrs: BTreeSet<DirectAddr>) -> bool { -1629 *self.updated_at.write().expect("poisoned") = Some(Instant::now()); -1630 let updated = self.addrs.set(addrs).is_ok(); -1631 if updated { -1632 event!( -1633 target: "iroh::_events::direct_addrs", -1634 Level::DEBUG, -1635 addrs = ?self.addrs.get(), -1636 ); -1637 } -1638 updated -1639 } -1640 -1641 fn sockaddrs(&self) -> impl Iterator<Item = SocketAddr> { -1642 self.addrs.get().into_iter().map(|da| da.addr) -1643 } -1644} -1645 -1646/// A *direct address* on which an iroh-endpoint might be contactable. -1647/// -1648/// Direct addresses are UDP socket addresses on which an iroh endpoint could potentially be -1649/// contacted. These can come from various sources depending on the network topology of the -1650/// iroh endpoint, see [`DirectAddrType`] for the several kinds of sources. -1651/// -1652/// This is essentially a combination of our local addresses combined with any reflexive -1653/// transport addresses we discovered using QAD. -1654#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] -1655pub struct DirectAddr { -1656 /// The address. -1657 pub addr: SocketAddr, -1658 /// The origin of this direct address. -1659 pub typ: DirectAddrType, -1660} -1661 -1662/// The type of direct address. -1663/// -1664/// These are the various sources or origins from which an iroh endpoint might have found a -1665/// possible [`DirectAddr`]. -1666#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] -1667pub enum DirectAddrType { -1668 /// Not yet determined.. -1669 Unknown, -1670 /// A locally bound socket address. -1671 Local, -1672 /// Public internet address discovered via QAD. -1673 /// -1674 /// When possible an iroh endpoint will perform QAD to discover which is the address -1675 /// from which it sends data on the public internet. This can be different from locally -1676 /// bound addresses when the endpoint is on a local network which performs NAT or similar. -1677 Qad, -1678 /// An address assigned by the router using port mapping. -1679 /// -1680 /// When possible an iroh endpoint will request a port mapping from the local router to -1681 /// get a publicly routable direct address. -1682 Portmapped, -1683 /// Hard NAT: QAD'ed IPv4 address + local fixed port. -1684 /// -1685 /// It is possible to configure iroh to bound to a specific port and independently -1686 /// configure the router to forward this port to the iroh endpoint. This indicates a -1687 /// situation like this, which still uses QAD to discover the public address. -1688 Qad4LocalPort, +1584 for ip in ips { +1585 let port_if_unspecified = match ip { +1586 IpAddr::V4(_) => has_ipv4_unspecified, +1587 IpAddr::V6(_) => has_ipv6_unspecified, +1588 }; +1589 if let Some(port) = port_if_unspecified { +1590 let addr = SocketAddr::new(ip, port); +1591 addrs.entry(addr).or_insert(DirectAddrType::Local); +1592 } +1593 } +1594 } +1595 +1596 // If a socket is bound to a specific address, add it. +1597 for (bound, local) in local_addrs { +1598 if !bound.ip().is_unspecified() { +1599 addrs.entry(local).or_insert(DirectAddrType::Local); +1600 } +1601 } +1602 } +1603 +1604 fn handle_net_report_report(&mut self, mut report: Option<net_report::Report>) { +1605 if let Some(ref mut r) = report { +1606 self.sock.ipv6_reported.store(r.udp_v6, Ordering::Relaxed); +1607 if r.preferred_relay.is_none() +1608 && let Some(my_relay) = self.sock.my_relay() +1609 { +1610 r.preferred_relay.replace(my_relay); +1611 } +1612 +1613 // Notify all transports +1614 self.transports_network_change.on_network_change(r); +1615 } +1616 +1617 #[cfg(not(wasm_browser))] +1618 self.update_direct_addresses(report.as_ref()); +1619 } +1620} +1621 +1622fn new_re_stun_timer(initial_delay: bool) -> time::Interval { +1623 // Pick a random duration between 20 and 26 seconds (just under 30s, +1624 // a common UDP NAT timeout on Linux,etc) +1625 let mut rng = rand::rng(); +1626 let d: Duration = rng.random_range(Duration::from_secs(20)..=Duration::from_secs(26)); +1627 if initial_delay { +1628 debug!("scheduling periodic_stun to run in {}s", d.as_secs()); +1629 time::interval_at(time::Instant::now() + d, d) +1630 } else { +1631 debug!( +1632 "scheduling periodic_stun to run immediately and in {}s", +1633 d.as_secs() +1634 ); +1635 time::interval(d) +1636 } +1637} +1638 +1639/// The discovered direct addresses of this [`Socket`]. +1640/// +1641/// These are all the [`DirectAddr`]s that this [`Socket`] is aware of for itself. +1642/// They include all locally bound ones as well as those discovered by other mechanisms like +1643/// QAD. +1644#[derive(derive_more::Debug, Clone, Default)] +1645struct DiscoveredDirectAddrs { +1646 /// The last set of discovered direct addresses. +1647 addrs: Watchable<BTreeSet<DirectAddr>>, +1648 +1649 /// The last time the direct addresses were updated, even if there was no change. +1650 /// +1651 /// This is only ever None at startup. +1652 updated_at: Arc<RwLock<Option<Instant>>>, +1653} +1654 +1655impl DiscoveredDirectAddrs { +1656 /// Updates the direct addresses, returns `true` if they changed, `false` if not. +1657 fn update(&self, addrs: BTreeSet<DirectAddr>) -> bool { +1658 *self.updated_at.write().expect("poisoned") = Some(Instant::now()); +1659 let updated = self.addrs.set(addrs).is_ok(); +1660 if updated { +1661 event!( +1662 target: "iroh::_events::direct_addrs", +1663 Level::DEBUG, +1664 addrs = ?self.addrs.get(), +1665 ); +1666 } +1667 updated +1668 } +1669 +1670 fn sockaddrs(&self) -> impl Iterator<Item = SocketAddr> { +1671 self.addrs.get().into_iter().map(|da| da.addr) +1672 } +1673} +1674 +1675/// A *direct address* on which an iroh-endpoint might be contactable. +1676/// +1677/// Direct addresses are UDP socket addresses on which an iroh endpoint could potentially be +1678/// contacted. These can come from various sources depending on the network topology of the +1679/// iroh endpoint, see [`DirectAddrType`] for the several kinds of sources. +1680/// +1681/// This is essentially a combination of our local addresses combined with any reflexive +1682/// transport addresses we discovered using QAD. +1683#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] +1684pub struct DirectAddr { +1685 /// The address. +1686 pub addr: SocketAddr, +1687 /// The origin of this direct address. +1688 pub typ: DirectAddrType, 1689} 1690 -1691impl Display for DirectAddrType { -1692 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { -1693 match self { -1694 DirectAddrType::Unknown => write!(f, "?"), -1695 DirectAddrType::Local => write!(f, "local"), -1696 DirectAddrType::Qad => write!(f, "qad"), -1697 DirectAddrType::Portmapped => write!(f, "portmap"), -1698 DirectAddrType::Qad4LocalPort => write!(f, "qad4localport"), -1699 } -1700 } -1701} -1702 -1703#[cfg(test)] -1704mod tests { -1705 use std::{net::SocketAddrV4, sync::Arc, time::Duration}; -1706 -1707 use data_encoding::HEXLOWER; -1708 use iroh_base::{EndpointAddr, EndpointId, TransportAddr}; -1709 use n0_error::{Result, StackResultExt, StdResultExt}; -1710 use n0_future::{MergeBounded, StreamExt, time}; -1711 use n0_tracing_test::traced_test; -1712 use n0_watcher::Watcher; -1713 use rand::{CryptoRng, Rng, RngCore, SeedableRng}; -1714 use tokio_util::task::AbortOnDropHandle; -1715 use tracing::{Instrument, error, info, info_span, instrument}; -1716 -1717 use super::Options; -1718 use crate::{ -1719 Endpoint, RelayMode, SecretKey, -1720 address_lookup::memory::MemoryLookup, -1721 dns::DnsResolver, -1722 endpoint::QuicTransportConfig, -1723 socket::{ -1724 EndpointInner, Socket, StaticConfig, TransportConfig, -1725 mapped_addrs::{EndpointIdMappedAddr, MappedAddr}, -1726 }, -1727 tls::{self, DEFAULT_MAX_TLS_TICKETS}, -1728 }; -1729 -1730 const ALPN: &[u8] = b"n0/test/1"; +1691/// The type of direct address. +1692/// +1693/// These are the various sources or origins from which an iroh endpoint might have found a +1694/// possible [`DirectAddr`]. +1695#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] +1696pub enum DirectAddrType { +1697 /// Not yet determined.. +1698 Unknown, +1699 /// A locally bound socket address. +1700 Local, +1701 /// Public internet address discovered via QAD. +1702 /// +1703 /// When possible an iroh endpoint will perform QAD to discover which is the address +1704 /// from which it sends data on the public internet. This can be different from locally +1705 /// bound addresses when the endpoint is on a local network which performs NAT or similar. +1706 Qad, +1707 /// An address assigned by the router using port mapping. +1708 /// +1709 /// When possible an iroh endpoint will request a port mapping from the local router to +1710 /// get a publicly routable direct address. +1711 Portmapped, +1712 /// Hard NAT: QAD'ed IPv4 address + local fixed port. +1713 /// +1714 /// It is possible to configure iroh to bound to a specific port and independently +1715 /// configure the router to forward this port to the iroh endpoint. This indicates a +1716 /// situation like this, which still uses QAD to discover the public address. +1717 Qad4LocalPort, +1718} +1719 +1720impl Display for DirectAddrType { +1721 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { +1722 match self { +1723 DirectAddrType::Unknown => write!(f, "?"), +1724 DirectAddrType::Local => write!(f, "local"), +1725 DirectAddrType::Qad => write!(f, "qad"), +1726 DirectAddrType::Portmapped => write!(f, "portmap"), +1727 DirectAddrType::Qad4LocalPort => write!(f, "qad4localport"), +1728 } +1729 } +1730} 1731 -1732 fn default_options<R: CryptoRng + ?Sized>(rng: &mut R) -> Options { -1733 let secret_key = SecretKey::generate(rng); -1734 let static_config = StaticConfig { -1735 tls_config: tls::TlsConfig::new(secret_key.clone(), DEFAULT_MAX_TLS_TICKETS), -1736 transport_config: QuicTransportConfig::default(), -1737 keylog: false, -1738 }; -1739 let server_config = static_config.create_server_config(vec![]); -1740 Options { -1741 transports: vec![ -1742 TransportConfig::default_ipv4(), -1743 TransportConfig::default_ipv6(), -1744 ], -1745 secret_key, -1746 proxy_url: None, -1747 dns_resolver: DnsResolver::new(), -1748 server_config, -1749 #[cfg(any(test, feature = "test-utils"))] -1750 insecure_skip_relay_cert_verify: false, -1751 #[cfg(any(test, feature = "test-utils"))] -1752 address_lookup_user_data: None, -1753 metrics: Default::default(), -1754 hooks: Default::default(), -1755 static_config, -1756 } -1757 } -1758 -1759 #[instrument(skip_all, fields(me = %ep.id().fmt_short()))] -1760 async fn echo_receiver(ep: Endpoint, loss: ExpectedLoss) -> Result { -1761 info!("accepting conn"); -1762 let conn = ep.accept().await.expect("no conn"); -1763 -1764 info!("accepting"); -1765 let conn = conn.await.context("accepting")?; -1766 info!("accepting bi"); -1767 let (mut send_bi, mut recv_bi) = conn.accept_bi().await.std_context("accept bi")?; -1768 -1769 info!("reading"); -1770 let val = recv_bi -1771 .read_to_end(usize::MAX) -1772 .await -1773 .std_context("read to end")?; -1774 -1775 info!("replying"); -1776 for chunk in val.chunks(12) { -1777 send_bi.write_all(chunk).await.std_context("write all")?; -1778 } -1779 -1780 info!("finishing"); -1781 send_bi.finish().std_context("finish")?; -1782 send_bi.stopped().await.std_context("stopped")?; -1783 -1784 let stats = conn.stats(); -1785 info!("stats: {:#?}", stats); -1786 if matches!(loss, ExpectedLoss::AlmostNone) { -1787 for info in conn.paths().get().iter() { -1788 assert!( -1789 info.stats().unwrap().lost_packets < 10, -1790 "[receiver] path {:?} should not loose many packets", -1791 info.remote_addr() -1792 ); -1793 } -1794 } -1795 -1796 conn.closed().await; -1797 info!("closed"); -1798 ep.inner()?.quinn_endpoint().wait_idle().await; -1799 info!("idle"); -1800 -1801 Ok(()) -1802 } -1803 -1804 #[instrument(skip_all, fields(me = %ep.id().fmt_short()))] -1805 async fn echo_sender( -1806 ep: Endpoint, -1807 dest_id: EndpointId, -1808 msg: &[u8], -1809 loss: ExpectedLoss, -1810 ) -> Result { -1811 info!("connecting to {}", dest_id.fmt_short()); -1812 let dest = EndpointAddr::new(dest_id); -1813 let conn = ep.connect(dest, ALPN).await?; +1732#[cfg(test)] +1733mod tests { +1734 use std::{net::SocketAddrV4, sync::Arc, time::Duration}; +1735 +1736 use data_encoding::HEXLOWER; +1737 use iroh_base::{EndpointAddr, EndpointId, TransportAddr}; +1738 use iroh_relay::tls::{CaRootsConfig, default_provider}; +1739 use n0_error::{Result, StackResultExt, StdResultExt}; +1740 use n0_future::{MergeBounded, StreamExt, time}; +1741 use n0_tracing_test::traced_test; +1742 use n0_watcher::Watcher; +1743 use rand::{CryptoRng, Rng, RngCore, SeedableRng}; +1744 use tokio_util::task::AbortOnDropHandle; +1745 use tracing::{Instrument, error, info, info_span, instrument}; +1746 +1747 use super::Options; +1748 use crate::{ +1749 Endpoint, RelayMode, SecretKey, +1750 address_lookup::memory::MemoryLookup, +1751 dns::DnsResolver, +1752 endpoint::QuicTransportConfig, +1753 socket::{ +1754 EndpointInner, Socket, StaticConfig, TransportConfig, +1755 mapped_addrs::{EndpointIdMappedAddr, MappedAddr}, +1756 }, +1757 tls::{self, DEFAULT_MAX_TLS_TICKETS}, +1758 }; +1759 +1760 const ALPN: &[u8] = b"n0/test/1"; +1761 +1762 fn default_options<R: CryptoRng + ?Sized>(rng: &mut R) -> Options { +1763 let secret_key = SecretKey::generate(rng); +1764 let static_config = StaticConfig { +1765 tls_config: tls::TlsConfig::new(secret_key.clone(), DEFAULT_MAX_TLS_TICKETS), +1766 transport_config: QuicTransportConfig::default(), +1767 keylog: false, +1768 }; +1769 let server_config = static_config.create_server_config(vec![]); +1770 Options { +1771 transports: vec![ +1772 TransportConfig::default_ipv4(), +1773 TransportConfig::default_ipv6(), +1774 ], +1775 secret_key, +1776 proxy_url: None, +1777 dns_resolver: DnsResolver::new(), +1778 server_config, +1779 tls_config: CaRootsConfig::default() +1780 .client_config(default_provider()) +1781 .unwrap(), +1782 #[cfg(any(test, feature = "test-utils"))] +1783 address_lookup_user_data: None, +1784 metrics: Default::default(), +1785 hooks: Default::default(), +1786 static_config, +1787 } +1788 } +1789 +1790 #[instrument(skip_all, fields(me = %ep.id().fmt_short()))] +1791 async fn echo_receiver(ep: Endpoint, loss: ExpectedLoss) -> Result { +1792 info!("accepting conn"); +1793 let conn = ep.accept().await.expect("no conn"); +1794 +1795 info!("accepting"); +1796 let conn = conn.await.context("accepting")?; +1797 info!("accepting bi"); +1798 let (mut send_bi, mut recv_bi) = conn.accept_bi().await.std_context("accept bi")?; +1799 +1800 info!("reading"); +1801 let val = recv_bi +1802 .read_to_end(usize::MAX) +1803 .await +1804 .std_context("read to end")?; +1805 +1806 info!("replying"); +1807 for chunk in val.chunks(12) { +1808 send_bi.write_all(chunk).await.std_context("write all")?; +1809 } +1810 +1811 info!("finishing"); +1812 send_bi.finish().std_context("finish")?; +1813 send_bi.stopped().await.std_context("stopped")?; 1814 -1815 info!("opening bi"); -1816 let (mut send_bi, mut recv_bi) = conn.open_bi().await.std_context("open bi")?; -1817 -1818 info!("writing message"); -1819 send_bi.write_all(msg).await.std_context("write all")?; -1820 -1821 info!("finishing"); -1822 send_bi.finish().std_context("finish")?; -1823 send_bi.stopped().await.std_context("stopped")?; -1824 -1825 info!("reading_to_end"); -1826 let val = recv_bi -1827 .read_to_end(usize::MAX) -1828 .await -1829 .std_context("read to end")?; -1830 assert_eq!( -1831 val, -1832 msg, -1833 "[sender] expected {}, got {}", -1834 HEXLOWER.encode(msg), -1835 HEXLOWER.encode(&val) -1836 ); -1837 -1838 let stats = conn.stats(); -1839 info!("stats: {:#?}", stats); -1840 if matches!(loss, ExpectedLoss::AlmostNone) { -1841 for info in conn.paths().get().iter() { -1842 assert!( -1843 info.stats().unwrap().lost_packets < 10, -1844 "[sender] path {:?} should not loose many packets", -1845 info.remote_addr() -1846 ); -1847 } -1848 } -1849 -1850 conn.close(0u32.into(), b"done"); -1851 info!("closed"); -1852 ep.inner()?.quinn_endpoint().wait_idle().await; -1853 info!("idle"); -1854 Ok(()) -1855 } -1856 -1857 #[derive(Debug, Copy, Clone)] -1858 enum ExpectedLoss { -1859 AlmostNone, -1860 YeahSure, -1861 } -1862 -1863 /// Runs a roundtrip between the [`echo_sender`] and [`echo_receiver`]. -1864 async fn run_roundtrip( -1865 sender: Endpoint, -1866 receiver: Endpoint, -1867 payload: &[u8], -1868 loss: ExpectedLoss, -1869 ) -> Result<()> { -1870 tokio::time::timeout(Duration::from_secs(4), async move { -1871 let send_endpoint_id = sender.id(); -1872 let recv_endpoint_id = receiver.id(); -1873 info!("\nroundtrip: {send_endpoint_id:#} -> {recv_endpoint_id:#}"); -1874 -1875 let receiver_task = AbortOnDropHandle::new(tokio::spawn(echo_receiver(receiver, loss))); -1876 let sender_res = echo_sender(sender, recv_endpoint_id, payload, loss).await; -1877 let sender_is_err = match sender_res { -1878 Ok(()) => false, -1879 Err(err) => { -1880 error!("[sender] Error:\n{err:#?}"); -1881 true -1882 } -1883 }; -1884 let receiver_is_err = match receiver_task.await { -1885 Ok(Ok(())) => false, -1886 Ok(Err(err)) => { -1887 error!("[receiver] Error:\n{err:#?}"); -1888 true -1889 } -1890 Err(joinerr) => { -1891 if joinerr.is_panic() { -1892 std::panic::resume_unwind(joinerr.into_panic()); -1893 } else { -1894 error!("[receiver] Error:\n{joinerr:#?}"); -1895 } -1896 true -1897 } -1898 }; -1899 if sender_is_err || receiver_is_err { -1900 panic!("Sender or receiver errored"); -1901 } -1902 }) -1903 .await -1904 .std_context("timeout")?; -1905 Ok(()) -1906 } -1907 -1908 /// Returns a pair of endpoints with a shared [`MemoryLookup`]. -1909 /// -1910 /// The endpoints do not use a relay server but can connect to each other via local -1911 /// addresses. Dialing by [`EndpointId`] is possible, and the addresses get updated even if -1912 /// the endpoints rebind. -1913 async fn endpoint_pair() -> (AbortOnDropHandle<()>, Endpoint, Endpoint) { -1914 let address_lookup = MemoryLookup::new(); -1915 let ep1 = Endpoint::empty_builder(RelayMode::Disabled) -1916 .alpns(vec![ALPN.to_vec()]) -1917 .address_lookup(address_lookup.clone()) -1918 .bind() -1919 .await -1920 .unwrap(); -1921 let ep2 = Endpoint::empty_builder(RelayMode::Disabled) -1922 .alpns(vec![ALPN.to_vec()]) -1923 .address_lookup(address_lookup.clone()) -1924 .bind() -1925 .await -1926 .unwrap(); -1927 address_lookup.add_endpoint_info(ep1.addr()); -1928 address_lookup.add_endpoint_info(ep2.addr()); -1929 -1930 let ep1_addr_stream = ep1.watch_addr().stream(); -1931 let ep2_addr_stream = ep2.watch_addr().stream(); -1932 let mut addr_stream = MergeBounded::from_iter([ep1_addr_stream, ep2_addr_stream]); -1933 let task = tokio::spawn(async move { -1934 while let Some(addr) = addr_stream.next().await { -1935 address_lookup.add_endpoint_info(addr); -1936 } -1937 }); +1815 let stats = conn.stats(); +1816 info!("stats: {:#?}", stats); +1817 if matches!(loss, ExpectedLoss::AlmostNone) { +1818 for info in conn.paths().get().iter() { +1819 assert!( +1820 info.stats().unwrap().lost_packets < 10, +1821 "[receiver] path {:?} should not loose many packets", +1822 info.remote_addr() +1823 ); +1824 } +1825 } +1826 +1827 conn.closed().await; +1828 info!("closed"); +1829 ep.inner()?.quinn_endpoint().wait_idle().await; +1830 info!("idle"); +1831 +1832 Ok(()) +1833 } +1834 +1835 #[instrument(skip_all, fields(me = %ep.id().fmt_short()))] +1836 async fn echo_sender( +1837 ep: Endpoint, +1838 dest_id: EndpointId, +1839 msg: &[u8], +1840 loss: ExpectedLoss, +1841 ) -> Result { +1842 info!("connecting to {}", dest_id.fmt_short()); +1843 let dest = EndpointAddr::new(dest_id); +1844 let conn = ep.connect(dest, ALPN).await?; +1845 +1846 info!("opening bi"); +1847 let (mut send_bi, mut recv_bi) = conn.open_bi().await.std_context("open bi")?; +1848 +1849 info!("writing message"); +1850 send_bi.write_all(msg).await.std_context("write all")?; +1851 +1852 info!("finishing"); +1853 send_bi.finish().std_context("finish")?; +1854 send_bi.stopped().await.std_context("stopped")?; +1855 +1856 info!("reading_to_end"); +1857 let val = recv_bi +1858 .read_to_end(usize::MAX) +1859 .await +1860 .std_context("read to end")?; +1861 assert_eq!( +1862 val, +1863 msg, +1864 "[sender] expected {}, got {}", +1865 HEXLOWER.encode(msg), +1866 HEXLOWER.encode(&val) +1867 ); +1868 +1869 let stats = conn.stats(); +1870 info!("stats: {:#?}", stats); +1871 if matches!(loss, ExpectedLoss::AlmostNone) { +1872 for info in conn.paths().get().iter() { +1873 assert!( +1874 info.stats().unwrap().lost_packets < 10, +1875 "[sender] path {:?} should not loose many packets", +1876 info.remote_addr() +1877 ); +1878 } +1879 } +1880 +1881 conn.close(0u32.into(), b"done"); +1882 info!("closed"); +1883 ep.inner()?.quinn_endpoint().wait_idle().await; +1884 info!("idle"); +1885 Ok(()) +1886 } +1887 +1888 #[derive(Debug, Copy, Clone)] +1889 enum ExpectedLoss { +1890 AlmostNone, +1891 YeahSure, +1892 } +1893 +1894 /// Runs a roundtrip between the [`echo_sender`] and [`echo_receiver`]. +1895 async fn run_roundtrip( +1896 sender: Endpoint, +1897 receiver: Endpoint, +1898 payload: &[u8], +1899 loss: ExpectedLoss, +1900 ) -> Result<()> { +1901 tokio::time::timeout(Duration::from_secs(4), async move { +1902 let send_endpoint_id = sender.id(); +1903 let recv_endpoint_id = receiver.id(); +1904 info!("\nroundtrip: {send_endpoint_id:#} -> {recv_endpoint_id:#}"); +1905 +1906 let receiver_task = AbortOnDropHandle::new(tokio::spawn(echo_receiver(receiver, loss))); +1907 let sender_res = echo_sender(sender, recv_endpoint_id, payload, loss).await; +1908 let sender_is_err = match sender_res { +1909 Ok(()) => false, +1910 Err(err) => { +1911 error!("[sender] Error:\n{err:#?}"); +1912 true +1913 } +1914 }; +1915 let receiver_is_err = match receiver_task.await { +1916 Ok(Ok(())) => false, +1917 Ok(Err(err)) => { +1918 error!("[receiver] Error:\n{err:#?}"); +1919 true +1920 } +1921 Err(joinerr) => { +1922 if joinerr.is_panic() { +1923 std::panic::resume_unwind(joinerr.into_panic()); +1924 } else { +1925 error!("[receiver] Error:\n{joinerr:#?}"); +1926 } +1927 true +1928 } +1929 }; +1930 if sender_is_err || receiver_is_err { +1931 panic!("Sender or receiver errored"); +1932 } +1933 }) +1934 .await +1935 .std_context("timeout")?; +1936 Ok(()) +1937 } 1938 -1939 (AbortOnDropHandle::new(task), ep1, ep2) -1940 } -1941 -1942 #[tokio::test(flavor = "multi_thread")] -1943 #[traced_test] -1944 async fn test_two_devices_roundtrip_quinn_small() -> Result { -1945 let (_guard, m1, m2) = endpoint_pair().await; -1946 -1947 run_roundtrip( -1948 m1.clone(), -1949 m2.clone(), -1950 b"hello m1", -1951 ExpectedLoss::AlmostNone, -1952 ) -1953 .await?; -1954 run_roundtrip( -1955 m2.clone(), -1956 m1.clone(), -1957 b"hello m2", -1958 ExpectedLoss::AlmostNone, -1959 ) -1960 .await?; -1961 Ok(()) -1962 } -1963 -1964 #[tokio::test(flavor = "multi_thread")] -1965 #[traced_test] -1966 async fn test_two_devices_roundtrip_quinn_large() -> Result { -1967 let (_guard, m1, m2) = endpoint_pair().await; -1968 let mut data = vec![0u8; 10 * 1024]; -1969 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -1970 rng.fill_bytes(&mut data); -1971 run_roundtrip(m1.clone(), m2.clone(), &data, ExpectedLoss::AlmostNone).await?; -1972 run_roundtrip(m2.clone(), m1.clone(), &data, ExpectedLoss::AlmostNone).await?; -1973 -1974 Ok(()) -1975 } -1976 -1977 #[tokio::test] -1978 #[traced_test] -1979 async fn test_regression_network_change_rebind_wakes_connection_driver() -> Result { -1980 let (_guard, m1, m2) = endpoint_pair().await; -1981 -1982 println!("Net change"); -1983 m1.inner()?.force_network_change(true).await; -1984 tokio::time::sleep(Duration::from_secs(1)).await; // wait for socket rebinding -1985 -1986 let _handle = AbortOnDropHandle::new(tokio::spawn({ -1987 let endpoint = m2.clone(); -1988 async move { -1989 while let Some(incoming) = endpoint.accept().await { -1990 println!("Incoming first conn!"); -1991 let conn = incoming.await.anyerr()?; -1992 conn.closed().await; -1993 } +1939 /// Returns a pair of endpoints with a shared [`MemoryLookup`]. +1940 /// +1941 /// The endpoints do not use a relay server but can connect to each other via local +1942 /// addresses. Dialing by [`EndpointId`] is possible, and the addresses get updated even if +1943 /// the endpoints rebind. +1944 async fn endpoint_pair() -> (AbortOnDropHandle<()>, Endpoint, Endpoint) { +1945 let address_lookup = MemoryLookup::new(); +1946 let ep1 = Endpoint::empty_builder(RelayMode::Disabled) +1947 .alpns(vec![ALPN.to_vec()]) +1948 .address_lookup(address_lookup.clone()) +1949 .bind() +1950 .await +1951 .unwrap(); +1952 let ep2 = Endpoint::empty_builder(RelayMode::Disabled) +1953 .alpns(vec![ALPN.to_vec()]) +1954 .address_lookup(address_lookup.clone()) +1955 .bind() +1956 .await +1957 .unwrap(); +1958 address_lookup.add_endpoint_info(ep1.addr()); +1959 address_lookup.add_endpoint_info(ep2.addr()); +1960 +1961 let ep1_addr_stream = ep1.watch_addr().stream(); +1962 let ep2_addr_stream = ep2.watch_addr().stream(); +1963 let mut addr_stream = MergeBounded::from_iter([ep1_addr_stream, ep2_addr_stream]); +1964 let task = tokio::spawn(async move { +1965 while let Some(addr) = addr_stream.next().await { +1966 address_lookup.add_endpoint_info(addr); +1967 } +1968 }); +1969 +1970 (AbortOnDropHandle::new(task), ep1, ep2) +1971 } +1972 +1973 #[tokio::test(flavor = "multi_thread")] +1974 #[traced_test] +1975 async fn test_two_devices_roundtrip_quinn_small() -> Result { +1976 let (_guard, m1, m2) = endpoint_pair().await; +1977 +1978 run_roundtrip( +1979 m1.clone(), +1980 m2.clone(), +1981 b"hello m1", +1982 ExpectedLoss::AlmostNone, +1983 ) +1984 .await?; +1985 run_roundtrip( +1986 m2.clone(), +1987 m1.clone(), +1988 b"hello m2", +1989 ExpectedLoss::AlmostNone, +1990 ) +1991 .await?; +1992 Ok(()) +1993 } 1994 -1995 n0_error::Ok(()) -1996 } -1997 })); -1998 -1999 println!("first conn!"); -2000 let conn = m1.connect(m2.addr(), ALPN).await?; -2001 println!("Closing first conn"); -2002 conn.close(0u32.into(), b"bye lolz"); -2003 conn.closed().await; -2004 println!("Closed first conn"); -2005 -2006 Ok(()) -2007 } -2008 -2009 fn offset(rng: &mut rand_chacha::ChaCha8Rng) -> Duration { -2010 let delay = rng.random_range(1..=5); -2011 Duration::from_millis(delay * 50) -2012 } -2013 -2014 /// Same structure as `test_two_devices_roundtrip_quinn`, but interrupts regularly -2015 /// with (simulated) network changes. -2016 /// Regular network changes to m1 only. -2017 #[tokio::test(flavor = "multi_thread")] -2018 #[traced_test] -2019 async fn test_two_devices_roundtrip_network_change_only_a() -> Result { -2020 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -2021 let (_guard, m1, m2) = endpoint_pair().await; -2022 -2023 let _network_change_guard = { -2024 let m1 = m1.clone(); -2025 let mut rng = rng.clone(); -2026 let task = tokio::spawn(async move { -2027 loop { -2028 info!("[m1] network change"); -2029 m1.inner() -2030 .expect("haven't closed the endpoint yet") -2031 .force_network_change(true) -2032 .await; -2033 time::sleep(offset(&mut rng)).await; -2034 } -2035 }); -2036 AbortOnDropHandle::new(task) -2037 }; -2038 -2039 let mut data = vec![0u8; 10 * 1024]; -2040 rng.fill_bytes(&mut data); -2041 run_roundtrip(m1.clone(), m2.clone(), &data, ExpectedLoss::YeahSure).await?; -2042 run_roundtrip(m2.clone(), m1.clone(), &data, ExpectedLoss::YeahSure).await?; -2043 -2044 Ok(()) -2045 } -2046 -2047 /// Regular network changes to both m1 and m2. +1995 #[tokio::test(flavor = "multi_thread")] +1996 #[traced_test] +1997 async fn test_two_devices_roundtrip_quinn_large() -> Result { +1998 let (_guard, m1, m2) = endpoint_pair().await; +1999 let mut data = vec![0u8; 10 * 1024]; +2000 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +2001 rng.fill_bytes(&mut data); +2002 run_roundtrip(m1.clone(), m2.clone(), &data, ExpectedLoss::AlmostNone).await?; +2003 run_roundtrip(m2.clone(), m1.clone(), &data, ExpectedLoss::AlmostNone).await?; +2004 +2005 Ok(()) +2006 } +2007 +2008 #[tokio::test] +2009 #[traced_test] +2010 async fn test_regression_network_change_rebind_wakes_connection_driver() -> Result { +2011 let (_guard, m1, m2) = endpoint_pair().await; +2012 +2013 println!("Net change"); +2014 m1.inner()?.force_network_change(true).await; +2015 tokio::time::sleep(Duration::from_secs(1)).await; // wait for socket rebinding +2016 +2017 let _handle = AbortOnDropHandle::new(tokio::spawn({ +2018 let endpoint = m2.clone(); +2019 async move { +2020 while let Some(incoming) = endpoint.accept().await { +2021 println!("Incoming first conn!"); +2022 let conn = incoming.await.anyerr()?; +2023 conn.closed().await; +2024 } +2025 +2026 n0_error::Ok(()) +2027 } +2028 })); +2029 +2030 println!("first conn!"); +2031 let conn = m1.connect(m2.addr(), ALPN).await?; +2032 println!("Closing first conn"); +2033 conn.close(0u32.into(), b"bye lolz"); +2034 conn.closed().await; +2035 println!("Closed first conn"); +2036 +2037 Ok(()) +2038 } +2039 +2040 fn offset(rng: &mut rand_chacha::ChaCha8Rng) -> Duration { +2041 let delay = rng.random_range(1..=5); +2042 Duration::from_millis(delay * 50) +2043 } +2044 +2045 /// Same structure as `test_two_devices_roundtrip_quinn`, but interrupts regularly +2046 /// with (simulated) network changes. +2047 /// Regular network changes to m1 only. 2048 #[tokio::test(flavor = "multi_thread")] 2049 #[traced_test] -2050 async fn test_two_devices_roundtrip_network_change_a_and_b() -> Result { +2050 async fn test_two_devices_roundtrip_network_change_only_a() -> Result { 2051 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); 2052 let (_guard, m1, m2) = endpoint_pair().await; 2053 2054 let _network_change_guard = { 2055 let m1 = m1.clone(); -2056 let m2 = m2.clone(); -2057 let mut rng = rng.clone(); -2058 let task = tokio::spawn(async move { -2059 info!("-- [m1] network change"); -2060 m1.inner() -2061 .expect("haven't closed the endpoint yet") -2062 .force_network_change(true) -2063 .await; -2064 info!("-- [m2] network change"); -2065 m2.inner() -2066 .expect("haven't closed the endpoint yet") -2067 .force_network_change(true) -2068 .await; -2069 time::sleep(offset(&mut rng)).await; -2070 }); -2071 AbortOnDropHandle::new(task) -2072 }; -2073 -2074 let mut data = vec![0u8; 10 * 1024]; -2075 rng.fill_bytes(&mut data); -2076 run_roundtrip(m1.clone(), m2.clone(), &data, ExpectedLoss::YeahSure).await?; -2077 run_roundtrip(m2.clone(), m1.clone(), &data, ExpectedLoss::YeahSure).await?; -2078 -2079 Ok(()) -2080 } -2081 -2082 #[tokio::test(flavor = "multi_thread")] -2083 #[traced_test] -2084 async fn test_two_devices_setup_teardown() -> Result { -2085 for i in 0..10 { -2086 info!("-- round {i}"); -2087 info!("setting up stack"); -2088 let (_guard, m1, m2) = endpoint_pair().await; -2089 -2090 info!("closing endpoints"); -2091 let sock1 = m1.inner()?; -2092 let sock2 = m2.inner()?; -2093 m1.close().await; -2094 m2.close().await; -2095 -2096 assert!(sock1.is_closed()); -2097 assert!(sock2.is_closed()); -2098 } -2099 Ok(()) -2100 } -2101 -2102 #[tokio::test] -2103 #[traced_test] -2104 async fn test_direct_addresses() { -2105 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -2106 let sock = EndpointInner::new(default_options(&mut rng)).await.unwrap(); -2107 -2108 // See if we can get endpoints. -2109 let eps0 = sock.ip_addrs().get(); -2110 info!("{eps0:?}"); -2111 assert!(!eps0.is_empty()); +2056 let mut rng = rng.clone(); +2057 let task = tokio::spawn(async move { +2058 loop { +2059 info!("[m1] network change"); +2060 m1.inner() +2061 .expect("haven't closed the endpoint yet") +2062 .force_network_change(true) +2063 .await; +2064 time::sleep(offset(&mut rng)).await; +2065 } +2066 }); +2067 AbortOnDropHandle::new(task) +2068 }; +2069 +2070 let mut data = vec![0u8; 10 * 1024]; +2071 rng.fill_bytes(&mut data); +2072 run_roundtrip(m1.clone(), m2.clone(), &data, ExpectedLoss::YeahSure).await?; +2073 run_roundtrip(m2.clone(), m1.clone(), &data, ExpectedLoss::YeahSure).await?; +2074 +2075 Ok(()) +2076 } +2077 +2078 /// Regular network changes to both m1 and m2. +2079 #[tokio::test(flavor = "multi_thread")] +2080 #[traced_test] +2081 async fn test_two_devices_roundtrip_network_change_a_and_b() -> Result { +2082 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +2083 let (_guard, m1, m2) = endpoint_pair().await; +2084 +2085 let _network_change_guard = { +2086 let m1 = m1.clone(); +2087 let m2 = m2.clone(); +2088 let mut rng = rng.clone(); +2089 let task = tokio::spawn(async move { +2090 info!("-- [m1] network change"); +2091 m1.inner() +2092 .expect("haven't closed the endpoint yet") +2093 .force_network_change(true) +2094 .await; +2095 info!("-- [m2] network change"); +2096 m2.inner() +2097 .expect("haven't closed the endpoint yet") +2098 .force_network_change(true) +2099 .await; +2100 time::sleep(offset(&mut rng)).await; +2101 }); +2102 AbortOnDropHandle::new(task) +2103 }; +2104 +2105 let mut data = vec![0u8; 10 * 1024]; +2106 rng.fill_bytes(&mut data); +2107 run_roundtrip(m1.clone(), m2.clone(), &data, ExpectedLoss::YeahSure).await?; +2108 run_roundtrip(m2.clone(), m1.clone(), &data, ExpectedLoss::YeahSure).await?; +2109 +2110 Ok(()) +2111 } 2112 -2113 // Getting the endpoints again immediately should give the same results. -2114 let eps1 = sock.ip_addrs().get(); -2115 info!("{eps1:?}"); -2116 assert_eq!(eps0, eps1); -2117 } -2118 -2119 /// Creates a new [`quinn::Endpoint`] hooked up to a [`Socket`]. -2120 /// -2121 /// This is without involving [`crate::endpoint::Endpoint`]. The socket will accept -2122 /// connections using [`ALPN`]. -2123 /// -2124 /// Use [`socket_connect`] to establish connections. -2125 #[instrument(name = "ep", skip_all, fields(me = %secret_key.public().fmt_short()))] -2126 async fn socket_ep(secret_key: SecretKey) -> Result<EndpointInner> { -2127 let static_config = StaticConfig { -2128 tls_config: tls::TlsConfig::new(secret_key.clone(), DEFAULT_MAX_TLS_TICKETS), -2129 transport_config: QuicTransportConfig::default(), -2130 keylog: true, -2131 }; -2132 let server_config = static_config.create_server_config(vec![ALPN.to_vec()]); -2133 -2134 let dns_resolver = DnsResolver::new(); -2135 let opts = Options { -2136 transports: vec![ -2137 TransportConfig::default_ipv4(), -2138 TransportConfig::default_ipv6(), -2139 ], -2140 secret_key: secret_key.clone(), -2141 address_lookup_user_data: None, -2142 dns_resolver, -2143 proxy_url: None, -2144 server_config, -2145 insecure_skip_relay_cert_verify: false, -2146 metrics: Default::default(), -2147 hooks: Default::default(), -2148 static_config, -2149 }; -2150 let sock = Socket::spawn(opts).await?; -2151 Ok(sock) -2152 } -2153 -2154 /// Connects from `ep` returned by [`socket_ep`] to the `endpoint_id`. -2155 /// -2156 /// Uses [`ALPN`], `endpoint_id`, must match `addr`. -2157 #[instrument(name = "connect", skip_all, fields(me = %ep_secret_key.public().fmt_short()))] -2158 async fn socket_connect( -2159 ep: quinn::Endpoint, -2160 ep_secret_key: SecretKey, -2161 addr: EndpointIdMappedAddr, -2162 endpoint_id: EndpointId, -2163 ) -> Result<quinn::Connection> { -2164 // Endpoint::connect sets this, do the same to have similar behaviour. -2165 let mut transport_config = quinn::TransportConfig::default(); -2166 transport_config.keep_alive_interval(Some(Duration::from_secs(1))); -2167 -2168 socket_connect_with_transport_config( -2169 ep, -2170 ep_secret_key, -2171 addr, -2172 endpoint_id, -2173 Arc::new(transport_config), -2174 ) -2175 .await -2176 } -2177 -2178 /// Connects from `ep` returned by [`socket_ep`] to the `endpoint_id`. -2179 /// -2180 /// This version allows customising the transport config. -2181 /// -2182 /// Uses [`ALPN`], `endpoint_id`, must match `addr`. -2183 #[instrument(name = "connect", skip_all, fields(me = %ep_secret_key.public().fmt_short()))] -2184 async fn socket_connect_with_transport_config( -2185 ep: quinn::Endpoint, -2186 ep_secret_key: SecretKey, -2187 mapped_addr: EndpointIdMappedAddr, -2188 endpoint_id: EndpointId, -2189 transport_config: Arc<quinn::TransportConfig>, -2190 ) -> Result<quinn::Connection> { -2191 let alpns = vec![ALPN.to_vec()]; -2192 let quic_client_config = -2193 tls::TlsConfig::new(ep_secret_key.clone(), DEFAULT_MAX_TLS_TICKETS) -2194 .make_client_config(alpns, true); -2195 let mut client_config = quinn::ClientConfig::new(Arc::new(quic_client_config)); -2196 client_config.transport_config(transport_config); -2197 let connect = ep -2198 .connect_with( -2199 client_config, -2200 mapped_addr.private_socket_addr(), -2201 &tls::name::encode(endpoint_id), -2202 ) -2203 .std_context("connect")?; -2204 let connection = connect.await.anyerr()?; -2205 Ok(connection) -2206 } -2207 -2208 #[tokio::test] -2209 #[traced_test] -2210 async fn test_try_send_no_send_addr() { -2211 // Regression test: if there is no send_addr we should keep being able to use the -2212 // Endpoint. -2213 -2214 let secret_key_1 = SecretKey::from_bytes(&[1u8; 32]); -2215 let secret_key_2 = SecretKey::from_bytes(&[2u8; 32]); -2216 let endpoint_id_2 = secret_key_2.public(); -2217 let secret_key_missing_endpoint = SecretKey::from_bytes(&[255u8; 32]); -2218 let endpoint_id_missing_endpoint = secret_key_missing_endpoint.public(); -2219 -2220 let sock_1 = socket_ep(secret_key_1.clone()).await.unwrap(); -2221 -2222 // Generate an address not present in the RemoteMap. -2223 let bad_addr = EndpointIdMappedAddr::generate(); -2224 -2225 // 500ms is rather fast here. Running this locally it should always be the correct -2226 // timeout. If this is too slow however the test will not become flaky as we are -2227 // expecting the timeout, we might just get the timeout for the wrong reason. But -2228 // this speeds up the test. -2229 let res = tokio::time::timeout( -2230 Duration::from_millis(500), -2231 socket_connect( -2232 sock_1.quinn_endpoint().clone(), -2233 secret_key_1.clone(), -2234 bad_addr, -2235 endpoint_id_missing_endpoint, -2236 ), -2237 ) -2238 .await; -2239 assert!(res.is_err(), "expecting timeout"); +2113 #[tokio::test(flavor = "multi_thread")] +2114 #[traced_test] +2115 async fn test_two_devices_setup_teardown() -> Result { +2116 for i in 0..10 { +2117 info!("-- round {i}"); +2118 info!("setting up stack"); +2119 let (_guard, m1, m2) = endpoint_pair().await; +2120 +2121 info!("closing endpoints"); +2122 let sock1 = m1.inner()?; +2123 let sock2 = m2.inner()?; +2124 m1.close().await; +2125 m2.close().await; +2126 +2127 assert!(sock1.is_closed()); +2128 assert!(sock2.is_closed()); +2129 } +2130 Ok(()) +2131 } +2132 +2133 #[tokio::test] +2134 #[traced_test] +2135 async fn test_direct_addresses() { +2136 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +2137 let sock = EndpointInner::new(default_options(&mut rng)).await.unwrap(); +2138 +2139 // See if we can get endpoints. +2140 let eps0 = sock.ip_addrs().get(); +2141 info!("{eps0:?}"); +2142 assert!(!eps0.is_empty()); +2143 +2144 // Getting the endpoints again immediately should give the same results. +2145 let eps1 = sock.ip_addrs().get(); +2146 info!("{eps1:?}"); +2147 assert_eq!(eps0, eps1); +2148 } +2149 +2150 /// Creates a new [`quinn::Endpoint`] hooked up to a [`Socket`]. +2151 /// +2152 /// This is without involving [`crate::endpoint::Endpoint`]. The socket will accept +2153 /// connections using [`ALPN`]. +2154 /// +2155 /// Use [`socket_connect`] to establish connections. +2156 #[instrument(name = "ep", skip_all, fields(me = %secret_key.public().fmt_short()))] +2157 async fn socket_ep(secret_key: SecretKey) -> Result<EndpointInner> { +2158 let static_config = StaticConfig { +2159 tls_config: tls::TlsConfig::new(secret_key.clone(), DEFAULT_MAX_TLS_TICKETS), +2160 transport_config: QuicTransportConfig::default(), +2161 keylog: true, +2162 }; +2163 let server_config = static_config.create_server_config(vec![ALPN.to_vec()]); +2164 +2165 let dns_resolver = DnsResolver::new(); +2166 let opts = Options { +2167 transports: vec![ +2168 TransportConfig::default_ipv4(), +2169 TransportConfig::default_ipv6(), +2170 ], +2171 secret_key: secret_key.clone(), +2172 address_lookup_user_data: None, +2173 dns_resolver, +2174 proxy_url: None, +2175 server_config, +2176 tls_config: CaRootsConfig::default() +2177 .client_config(default_provider()) +2178 .unwrap(), +2179 metrics: Default::default(), +2180 hooks: Default::default(), +2181 static_config, +2182 }; +2183 let sock = Socket::spawn(opts).await?; +2184 Ok(sock) +2185 } +2186 +2187 /// Connects from `ep` returned by [`socket_ep`] to the `endpoint_id`. +2188 /// +2189 /// Uses [`ALPN`], `endpoint_id`, must match `addr`. +2190 #[instrument(name = "connect", skip_all, fields(me = %ep_secret_key.public().fmt_short()))] +2191 async fn socket_connect( +2192 ep: quinn::Endpoint, +2193 ep_secret_key: SecretKey, +2194 addr: EndpointIdMappedAddr, +2195 endpoint_id: EndpointId, +2196 ) -> Result<quinn::Connection> { +2197 // Endpoint::connect sets this, do the same to have similar behaviour. +2198 let mut transport_config = quinn::TransportConfig::default(); +2199 transport_config.keep_alive_interval(Some(Duration::from_secs(1))); +2200 +2201 socket_connect_with_transport_config( +2202 ep, +2203 ep_secret_key, +2204 addr, +2205 endpoint_id, +2206 Arc::new(transport_config), +2207 ) +2208 .await +2209 } +2210 +2211 /// Connects from `ep` returned by [`socket_ep`] to the `endpoint_id`. +2212 /// +2213 /// This version allows customising the transport config. +2214 /// +2215 /// Uses [`ALPN`], `endpoint_id`, must match `addr`. +2216 #[instrument(name = "connect", skip_all, fields(me = %ep_secret_key.public().fmt_short()))] +2217 async fn socket_connect_with_transport_config( +2218 ep: quinn::Endpoint, +2219 ep_secret_key: SecretKey, +2220 mapped_addr: EndpointIdMappedAddr, +2221 endpoint_id: EndpointId, +2222 transport_config: Arc<quinn::TransportConfig>, +2223 ) -> Result<quinn::Connection> { +2224 let alpns = vec![ALPN.to_vec()]; +2225 let quic_client_config = +2226 tls::TlsConfig::new(ep_secret_key.clone(), DEFAULT_MAX_TLS_TICKETS) +2227 .make_client_config(alpns, true); +2228 let mut client_config = quinn::ClientConfig::new(Arc::new(quic_client_config)); +2229 client_config.transport_config(transport_config); +2230 let connect = ep +2231 .connect_with( +2232 client_config, +2233 mapped_addr.private_socket_addr(), +2234 &tls::name::encode(endpoint_id), +2235 ) +2236 .std_context("connect")?; +2237 let connection = connect.await.anyerr()?; +2238 Ok(connection) +2239 } 2240 -2241 // Now check we can still create another connection with this endpoint. -2242 let sock_2 = socket_ep(secret_key_2.clone()).await.unwrap(); -2243 -2244 // This needs an accept task -2245 let accept_task = tokio::spawn({ -2246 async fn accept(ep: quinn::Endpoint) -> Result<()> { -2247 let incoming = ep.accept().await.std_context("no incoming")?; -2248 let _conn = incoming -2249 .accept() -2250 .std_context("accept")? -2251 .await -2252 .std_context("accepting")?; -2253 -2254 // Keep this connection alive for a while -2255 tokio::time::sleep(Duration::from_secs(10)).await; -2256 info!("accept finished"); -2257 Ok(()) -2258 } -2259 let ep = sock_2.quinn_endpoint().clone(); -2260 async move { -2261 if let Err(err) = accept(ep).await { -2262 error!("{err:#}"); -2263 } -2264 } -2265 .instrument(info_span!("ep2.accept, me = endpoint_id_2.fmt_short()")) -2266 }); -2267 let _accept_task = AbortOnDropHandle::new(accept_task); -2268 -2269 let addrs = sock_2 -2270 .ip_addrs() -2271 .get() -2272 .into_iter() -2273 .map(|x| TransportAddr::Ip(x.addr)); -2274 let endpoint_addr_2 = EndpointAddr::from_parts(endpoint_id_2, addrs); -2275 let addr = sock_1 -2276 .resolve_remote(endpoint_addr_2) -2277 .await -2278 .unwrap() -2279 .unwrap(); -2280 let res = tokio::time::timeout( -2281 Duration::from_secs(10), -2282 socket_connect( -2283 sock_1.quinn_endpoint().clone(), -2284 secret_key_1.clone(), -2285 addr, -2286 endpoint_id_2, -2287 ), -2288 ) -2289 .await -2290 .expect("timeout while connecting"); -2291 -2292 // aka assert!(res.is_ok()) but with nicer error reporting. -2293 res.unwrap(); -2294 -2295 // TODO: Now check if we can connect to a repaired ep_3, but we can't modify that -2296 // much internal state for now. -2297 } -2298 -2299 #[tokio::test] -2300 #[traced_test] -2301 async fn test_try_send_no_udp_addr_or_relay_url() { -2302 // This specifically tests the `if udp_addr.is_none() && relay_url.is_none()` -2303 // behaviour of Socket::try_send. -2304 -2305 let secret_key_1 = SecretKey::from_bytes(&[1u8; 32]); -2306 let secret_key_2 = SecretKey::from_bytes(&[2u8; 32]); -2307 let endpoint_id_2 = secret_key_2.public(); -2308 -2309 let sock_1 = socket_ep(secret_key_1.clone()).await.unwrap(); -2310 let sock_2 = socket_ep(secret_key_2.clone()).await.unwrap(); -2311 let ep_2 = sock_2.quinn_endpoint().clone(); -2312 -2313 // We need a task to accept the connection. -2314 let accept_task = tokio::spawn({ -2315 async fn accept(ep: quinn::Endpoint) -> Result<()> { -2316 let incoming = ep.accept().await.std_context("no incoming")?; -2317 let conn = incoming -2318 .accept() -2319 .std_context("accept")? -2320 .await -2321 .std_context("connecting")?; -2322 let mut stream = conn.accept_uni().await.std_context("accept uni")?; -2323 stream -2324 .read_to_end(1 << 16) -2325 .await -2326 .std_context("read to end")?; -2327 info!("accept finished"); -2328 Ok(()) -2329 } -2330 async move { -2331 if let Err(err) = accept(ep_2).await { -2332 error!("{err:#}"); -2333 } -2334 } -2335 .instrument(info_span!("ep2.accept", me = %endpoint_id_2.fmt_short())) -2336 }); -2337 let _accept_task = AbortOnDropHandle::new(accept_task); -2338 -2339 // Add an entry in the RemoteMap of ep_1 with an invalid socket address -2340 let empty_addr_2 = EndpointAddr::from_parts( -2341 endpoint_id_2, -2342 [TransportAddr::Ip( -2343 // Reserved IP range for documentation (unreachable) -2344 SocketAddrV4::new([192, 0, 2, 1].into(), 12345).into(), -2345 )], -2346 ); -2347 let addr_2 = sock_1.resolve_remote(empty_addr_2).await.unwrap().unwrap(); -2348 -2349 // Set a low max_idle_timeout so quinn gives up on this quickly and our test does -2350 // not take forever. You need to check the log output to verify this is really -2351 // triggering the correct error. -2352 // In test_try_send_no_send_addr() above you may have noticed we used -2353 // tokio::time::timeout() on the connection attempt instead. Here however we want -2354 // Quinn itself to have fully given up on the connection attempt because we will -2355 // later connect to **the same** endpoint. If Quinn did not give up on the connection -2356 // we'd close it on drop, and the retransmits of the close packets would interfere -2357 // with the next handshake, closing it during the handshake. This makes the test a -2358 // little slower though. -2359 let mut transport_config = quinn::TransportConfig::default(); -2360 transport_config.max_idle_timeout(Some(Duration::from_millis(200).try_into().unwrap())); -2361 let res = socket_connect_with_transport_config( -2362 sock_1.quinn_endpoint().clone(), -2363 secret_key_1.clone(), -2364 addr_2, -2365 endpoint_id_2, -2366 Arc::new(transport_config), -2367 ) -2368 .await; -2369 assert!(res.is_err(), "expected timeout"); -2370 info!("first connect timed out as expected"); +2241 #[tokio::test] +2242 #[traced_test] +2243 async fn test_try_send_no_send_addr() { +2244 // Regression test: if there is no send_addr we should keep being able to use the +2245 // Endpoint. +2246 +2247 let secret_key_1 = SecretKey::from_bytes(&[1u8; 32]); +2248 let secret_key_2 = SecretKey::from_bytes(&[2u8; 32]); +2249 let endpoint_id_2 = secret_key_2.public(); +2250 let secret_key_missing_endpoint = SecretKey::from_bytes(&[255u8; 32]); +2251 let endpoint_id_missing_endpoint = secret_key_missing_endpoint.public(); +2252 +2253 let sock_1 = socket_ep(secret_key_1.clone()).await.unwrap(); +2254 +2255 // Generate an address not present in the RemoteMap. +2256 let bad_addr = EndpointIdMappedAddr::generate(); +2257 +2258 // 500ms is rather fast here. Running this locally it should always be the correct +2259 // timeout. If this is too slow however the test will not become flaky as we are +2260 // expecting the timeout, we might just get the timeout for the wrong reason. But +2261 // this speeds up the test. +2262 let res = tokio::time::timeout( +2263 Duration::from_millis(500), +2264 socket_connect( +2265 sock_1.quinn_endpoint().clone(), +2266 secret_key_1.clone(), +2267 bad_addr, +2268 endpoint_id_missing_endpoint, +2269 ), +2270 ) +2271 .await; +2272 assert!(res.is_err(), "expecting timeout"); +2273 +2274 // Now check we can still create another connection with this endpoint. +2275 let sock_2 = socket_ep(secret_key_2.clone()).await.unwrap(); +2276 +2277 // This needs an accept task +2278 let accept_task = tokio::spawn({ +2279 async fn accept(ep: quinn::Endpoint) -> Result<()> { +2280 let incoming = ep.accept().await.std_context("no incoming")?; +2281 let _conn = incoming +2282 .accept() +2283 .std_context("accept")? +2284 .await +2285 .std_context("accepting")?; +2286 +2287 // Keep this connection alive for a while +2288 tokio::time::sleep(Duration::from_secs(10)).await; +2289 info!("accept finished"); +2290 Ok(()) +2291 } +2292 let ep = sock_2.quinn_endpoint().clone(); +2293 async move { +2294 if let Err(err) = accept(ep).await { +2295 error!("{err:#}"); +2296 } +2297 } +2298 .instrument(info_span!("ep2.accept, me = endpoint_id_2.fmt_short()")) +2299 }); +2300 let _accept_task = AbortOnDropHandle::new(accept_task); +2301 +2302 let addrs = sock_2 +2303 .ip_addrs() +2304 .get() +2305 .into_iter() +2306 .map(|x| TransportAddr::Ip(x.addr)); +2307 let endpoint_addr_2 = EndpointAddr::from_parts(endpoint_id_2, addrs); +2308 let addr = sock_1 +2309 .resolve_remote(endpoint_addr_2) +2310 .await +2311 .unwrap() +2312 .unwrap(); +2313 let res = tokio::time::timeout( +2314 Duration::from_secs(10), +2315 socket_connect( +2316 sock_1.quinn_endpoint().clone(), +2317 secret_key_1.clone(), +2318 addr, +2319 endpoint_id_2, +2320 ), +2321 ) +2322 .await +2323 .expect("timeout while connecting"); +2324 +2325 // aka assert!(res.is_ok()) but with nicer error reporting. +2326 res.unwrap(); +2327 +2328 // TODO: Now check if we can connect to a repaired ep_3, but we can't modify that +2329 // much internal state for now. +2330 } +2331 +2332 #[tokio::test] +2333 #[traced_test] +2334 async fn test_try_send_no_udp_addr_or_relay_url() { +2335 // This specifically tests the `if udp_addr.is_none() && relay_url.is_none()` +2336 // behaviour of Socket::try_send. +2337 +2338 let secret_key_1 = SecretKey::from_bytes(&[1u8; 32]); +2339 let secret_key_2 = SecretKey::from_bytes(&[2u8; 32]); +2340 let endpoint_id_2 = secret_key_2.public(); +2341 +2342 let sock_1 = socket_ep(secret_key_1.clone()).await.unwrap(); +2343 let sock_2 = socket_ep(secret_key_2.clone()).await.unwrap(); +2344 let ep_2 = sock_2.quinn_endpoint().clone(); +2345 +2346 // We need a task to accept the connection. +2347 let accept_task = tokio::spawn({ +2348 async fn accept(ep: quinn::Endpoint) -> Result<()> { +2349 let incoming = ep.accept().await.std_context("no incoming")?; +2350 let conn = incoming +2351 .accept() +2352 .std_context("accept")? +2353 .await +2354 .std_context("connecting")?; +2355 let mut stream = conn.accept_uni().await.std_context("accept uni")?; +2356 stream +2357 .read_to_end(1 << 16) +2358 .await +2359 .std_context("read to end")?; +2360 info!("accept finished"); +2361 Ok(()) +2362 } +2363 async move { +2364 if let Err(err) = accept(ep_2).await { +2365 error!("{err:#}"); +2366 } +2367 } +2368 .instrument(info_span!("ep2.accept", me = %endpoint_id_2.fmt_short())) +2369 }); +2370 let _accept_task = AbortOnDropHandle::new(accept_task); 2371 -2372 // Provide correct addressing information -2373 let correct_addr_2 = EndpointAddr::from_parts( +2372 // Add an entry in the RemoteMap of ep_1 with an invalid socket address +2373 let empty_addr_2 = EndpointAddr::from_parts( 2374 endpoint_id_2, -2375 sock_2 -2376 .ip_addrs() -2377 .get() -2378 .into_iter() -2379 .map(|x| TransportAddr::Ip(x.addr)), -2380 ); -2381 let addr_2a = sock_1 -2382 .resolve_remote(correct_addr_2) -2383 .await -2384 .unwrap() -2385 .unwrap(); -2386 assert_eq!(addr_2, addr_2a); -2387 -2388 // We can now connect -2389 tokio::time::timeout(Duration::from_secs(10), async move { -2390 info!("establishing new connection"); -2391 let conn = socket_connect( -2392 sock_1.quinn_endpoint().clone(), -2393 secret_key_1.clone(), -2394 addr_2, -2395 endpoint_id_2, -2396 ) -2397 .await -2398 .unwrap(); -2399 info!("have connection"); -2400 let mut stream = conn.open_uni().await.unwrap(); -2401 stream.write_all(b"hello").await.unwrap(); -2402 stream.finish().unwrap(); -2403 stream.stopped().await.unwrap(); -2404 info!("finished stream"); -2405 }) -2406 .await -2407 .expect("connection timed out"); -2408 -2409 // TODO: could remove the addresses again, send, add it back and see it recover. -2410 // But we don't have that much private access to the RemoteMap. This will do for now. -2411 } -2412} \ No newline at end of file +2375 [TransportAddr::Ip( +2376 // Reserved IP range for documentation (unreachable) +2377 SocketAddrV4::new([192, 0, 2, 1].into(), 12345).into(), +2378 )], +2379 ); +2380 let addr_2 = sock_1.resolve_remote(empty_addr_2).await.unwrap().unwrap(); +2381 +2382 // Set a low max_idle_timeout so quinn gives up on this quickly and our test does +2383 // not take forever. You need to check the log output to verify this is really +2384 // triggering the correct error. +2385 // In test_try_send_no_send_addr() above you may have noticed we used +2386 // tokio::time::timeout() on the connection attempt instead. Here however we want +2387 // Quinn itself to have fully given up on the connection attempt because we will +2388 // later connect to **the same** endpoint. If Quinn did not give up on the connection +2389 // we'd close it on drop, and the retransmits of the close packets would interfere +2390 // with the next handshake, closing it during the handshake. This makes the test a +2391 // little slower though. +2392 let mut transport_config = quinn::TransportConfig::default(); +2393 transport_config.max_idle_timeout(Some(Duration::from_millis(200).try_into().unwrap())); +2394 let res = socket_connect_with_transport_config( +2395 sock_1.quinn_endpoint().clone(), +2396 secret_key_1.clone(), +2397 addr_2, +2398 endpoint_id_2, +2399 Arc::new(transport_config), +2400 ) +2401 .await; +2402 assert!(res.is_err(), "expected timeout"); +2403 info!("first connect timed out as expected"); +2404 +2405 // Provide correct addressing information +2406 let correct_addr_2 = EndpointAddr::from_parts( +2407 endpoint_id_2, +2408 sock_2 +2409 .ip_addrs() +2410 .get() +2411 .into_iter() +2412 .map(|x| TransportAddr::Ip(x.addr)), +2413 ); +2414 let addr_2a = sock_1 +2415 .resolve_remote(correct_addr_2) +2416 .await +2417 .unwrap() +2418 .unwrap(); +2419 assert_eq!(addr_2, addr_2a); +2420 +2421 // We can now connect +2422 tokio::time::timeout(Duration::from_secs(10), async move { +2423 info!("establishing new connection"); +2424 let conn = socket_connect( +2425 sock_1.quinn_endpoint().clone(), +2426 secret_key_1.clone(), +2427 addr_2, +2428 endpoint_id_2, +2429 ) +2430 .await +2431 .unwrap(); +2432 info!("have connection"); +2433 let mut stream = conn.open_uni().await.unwrap(); +2434 stream.write_all(b"hello").await.unwrap(); +2435 stream.finish().unwrap(); +2436 stream.stopped().await.unwrap(); +2437 info!("finished stream"); +2438 }) +2439 .await +2440 .expect("connection timed out"); +2441 +2442 // TODO: could remove the addresses again, send, add it back and see it recover. +2443 // But we don't have that much private access to the RemoteMap. This will do for now. +2444 } +2445} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/socket/remote_map/remote_state.rs.html b/pr/3958/docs/src/iroh/socket/remote_map/remote_state.rs.html index dbc9a01da5..5cbb360f06 100644 --- a/pr/3958/docs/src/iroh/socket/remote_map/remote_state.rs.html +++ b/pr/3958/docs/src/iroh/socket/remote_map/remote_state.rs.html @@ -315,7 +315,7 @@ 315 trace!("direct address watcher disconnected, shutting down"); 316 break; 317 } -318 self.local_addrs_updated(); +318 self.update_local_direct_address(); 319 trace!("local addrs updated, triggering holepunching"); 320 self.trigger_holepunching(); 321 } @@ -385,1036 +385,1036 @@ 385 tx.send(info).ok(); 386 } 387 RemoteStateMessage::NetworkChange { is_major } => { -388 self.handle_network_change(is_major); +388 self.handle_msg_network_change(is_major); 389 } 390 } 391 } 392 -393 fn handle_network_change(&mut self, is_major: bool) { -394 for conn in self.connections.values() { -395 if let Some(quinn_conn) = conn.handle.upgrade() { -396 for (path_id, addr) in &conn.paths { -397 if let Some(path) = quinn_conn.path(*path_id) { -398 // Ping the current path -399 if let Err(err) = path.ping() { -400 warn!(%err, %path_id, ?addr, "failed to ping path"); -401 } -402 } -403 } -404 } -405 } -406 -407 if is_major { -408 self.trigger_holepunching(); -409 } -410 } -411 -412 /// Handles regularly checking if any paths need hole punching currently -413 /// -414 /// Currently we need to have 1 IP path, with a good enough latency. -415 fn check_connections(&mut self) { -416 let mut is_goodenough = true; -417 for conn_state in self.connections.values() { -418 let mut is_conn_goodenough = false; -419 if let Some(conn) = conn_state.handle.upgrade() { -420 let min_ip_rtt = conn_state -421 .paths -422 .iter() -423 .filter_map(|(path_id, addr)| { -424 if addr.is_ip() { -425 conn.path_stats(*path_id).map(|stats| stats.rtt) -426 } else { -427 None -428 } -429 }) -430 .min(); -431 -432 if let Some(min_ip_rtt) = min_ip_rtt { -433 let is_latency_goodenough = min_ip_rtt <= GOOD_ENOUGH_LATENCY; -434 is_conn_goodenough = is_latency_goodenough; -435 } else { -436 // No IP transport found -437 is_conn_goodenough = false; -438 } -439 } -440 is_goodenough &= is_conn_goodenough; -441 } +393 /// Handles [`RemoteStateMessage::SendDatagram`]. +394 async fn handle_msg_send_datagram( +395 &mut self, +396 mut sender: Box<TransportsSender>, +397 transmit: OwnedTransmit, +398 ) { +399 // Sending datagrams might fail, e.g. because we don't have the right transports set +400 // up to handle sending this owned transmit to. +401 // After all, we try every single path that we know (relay URL, IP address), even +402 // though we might not have a relay transport or ip-capable transport set up. +403 // So these errors must not be fatal for this actor (or even this operation). +404 +405 if let Some(addr) = self.selected_path.get() { +406 trace!(?addr, "sending datagram to selected path"); +407 +408 if let Err(err) = send_datagram(&mut sender, addr.clone(), transmit).await { +409 debug!(?addr, "failed to send datagram on selected_path: {err:#}"); +410 } +411 } else { +412 trace!( +413 paths = ?self.paths.addrs().collect::<Vec<_>>(), +414 "sending datagram to all known paths", +415 ); +416 if self.paths.is_empty() { +417 warn!("Cannot send datagrams: No paths to remote endpoint known"); +418 } +419 +420 for addr in self.paths.addrs() { +421 // We never want to send to our local addresses. +422 // The local address set is updated in the main loop so we can use `peek` here. +423 if let transports::Addr::Ip(sockaddr) = addr +424 && self +425 .local_direct_addrs +426 .peek() +427 .iter() +428 .any(|a| a.addr == *sockaddr) +429 { +430 trace!(%sockaddr, "not sending datagram to our own address"); +431 } else if let Err(err) = +432 send_datagram(&mut sender, addr.clone(), transmit.clone()).await +433 { +434 debug!(?addr, "failed to send datagram: {err:#}"); +435 } +436 } +437 // This message is received *before* a connection is added. So we do +438 // not yet have a connection to holepunch. Instead we trigger +439 // holepunching when AddConnection is received. +440 } +441 } 442 -443 if !is_goodenough { -444 debug!("connections are not good enough, triggering holepunching"); -445 self.trigger_holepunching(); -446 } -447 } -448 -449 /// Handles [`RemoteStateMessage::SendDatagram`]. -450 async fn handle_msg_send_datagram( -451 &mut self, -452 mut sender: Box<TransportsSender>, -453 transmit: OwnedTransmit, -454 ) { -455 // Sending datagrams might fail, e.g. because we don't have the right transports set -456 // up to handle sending this owned transmit to. -457 // After all, we try every single path that we know (relay URL, IP address), even -458 // though we might not have a relay transport or ip-capable transport set up. -459 // So these errors must not be fatal for this actor (or even this operation). -460 -461 if let Some(addr) = self.selected_path.get() { -462 trace!(?addr, "sending datagram to selected path"); -463 -464 if let Err(err) = send_datagram(&mut sender, addr.clone(), transmit).await { -465 debug!(?addr, "failed to send datagram on selected_path: {err:#}"); -466 } -467 } else { -468 trace!( -469 paths = ?self.paths.addrs().collect::<Vec<_>>(), -470 "sending datagram to all known paths", -471 ); -472 if self.paths.is_empty() { -473 warn!("Cannot send datagrams: No paths to remote endpoint known"); -474 } +443 /// Handles [`RemoteStateMessage::AddConnection`]. +444 /// +445 /// Error returns are fatal and kill the actor. +446 fn handle_msg_add_connection( +447 &mut self, +448 handle: WeakConnectionHandle, +449 tx: oneshot::Sender<PathWatchable>, +450 ) { +451 let path_watchable = PathWatchable::new(self.selected_path.clone()); +452 if let Some(conn) = handle.upgrade() { +453 self.metrics.num_conns_opened.inc(); +454 // Remove any conflicting stable_ids from the local state. +455 let conn_id = ConnId(conn.stable_id()); +456 self.connections.remove(&conn_id); +457 +458 // Hook up paths, NAT addresses and connection closed event streams. +459 self.path_events.push(Box::pin( +460 BroadcastStream::new(conn.path_events()).map(move |evt| (conn_id, evt)), +461 )); +462 self.addr_events.push(Box::pin( +463 BroadcastStream::new(conn.nat_traversal_updates()).map(move |evt| (conn_id, evt)), +464 )); +465 self.connections_close.push(OnClosed::new(&conn)); +466 +467 // Add local addrs to the connection +468 let local_addrs = self +469 .local_direct_addrs +470 .get() +471 .iter() +472 .map(|d| d.addr) +473 .collect::<BTreeSet<_>>(); +474 Self::update_qnt_candidates(&conn, &local_addrs); 475 -476 for addr in self.paths.addrs() { -477 // We never want to send to our local addresses. -478 // The local address set is updated in the main loop so we can use `peek` here. -479 if let transports::Addr::Ip(sockaddr) = addr -480 && self -481 .local_direct_addrs -482 .peek() -483 .iter() -484 .any(|a| a.addr == *sockaddr) -485 { -486 trace!(%sockaddr, "not sending datagram to our own address"); -487 } else if let Err(err) = -488 send_datagram(&mut sender, addr.clone(), transmit.clone()).await -489 { -490 debug!(?addr, "failed to send datagram: {err:#}"); -491 } -492 } -493 // This message is received *before* a connection is added. So we do -494 // not yet have a connection to holepunch. Instead we trigger -495 // holepunching when AddConnection is received. -496 } -497 } -498 -499 /// Handles [`RemoteStateMessage::AddConnection`]. -500 /// -501 /// Error returns are fatal and kill the actor. -502 fn handle_msg_add_connection( -503 &mut self, -504 handle: WeakConnectionHandle, -505 tx: oneshot::Sender<PathWatchable>, -506 ) { -507 let path_watchable = PathWatchable::new(self.selected_path.clone()); -508 if let Some(conn) = handle.upgrade() { -509 self.metrics.num_conns_opened.inc(); -510 // Remove any conflicting stable_ids from the local state. -511 let conn_id = ConnId(conn.stable_id()); -512 self.connections.remove(&conn_id); -513 -514 // Hook up paths, NAT addresses and connection closed event streams. -515 self.path_events.push(Box::pin( -516 BroadcastStream::new(conn.path_events()).map(move |evt| (conn_id, evt)), -517 )); -518 self.addr_events.push(Box::pin( -519 BroadcastStream::new(conn.nat_traversal_updates()).map(move |evt| (conn_id, evt)), -520 )); -521 self.connections_close.push(OnClosed::new(&conn)); -522 -523 // Add local addrs to the connection -524 let local_addrs = self -525 .local_direct_addrs -526 .get() -527 .iter() -528 .map(|d| d.addr) -529 .collect::<BTreeSet<_>>(); -530 Self::set_local_addrs(&conn, &local_addrs); -531 -532 // Store the connection -533 let conn_state = self -534 .connections -535 .entry(conn_id) -536 .insert_entry(ConnectionState { -537 handle: handle.clone(), -538 path_watchable: path_watchable.clone(), -539 paths: Default::default(), -540 paths_by_addr: Default::default(), -541 has_been_direct: false, -542 }) -543 .into_mut(); -544 -545 // Store PathId(0), set path_status and select best path, check if holepunching -546 // is needed. -547 if let Some(path) = conn.path(PathId::ZERO) -548 && let Ok(socketaddr) = path.remote_address() -549 && let Some(path_remote) = self.relay_mapped_addrs.to_transport_addr(socketaddr) -550 { -551 trace!(?path_remote, "added new connection"); -552 let path_status = match path_remote { -553 transports::Addr::Ip(_) => PathStatus::Available, -554 transports::Addr::Relay(_, _) => PathStatus::Backup, -555 }; -556 let res = path.set_status(path_status); -557 event!( -558 target: "iroh::_events::path::set_status", -559 Level::DEBUG, -560 remote = %self.endpoint_id.fmt_short(), -561 ?path_remote, -562 ?path_status, -563 ?conn_id, -564 path_id = %PathId::ZERO, -565 ?res, -566 ); -567 conn_state.add_open_path(path_remote.clone(), PathId::ZERO, &self.metrics); -568 self.paths -569 .insert_open_path(path_remote.clone(), Source::Connection { _0: Private }); -570 self.select_path(); -571 -572 if path_remote.is_ip() { -573 // We may have raced this with a relay address. Try and add any -574 // relay addresses we have back. -575 let relays = self -576 .paths -577 .addrs() -578 .filter(|a| a.is_relay()) -579 .cloned() -580 .collect::<Vec<_>>(); -581 for remote in relays { -582 self.open_path(&remote); -583 } -584 } -585 } -586 self.trigger_holepunching(); +476 // Store the connection +477 let conn_state = self +478 .connections +479 .entry(conn_id) +480 .insert_entry(ConnectionState { +481 handle: handle.clone(), +482 path_watchable: path_watchable.clone(), +483 paths: Default::default(), +484 paths_by_addr: Default::default(), +485 has_been_direct: false, +486 }) +487 .into_mut(); +488 +489 // Store PathId(0), set path_status and select best path, check if holepunching +490 // is needed. +491 if let Some(path) = conn.path(PathId::ZERO) +492 && let Ok(socketaddr) = path.remote_address() +493 && let Some(path_remote) = self.relay_mapped_addrs.to_transport_addr(socketaddr) +494 { +495 trace!(?path_remote, "added new connection"); +496 let path_status = match path_remote { +497 transports::Addr::Ip(_) => PathStatus::Available, +498 transports::Addr::Relay(_, _) => PathStatus::Backup, +499 }; +500 let res = path.set_status(path_status); +501 event!( +502 target: "iroh::_events::path::set_status", +503 Level::DEBUG, +504 remote = %self.endpoint_id.fmt_short(), +505 ?path_remote, +506 ?path_status, +507 ?conn_id, +508 path_id = %PathId::ZERO, +509 ?res, +510 ); +511 conn_state.add_open_path(path_remote.clone(), PathId::ZERO, &self.metrics); +512 self.paths +513 .insert_open_path(path_remote.clone(), Source::Connection { _0: Private }); +514 self.select_path(); +515 +516 if path_remote.is_ip() { +517 // We may have raced this with a relay address. Try and add any +518 // relay addresses we have back. +519 let relays = self +520 .paths +521 .addrs() +522 .filter(|a| a.is_relay()) +523 .cloned() +524 .collect::<Vec<_>>(); +525 for remote in relays { +526 self.open_path(&remote); +527 } +528 } +529 } +530 self.trigger_holepunching(); +531 } +532 +533 tx.send(path_watchable).ok(); +534 } +535 +536 /// Handles [`RemoteStateMessage::ResolveRemote`]. +537 fn handle_msg_resolve_remote( +538 &mut self, +539 addrs: BTreeSet<TransportAddr>, +540 tx: oneshot::Sender<Result<(), AddressLookupError>>, +541 ) { +542 let addrs = to_transports_addr(self.endpoint_id, addrs); +543 self.paths.insert_multiple(addrs, Source::App); +544 self.paths.resolve_remote(tx); +545 // Start Address Lookup if we have no selected path. +546 self.trigger_address_lookup(); +547 } +548 +549 /// Handles [`RemoteStateMessage::NetworkChange`]. +550 fn handle_msg_network_change(&mut self, is_major: bool) { +551 for conn in self.connections.values() { +552 if let Some(quinn_conn) = conn.handle.upgrade() { +553 for (path_id, addr) in &conn.paths { +554 if let Some(path) = quinn_conn.path(*path_id) { +555 // Ping the current path +556 if let Err(err) = path.ping() { +557 warn!(%err, %path_id, ?addr, "failed to ping path"); +558 } +559 } +560 } +561 } +562 } +563 +564 if is_major { +565 self.trigger_holepunching(); +566 } +567 } +568 fn handle_connection_close(&mut self, conn_id: ConnId) { +569 if self.connections.remove(&conn_id).is_some() { +570 self.metrics.num_conns_closed.inc(); +571 } +572 if self.connections.is_empty() { +573 trace!("last connection closed - clearing selected_path"); +574 self.selected_path.set(None).ok(); +575 } +576 } +577 +578 /// Triggers Address Lookup for the remote endpoint, if needed. +579 /// +580 /// Does not start Address Lookup if we have a selected path or if Address Lookup is +581 /// currently running. +582 fn trigger_address_lookup(&mut self) { +583 if self.selected_path.get().is_some() +584 || matches!(self.address_lookup_stream, Either::Right(_)) +585 { +586 return; 587 } -588 -589 tx.send(path_watchable).ok(); -590 } -591 -592 /// Handles [`RemoteStateMessage::ResolveRemote`]. -593 fn handle_msg_resolve_remote( -594 &mut self, -595 addrs: BTreeSet<TransportAddr>, -596 tx: oneshot::Sender<Result<(), AddressLookupError>>, -597 ) { -598 let addrs = to_transports_addr(self.endpoint_id, addrs); -599 self.paths.insert_multiple(addrs, Source::App); -600 self.paths.resolve_remote(tx); -601 // Start Address Lookup if we have no selected path. -602 self.trigger_address_lookup(); -603 } -604 -605 fn handle_connection_close(&mut self, conn_id: ConnId) { -606 if self.connections.remove(&conn_id).is_some() { -607 self.metrics.num_conns_closed.inc(); -608 } -609 if self.connections.is_empty() { -610 trace!("last connection closed - clearing selected_path"); -611 self.selected_path.set(None).ok(); -612 } -613 } -614 -615 fn handle_address_lookup_item( -616 &mut self, -617 item: Option<Result<AddressLookupItem, AddressLookupError>>, -618 ) { -619 match item { -620 None => { -621 self.address_lookup_stream = Either::Left(n0_future::stream::pending()); -622 self.paths.address_lookup_finished(Ok(())); -623 } -624 Some(Err(err)) => { -625 warn!("Address Lookup failed: {err:#}"); -626 self.address_lookup_stream = Either::Left(n0_future::stream::pending()); -627 self.paths.address_lookup_finished(Err(err)); -628 } -629 Some(Ok(item)) => { -630 if item.endpoint_id() != self.endpoint_id { -631 warn!( -632 ?item, -633 "Address Lookup emitted item for wrong remote endpoint" -634 ); -635 } else { -636 let source = Source::AddressLookup { -637 name: item.provenance().to_string(), -638 }; -639 let addrs = -640 to_transports_addr(self.endpoint_id, item.into_endpoint_addr().addrs); -641 self.paths.insert_multiple(addrs, source); -642 } -643 } +588 match self.address_lookup.resolve(self.endpoint_id) { +589 Some(stream) => self.address_lookup_stream = Either::Right(SyncStream::new(stream)), +590 None => self.paths.address_lookup_finished(Ok(())), +591 } +592 } +593 +594 /// Handles an address lookup result. +595 /// +596 /// All address lookup results and up being sent here. It takes care of updating the +597 /// [`RemotePathState`] with the results. +598 fn handle_address_lookup_item( +599 &mut self, +600 item: Option<Result<AddressLookupItem, AddressLookupError>>, +601 ) { +602 match item { +603 None => { +604 self.address_lookup_stream = Either::Left(n0_future::stream::pending()); +605 self.paths.address_lookup_finished(Ok(())); +606 } +607 Some(Err(err)) => { +608 warn!("Address Lookup failed: {err:#}"); +609 self.address_lookup_stream = Either::Left(n0_future::stream::pending()); +610 self.paths.address_lookup_finished(Err(err)); +611 } +612 Some(Ok(item)) => { +613 if item.endpoint_id() != self.endpoint_id { +614 warn!( +615 ?item, +616 "Address Lookup emitted item for wrong remote endpoint" +617 ); +618 } else { +619 let source = Source::AddressLookup { +620 name: item.provenance().to_string(), +621 }; +622 let addrs = +623 to_transports_addr(self.endpoint_id, item.into_endpoint_addr().addrs); +624 self.paths.insert_multiple(addrs, source); +625 } +626 } +627 } +628 } +629 +630 /// Updates the local [`DirectAddr`]s to all connections. +631 /// +632 /// Each connection needs to have the local direct addresses to use as QNT address +633 /// candidates. +634 fn update_local_direct_address(&mut self) { +635 let local_addrs = self +636 .local_direct_addrs +637 .get() +638 .iter() +639 .map(|d| d.addr) +640 .collect::<BTreeSet<_>>(); +641 +642 for conn in self.connections.values().filter_map(|s| s.handle.upgrade()) { +643 Self::update_qnt_candidates(&conn, &local_addrs); 644 } -645 } -646 -647 /// Triggers Address Lookup for the remote endpoint, if needed. -648 /// -649 /// Does not start Address Lookup if we have a selected path or if Address Lookup is currently running. -650 fn trigger_address_lookup(&mut self) { -651 if self.selected_path.get().is_some() -652 || matches!(self.address_lookup_stream, Either::Right(_)) -653 { -654 return; -655 } -656 match self.address_lookup.resolve(self.endpoint_id) { -657 Some(stream) => self.address_lookup_stream = Either::Right(SyncStream::new(stream)), -658 None => self.paths.address_lookup_finished(Ok(())), -659 } -660 } -661 -662 /// Sets the current local addresses to QNT's state to all connections -663 fn local_addrs_updated(&mut self) { -664 let local_addrs = self -665 .local_direct_addrs -666 .get() -667 .iter() -668 .map(|d| d.addr) -669 .collect::<BTreeSet<_>>(); -670 -671 for conn in self.connections.values().filter_map(|s| s.handle.upgrade()) { -672 Self::set_local_addrs(&conn, &local_addrs); -673 } -674 // todo: trace -675 } -676 -677 /// Sets the current local addresses to QNT's state -678 fn set_local_addrs(conn: &quinn::Connection, local_addrs: &BTreeSet<SocketAddr>) { -679 let quinn_local_addrs = match conn.get_local_nat_traversal_addresses() { -680 Ok(addrs) => BTreeSet::from_iter(addrs), -681 Err(err) => { -682 warn!("failed to get local nat candidates: {err:#}"); -683 return; -684 } -685 }; -686 for addr in local_addrs.difference(&quinn_local_addrs) { -687 if let Err(err) = conn.add_nat_traversal_address(*addr) { -688 warn!("failed adding local addr: {err:#}",); -689 } -690 } -691 for addr in quinn_local_addrs.difference(local_addrs) { -692 if let Err(err) = conn.remove_nat_traversal_address(*addr) { -693 warn!("failed removing local addr: {err:#}"); -694 } -695 } -696 trace!(?local_addrs, "updated local QNT addresses"); -697 } -698 -699 /// Triggers holepunching to the remote endpoint. -700 /// -701 /// This will manage the entire process of holepunching with the remote endpoint. -702 /// -703 /// - Holepunching happens on the Connection with the lowest [`ConnId`] which is a -704 /// client. -705 /// - Both endpoints may initiate holepunching if both have a client connection. -706 /// - Any opened paths are opened on all other connections without holepunching. -707 /// - If there are no changes in local or remote candidate addresses since the -708 /// last attempt **and** there was a recent attempt, a trigger_holepunching call -709 /// will be scheduled instead. -710 fn trigger_holepunching(&mut self) { -711 if self.connections.is_empty() { -712 trace!("not holepunching: no connections"); -713 return; -714 } -715 -716 let Some(conn) = self -717 .connections -718 .iter() -719 .filter_map(|(id, state)| state.handle.upgrade().map(|conn| (*id, conn))) -720 .filter(|(_, conn)| conn.side().is_client()) -721 .min_by_key(|(id, _)| *id) -722 .map(|(_, conn)| conn) -723 else { -724 trace!("not holepunching: no client connection"); -725 return; -726 }; -727 let remote_candidates = match conn.get_remote_nat_traversal_addresses() { -728 Ok(addrs) => BTreeSet::from_iter(addrs), -729 Err(err) => { -730 warn!("failed to get nat candidate addresses: {err:#}"); -731 return; -732 } -733 }; -734 let local_candidates: BTreeSet<SocketAddr> = self -735 .local_direct_addrs -736 .get() -737 .iter() -738 .map(|daddr| daddr.addr) -739 .collect(); -740 let new_candidates = self -741 .last_holepunch -742 .as_ref() -743 .map(|last_hp| { -744 // Addrs are allowed to disappear, but if there are new ones we need to -745 // holepunch again. -746 trace!( -747 ?last_hp, -748 ?local_candidates, -749 ?remote_candidates, -750 "candidates to holepunch?" -751 ); -752 !remote_candidates.is_subset(&last_hp.remote_candidates) -753 || !local_candidates.is_subset(&last_hp.local_candidates) -754 }) -755 .unwrap_or(true); -756 if !new_candidates && let Some(ref last_hp) = self.last_holepunch { -757 let next_hp = last_hp.when + HOLEPUNCH_ATTEMPTS_INTERVAL; -758 let now = Instant::now(); -759 if next_hp > now { -760 trace!(scheduled_in = ?(next_hp - now), "not holepunching: no new addresses"); -761 self.scheduled_holepunch = Some(next_hp); -762 return; -763 } -764 } -765 -766 self.do_holepunching(conn); -767 } -768 -769 /// Unconditionally perform holepunching. -770 #[instrument(skip_all)] -771 fn do_holepunching(&mut self, conn: quinn::Connection) { -772 self.metrics.holepunch_attempts.inc(); -773 let local_candidates = self -774 .local_direct_addrs -775 .get() -776 .iter() -777 .map(|daddr| daddr.addr) -778 .collect::<BTreeSet<_>>(); -779 -780 match conn.initiate_nat_traversal_round() { -781 Ok(remote_candidates) => { -782 let remote_candidates = remote_candidates -783 .iter() -784 .map(|addr| SocketAddr::new(addr.ip().to_canonical(), addr.port())) -785 .collect(); -786 event!( -787 target: "iroh::_events::qnt::init", -788 Level::DEBUG, -789 remote = %self.endpoint_id.fmt_short(), -790 ?local_candidates, -791 ?remote_candidates, -792 ); -793 self.last_holepunch = Some(HolepunchAttempt { -794 when: Instant::now(), -795 local_candidates, -796 remote_candidates, -797 }); -798 } -799 Err(err) => { -800 debug!("failed to initiate NAT traversal: {err:#}"); -801 use quinn_proto::n0_nat_traversal::Error; -802 match err { -803 Error::Closed -804 | Error::TooManyAddresses -805 | Error::WrongConnectionSide -806 | Error::ExtensionNotNegotiated => { -807 // Fatal, no need to retry for now -808 } -809 Error::Multipath(_) | Error::NotEnoughAddresses => { -810 // Retry in a bit -811 let now = Instant::now(); -812 let next_hp = now + Duration::from_millis(100); -813 trace!(scheduled_in = ?(next_hp - now), "holepunching retry"); -814 self.scheduled_holepunch = Some(next_hp); -815 } -816 } -817 } -818 } -819 } -820 -821 /// Open the path on all connections. -822 /// -823 /// This goes through all the connections for which we are the client, and makes sure -824 /// the path exists, or opens it. -825 #[instrument(level = "warn", skip(self))] -826 fn open_path(&mut self, open_addr: &transports::Addr) { -827 let path_status = match open_addr { -828 transports::Addr::Ip(_) => PathStatus::Available, -829 transports::Addr::Relay(_, _) => PathStatus::Backup, -830 }; -831 let quic_addr = match &open_addr { -832 transports::Addr::Ip(socket_addr) => *socket_addr, -833 transports::Addr::Relay(relay_url, eid) => self -834 .relay_mapped_addrs -835 .get(&(relay_url.clone(), *eid)) -836 .private_socket_addr(), -837 }; -838 -839 for (conn_id, conn_state) in self.connections.iter_mut() { -840 let Some(conn) = conn_state.handle.upgrade() else { -841 continue; -842 }; -843 if let Some(&path_id) = conn_state.paths_by_addr.get(open_addr) -844 && let Some(path) = conn.path(path_id) -845 { -846 // We still need to ensure that the path status is set correctly, -847 // in case the path was opened by QNT, which opens all IP paths -848 // using PATH_STATUS_BACKUP. We need to switch the selected path -849 // to use PATH_STATUS_AVAILABLE though! -850 let res = path.set_status(path_status); -851 event!( -852 target: "iroh::_events::path::set_status", -853 Level::DEBUG, -854 remote = %self.endpoint_id.fmt_short(), -855 ?open_addr, -856 ?path_status, -857 ?conn_id, -858 %path_id, -859 ?res, -860 ); -861 continue; -862 } -863 if conn.side().is_server() { -864 continue; -865 } -866 let fut = conn.open_path_ensure(quic_addr, path_status); -867 match fut.path_id() { -868 Some(path_id) => { -869 trace!(?conn_id, %path_id, ?path_status, "opening new path"); -870 // Just like in the PATH_STATUS comment above, we need to make sure that the -871 // path status is set correctly, even if the path already existed. -872 if let Some(path) = conn.path(path_id) { -873 let res = path.set_status(path_status); -874 event!( -875 target: "iroh::_events::path::set_status", -876 Level::DEBUG, -877 remote = %self.endpoint_id.fmt_short(), -878 ?open_addr, -879 ?path_status, -880 ?conn_id, -881 %path_id, -882 ?res, -883 ); -884 if let Err(e) = res { -885 warn!(?e, ?open_addr, ?path_status, "Setting path status failed"); -886 } -887 } -888 } -889 None => { -890 let ret = now_or_never(fut); -891 match ret { -892 Some(Err(PathError::RemoteCidsExhausted)) => { -893 self.scheduled_open_path = -894 Some(Instant::now() + Duration::from_millis(333)); -895 self.pending_open_paths.push_back(open_addr.clone()); -896 trace!(?open_addr, "scheduling open_path"); -897 } -898 _ => warn!(?ret, "Opening path failed"), -899 } -900 } -901 } -902 } -903 } -904 -905 #[instrument(skip(self))] -906 fn handle_path_event( -907 &mut self, -908 conn_id: ConnId, -909 event: Result<PathEvent, BroadcastStreamRecvError>, -910 ) { -911 let Ok(event) = event else { -912 warn!("missed a PathEvent, RemoteStateActor lagging"); -913 // TODO: Is it possible to recover using the sync APIs to figure out what the -914 // state of the connection and it's paths are? -915 return; -916 }; -917 let Some(conn_state) = self.connections.get_mut(&conn_id) else { -918 trace!("event for removed connection"); -919 return; -920 }; -921 let Some(conn) = conn_state.handle.upgrade() else { -922 trace!("event for closed connection"); -923 return; -924 }; -925 trace!("path event"); -926 match event { -927 PathEvent::Opened { id: path_id } => { -928 let Some(path) = conn.path(path_id) else { -929 trace!("path open event for unknown path"); -930 return; -931 }; -932 -933 if let Ok(socketaddr) = path.remote_address() -934 && let Some(path_remote) = self.relay_mapped_addrs.to_transport_addr(socketaddr) -935 { -936 event!( -937 target: "iroh::_events::path::open", -938 Level::DEBUG, -939 remote = %self.endpoint_id.fmt_short(), -940 ?path_remote, -941 ?conn_id, -942 %path_id, -943 ); -944 conn_state.add_open_path(path_remote.clone(), path_id, &self.metrics); -945 self.paths -946 .insert_open_path(path_remote.clone(), Source::Connection { _0: Private }); -947 } -948 -949 self.select_path(); -950 } -951 PathEvent::Abandoned { id, .. } => { -952 // Remove abandoned path from the conn state. -953 let Some(path_remote) = conn_state.remove_path(&id) else { -954 debug!(%id, "path not in path_id_map"); -955 return; -956 }; -957 // Also remove the path from the remote-global path tracking. -958 self.paths.abandoned_path(&path_remote); -959 -960 event!( -961 target: "iroh::_events::path::abandoned", -962 Level::DEBUG, -963 remote = %self.endpoint_id.fmt_short(), -964 ?path_remote, -965 ?conn_id, -966 path_id = ?id, -967 ); -968 -969 // If one connection abandons a path, close it on all connections. -970 for (conn_id, conn_state) in self.connections.iter_mut() { -971 let Some(path_id) = conn_state.paths_by_addr.get(&path_remote) else { -972 continue; -973 }; -974 let Some(conn) = conn_state.handle.upgrade() else { -975 continue; -976 }; -977 if let Some(path) = conn.path(*path_id) { -978 trace!(?path_remote, ?conn_id, %path_id, "closing path"); -979 if let Err(err) = path.close() { -980 trace!( -981 ?path_remote, -982 ?conn_id, -983 %path_id, -984 "path close failed: {err:#}" -985 ); -986 } -987 } -988 } -989 -990 // If the remote closed our selected path, select a new one. -991 self.select_path(); -992 } -993 PathEvent::Discarded { id, path_stats } => { -994 trace!(%id, ?path_stats, "path discarded"); -995 } -996 PathEvent::RemoteStatus { .. } | PathEvent::ObservedAddr { .. } => { -997 // Nothing to do for these events. -998 } -999 } +645 // todo: trace +646 } +647 +648 /// Updates QNT's candidate addresses to be the current set of direct addresses. +649 /// +650 /// `direct addrs` must be a set of addresses extracted from the endpoint's current +651 /// [`DirectAddr`]s. +652 fn update_qnt_candidates(conn: &quinn::Connection, direct_addrs: &BTreeSet<SocketAddr>) { +653 let quinn_candidates = match conn.get_local_nat_traversal_addresses() { +654 Ok(addrs) => BTreeSet::from_iter(addrs), +655 Err(err) => { +656 warn!("failed to get local nat candidates: {err:#}"); +657 return; +658 } +659 }; +660 for addr in direct_addrs.difference(&quinn_candidates) { +661 if let Err(err) = conn.add_nat_traversal_address(*addr) { +662 warn!("failed adding local addr: {err:#}",); +663 } +664 } +665 for addr in quinn_candidates.difference(direct_addrs) { +666 if let Err(err) = conn.remove_nat_traversal_address(*addr) { +667 warn!("failed removing local addr: {err:#}"); +668 } +669 } +670 trace!(?direct_addrs, "updated local QNT addresses"); +671 } +672 +673 /// Triggers holepunching to the remote endpoint. +674 /// +675 /// This will manage the entire process of holepunching with the remote endpoint. +676 /// +677 /// - Holepunching happens on the Connection with the lowest [`ConnId`] which is a +678 /// client. +679 /// - Both endpoints may initiate holepunching if both have a client connection. +680 /// - Any opened paths are opened on all other connections without holepunching. +681 /// - If there are no changes in local or remote candidate addresses since the +682 /// last attempt **and** there was a recent attempt, a trigger_holepunching call +683 /// will be scheduled instead. +684 fn trigger_holepunching(&mut self) { +685 if self.connections.is_empty() { +686 trace!("not holepunching: no connections"); +687 return; +688 } +689 +690 let Some(conn) = self +691 .connections +692 .iter() +693 .filter_map(|(id, state)| state.handle.upgrade().map(|conn| (*id, conn))) +694 .filter(|(_, conn)| conn.side().is_client()) +695 .min_by_key(|(id, _)| *id) +696 .map(|(_, conn)| conn) +697 else { +698 trace!("not holepunching: no client connection"); +699 return; +700 }; +701 let remote_candidates = match conn.get_remote_nat_traversal_addresses() { +702 Ok(addrs) => BTreeSet::from_iter(addrs), +703 Err(err) => { +704 warn!("failed to get nat candidate addresses: {err:#}"); +705 return; +706 } +707 }; +708 let local_candidates: BTreeSet<SocketAddr> = self +709 .local_direct_addrs +710 .get() +711 .iter() +712 .map(|daddr| daddr.addr) +713 .collect(); +714 let new_candidates = self +715 .last_holepunch +716 .as_ref() +717 .map(|last_hp| { +718 // Addrs are allowed to disappear, but if there are new ones we need to +719 // holepunch again. +720 trace!( +721 ?last_hp, +722 ?local_candidates, +723 ?remote_candidates, +724 "candidates to holepunch?" +725 ); +726 !remote_candidates.is_subset(&last_hp.remote_candidates) +727 || !local_candidates.is_subset(&last_hp.local_candidates) +728 }) +729 .unwrap_or(true); +730 if !new_candidates && let Some(ref last_hp) = self.last_holepunch { +731 let next_hp = last_hp.when + HOLEPUNCH_ATTEMPTS_INTERVAL; +732 let now = Instant::now(); +733 if next_hp > now { +734 trace!(scheduled_in = ?(next_hp - now), "not holepunching: no new addresses"); +735 self.scheduled_holepunch = Some(next_hp); +736 return; +737 } +738 } +739 +740 self.do_holepunching(conn); +741 } +742 +743 /// Unconditionally perform holepunching. +744 #[instrument(skip_all)] +745 fn do_holepunching(&mut self, conn: quinn::Connection) { +746 self.metrics.holepunch_attempts.inc(); +747 let local_candidates = self +748 .local_direct_addrs +749 .get() +750 .iter() +751 .map(|daddr| daddr.addr) +752 .collect::<BTreeSet<_>>(); +753 +754 match conn.initiate_nat_traversal_round() { +755 Ok(remote_candidates) => { +756 let remote_candidates = remote_candidates +757 .iter() +758 .map(|addr| SocketAddr::new(addr.ip().to_canonical(), addr.port())) +759 .collect(); +760 event!( +761 target: "iroh::_events::qnt::init", +762 Level::DEBUG, +763 remote = %self.endpoint_id.fmt_short(), +764 ?local_candidates, +765 ?remote_candidates, +766 ); +767 self.last_holepunch = Some(HolepunchAttempt { +768 when: Instant::now(), +769 local_candidates, +770 remote_candidates, +771 }); +772 } +773 Err(err) => { +774 debug!("failed to initiate NAT traversal: {err:#}"); +775 use quinn_proto::n0_nat_traversal::Error; +776 match err { +777 Error::Closed +778 | Error::TooManyAddresses +779 | Error::WrongConnectionSide +780 | Error::ExtensionNotNegotiated => { +781 // Fatal, no need to retry for now +782 } +783 Error::Multipath(_) | Error::NotEnoughAddresses => { +784 // Retry in a bit +785 let now = Instant::now(); +786 let next_hp = now + Duration::from_millis(100); +787 trace!(scheduled_in = ?(next_hp - now), "holepunching retry"); +788 self.scheduled_holepunch = Some(next_hp); +789 } +790 } +791 } +792 } +793 } +794 +795 /// Open the path on all connections. +796 /// +797 /// This goes through all the connections for which we are the client, and makes sure +798 /// the path exists, or opens it. +799 #[instrument(level = "warn", skip(self))] +800 fn open_path(&mut self, open_addr: &transports::Addr) { +801 let path_status = match open_addr { +802 transports::Addr::Ip(_) => PathStatus::Available, +803 transports::Addr::Relay(_, _) => PathStatus::Backup, +804 }; +805 let quic_addr = match &open_addr { +806 transports::Addr::Ip(socket_addr) => *socket_addr, +807 transports::Addr::Relay(relay_url, eid) => self +808 .relay_mapped_addrs +809 .get(&(relay_url.clone(), *eid)) +810 .private_socket_addr(), +811 }; +812 +813 for (conn_id, conn_state) in self.connections.iter_mut() { +814 let Some(conn) = conn_state.handle.upgrade() else { +815 continue; +816 }; +817 if let Some(&path_id) = conn_state.paths_by_addr.get(open_addr) +818 && let Some(path) = conn.path(path_id) +819 { +820 // We still need to ensure that the path status is set correctly, +821 // in case the path was opened by QNT, which opens all IP paths +822 // using PATH_STATUS_BACKUP. We need to switch the selected path +823 // to use PATH_STATUS_AVAILABLE though! +824 let res = path.set_status(path_status); +825 event!( +826 target: "iroh::_events::path::set_status", +827 Level::DEBUG, +828 remote = %self.endpoint_id.fmt_short(), +829 ?open_addr, +830 ?path_status, +831 ?conn_id, +832 %path_id, +833 ?res, +834 ); +835 continue; +836 } +837 if conn.side().is_server() { +838 continue; +839 } +840 let fut = conn.open_path_ensure(quic_addr, path_status); +841 match fut.path_id() { +842 Some(path_id) => { +843 trace!(?conn_id, %path_id, ?path_status, "opening new path"); +844 // Just like in the PATH_STATUS comment above, we need to make sure that the +845 // path status is set correctly, even if the path already existed. +846 if let Some(path) = conn.path(path_id) { +847 let res = path.set_status(path_status); +848 event!( +849 target: "iroh::_events::path::set_status", +850 Level::DEBUG, +851 remote = %self.endpoint_id.fmt_short(), +852 ?open_addr, +853 ?path_status, +854 ?conn_id, +855 %path_id, +856 ?res, +857 ); +858 if let Err(e) = res { +859 warn!(?e, ?open_addr, ?path_status, "Setting path status failed"); +860 } +861 } +862 } +863 None => { +864 let ret = now_or_never(fut); +865 match ret { +866 Some(Err(PathError::RemoteCidsExhausted)) => { +867 self.scheduled_open_path = +868 Some(Instant::now() + Duration::from_millis(333)); +869 self.pending_open_paths.push_back(open_addr.clone()); +870 trace!(?open_addr, "scheduling open_path"); +871 } +872 _ => warn!(?ret, "Opening path failed"), +873 } +874 } +875 } +876 } +877 } +878 +879 #[instrument(skip(self))] +880 fn handle_path_event( +881 &mut self, +882 conn_id: ConnId, +883 event: Result<PathEvent, BroadcastStreamRecvError>, +884 ) { +885 let Ok(event) = event else { +886 warn!("missed a PathEvent, RemoteStateActor lagging"); +887 // TODO: Is it possible to recover using the sync APIs to figure out what the +888 // state of the connection and it's paths are? +889 return; +890 }; +891 let Some(conn_state) = self.connections.get_mut(&conn_id) else { +892 trace!("event for removed connection"); +893 return; +894 }; +895 let Some(conn) = conn_state.handle.upgrade() else { +896 trace!("event for closed connection"); +897 return; +898 }; +899 trace!("path event"); +900 match event { +901 PathEvent::Opened { id: path_id } => { +902 let Some(path) = conn.path(path_id) else { +903 trace!("path open event for unknown path"); +904 return; +905 }; +906 +907 if let Ok(socketaddr) = path.remote_address() +908 && let Some(path_remote) = self.relay_mapped_addrs.to_transport_addr(socketaddr) +909 { +910 event!( +911 target: "iroh::_events::path::open", +912 Level::DEBUG, +913 remote = %self.endpoint_id.fmt_short(), +914 ?path_remote, +915 ?conn_id, +916 %path_id, +917 ); +918 conn_state.add_open_path(path_remote.clone(), path_id, &self.metrics); +919 self.paths +920 .insert_open_path(path_remote.clone(), Source::Connection { _0: Private }); +921 } +922 +923 self.select_path(); +924 } +925 PathEvent::Abandoned { id, .. } => { +926 // Remove abandoned path from the conn state. +927 let Some(path_remote) = conn_state.remove_path(&id) else { +928 debug!(%id, "path not in path_id_map"); +929 return; +930 }; +931 // Also remove the path from the remote-global path tracking. +932 self.paths.abandoned_path(&path_remote); +933 +934 event!( +935 target: "iroh::_events::path::abandoned", +936 Level::DEBUG, +937 remote = %self.endpoint_id.fmt_short(), +938 ?path_remote, +939 ?conn_id, +940 path_id = ?id, +941 ); +942 +943 // If one connection abandons a path, close it on all connections. +944 for (conn_id, conn_state) in self.connections.iter_mut() { +945 let Some(path_id) = conn_state.paths_by_addr.get(&path_remote) else { +946 continue; +947 }; +948 let Some(conn) = conn_state.handle.upgrade() else { +949 continue; +950 }; +951 if let Some(path) = conn.path(*path_id) { +952 trace!(?path_remote, ?conn_id, %path_id, "closing path"); +953 if let Err(err) = path.close() { +954 trace!( +955 ?path_remote, +956 ?conn_id, +957 %path_id, +958 "path close failed: {err:#}" +959 ); +960 } +961 } +962 } +963 +964 // If the remote closed our selected path, select a new one. +965 self.select_path(); +966 } +967 PathEvent::Discarded { id, path_stats } => { +968 trace!(%id, ?path_stats, "path discarded"); +969 } +970 PathEvent::RemoteStatus { .. } | PathEvent::ObservedAddr { .. } => { +971 // Nothing to do for these events. +972 } +973 } +974 } +975 +976 fn path_selection_data( +977 &self, +978 addr: transports::Addr, +979 rtt: Duration, +980 ) -> (transports::Addr, PathSelectionData) { +981 let status = match addr { +982 transports::Addr::Ip(_) => PathStatus::Available, +983 transports::Addr::Relay(_, _) => PathStatus::Backup, +984 }; +985 let biased_rtt = match addr { +986 transports::Addr::Ip(SocketAddr::V4(_)) => rtt.as_nanos() as i128, +987 transports::Addr::Ip(SocketAddr::V6(_)) => { +988 rtt.as_nanos() as i128 - IPV6_RTT_ADVANTAGE.as_nanos() as i128 +989 } +990 transports::Addr::Relay(_, _) => rtt.as_nanos() as i128, +991 }; +992 ( +993 addr, +994 PathSelectionData { +995 status, +996 rtt, +997 biased_rtt, +998 }, +999 ) 1000 } 1001 -1002 fn path_selection_data( -1003 &self, -1004 addr: transports::Addr, -1005 rtt: Duration, -1006 ) -> (transports::Addr, PathSelectionData) { -1007 let status = match addr { -1008 transports::Addr::Ip(_) => PathStatus::Available, -1009 transports::Addr::Relay(_, _) => PathStatus::Backup, -1010 }; -1011 let biased_rtt = match addr { -1012 transports::Addr::Ip(SocketAddr::V4(_)) => rtt.as_nanos() as i128, -1013 transports::Addr::Ip(SocketAddr::V6(_)) => { -1014 rtt.as_nanos() as i128 - IPV6_RTT_ADVANTAGE.as_nanos() as i128 -1015 } -1016 transports::Addr::Relay(_, _) => rtt.as_nanos() as i128, -1017 }; -1018 ( -1019 addr, -1020 PathSelectionData { -1021 status, -1022 rtt, -1023 biased_rtt, -1024 }, -1025 ) -1026 } -1027 -1028 /// Selects the path with the lowest RTT, prefers direct paths. -1029 /// -1030 /// If there are direct paths, this selects the direct path with the lowest RTT. If -1031 /// there are only relay paths, the relay path with the lowest RTT is chosen. -1032 /// -1033 /// The selected path is added to any connections which do not yet have it. Any unused -1034 /// direct paths are closed for all connections. -1035 #[instrument(skip_all)] -1036 fn select_path(&mut self) { -1037 // Find the lowest RTT across all connections for each open path. The long way, so -1038 // we get to log *all* RTTs. -1039 let mut all_path_rtts: FxHashMap<transports::Addr, Vec<Duration>> = FxHashMap::default(); -1040 for conn_state in self.connections.values() { -1041 let Some(conn) = conn_state.handle.upgrade() else { -1042 continue; -1043 }; -1044 for (path_id, addr) in conn_state.paths.iter() { -1045 if let Some(stats) = conn.path_stats(*path_id) { -1046 all_path_rtts -1047 .entry(addr.clone()) -1048 .or_default() -1049 .push(stats.rtt); -1050 } -1051 } -1052 } -1053 trace!(?all_path_rtts, "dumping all path RTTs"); -1054 let path_rtts: FxHashMap<transports::Addr, PathSelectionData> = all_path_rtts -1055 .into_iter() -1056 .filter_map(|(addr, rtts)| rtts.into_iter().min().map(|rtt| (addr, rtt))) -1057 .map(|(addr, rtt)| self.path_selection_data(addr, rtt)) -1058 .collect(); -1059 -1060 let current_path = self.selected_path.get(); -1061 let selected_path = select_best_path(path_rtts, &current_path); -1062 -1063 // Apply our new path -1064 if let Some((addr, rtt)) = selected_path { -1065 let prev = self.selected_path.set(Some(addr.clone())); -1066 if prev.is_ok() { -1067 event!( -1068 target: "iroh::_events::path::selected", -1069 Level::DEBUG, -1070 remote = %self.endpoint_id.fmt_short(), -1071 path_remote = ?addr, -1072 ?rtt, -1073 prev_remote = ?prev, -1074 ); -1075 } -1076 self.open_path(&addr); -1077 self.close_redundant_paths(&addr); -1078 } else { -1079 trace!(?current_path, "keeping current path"); -1080 } -1081 } -1082 -1083 /// Closes any direct paths not selected if we are the client. -1084 /// -1085 /// Makes sure not to close the last direct path. Relay paths are never closed -1086 /// currently, because we only have one relay path at this time. -1087 /// -1088 /// Only the client closes paths, just like only the client opens paths. This is to -1089 /// avoid the client and server selecting different paths and accidentally closing all -1090 /// paths. -1091 fn close_redundant_paths(&mut self, selected_path: &transports::Addr) { -1092 debug_assert_eq!(self.selected_path.get().as_ref(), Some(selected_path),); -1093 -1094 for (conn_id, conn_state) in self.connections.iter() { -1095 for (path_id, path_remote) in conn_state -1096 .paths -1097 .iter() -1098 .filter(|(_, addr)| addr.is_ip()) -1099 .filter(|(_, addr)| *addr != selected_path) -1100 { -1101 if conn_state.paths.values().filter(|a| a.is_ip()).count() <= 1 { -1102 continue; // Do not close the last direct path. -1103 } -1104 if let Some(path) = conn_state -1105 .handle -1106 .upgrade() -1107 .filter(|conn| conn.side().is_client()) -1108 .and_then(|conn| conn.path(*path_id)) -1109 { -1110 trace!(?path_remote, ?conn_id, %path_id, "closing direct path"); -1111 match path.close() { -1112 Err(quinn_proto::ClosePathError::MultipathNotNegotiated) => { -1113 error!("multipath not negotiated"); -1114 } -1115 Err(quinn_proto::ClosePathError::LastOpenPath) => { -1116 error!("could not close last open path"); -1117 } -1118 Err(quinn_proto::ClosePathError::ClosedPath) => { -1119 // We already closed this. +1002 /// Selects the path with the lowest RTT, prefers direct paths. +1003 /// +1004 /// If there are direct paths, this selects the direct path with the lowest RTT. If +1005 /// there are only relay paths, the relay path with the lowest RTT is chosen. +1006 /// +1007 /// The selected path is added to any connections which do not yet have it. Any unused +1008 /// direct paths are closed for all connections. +1009 #[instrument(skip_all)] +1010 fn select_path(&mut self) { +1011 // Find the lowest RTT across all connections for each open path. The long way, so +1012 // we get to log *all* RTTs. +1013 let mut all_path_rtts: FxHashMap<transports::Addr, Vec<Duration>> = FxHashMap::default(); +1014 for conn_state in self.connections.values() { +1015 let Some(conn) = conn_state.handle.upgrade() else { +1016 continue; +1017 }; +1018 for (path_id, addr) in conn_state.paths.iter() { +1019 if let Some(stats) = conn.path_stats(*path_id) { +1020 all_path_rtts +1021 .entry(addr.clone()) +1022 .or_default() +1023 .push(stats.rtt); +1024 } +1025 } +1026 } +1027 trace!(?all_path_rtts, "dumping all path RTTs"); +1028 let path_rtts: FxHashMap<transports::Addr, PathSelectionData> = all_path_rtts +1029 .into_iter() +1030 .filter_map(|(addr, rtts)| rtts.into_iter().min().map(|rtt| (addr, rtt))) +1031 .map(|(addr, rtt)| self.path_selection_data(addr, rtt)) +1032 .collect(); +1033 +1034 let current_path = self.selected_path.get(); +1035 let selected_path = select_best_path(path_rtts, &current_path); +1036 +1037 // Apply our new path +1038 if let Some((addr, rtt)) = selected_path { +1039 let prev = self.selected_path.set(Some(addr.clone())); +1040 if prev.is_ok() { +1041 event!( +1042 target: "iroh::_events::path::selected", +1043 Level::DEBUG, +1044 remote = %self.endpoint_id.fmt_short(), +1045 path_remote = ?addr, +1046 ?rtt, +1047 prev_remote = ?prev, +1048 ); +1049 } +1050 self.open_path(&addr); +1051 self.close_redundant_paths(&addr); +1052 } else { +1053 trace!(?current_path, "keeping current path"); +1054 } +1055 } +1056 +1057 /// Closes any direct paths not selected if we are the client. +1058 /// +1059 /// Makes sure not to close the last direct path. Relay paths are never closed +1060 /// currently, because we only have one relay path at this time. +1061 /// +1062 /// Only the client closes paths, just like only the client opens paths. This is to +1063 /// avoid the client and server selecting different paths and accidentally closing all +1064 /// paths. +1065 fn close_redundant_paths(&mut self, selected_path: &transports::Addr) { +1066 debug_assert_eq!(self.selected_path.get().as_ref(), Some(selected_path)); +1067 +1068 for (conn_id, conn_state) in self.connections.iter() { +1069 for (path_id, path_remote) in conn_state +1070 .paths +1071 .iter() +1072 .filter(|(_, addr)| addr.is_ip()) +1073 .filter(|(_, addr)| *addr != selected_path) +1074 { +1075 if conn_state.paths.values().filter(|a| a.is_ip()).count() <= 1 { +1076 continue; // Do not close the last direct path. +1077 } +1078 if let Some(path) = conn_state +1079 .handle +1080 .upgrade() +1081 .filter(|conn| conn.side().is_client()) +1082 .and_then(|conn| conn.path(*path_id)) +1083 { +1084 trace!(?path_remote, ?conn_id, %path_id, "closing direct path"); +1085 match path.close() { +1086 Err(quinn_proto::ClosePathError::MultipathNotNegotiated) => { +1087 error!("multipath not negotiated"); +1088 } +1089 Err(quinn_proto::ClosePathError::LastOpenPath) => { +1090 error!("could not close last open path"); +1091 } +1092 Err(quinn_proto::ClosePathError::ClosedPath) => { +1093 // We already closed this. +1094 } +1095 Ok(_fut) => { +1096 // We will handle the event in Self::handle_path_events. +1097 } +1098 } +1099 } +1100 } +1101 } +1102 } +1103 +1104 /// Handles regularly checking if any paths need hole punching currently +1105 /// +1106 /// Currently we need to have 1 IP path, with a good enough latency. +1107 fn check_connections(&mut self) { +1108 let mut is_goodenough = true; +1109 for conn_state in self.connections.values() { +1110 let mut is_conn_goodenough = false; +1111 if let Some(conn) = conn_state.handle.upgrade() { +1112 let min_ip_rtt = conn_state +1113 .paths +1114 .iter() +1115 .filter_map(|(path_id, addr)| { +1116 if addr.is_ip() { +1117 conn.path_stats(*path_id).map(|stats| stats.rtt) +1118 } else { +1119 None 1120 } -1121 Ok(_fut) => { -1122 // We will handle the event in Self::handle_path_events. -1123 } -1124 } -1125 } -1126 } -1127 } -1128 } -1129} -1130 -1131/// Data used during path selection. -1132#[derive(Debug)] -1133struct PathSelectionData { -1134 /// Status of the path if it would be selected. -1135 status: PathStatus, -1136 /// Measured RTT for path selection. -1137 rtt: Duration, -1138 /// Biased RTT for path selection. -1139 /// -1140 /// This is an i128 so we can subtract an advantage for e.g. IPv6 without underflowing. -1141 biased_rtt: i128, -1142} -1143 -1144impl PathSelectionData { -1145 /// Key for sorting paths. Lower is better. -1146 /// -1147 /// First part is the status, 0 for Available, 1 for Backup. -1148 /// Second part is the biased RTT. -1149 fn sort_key(&self) -> (u8, i128) { -1150 (self.status as u8, self.biased_rtt) -1151 } -1152} -1153 -1154/// Returns `Some` if a new path should be selected, `None` if the `current_path` should -1155/// continued to be used. -1156fn select_best_path( -1157 all_paths: FxHashMap<transports::Addr, PathSelectionData>, -1158 current_path: &Option<transports::Addr>, -1159) -> Option<(transports::Addr, Duration)> { -1160 // Determine the best new path according to sort_key. -1161 // If there is no path, return None. -1162 let (best_addr, best_data) = all_paths.iter().min_by_key(|(_, psd)| psd.sort_key())?; -1163 // If there is no current path, always switch to the best path. -1164 let Some(addr) = current_path else { -1165 return Some((best_addr.clone(), best_data.rtt)); -1166 }; -1167 // Get current data. If we don't have data for the current path, switch to the best path. -1168 let Some(current_data) = all_paths.get(addr) else { -1169 return Some((best_addr.clone(), best_data.rtt)); -1170 }; -1171 if current_data.status != best_data.status { -1172 // Always switch if the status is different (better). -1173 Some((best_addr.clone(), best_data.rtt)) -1174 } else if best_data.rtt + RTT_SWITCHING_MIN_IP <= current_data.rtt { -1175 // For the same status, only switch if the RTT is significantly better. -1176 Some((best_addr.clone(), best_data.rtt)) -1177 } else { -1178 None -1179 } -1180} -1181 -1182fn send_datagram<'a>( -1183 sender: &'a mut TransportsSender, -1184 dst: transports::Addr, -1185 owned_transmit: OwnedTransmit, -1186) -> impl Future<Output = n0_error::Result<()>> + 'a { -1187 std::future::poll_fn(move |cx| { -1188 let transmit = transports::Transmit { -1189 ecn: owned_transmit.ecn, -1190 contents: owned_transmit.contents.as_ref(), -1191 segment_size: owned_transmit.segment_size, -1192 }; -1193 -1194 Pin::new(&mut *sender) -1195 .poll_send(cx, &dst, None, &transmit) -1196 .map(|res| res.with_context(|_| format!("failed to send datagram to {dst:?}"))) -1197 }) -1198} -1199 -1200/// Messages to send to the [`RemoteStateActor`]. -1201#[derive(derive_more::Debug)] -1202pub(crate) enum RemoteStateMessage { -1203 /// Sends a datagram to all known paths. -1204 /// -1205 /// Used to send QUIC Initial packets. If there is no working direct path this will -1206 /// trigger holepunching. -1207 /// -1208 /// This is not acceptable to use on the normal send path, as it is an async send -1209 /// operation with a bunch more copying. So it should only be used for sending QUIC -1210 /// Initial packets. -1211 #[debug("SendDatagram(..)")] -1212 SendDatagram(Box<TransportsSender>, OwnedTransmit), -1213 /// Adds an active connection to this remote endpoint. -1214 /// -1215 /// The connection will now be managed by this actor. Holepunching will happen when -1216 /// needed, any new paths discovered via holepunching will be added. And closed paths -1217 /// will be removed etc. -1218 #[debug("AddConnection(..)")] -1219 AddConnection(WeakConnectionHandle, oneshot::Sender<PathWatchable>), -1220 /// Asks if there is any possible path that could be used. -1221 /// -1222 /// This adds the provided transport addresses to the list of potential paths for this remote -1223 /// and starts Address Lookup if needed. -1224 /// -1225 /// Returns `Ok` immediately if the provided address list is non-empy or we have are other known paths. -1226 /// Otherwise returns `Ok` once Address Lookup produces a result, or the Address Lookup error if Address Lookup fails -1227 /// or produces no results, -1228 #[debug("ResolveRemote(..)")] -1229 ResolveRemote( -1230 BTreeSet<TransportAddr>, -1231 oneshot::Sender<Result<(), AddressLookupError>>, -1232 ), -1233 /// Returns information about the remote. -1234 /// -1235 /// This currently only includes a list of all known transport addresses for the remote. -1236 RemoteInfo(oneshot::Sender<RemoteInfo>), -1237 /// The network status has changed in some way -1238 NetworkChange { is_major: bool }, -1239} -1240 -1241/// Information about a holepunch attempt. -1242/// -1243/// Addresses are always stored in canonical form. -1244#[derive(Debug)] -1245struct HolepunchAttempt { -1246 when: Instant, -1247 /// The set of local addresses which could take part in holepunching. -1248 /// -1249 /// This does not mean every address here participated in the holepunching. E.g. we -1250 /// could have tried only a sub-set of the addresses because a previous attempt already -1251 /// covered part of the range. -1252 /// -1253 /// We do not store this as a [`DirectAddr`] because this is checked for equality and we -1254 /// do not want to compare the sources of these addresses. -1255 local_candidates: BTreeSet<SocketAddr>, -1256 /// The set of remote addresses which could take part in holepunching. -1257 /// -1258 /// Like [`Self::local_candidates`] we may not have used them. -1259 remote_candidates: BTreeSet<SocketAddr>, -1260} -1261 -1262/// Newtype to track Connections. -1263/// -1264/// The wrapped value is the [`quinn::Connection::stable_id`] value, and is thus only valid -1265/// for active connections. -1266#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] -1267struct ConnId(usize); -1268 -1269/// State about one connection. -1270#[derive(Debug)] -1271struct ConnectionState { -1272 /// Weak handle to the connection. -1273 handle: WeakConnectionHandle, -1274 /// The information we publish to users about the paths used in this connection. -1275 path_watchable: PathWatchable, -1276 /// The open paths that exist on this connection. -1277 paths: FxHashMap<PathId, transports::Addr>, -1278 /// Reverse map of [`Self::paths]. -1279 paths_by_addr: FxHashMap<transports::Addr, PathId>, -1280 /// Whether this connection has ever had a direct path. -1281 /// -1282 /// Used for recording metrics. -1283 has_been_direct: bool, -1284} -1285 -1286impl Drop for ConnectionState { -1287 fn drop(&mut self) { -1288 self.path_watchable.close(); -1289 } -1290} -1291 -1292impl ConnectionState { -1293 /// Tracks an open path for the connection. -1294 fn add_open_path( -1295 &mut self, -1296 remote: transports::Addr, -1297 path_id: PathId, -1298 metrics: &Arc<SocketMetrics>, -1299 ) { -1300 match remote { -1301 transports::Addr::Ip(_) => metrics.paths_direct.inc(), -1302 transports::Addr::Relay(_, _) => metrics.paths_relay.inc(), -1303 }; -1304 if !self.has_been_direct && remote.is_ip() { -1305 self.has_been_direct = true; -1306 metrics.num_conns_direct.inc(); -1307 } -1308 -1309 self.paths.insert(path_id, remote.clone()); -1310 self.paths_by_addr.insert(remote.clone(), path_id); -1311 if let Some(conn) = self.handle.upgrade() { -1312 self.path_watchable.insert(&conn, path_id, remote.into()); -1313 } -1314 } -1315 -1316 /// Removes a path from this connection. -1317 fn remove_path(&mut self, path_id: &PathId) -> Option<transports::Addr> { -1318 let addr = self.paths.remove(path_id); -1319 if let Some(ref addr) = addr { -1320 self.paths_by_addr.remove(addr); -1321 } -1322 self.path_watchable.set_abandoned(*path_id); -1323 addr -1324 } -1325} +1121 }) +1122 .min(); +1123 +1124 if let Some(min_ip_rtt) = min_ip_rtt { +1125 let is_latency_goodenough = min_ip_rtt <= GOOD_ENOUGH_LATENCY; +1126 is_conn_goodenough = is_latency_goodenough; +1127 } else { +1128 // No IP transport found +1129 is_conn_goodenough = false; +1130 } +1131 } +1132 is_goodenough &= is_conn_goodenough; +1133 } +1134 +1135 if !is_goodenough { +1136 debug!("connections are not good enough, triggering holepunching"); +1137 self.trigger_holepunching(); +1138 } +1139 } +1140} +1141 +1142/// Data used during path selection. +1143#[derive(Debug)] +1144struct PathSelectionData { +1145 /// Status of the path if it would be selected. +1146 status: PathStatus, +1147 /// Measured RTT for path selection. +1148 rtt: Duration, +1149 /// Biased RTT for path selection. +1150 /// +1151 /// This is an i128 so we can subtract an advantage for e.g. IPv6 without underflowing. +1152 biased_rtt: i128, +1153} +1154 +1155impl PathSelectionData { +1156 /// Key for sorting paths. Lower is better. +1157 /// +1158 /// First part is the status, 0 for Available, 1 for Backup. +1159 /// Second part is the biased RTT. +1160 fn sort_key(&self) -> (u8, i128) { +1161 (self.status as u8, self.biased_rtt) +1162 } +1163} +1164 +1165/// Returns `Some` if a new path should be selected, `None` if the `current_path` should +1166/// continued to be used. +1167fn select_best_path( +1168 all_paths: FxHashMap<transports::Addr, PathSelectionData>, +1169 current_path: &Option<transports::Addr>, +1170) -> Option<(transports::Addr, Duration)> { +1171 // Determine the best new path according to sort_key. +1172 // If there is no path, return None. +1173 let (best_addr, best_data) = all_paths.iter().min_by_key(|(_, psd)| psd.sort_key())?; +1174 // If there is no current path, always switch to the best path. +1175 let Some(addr) = current_path else { +1176 return Some((best_addr.clone(), best_data.rtt)); +1177 }; +1178 // Get current data. If we don't have data for the current path, switch to the best path. +1179 let Some(current_data) = all_paths.get(addr) else { +1180 return Some((best_addr.clone(), best_data.rtt)); +1181 }; +1182 if current_data.status != best_data.status { +1183 // Always switch if the status is different (better). +1184 Some((best_addr.clone(), best_data.rtt)) +1185 } else if best_data.rtt + RTT_SWITCHING_MIN_IP <= current_data.rtt { +1186 // For the same status, only switch if the RTT is significantly better. +1187 Some((best_addr.clone(), best_data.rtt)) +1188 } else { +1189 None +1190 } +1191} +1192 +1193fn send_datagram<'a>( +1194 sender: &'a mut TransportsSender, +1195 dst: transports::Addr, +1196 owned_transmit: OwnedTransmit, +1197) -> impl Future<Output = n0_error::Result<()>> + 'a { +1198 std::future::poll_fn(move |cx| { +1199 let transmit = transports::Transmit { +1200 ecn: owned_transmit.ecn, +1201 contents: owned_transmit.contents.as_ref(), +1202 segment_size: owned_transmit.segment_size, +1203 }; +1204 +1205 Pin::new(&mut *sender) +1206 .poll_send(cx, &dst, None, &transmit) +1207 .map(|res| res.with_context(|_| format!("failed to send datagram to {dst:?}"))) +1208 }) +1209} +1210 +1211/// Messages to send to the [`RemoteStateActor`]. +1212#[derive(derive_more::Debug)] +1213pub(crate) enum RemoteStateMessage { +1214 /// Sends a datagram to all known paths. +1215 /// +1216 /// Used to send QUIC Initial packets. If there is no working direct path this will +1217 /// trigger holepunching. +1218 /// +1219 /// This is not acceptable to use on the normal send path, as it is an async send +1220 /// operation with a bunch more copying. So it should only be used for sending QUIC +1221 /// Initial packets. +1222 #[debug("SendDatagram(..)")] +1223 SendDatagram(Box<TransportsSender>, OwnedTransmit), +1224 /// Adds an active connection to this remote endpoint. +1225 /// +1226 /// The connection will now be managed by this actor. Holepunching will happen when +1227 /// needed, any new paths discovered via holepunching will be added. And closed paths +1228 /// will be removed etc. +1229 #[debug("AddConnection(..)")] +1230 AddConnection(WeakConnectionHandle, oneshot::Sender<PathWatchable>), +1231 /// Asks if there is any possible path that could be used. +1232 /// +1233 /// This adds the provided transport addresses to the list of potential paths for this remote +1234 /// and starts Address Lookup if needed. +1235 /// +1236 /// Returns `Ok` immediately if the provided address list is non-empy or we have are other known paths. +1237 /// Otherwise returns `Ok` once Address Lookup produces a result, or the Address Lookup error if Address Lookup fails +1238 /// or produces no results, +1239 #[debug("ResolveRemote(..)")] +1240 ResolveRemote( +1241 BTreeSet<TransportAddr>, +1242 oneshot::Sender<Result<(), AddressLookupError>>, +1243 ), +1244 /// Returns information about the remote. +1245 /// +1246 /// This currently only includes a list of all known transport addresses for the remote. +1247 RemoteInfo(oneshot::Sender<RemoteInfo>), +1248 /// The network status has changed in some way +1249 NetworkChange { is_major: bool }, +1250} +1251 +1252/// Information about a holepunch attempt. +1253/// +1254/// Addresses are always stored in canonical form. +1255#[derive(Debug)] +1256struct HolepunchAttempt { +1257 when: Instant, +1258 /// The set of local addresses which could take part in holepunching. +1259 /// +1260 /// This does not mean every address here participated in the holepunching. E.g. we +1261 /// could have tried only a sub-set of the addresses because a previous attempt already +1262 /// covered part of the range. +1263 /// +1264 /// We do not store this as a [`DirectAddr`] because this is checked for equality and we +1265 /// do not want to compare the sources of these addresses. +1266 local_candidates: BTreeSet<SocketAddr>, +1267 /// The set of remote addresses which could take part in holepunching. +1268 /// +1269 /// Like [`Self::local_candidates`] we may not have used them. +1270 remote_candidates: BTreeSet<SocketAddr>, +1271} +1272 +1273/// Newtype to track Connections. +1274/// +1275/// The wrapped value is the [`quinn::Connection::stable_id`] value, and is thus only valid +1276/// for active connections. +1277#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] +1278struct ConnId(usize); +1279 +1280/// State about one connection. +1281#[derive(Debug)] +1282struct ConnectionState { +1283 /// Weak handle to the connection. +1284 handle: WeakConnectionHandle, +1285 /// The information we publish to users about the paths used in this connection. +1286 path_watchable: PathWatchable, +1287 /// The open paths that exist on this connection. +1288 paths: FxHashMap<PathId, transports::Addr>, +1289 /// Reverse map of [`Self::paths]. +1290 paths_by_addr: FxHashMap<transports::Addr, PathId>, +1291 /// Whether this connection has ever had a direct path. +1292 /// +1293 /// Used for recording metrics. +1294 has_been_direct: bool, +1295} +1296 +1297impl Drop for ConnectionState { +1298 fn drop(&mut self) { +1299 self.path_watchable.close(); +1300 } +1301} +1302 +1303impl ConnectionState { +1304 /// Tracks an open path for the connection. +1305 fn add_open_path( +1306 &mut self, +1307 remote: transports::Addr, +1308 path_id: PathId, +1309 metrics: &Arc<SocketMetrics>, +1310 ) { +1311 match remote { +1312 transports::Addr::Ip(_) => metrics.paths_direct.inc(), +1313 transports::Addr::Relay(_, _) => metrics.paths_relay.inc(), +1314 }; +1315 if !self.has_been_direct && remote.is_ip() { +1316 self.has_been_direct = true; +1317 metrics.num_conns_direct.inc(); +1318 } +1319 +1320 self.paths.insert(path_id, remote.clone()); +1321 self.paths_by_addr.insert(remote.clone(), path_id); +1322 if let Some(conn) = self.handle.upgrade() { +1323 self.path_watchable.insert(&conn, path_id, remote.into()); +1324 } +1325 } 1326 -1327/// Poll a future once, like n0_future::future::poll_once but sync. -1328fn now_or_never<T, F: Future<Output = T>>(fut: F) -> Option<T> { -1329 let fut = std::pin::pin!(fut); -1330 match fut.poll(&mut std::task::Context::from_waker(std::task::Waker::noop())) { -1331 Poll::Ready(res) => Some(res), -1332 Poll::Pending => None, -1333 } -1334} -1335 -1336/// Future that resolves to the `conn_id` once a connection is closed. -1337/// -1338/// This uses [`quinn::Connection::on_closed`], which does not keep the connection alive -1339/// while awaiting the future. -1340struct OnClosed { -1341 conn_id: ConnId, -1342 inner: quinn::OnClosed, -1343} -1344 -1345impl OnClosed { -1346 fn new(conn: &quinn::Connection) -> Self { -1347 Self { -1348 conn_id: ConnId(conn.stable_id()), -1349 inner: conn.on_closed(), -1350 } -1351 } -1352} -1353 -1354impl Future for OnClosed { -1355 type Output = ConnId; -1356 -1357 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { -1358 let (_close_reason, _stats) = std::task::ready!(Pin::new(&mut self.inner).poll(cx)); -1359 Poll::Ready(self.conn_id) -1360 } -1361} -1362 -1363/// Converts an iterator of [`TransportAddr'] into an iterator of [`transports::Addr`]. -1364fn to_transports_addr( -1365 endpoint_id: EndpointId, -1366 addrs: impl IntoIterator<Item = TransportAddr>, -1367) -> impl Iterator<Item = transports::Addr> { -1368 addrs.into_iter().filter_map(move |addr| match addr { -1369 TransportAddr::Relay(relay_url) => Some(transports::Addr::from((relay_url, endpoint_id))), -1370 TransportAddr::Ip(sockaddr) => Some(transports::Addr::from(sockaddr)), -1371 _ => { -1372 warn!(?addr, "Unsupported TransportAddr"); -1373 None -1374 } -1375 }) -1376} -1377 -1378#[cfg(test)] -1379mod tests { -1380 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; -1381 -1382 use super::*; -1383 -1384 fn v4(port: u16) -> transports::Addr { -1385 transports::Addr::Ip(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port))) -1386 } -1387 -1388 fn v6(port: u16) -> transports::Addr { -1389 transports::Addr::Ip(SocketAddr::V6(SocketAddrV6::new( -1390 Ipv6Addr::LOCALHOST, -1391 port, -1392 0, -1393 0, -1394 ))) -1395 } -1396 -1397 fn relay(port: u16) -> transports::Addr { -1398 let url = format!("https://relay{port}.iroh.computer") -1399 .parse::<RelayUrl>() -1400 .unwrap(); -1401 transports::Addr::Relay(url, EndpointId::from_bytes(&[0u8; 32]).unwrap()) -1402 } -1403 -1404 fn psd(status: PathStatus, rtt_ms: u64) -> PathSelectionData { -1405 let rtt = Duration::from_millis(rtt_ms); -1406 let biased_rtt = rtt.as_nanos() as i128; -1407 PathSelectionData { -1408 status, -1409 rtt, -1410 biased_rtt, -1411 } -1412 } -1413 -1414 fn psd_v6(status: PathStatus, rtt_ms: u64) -> PathSelectionData { -1415 let rtt = Duration::from_millis(rtt_ms); -1416 // IPv6 gets a bias advantage -1417 let biased_rtt = rtt.as_nanos() as i128 - IPV6_RTT_ADVANTAGE.as_nanos() as i128; +1327 /// Removes a path from this connection. +1328 fn remove_path(&mut self, path_id: &PathId) -> Option<transports::Addr> { +1329 let addr = self.paths.remove(path_id); +1330 if let Some(ref addr) = addr { +1331 self.paths_by_addr.remove(addr); +1332 } +1333 self.path_watchable.set_abandoned(*path_id); +1334 addr +1335 } +1336} +1337 +1338/// Poll a future once, like n0_future::future::poll_once but sync. +1339fn now_or_never<T, F: Future<Output = T>>(fut: F) -> Option<T> { +1340 let fut = std::pin::pin!(fut); +1341 match fut.poll(&mut std::task::Context::from_waker(std::task::Waker::noop())) { +1342 Poll::Ready(res) => Some(res), +1343 Poll::Pending => None, +1344 } +1345} +1346 +1347/// Future that resolves to the `conn_id` once a connection is closed. +1348/// +1349/// This uses [`quinn::Connection::on_closed`], which does not keep the connection alive +1350/// while awaiting the future. +1351struct OnClosed { +1352 conn_id: ConnId, +1353 inner: quinn::OnClosed, +1354} +1355 +1356impl OnClosed { +1357 fn new(conn: &quinn::Connection) -> Self { +1358 Self { +1359 conn_id: ConnId(conn.stable_id()), +1360 inner: conn.on_closed(), +1361 } +1362 } +1363} +1364 +1365impl Future for OnClosed { +1366 type Output = ConnId; +1367 +1368 fn poll(mut self: Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> { +1369 let (_close_reason, _stats) = std::task::ready!(Pin::new(&mut self.inner).poll(cx)); +1370 Poll::Ready(self.conn_id) +1371 } +1372} +1373 +1374/// Converts an iterator of [`TransportAddr'] into an iterator of [`transports::Addr`]. +1375fn to_transports_addr( +1376 endpoint_id: EndpointId, +1377 addrs: impl IntoIterator<Item = TransportAddr>, +1378) -> impl Iterator<Item = transports::Addr> { +1379 addrs.into_iter().filter_map(move |addr| match addr { +1380 TransportAddr::Relay(relay_url) => Some(transports::Addr::from((relay_url, endpoint_id))), +1381 TransportAddr::Ip(sockaddr) => Some(transports::Addr::from(sockaddr)), +1382 _ => { +1383 warn!(?addr, "Unsupported TransportAddr"); +1384 None +1385 } +1386 }) +1387} +1388 +1389#[cfg(test)] +1390mod tests { +1391 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; +1392 +1393 use super::*; +1394 +1395 fn v4(port: u16) -> transports::Addr { +1396 transports::Addr::Ip(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port))) +1397 } +1398 +1399 fn v6(port: u16) -> transports::Addr { +1400 transports::Addr::Ip(SocketAddr::V6(SocketAddrV6::new( +1401 Ipv6Addr::LOCALHOST, +1402 port, +1403 0, +1404 0, +1405 ))) +1406 } +1407 +1408 fn relay(port: u16) -> transports::Addr { +1409 let url = format!("https://relay{port}.iroh.computer") +1410 .parse::<RelayUrl>() +1411 .unwrap(); +1412 transports::Addr::Relay(url, EndpointId::from_bytes(&[0u8; 32]).unwrap()) +1413 } +1414 +1415 fn psd(status: PathStatus, rtt_ms: u64) -> PathSelectionData { +1416 let rtt = Duration::from_millis(rtt_ms); +1417 let biased_rtt = rtt.as_nanos() as i128; 1418 PathSelectionData { 1419 status, 1420 rtt, @@ -1422,123 +1422,134 @@ 1422 } 1423 } 1424 -1425 #[test] -1426 fn test_ipv6_wins_over_ipv4_within_bias() { -1427 // IPv6 should win over IPv4 when RTTs are the same -1428 let mut paths = FxHashMap::default(); -1429 paths.insert(v4(1), psd(PathStatus::Available, 10)); -1430 paths.insert(v6(1), psd_v6(PathStatus::Available, 10)); -1431 -1432 let result = select_best_path(paths, &None); -1433 assert!(result.is_some()); -1434 let (addr, _) = result.unwrap(); -1435 assert!(matches!(addr, transports::Addr::Ip(SocketAddr::V6(_)))); -1436 -1437 // IPv6 should still win when it's slightly slower (within bias range) -1438 let mut paths = FxHashMap::default(); -1439 paths.insert(v4(1), psd(PathStatus::Available, 10)); -1440 paths.insert(v6(1), psd_v6(PathStatus::Available, 12)); // 2ms slower, but 3ms bias -1441 -1442 let result = select_best_path(paths, &None); -1443 assert!(result.is_some()); -1444 let (addr, _) = result.unwrap(); -1445 assert!(matches!(addr, transports::Addr::Ip(SocketAddr::V6(_)))); -1446 -1447 // IPv4 should win when IPv6 is significantly slower -1448 let mut paths = FxHashMap::default(); -1449 paths.insert(v4(1), psd(PathStatus::Available, 10)); -1450 paths.insert(v6(1), psd_v6(PathStatus::Available, 20)); // 10ms slower, exceeds 3ms bias -1451 -1452 let result = select_best_path(paths, &None); -1453 assert!(result.is_some()); -1454 let (addr, _) = result.unwrap(); -1455 assert!(matches!(addr, transports::Addr::Ip(SocketAddr::V4(_)))); -1456 } +1425 fn psd_v6(status: PathStatus, rtt_ms: u64) -> PathSelectionData { +1426 let rtt = Duration::from_millis(rtt_ms); +1427 // IPv6 gets a bias advantage +1428 let biased_rtt = rtt.as_nanos() as i128 - IPV6_RTT_ADVANTAGE.as_nanos() as i128; +1429 PathSelectionData { +1430 status, +1431 rtt, +1432 biased_rtt, +1433 } +1434 } +1435 +1436 #[test] +1437 fn test_ipv6_wins_over_ipv4_within_bias() { +1438 // IPv6 should win over IPv4 when RTTs are the same +1439 let mut paths = FxHashMap::default(); +1440 paths.insert(v4(1), psd(PathStatus::Available, 10)); +1441 paths.insert(v6(1), psd_v6(PathStatus::Available, 10)); +1442 +1443 let result = select_best_path(paths, &None); +1444 assert!(result.is_some()); +1445 let (addr, _) = result.unwrap(); +1446 assert!(matches!(addr, transports::Addr::Ip(SocketAddr::V6(_)))); +1447 +1448 // IPv6 should still win when it's slightly slower (within bias range) +1449 let mut paths = FxHashMap::default(); +1450 paths.insert(v4(1), psd(PathStatus::Available, 10)); +1451 paths.insert(v6(1), psd_v6(PathStatus::Available, 12)); // 2ms slower, but 3ms bias +1452 +1453 let result = select_best_path(paths, &None); +1454 assert!(result.is_some()); +1455 let (addr, _) = result.unwrap(); +1456 assert!(matches!(addr, transports::Addr::Ip(SocketAddr::V6(_)))); 1457 -1458 #[test] -1459 fn test_available_wins_over_backup_regardless_of_rtt() { -1460 // Available path should win even with much higher RTT -1461 let mut paths = FxHashMap::default(); -1462 paths.insert(v4(1), psd(PathStatus::Available, 100)); // High RTT but Available -1463 paths.insert(relay(1), psd(PathStatus::Backup, 10)); // Low RTT but Backup -1464 -1465 let result = select_best_path(paths, &None); -1466 assert!(result.is_some()); -1467 let (addr, _) = result.unwrap(); -1468 assert!(addr.is_ip()); -1469 -1470 // Even more extreme: 1000ms Available vs 1ms Backup -1471 let mut paths = FxHashMap::default(); -1472 paths.insert(v4(1), psd(PathStatus::Available, 1000)); -1473 paths.insert(relay(1), psd(PathStatus::Backup, 1)); -1474 -1475 let result = select_best_path(paths, &None); -1476 assert!(result.is_some()); -1477 let (addr, _) = result.unwrap(); -1478 assert!(addr.is_ip()); -1479 } +1458 // IPv4 should win when IPv6 is significantly slower +1459 let mut paths = FxHashMap::default(); +1460 paths.insert(v4(1), psd(PathStatus::Available, 10)); +1461 paths.insert(v6(1), psd_v6(PathStatus::Available, 20)); // 10ms slower, exceeds 3ms bias +1462 +1463 let result = select_best_path(paths, &None); +1464 assert!(result.is_some()); +1465 let (addr, _) = result.unwrap(); +1466 assert!(matches!(addr, transports::Addr::Ip(SocketAddr::V4(_)))); +1467 } +1468 +1469 #[test] +1470 fn test_available_wins_over_backup_regardless_of_rtt() { +1471 // Available path should win even with much higher RTT +1472 let mut paths = FxHashMap::default(); +1473 paths.insert(v4(1), psd(PathStatus::Available, 100)); // High RTT but Available +1474 paths.insert(relay(1), psd(PathStatus::Backup, 10)); // Low RTT but Backup +1475 +1476 let result = select_best_path(paths, &None); +1477 assert!(result.is_some()); +1478 let (addr, _) = result.unwrap(); +1479 assert!(addr.is_ip()); 1480 -1481 #[test] -1482 fn test_same_category_only_switches_with_significant_rtt_diff() { -1483 let current = v4(1); -1484 -1485 // Should NOT switch: new path is only slightly better (2ms < 5ms threshold) -1486 let mut paths = FxHashMap::default(); -1487 paths.insert(v4(1), psd(PathStatus::Available, 20)); -1488 paths.insert(v4(2), psd(PathStatus::Available, 18)); -1489 -1490 let result = select_best_path(paths, &Some(current.clone())); -1491 assert!(result.is_none()); // Should keep current -1492 -1493 // Should NOT switch: new path is just under threshold (4ms < 5ms) -1494 let mut paths = FxHashMap::default(); -1495 paths.insert(v4(1), psd(PathStatus::Available, 20)); -1496 paths.insert(v4(2), psd(PathStatus::Available, 16)); -1497 -1498 let result = select_best_path(paths, &Some(current.clone())); -1499 assert!(result.is_none()); // Should keep current +1481 // Even more extreme: 1000ms Available vs 1ms Backup +1482 let mut paths = FxHashMap::default(); +1483 paths.insert(v4(1), psd(PathStatus::Available, 1000)); +1484 paths.insert(relay(1), psd(PathStatus::Backup, 1)); +1485 +1486 let result = select_best_path(paths, &None); +1487 assert!(result.is_some()); +1488 let (addr, _) = result.unwrap(); +1489 assert!(addr.is_ip()); +1490 } +1491 +1492 #[test] +1493 fn test_same_category_only_switches_with_significant_rtt_diff() { +1494 let current = v4(1); +1495 +1496 // Should NOT switch: new path is only slightly better (2ms < 5ms threshold) +1497 let mut paths = FxHashMap::default(); +1498 paths.insert(v4(1), psd(PathStatus::Available, 20)); +1499 paths.insert(v4(2), psd(PathStatus::Available, 18)); 1500 -1501 // SHOULD switch: new path is exactly at threshold (5ms, condition is <=) -1502 let mut paths = FxHashMap::default(); -1503 paths.insert(v4(1), psd(PathStatus::Available, 20)); -1504 paths.insert(v4(2), psd(PathStatus::Available, 15)); -1505 -1506 let result = select_best_path(paths, &Some(current.clone())); -1507 assert!(result.is_some()); -1508 let (addr, _) = result.unwrap(); -1509 assert_eq!(addr, v4(2)); -1510 -1511 // SHOULD switch: new path is significantly better (6ms > 5ms threshold) -1512 let mut paths = FxHashMap::default(); -1513 paths.insert(v4(1), psd(PathStatus::Available, 20)); -1514 paths.insert(v4(2), psd(PathStatus::Available, 14)); -1515 -1516 let result = select_best_path(paths, &Some(current.clone())); -1517 assert!(result.is_some()); -1518 let (addr, _) = result.unwrap(); -1519 assert_eq!(addr, v4(2)); -1520 } +1501 let result = select_best_path(paths, &Some(current.clone())); +1502 assert!(result.is_none()); // Should keep current +1503 +1504 // Should NOT switch: new path is just under threshold (4ms < 5ms) +1505 let mut paths = FxHashMap::default(); +1506 paths.insert(v4(1), psd(PathStatus::Available, 20)); +1507 paths.insert(v4(2), psd(PathStatus::Available, 16)); +1508 +1509 let result = select_best_path(paths, &Some(current.clone())); +1510 assert!(result.is_none()); // Should keep current +1511 +1512 // SHOULD switch: new path is exactly at threshold (5ms, condition is <=) +1513 let mut paths = FxHashMap::default(); +1514 paths.insert(v4(1), psd(PathStatus::Available, 20)); +1515 paths.insert(v4(2), psd(PathStatus::Available, 15)); +1516 +1517 let result = select_best_path(paths, &Some(current.clone())); +1518 assert!(result.is_some()); +1519 let (addr, _) = result.unwrap(); +1520 assert_eq!(addr, v4(2)); 1521 -1522 #[test] -1523 fn test_no_current_path_selects_best() { -1524 let mut paths = FxHashMap::default(); -1525 paths.insert(v4(1), psd(PathStatus::Available, 20)); -1526 paths.insert(v4(2), psd(PathStatus::Available, 10)); -1527 -1528 let result = select_best_path(paths, &None); -1529 assert!(result.is_some()); -1530 let (addr, _) = result.unwrap(); -1531 assert_eq!(addr, v4(2)); // Lower RTT wins -1532 } -1533 -1534 #[test] -1535 fn test_empty_paths_returns_none() { -1536 let paths: FxHashMap<transports::Addr, PathSelectionData> = FxHashMap::default(); -1537 let result = select_best_path(paths, &None); -1538 assert!(result.is_none()); -1539 -1540 let paths: FxHashMap<transports::Addr, PathSelectionData> = FxHashMap::default(); -1541 let result = select_best_path(paths, &Some(v4(1))); -1542 assert!(result.is_none()); -1543 } -1544} \ No newline at end of file +1522 // SHOULD switch: new path is significantly better (6ms > 5ms threshold) +1523 let mut paths = FxHashMap::default(); +1524 paths.insert(v4(1), psd(PathStatus::Available, 20)); +1525 paths.insert(v4(2), psd(PathStatus::Available, 14)); +1526 +1527 let result = select_best_path(paths, &Some(current.clone())); +1528 assert!(result.is_some()); +1529 let (addr, _) = result.unwrap(); +1530 assert_eq!(addr, v4(2)); +1531 } +1532 +1533 #[test] +1534 fn test_no_current_path_selects_best() { +1535 let mut paths = FxHashMap::default(); +1536 paths.insert(v4(1), psd(PathStatus::Available, 20)); +1537 paths.insert(v4(2), psd(PathStatus::Available, 10)); +1538 +1539 let result = select_best_path(paths, &None); +1540 assert!(result.is_some()); +1541 let (addr, _) = result.unwrap(); +1542 assert_eq!(addr, v4(2)); // Lower RTT wins +1543 } +1544 +1545 #[test] +1546 fn test_empty_paths_returns_none() { +1547 let paths: FxHashMap<transports::Addr, PathSelectionData> = FxHashMap::default(); +1548 let result = select_best_path(paths, &None); +1549 assert!(result.is_none()); +1550 +1551 let paths: FxHashMap<transports::Addr, PathSelectionData> = FxHashMap::default(); +1552 let result = select_best_path(paths, &Some(v4(1))); +1553 assert!(result.is_none()); +1554 } +1555} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/socket/remote_map/remote_state/path_state.rs.html b/pr/3958/docs/src/iroh/socket/remote_map/remote_state/path_state.rs.html index f3ae6f49c2..361afe2540 100644 --- a/pr/3958/docs/src/iroh/socket/remote_map/remote_state/path_state.rs.html +++ b/pr/3958/docs/src/iroh/socket/remote_map/remote_state/path_state.rs.html @@ -144,475 +144,473 @@ 144 self.prune_paths(); 145 } 146 -147 /// Triggers `tx` immediately if there are any known paths, or store in the list of pending requests. +147 /// Sends back on `tx` once a possible path to the remote is known. 148 /// -149 /// The pending requests will be resolved once a path becomes known, or once Address Lookup -150 /// concludes without results, whichever comes first. -151 /// -152 /// Sends `Ok(())` over `tx` if there are any known paths, and an [`AddressLookupError`] if there are -153 /// no known paths by the time a Address Lookup run finished with an error or without results. -154 pub(super) fn resolve_remote(&mut self, tx: oneshot::Sender<Result<(), AddressLookupError>>) { -155 if !self.paths.is_empty() { -156 tx.send(Ok(())).ok(); -157 } else { -158 self.pending_resolve_requests.push_back(tx); -159 } -160 } -161 -162 /// Notifies that a Address Lookup run has finished. -163 /// -164 /// This will emit pending resolve requests. -165 pub(super) fn address_lookup_finished(&mut self, result: Result<(), AddressLookupError>) { -166 self.emit_pending_resolve_requests(result.err()); -167 } -168 -169 /// Returns an iterator over the addresses of all paths. -170 pub(super) fn addrs(&self) -> impl Iterator<Item = &transports::Addr> { -171 self.paths.keys() -172 } -173 -174 /// Returns whether this stores any addresses. -175 pub(super) fn is_empty(&self) -> bool { -176 self.paths.is_empty() -177 } -178 -179 /// Replies to all pending resolve requests. -180 /// -181 /// This is a no-op if no requests are queued. Replies `Ok` if we have any known paths, -182 /// otherwise with the provided `address_lookup_error` or with [`AddressLookupError::NoResults`]. -183 fn emit_pending_resolve_requests(&mut self, address_lookup_error: Option<AddressLookupError>) { -184 if self.pending_resolve_requests.is_empty() { -185 return; -186 } -187 let result = match (self.paths.is_empty(), address_lookup_error) { -188 (false, _) => Ok(()), -189 (true, Some(err)) => Err(err), -190 (true, None) => Err(e!(AddressLookupError::NoResults)), -191 }; -192 for tx in self.pending_resolve_requests.drain(..) { -193 tx.send(result.clone()).ok(); -194 } -195 } -196 -197 /// Prune paths. +149 /// If there already is a known path, `Ok(())` is returned immediately. Otherwise an +150 /// address lookup is performed and the result is sent back once that +151 /// completes. [`AddressLookupError`] is sent if there are no known paths. +152 pub(super) fn resolve_remote(&mut self, tx: oneshot::Sender<Result<(), AddressLookupError>>) { +153 if !self.paths.is_empty() { +154 tx.send(Ok(())).ok(); +155 } else { +156 self.pending_resolve_requests.push_back(tx); +157 } +158 } +159 +160 /// Notifies that a Address Lookup run has finished. +161 /// +162 /// This will emit pending resolve requests. +163 pub(super) fn address_lookup_finished(&mut self, result: Result<(), AddressLookupError>) { +164 self.emit_pending_resolve_requests(result.err()); +165 } +166 +167 /// Returns an iterator over the addresses of all paths. +168 pub(super) fn addrs(&self) -> impl Iterator<Item = &transports::Addr> { +169 self.paths.keys() +170 } +171 +172 /// Returns whether this stores any addresses. +173 pub(super) fn is_empty(&self) -> bool { +174 self.paths.is_empty() +175 } +176 +177 /// Replies to all pending resolve requests. +178 /// +179 /// This is a no-op if no requests are queued. Replies `Ok` if we have any known paths, +180 /// otherwise with the provided `address_lookup_error` or with [`AddressLookupError::NoResults`]. +181 fn emit_pending_resolve_requests(&mut self, address_lookup_error: Option<AddressLookupError>) { +182 if self.pending_resolve_requests.is_empty() { +183 return; +184 } +185 let result = match (self.paths.is_empty(), address_lookup_error) { +186 (false, _) => Ok(()), +187 (true, Some(err)) => Err(err), +188 (true, None) => Err(e!(AddressLookupError::NoResults)), +189 }; +190 for tx in self.pending_resolve_requests.drain(..) { +191 tx.send(result.clone()).ok(); +192 } +193 } +194 +195 /// Prune paths. +196 /// +197 /// Should be invoked any time we insert a new path. 198 /// -199 /// Should be invoked any time we insert a new path. -200 /// -201 /// We currently only prune IP paths. For more information on the criteria -202 /// for when and which paths we prune, look at the [`prune_ip_paths`] function. -203 pub(super) fn prune_paths(&mut self) { -204 // right now we only prune IP paths -205 prune_ip_paths(&mut self.paths); -206 } -207} -208 -209/// The state of a single path to the remote endpoint. -210/// -211/// Each path is identified by the destination [`transports::Addr`] and they are stored in -212/// the [`RemotePathState`] map at [`RemoteStateActor::paths`]. -213/// -214/// [`RemoteStateActor::paths`]: super::RemoteStateActor::paths -215#[derive(Debug, Default)] -216pub(super) struct PathState { -217 /// How we learned about this path, and when. -218 /// -219 /// We keep track of only the latest [`Instant`] for each [`Source`], keeping the size -220 /// of the map of sources down to one entry per type of source. -221 pub(super) sources: HashMap<Source, Instant>, -222 /// The usability status of this path. -223 pub(super) status: PathStatus, -224} -225 -226/// Prunes the IP paths in the paths HashMap. +199 /// We currently only prune IP paths. For more information on the criteria +200 /// for when and which paths we prune, look at the [`prune_ip_paths`] function. +201 pub(super) fn prune_paths(&mut self) { +202 // right now we only prune IP paths +203 prune_ip_paths(&mut self.paths); +204 } +205} +206 +207/// The state of a single path to the remote endpoint. +208/// +209/// Each path is identified by the destination [`transports::Addr`] and they are stored in +210/// the [`RemotePathState`] map at [`RemoteStateActor::paths`]. +211/// +212/// [`RemoteStateActor::paths`]: super::RemoteStateActor::paths +213#[derive(Debug, Default)] +214pub(super) struct PathState { +215 /// How we learned about this path, and when. +216 /// +217 /// We keep track of only the latest [`Instant`] for each [`Source`], keeping the size +218 /// of the map of sources down to one entry per type of source. +219 pub(super) sources: HashMap<Source, Instant>, +220 /// The usability status of this path. +221 pub(super) status: PathStatus, +222} +223 +224/// Prunes the IP paths in the paths HashMap. +225/// +226/// Only prunes if the number of IP paths is above [`MAX_IP_PATHS`]. 227/// -228/// Only prunes if the number of IP paths is above [`MAX_IP_PATHS`]. +228/// Keeps paths that are open or of unknown status. 229/// -230/// Keeps paths that are open or of unknown status. +230/// Always prunes paths that have unsuccessfully holepunched. 231/// -232/// Always prunes paths that have unsuccessfully holepunched. -233/// -234/// Keeps [`MAX_INACTIVE_IP_PATHS`] of the most recently closed paths -235/// that are not currently being used but have successfully been -236/// holepunched previously. +232/// Keeps [`MAX_INACTIVE_IP_PATHS`] of the most recently closed paths +233/// that are not currently being used but have successfully been +234/// holepunched previously. +235/// +236/// This all ensures that: 237/// -238/// This all ensures that: -239/// -240/// - We do not have unbounded growth of paths. -241/// - If we have many paths for this remote, we prune the paths that cannot hole punch. -242/// - We do not prune holepunched paths that are currently not in use too quickly. For example, if a large number of untested paths are added at once, we will not immediately prune all of the unused, but valid, paths at once. -243fn prune_ip_paths(paths: &mut FxHashMap<transports::Addr, PathState>) { -244 // if the total number of paths is less than the max, bail early -245 if paths.len() < MAX_IP_PATHS { -246 return; -247 } +238/// - We do not have unbounded growth of paths. +239/// - If we have many paths for this remote, we prune the paths that cannot hole punch. +240/// - We do not prune holepunched paths that are currently not in use too quickly. For example, if a large number of untested paths are added at once, we will not immediately prune all of the unused, but valid, paths at once. +241fn prune_ip_paths(paths: &mut FxHashMap<transports::Addr, PathState>) { +242 // if the total number of paths is less than the max, bail early +243 if paths.len() < MAX_IP_PATHS { +244 return; +245 } +246 +247 let ip_paths: Vec<_> = paths.iter().filter(|(addr, _)| addr.is_ip()).collect(); 248 -249 let ip_paths: Vec<_> = paths.iter().filter(|(addr, _)| addr.is_ip()).collect(); -250 -251 // if the total number of ip paths is less than the max, bail early -252 if ip_paths.len() < MAX_IP_PATHS { -253 return; -254 } -255 -256 // paths that were opened at one point but have previously been closed -257 let mut inactive = Vec::with_capacity(ip_paths.len()); -258 // paths where we attempted hole punching but it not successful -259 let mut failed = Vec::with_capacity(ip_paths.len()); -260 -261 for (addr, state) in ip_paths { -262 match state.status { -263 PathStatus::Inactive(t) => { -264 // paths where holepunching succeeded at one point, but the path was closed. -265 inactive.push((addr.clone(), t)); -266 } -267 PathStatus::Unusable => { -268 // paths where holepunching has been attempted and failed. -269 failed.push(addr.clone()); -270 } -271 _ => { -272 // ignore paths that are open or the status is unknown -273 } -274 } -275 } -276 -277 // All paths are bad, don't prune all of them. -278 // -279 // This implies that `inactive` is empty. -280 if failed.len() == paths.len() { -281 // leave the max number of IP paths -282 failed.truncate(paths.len().saturating_sub(MAX_IP_PATHS)); -283 } -284 -285 // sort the potentially prunable from most recently closed to least recently closed -286 inactive.sort_by(|a, b| b.1.cmp(&a.1)); -287 -288 // Prune the "oldest" closed paths. -289 let old_inactive = inactive.split_off(inactive.len().saturating_sub(MAX_INACTIVE_IP_PATHS)); -290 -291 // collect all the paths that should be pruned -292 let must_prune: HashSet<_> = failed -293 .into_iter() -294 .chain(old_inactive.into_iter().map(|(addr, _)| addr)) -295 .collect(); -296 -297 paths.retain(|addr, _| !must_prune.contains(addr)); -298} -299 -300#[cfg(test)] -301mod tests { -302 use std::{ -303 net::{Ipv4Addr, SocketAddrV4}, -304 time::Duration, -305 }; -306 -307 use iroh_base::{RelayUrl, SecretKey}; -308 use rand::SeedableRng; +249 // if the total number of ip paths is less than the max, bail early +250 if ip_paths.len() < MAX_IP_PATHS { +251 return; +252 } +253 +254 // paths that were opened at one point but have previously been closed +255 let mut inactive = Vec::with_capacity(ip_paths.len()); +256 // paths where we attempted hole punching but it not successful +257 let mut failed = Vec::with_capacity(ip_paths.len()); +258 +259 for (addr, state) in ip_paths { +260 match state.status { +261 PathStatus::Inactive(t) => { +262 // paths where holepunching succeeded at one point, but the path was closed. +263 inactive.push((addr.clone(), t)); +264 } +265 PathStatus::Unusable => { +266 // paths where holepunching has been attempted and failed. +267 failed.push(addr.clone()); +268 } +269 _ => { +270 // ignore paths that are open or the status is unknown +271 } +272 } +273 } +274 +275 // All paths are bad, don't prune all of them. +276 // +277 // This implies that `inactive` is empty. +278 if failed.len() == paths.len() { +279 // leave the max number of IP paths +280 failed.truncate(paths.len().saturating_sub(MAX_IP_PATHS)); +281 } +282 +283 // sort the potentially prunable from most recently closed to least recently closed +284 inactive.sort_by(|a, b| b.1.cmp(&a.1)); +285 +286 // Prune the "oldest" closed paths. +287 let old_inactive = inactive.split_off(inactive.len().saturating_sub(MAX_INACTIVE_IP_PATHS)); +288 +289 // collect all the paths that should be pruned +290 let must_prune: HashSet<_> = failed +291 .into_iter() +292 .chain(old_inactive.into_iter().map(|(addr, _)| addr)) +293 .collect(); +294 +295 paths.retain(|addr, _| !must_prune.contains(addr)); +296} +297 +298#[cfg(test)] +299mod tests { +300 use std::{ +301 net::{Ipv4Addr, SocketAddrV4}, +302 time::Duration, +303 }; +304 +305 use iroh_base::{RelayUrl, SecretKey}; +306 use rand::SeedableRng; +307 +308 use super::*; 309 -310 use super::*; -311 -312 fn ip_addr(port: u16) -> transports::Addr { -313 transports::Addr::Ip(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()) -314 } -315 -316 fn path_state_inactive(closed: Instant) -> PathState { -317 PathState { -318 sources: HashMap::new(), -319 status: PathStatus::Inactive(closed), -320 } -321 } -322 -323 fn path_state_unusable() -> PathState { -324 PathState { -325 sources: HashMap::new(), -326 status: PathStatus::Unusable, -327 } -328 } -329 -330 #[test] -331 fn test_prune_under_max_paths() { -332 let mut paths = FxHashMap::default(); -333 for i in 0..20 { -334 paths.insert(ip_addr(i), PathState::default()); -335 } -336 -337 prune_ip_paths(&mut paths); -338 assert_eq!(20, paths.len(), "should not prune when under MAX_IP_PATHS"); -339 } -340 -341 #[test] -342 fn test_prune_at_max_paths_no_prunable() { -343 let mut paths = FxHashMap::default(); -344 // All paths are active (never abandoned), so none should be pruned -345 for i in 0..MAX_IP_PATHS { -346 paths.insert(ip_addr(i as u16), PathState::default()); -347 } -348 -349 prune_ip_paths(&mut paths); -350 assert_eq!(MAX_IP_PATHS, paths.len(), "should not prune active paths"); -351 } -352 -353 #[test] -354 fn test_prune_failed_holepunch() { -355 let mut paths = FxHashMap::default(); -356 -357 // Add 20 active paths -358 for i in 0..20 { -359 paths.insert(ip_addr(i), PathState::default()); -360 } -361 -362 // Add 15 failed holepunch paths (must_prune) -363 for i in 20..35 { -364 paths.insert(ip_addr(i), path_state_unusable()); -365 } +310 fn ip_addr(port: u16) -> transports::Addr { +311 transports::Addr::Ip(SocketAddrV4::new(Ipv4Addr::LOCALHOST, port).into()) +312 } +313 +314 fn path_state_inactive(closed: Instant) -> PathState { +315 PathState { +316 sources: HashMap::new(), +317 status: PathStatus::Inactive(closed), +318 } +319 } +320 +321 fn path_state_unusable() -> PathState { +322 PathState { +323 sources: HashMap::new(), +324 status: PathStatus::Unusable, +325 } +326 } +327 +328 #[test] +329 fn test_prune_under_max_paths() { +330 let mut paths = FxHashMap::default(); +331 for i in 0..20 { +332 paths.insert(ip_addr(i), PathState::default()); +333 } +334 +335 prune_ip_paths(&mut paths); +336 assert_eq!(20, paths.len(), "should not prune when under MAX_IP_PATHS"); +337 } +338 +339 #[test] +340 fn test_prune_at_max_paths_no_prunable() { +341 let mut paths = FxHashMap::default(); +342 // All paths are active (never abandoned), so none should be pruned +343 for i in 0..MAX_IP_PATHS { +344 paths.insert(ip_addr(i as u16), PathState::default()); +345 } +346 +347 prune_ip_paths(&mut paths); +348 assert_eq!(MAX_IP_PATHS, paths.len(), "should not prune active paths"); +349 } +350 +351 #[test] +352 fn test_prune_failed_holepunch() { +353 let mut paths = FxHashMap::default(); +354 +355 // Add 20 active paths +356 for i in 0..20 { +357 paths.insert(ip_addr(i), PathState::default()); +358 } +359 +360 // Add 15 failed holepunch paths (must_prune) +361 for i in 20..35 { +362 paths.insert(ip_addr(i), path_state_unusable()); +363 } +364 +365 prune_ip_paths(&mut paths); 366 -367 prune_ip_paths(&mut paths); -368 -369 // All failed holepunch paths should be pruned -370 assert_eq!(20, paths.len()); -371 for i in 0..20 { -372 assert!(paths.contains_key(&ip_addr(i))); -373 } -374 for i in 20..35 { -375 assert!(!paths.contains_key(&ip_addr(i))); -376 } -377 } -378 -379 #[test] -380 fn test_prune_keeps_most_recent_inactive() { -381 let mut paths = FxHashMap::default(); -382 let now = Instant::now(); -383 -384 // Add 15 active paths -385 for i in 0..15 { -386 paths.insert(ip_addr(i), PathState::default()); -387 } -388 -389 // Add 20 inactive paths with different abandon times -390 // Ports 15-34, with port 34 being most recently abandoned -391 for i in 0..20 { -392 let abandoned_time = now - Duration::from_secs((20 - i) as u64); -393 paths.insert(ip_addr(15 + i as u16), path_state_inactive(abandoned_time)); -394 } -395 -396 assert_eq!(35, paths.len()); -397 prune_ip_paths(&mut paths); -398 -399 // Should keep 15 active + 10 most recently abandoned -400 assert_eq!(25, paths.len()); -401 -402 // Active paths should remain -403 for i in 0..15 { -404 assert!(paths.contains_key(&ip_addr(i))); -405 } -406 -407 // Most recently abandoned (ports 25-34) should remain -408 for i in 25..35 { -409 assert!(paths.contains_key(&ip_addr(i)), "port {} should be kept", i); -410 } -411 -412 // Oldest abandoned (ports 15-24) should be pruned -413 for i in 15..25 { -414 assert!( -415 !paths.contains_key(&ip_addr(i)), -416 "port {} should be pruned", -417 i -418 ); -419 } -420 } -421 -422 #[test] -423 fn test_prune_mixed_must_and_can_prune() { -424 let mut paths = FxHashMap::default(); -425 let now = Instant::now(); -426 -427 // Add 15 active paths -428 for i in 0..15 { -429 paths.insert(ip_addr(i), PathState::default()); -430 } -431 -432 // Add 5 failed holepunch paths -433 for i in 15..20 { -434 paths.insert(ip_addr(i), path_state_unusable()); -435 } -436 -437 // Add 15 usable but abandoned paths -438 for i in 0..15 { -439 let abandoned_time = now - Duration::from_secs((15 - i) as u64); -440 paths.insert(ip_addr(20 + i as u16), path_state_inactive(abandoned_time)); -441 } -442 -443 assert_eq!(35, paths.len()); -444 prune_ip_paths(&mut paths); -445 -446 // Remove all failed paths -> down to 30 -447 // Keep MAX_INACTIVE_IP_PATHS, eg remove 5 usable but abandoned paths -> down to 20 -448 assert_eq!(20, paths.len()); -449 -450 // Active paths should remain -451 for i in 0..15 { -452 assert!(paths.contains_key(&ip_addr(i))); -453 } -454 -455 // Failed holepunch should be pruned -456 for i in 15..20 { -457 assert!(!paths.contains_key(&ip_addr(i))); -458 } -459 -460 // Most recently abandoned (ports 30-34) should remain -461 for i in 30..35 { -462 assert!(paths.contains_key(&ip_addr(i)), "port {} should be kept", i); -463 } -464 } -465 -466 #[test] -467 fn test_prune_non_ip_paths_not_counted() { -468 let mut paths = FxHashMap::default(); -469 -470 // Add 25 IP paths (under MAX_IP_PATHS) -471 for i in 0..25 { -472 paths.insert(ip_addr(i), path_state_unusable()); -473 } -474 -475 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -476 let relay_url: RelayUrl = url::Url::parse("https://localhost") -477 .expect("should be valid url") -478 .into(); -479 // Add 10 relay addresses -480 for _ in 0..10 { -481 let id = SecretKey::generate(&mut rng).public(); -482 let relay_addr = transports::Addr::Relay(relay_url.clone(), id); -483 paths.insert(relay_addr, PathState::default()); -484 } -485 -486 assert_eq!(35, paths.len()); // 25 IP + 10 relay -487 prune_ip_paths(&mut paths); -488 -489 // Should not prune since IP paths < MAX_IP_PATHS -490 assert_eq!(35, paths.len()); -491 } -492 -493 #[test] -494 fn test_prune_preserves_never_dialed() { -495 let mut paths = FxHashMap::default(); -496 -497 // Add 20 never-dialed paths (PathStatus::Unknown) -498 for i in 0..20 { -499 paths.insert(ip_addr(i), PathState::default()); -500 } -501 -502 // Add 15 failed paths to trigger pruning -503 for i in 20..35 { -504 paths.insert(ip_addr(i), path_state_unusable()); -505 } +367 // All failed holepunch paths should be pruned +368 assert_eq!(20, paths.len()); +369 for i in 0..20 { +370 assert!(paths.contains_key(&ip_addr(i))); +371 } +372 for i in 20..35 { +373 assert!(!paths.contains_key(&ip_addr(i))); +374 } +375 } +376 +377 #[test] +378 fn test_prune_keeps_most_recent_inactive() { +379 let mut paths = FxHashMap::default(); +380 let now = Instant::now(); +381 +382 // Add 15 active paths +383 for i in 0..15 { +384 paths.insert(ip_addr(i), PathState::default()); +385 } +386 +387 // Add 20 inactive paths with different abandon times +388 // Ports 15-34, with port 34 being most recently abandoned +389 for i in 0..20 { +390 let abandoned_time = now - Duration::from_secs((20 - i) as u64); +391 paths.insert(ip_addr(15 + i as u16), path_state_inactive(abandoned_time)); +392 } +393 +394 assert_eq!(35, paths.len()); +395 prune_ip_paths(&mut paths); +396 +397 // Should keep 15 active + 10 most recently abandoned +398 assert_eq!(25, paths.len()); +399 +400 // Active paths should remain +401 for i in 0..15 { +402 assert!(paths.contains_key(&ip_addr(i))); +403 } +404 +405 // Most recently abandoned (ports 25-34) should remain +406 for i in 25..35 { +407 assert!(paths.contains_key(&ip_addr(i)), "port {} should be kept", i); +408 } +409 +410 // Oldest abandoned (ports 15-24) should be pruned +411 for i in 15..25 { +412 assert!( +413 !paths.contains_key(&ip_addr(i)), +414 "port {} should be pruned", +415 i +416 ); +417 } +418 } +419 +420 #[test] +421 fn test_prune_mixed_must_and_can_prune() { +422 let mut paths = FxHashMap::default(); +423 let now = Instant::now(); +424 +425 // Add 15 active paths +426 for i in 0..15 { +427 paths.insert(ip_addr(i), PathState::default()); +428 } +429 +430 // Add 5 failed holepunch paths +431 for i in 15..20 { +432 paths.insert(ip_addr(i), path_state_unusable()); +433 } +434 +435 // Add 15 usable but abandoned paths +436 for i in 0..15 { +437 let abandoned_time = now - Duration::from_secs((15 - i) as u64); +438 paths.insert(ip_addr(20 + i as u16), path_state_inactive(abandoned_time)); +439 } +440 +441 assert_eq!(35, paths.len()); +442 prune_ip_paths(&mut paths); +443 +444 // Remove all failed paths -> down to 30 +445 // Keep MAX_INACTIVE_IP_PATHS, eg remove 5 usable but abandoned paths -> down to 20 +446 assert_eq!(20, paths.len()); +447 +448 // Active paths should remain +449 for i in 0..15 { +450 assert!(paths.contains_key(&ip_addr(i))); +451 } +452 +453 // Failed holepunch should be pruned +454 for i in 15..20 { +455 assert!(!paths.contains_key(&ip_addr(i))); +456 } +457 +458 // Most recently abandoned (ports 30-34) should remain +459 for i in 30..35 { +460 assert!(paths.contains_key(&ip_addr(i)), "port {} should be kept", i); +461 } +462 } +463 +464 #[test] +465 fn test_prune_non_ip_paths_not_counted() { +466 let mut paths = FxHashMap::default(); +467 +468 // Add 25 IP paths (under MAX_IP_PATHS) +469 for i in 0..25 { +470 paths.insert(ip_addr(i), path_state_unusable()); +471 } +472 +473 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +474 let relay_url: RelayUrl = url::Url::parse("https://localhost") +475 .expect("should be valid url") +476 .into(); +477 // Add 10 relay addresses +478 for _ in 0..10 { +479 let id = SecretKey::generate(&mut rng).public(); +480 let relay_addr = transports::Addr::Relay(relay_url.clone(), id); +481 paths.insert(relay_addr, PathState::default()); +482 } +483 +484 assert_eq!(35, paths.len()); // 25 IP + 10 relay +485 prune_ip_paths(&mut paths); +486 +487 // Should not prune since IP paths < MAX_IP_PATHS +488 assert_eq!(35, paths.len()); +489 } +490 +491 #[test] +492 fn test_prune_preserves_never_dialed() { +493 let mut paths = FxHashMap::default(); +494 +495 // Add 20 never-dialed paths (PathStatus::Unknown) +496 for i in 0..20 { +497 paths.insert(ip_addr(i), PathState::default()); +498 } +499 +500 // Add 15 failed paths to trigger pruning +501 for i in 20..35 { +502 paths.insert(ip_addr(i), path_state_unusable()); +503 } +504 +505 prune_ip_paths(&mut paths); 506 -507 prune_ip_paths(&mut paths); -508 -509 // Never-dialed paths should be preserved -510 for i in 0..20 { -511 assert!(paths.contains_key(&ip_addr(i))); -512 } -513 } -514 -515 #[test] -516 fn test_prune_all_paths_failed() { -517 let mut paths = FxHashMap::default(); -518 -519 // Add 40 failed holepunch paths (all paths have failed) -520 for i in 0..40 { -521 paths.insert(ip_addr(i), path_state_unusable()); -522 } -523 -524 assert_eq!(40, paths.len()); -525 prune_ip_paths(&mut paths); -526 -527 // Should keep MAX_IP_PATHS instead of pruning everything -528 // This prevents catastrophic loss of all path information -529 assert_eq!( -530 MAX_IP_PATHS, -531 paths.len(), -532 "should keep MAX_IP_PATHS when all paths failed" -533 ); -534 } -535 -536 #[test] -537 fn test_insert_open_path() { -538 let mut state = RemotePathState::new(Default::default()); -539 let addr = ip_addr(1000); -540 let source = Source::Udp; +507 // Never-dialed paths should be preserved +508 for i in 0..20 { +509 assert!(paths.contains_key(&ip_addr(i))); +510 } +511 } +512 +513 #[test] +514 fn test_prune_all_paths_failed() { +515 let mut paths = FxHashMap::default(); +516 +517 // Add 40 failed holepunch paths (all paths have failed) +518 for i in 0..40 { +519 paths.insert(ip_addr(i), path_state_unusable()); +520 } +521 +522 assert_eq!(40, paths.len()); +523 prune_ip_paths(&mut paths); +524 +525 // Should keep MAX_IP_PATHS instead of pruning everything +526 // This prevents catastrophic loss of all path information +527 assert_eq!( +528 MAX_IP_PATHS, +529 paths.len(), +530 "should keep MAX_IP_PATHS when all paths failed" +531 ); +532 } +533 +534 #[test] +535 fn test_insert_open_path() { +536 let mut state = RemotePathState::new(Default::default()); +537 let addr = ip_addr(1000); +538 let source = Source::Udp; +539 +540 assert!(state.is_empty()); 541 -542 assert!(state.is_empty()); +542 state.insert_open_path(addr.clone(), source.clone()); 543 -544 state.insert_open_path(addr.clone(), source.clone()); -545 -546 assert!(!state.is_empty()); -547 assert!(state.paths.contains_key(&addr)); -548 let path = &state.paths[&addr]; -549 assert!(matches!(path.status, PathStatus::Open)); -550 assert_eq!(path.sources.len(), 1); -551 assert!(path.sources.contains_key(&source)); -552 } -553 -554 #[test] -555 fn test_abandoned_path() { -556 let metrics = Arc::new(SocketMetrics::default()); -557 let mut state = RemotePathState::new(metrics.clone()); -558 -559 // Test: Open goes to Inactive -560 let addr_open = ip_addr(1000); -561 state.insert_open_path(addr_open.clone(), Source::Udp); -562 assert!(matches!(state.paths[&addr_open].status, PathStatus::Open)); -563 assert_eq!(metrics.transport_ip_paths_added.get(), 1); -564 -565 state.abandoned_path(&addr_open); -566 assert!(matches!( -567 state.paths[&addr_open].status, -568 PathStatus::Inactive(_) -569 )); -570 assert_eq!(metrics.transport_ip_paths_added.get(), 1); -571 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); -572 -573 // Test: Inactive stays Inactive -574 state.abandoned_path(&addr_open); -575 assert!(matches!( -576 state.paths[&addr_open].status, -577 PathStatus::Inactive(_) -578 )); -579 assert_eq!(metrics.transport_ip_paths_added.get(), 1); -580 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); -581 -582 // Test: Unknown goes to Unusable -583 let addr_unknown = ip_addr(2000); -584 state.insert_multiple([addr_unknown.clone()].into_iter(), Source::Relay); -585 assert!(matches!( -586 state.paths[&addr_unknown].status, -587 PathStatus::Unknown -588 )); -589 assert_eq!(metrics.transport_ip_paths_added.get(), 1); -590 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); -591 -592 state.abandoned_path(&addr_unknown); -593 assert!(matches!( -594 state.paths[&addr_unknown].status, -595 PathStatus::Unusable -596 )); -597 assert_eq!(metrics.transport_ip_paths_added.get(), 1); -598 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); -599 -600 // Test: Unusable stays Unusable -601 state.abandoned_path(&addr_unknown); -602 assert!(matches!( -603 state.paths[&addr_unknown].status, -604 PathStatus::Unusable -605 )); -606 assert_eq!(metrics.transport_ip_paths_added.get(), 1); -607 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); -608 -609 // Test: Unusable can go to open -610 state.insert_open_path(addr_unknown.clone(), Source::Udp); -611 assert!(matches!( -612 state.paths[&addr_unknown].status, -613 PathStatus::Open -614 )); -615 assert_eq!(metrics.transport_ip_paths_added.get(), 2); -616 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); -617 } -618} \ No newline at end of file +544 assert!(!state.is_empty()); +545 assert!(state.paths.contains_key(&addr)); +546 let path = &state.paths[&addr]; +547 assert!(matches!(path.status, PathStatus::Open)); +548 assert_eq!(path.sources.len(), 1); +549 assert!(path.sources.contains_key(&source)); +550 } +551 +552 #[test] +553 fn test_abandoned_path() { +554 let metrics = Arc::new(SocketMetrics::default()); +555 let mut state = RemotePathState::new(metrics.clone()); +556 +557 // Test: Open goes to Inactive +558 let addr_open = ip_addr(1000); +559 state.insert_open_path(addr_open.clone(), Source::Udp); +560 assert!(matches!(state.paths[&addr_open].status, PathStatus::Open)); +561 assert_eq!(metrics.transport_ip_paths_added.get(), 1); +562 +563 state.abandoned_path(&addr_open); +564 assert!(matches!( +565 state.paths[&addr_open].status, +566 PathStatus::Inactive(_) +567 )); +568 assert_eq!(metrics.transport_ip_paths_added.get(), 1); +569 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); +570 +571 // Test: Inactive stays Inactive +572 state.abandoned_path(&addr_open); +573 assert!(matches!( +574 state.paths[&addr_open].status, +575 PathStatus::Inactive(_) +576 )); +577 assert_eq!(metrics.transport_ip_paths_added.get(), 1); +578 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); +579 +580 // Test: Unknown goes to Unusable +581 let addr_unknown = ip_addr(2000); +582 state.insert_multiple([addr_unknown.clone()].into_iter(), Source::Relay); +583 assert!(matches!( +584 state.paths[&addr_unknown].status, +585 PathStatus::Unknown +586 )); +587 assert_eq!(metrics.transport_ip_paths_added.get(), 1); +588 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); +589 +590 state.abandoned_path(&addr_unknown); +591 assert!(matches!( +592 state.paths[&addr_unknown].status, +593 PathStatus::Unusable +594 )); +595 assert_eq!(metrics.transport_ip_paths_added.get(), 1); +596 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); +597 +598 // Test: Unusable stays Unusable +599 state.abandoned_path(&addr_unknown); +600 assert!(matches!( +601 state.paths[&addr_unknown].status, +602 PathStatus::Unusable +603 )); +604 assert_eq!(metrics.transport_ip_paths_added.get(), 1); +605 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); +606 +607 // Test: Unusable can go to open +608 state.insert_open_path(addr_unknown.clone(), Source::Udp); +609 assert!(matches!( +610 state.paths[&addr_unknown].status, +611 PathStatus::Open +612 )); +613 assert_eq!(metrics.transport_ip_paths_added.get(), 2); +614 assert_eq!(metrics.transport_ip_paths_removed.get(), 1); +615 } +616} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/socket/transports/relay/actor.rs.html b/pr/3958/docs/src/iroh/socket/transports/relay/actor.rs.html index 1c0b5eb6f0..b38791a167 100644 --- a/pr/3958/docs/src/iroh/socket/transports/relay/actor.rs.html +++ b/pr/3958/docs/src/iroh/socket/transports/relay/actor.rs.html @@ -204,1357 +204,1358 @@ 204 dns_resolver: DnsResolver, 205 proxy_url: Option<Url>, 206 prefer_ipv6: Arc<AtomicBool>, -207 #[cfg(any(test, feature = "test-utils"))] -208 insecure_skip_cert_verify: bool, -209} -210 -211/// Possible reasons for a failed relay connection. -212#[allow(missing_docs)] -213#[stack_error(derive, add_meta)] -214enum RelayConnectionError { -215 #[error("Failed to connect to relay server")] -216 Dial { source: DialError }, -217 #[error("Failed to handshake with relay server")] -218 Handshake { source: RunError }, -219 #[error("Lost connection to relay server")] -220 Established { source: RunError }, -221} -222 -223#[allow(missing_docs)] -224#[stack_error(derive, add_meta)] -225enum RunError { -226 #[error("Send timeout")] -227 SendTimeout, -228 #[error("Ping timeout")] -229 PingTimeout, -230 #[error("Local IP no longer valid")] -231 LocalIpInvalid, -232 #[error("No local address")] -233 LocalAddrMissing, -234 #[error("Stream closed by server.")] -235 StreamClosedServer, -236 #[error("Client stream read failed")] -237 ClientStreamRead { -238 #[error(std_err)] -239 source: RecvError, -240 }, -241 #[error("Client stream write failed")] -242 ClientStreamWrite { -243 #[error(std_err)] -244 source: SendError, -245 }, -246} -247 -248#[allow(missing_docs)] -249#[stack_error(derive, add_meta)] -250enum DialError { -251 #[error("timeout (>{timeout:?}) trying to establish a connection")] -252 Timeout { timeout: Duration }, -253 #[error("unable to connect")] -254 Connect { source: ConnectError }, -255} -256 -257impl ActiveRelayActor { -258 fn new(opts: ActiveRelayActorOptions) -> Self { -259 let ActiveRelayActorOptions { -260 url, -261 prio_inbox_: prio_inbox, -262 inbox, -263 relay_datagrams_send, -264 relay_datagrams_recv, -265 connection_opts, -266 stop_token, -267 metrics, -268 } = opts; -269 let relay_client_builder = Self::create_relay_builder(url.clone(), connection_opts); -270 ActiveRelayActor { -271 prio_inbox, -272 inbox, -273 relay_datagrams_recv, -274 relay_datagrams_send, -275 url, -276 relay_client_builder, -277 is_home_relay: false, -278 inactive_timeout: Box::pin(time::sleep(RELAY_INACTIVE_CLEANUP_TIME)), -279 stop_token, -280 metrics, -281 } -282 } -283 -284 fn create_relay_builder( -285 url: RelayUrl, -286 opts: RelayConnectionOptions, -287 ) -> relay::client::ClientBuilder { -288 let RelayConnectionOptions { -289 secret_key, -290 #[cfg(not(wasm_browser))] -291 dns_resolver, -292 proxy_url, -293 prefer_ipv6, -294 #[cfg(any(test, feature = "test-utils"))] -295 insecure_skip_cert_verify, -296 } = opts; -297 -298 let mut builder = relay::client::ClientBuilder::new( -299 url, -300 secret_key, -301 #[cfg(not(wasm_browser))] -302 dns_resolver, -303 ) -304 .address_family_selector(move || prefer_ipv6.load(Ordering::Relaxed)); -305 if let Some(proxy_url) = proxy_url { -306 builder = builder.proxy_url(proxy_url); -307 } -308 #[cfg(any(test, feature = "test-utils"))] -309 let builder = builder.insecure_skip_cert_verify(insecure_skip_cert_verify); -310 builder -311 } -312 -313 /// The main actor run loop. -314 /// -315 /// Primarily switches between the dialing and connected states. -316 async fn run(mut self) { -317 let mut backoff = Self::build_backoff(); -318 -319 while let Err(err) = self.run_once().await { -320 warn!("{err:#}"); -321 match err { -322 RelayConnectionError::Dial { .. } | RelayConnectionError::Handshake { .. } => { -323 // If dialing failed, or if the relay connection failed before we received a pong, -324 // we wait an exponentially increasing time until we attempt to reconnect again. -325 let Some(delay) = backoff.next() else { -326 warn!("retries exceeded"); -327 break; -328 }; -329 debug!("retry in {delay:?}"); -330 time::sleep(delay).await; -331 } -332 RelayConnectionError::Established { .. } => { -333 // If the relay connection remained established long enough so that we received a pong -334 // from the relay server, we reset the backoff and attempt to reconnect immediately. -335 backoff = Self::build_backoff(); -336 } -337 } -338 } -339 debug!("exiting"); -340 } -341 -342 fn build_backoff() -> impl Backoff { -343 ExponentialBuilder::new() -344 .with_min_delay(Duration::from_millis(10)) -345 .with_max_delay(Duration::from_secs(16)) -346 .with_jitter() -347 .without_max_times() -348 .build() -349 } -350 -351 /// Attempt to connect to the relay, and run the connected actor loop. -352 /// -353 /// Returns `Ok(())` if the actor loop should shut down. Returns an error if dialing failed, -354 /// or if the relay connection failed while connected. In both cases, the connection should -355 /// be retried with a backoff. -356 async fn run_once(&mut self) -> Result<(), RelayConnectionError> { -357 let client = match self.run_dialing().instrument(info_span!("dialing")).await { -358 Some(client_res) => client_res.map_err(|err| e!(RelayConnectionError::Dial, err))?, -359 None => return Ok(()), -360 }; -361 self.run_connected(client) -362 .instrument(info_span!("connected")) -363 .await -364 } -365 -366 fn reset_inactive_timeout(&mut self) { -367 self.inactive_timeout -368 .as_mut() -369 .reset(Instant::now() + RELAY_INACTIVE_CLEANUP_TIME); -370 } -371 -372 fn set_home_relay(&mut self, is_home: bool) { -373 let prev = std::mem::replace(&mut self.is_home_relay, is_home); -374 if self.is_home_relay != prev { -375 event!( -376 target: "iroh::_events::relay::home_changed", -377 Level::DEBUG, -378 url = %self.url, -379 home_relay = self.is_home_relay, -380 ); -381 } -382 } -383 -384 /// Actor loop when connecting to the relay server. -385 /// -386 /// Returns `None` if the actor needs to shut down. Returns `Some(Ok(client))` when the -387 /// connection is established, and `Some(Err(err))` if dialing the relay failed. -388 async fn run_dialing(&mut self) -> Option<Result<iroh_relay::client::Client, DialError>> { -389 trace!("Actor loop: connecting to relay."); -390 -391 // We regularly flush the relay_datagrams_send queue so it is not full of stale -392 // packets while reconnecting. Those datagrams are dropped and the QUIC congestion -393 // controller will have to handle this (DISCO packets do not yet have retry). This -394 // is not an ideal mechanism, an alternative approach would be to use -395 // e.g. ConcurrentQueue with force_push, though now you might still send very stale -396 // packets when eventually connected. So perhaps this is a reasonable compromise. -397 let mut send_datagram_flush = time::interval(UNDELIVERABLE_DATAGRAM_TIMEOUT); -398 send_datagram_flush.set_missed_tick_behavior(MissedTickBehavior::Delay); -399 send_datagram_flush.reset(); // Skip the immediate interval -400 -401 let dialing_fut = self.dial_relay(); -402 tokio::pin!(dialing_fut); -403 loop { -404 tokio::select! { -405 biased; -406 _ = self.stop_token.cancelled() => { -407 debug!("Shutdown."); -408 break None; -409 } -410 msg = self.prio_inbox.recv() => { -411 let Some(msg) = msg else { -412 warn!("Priority inbox closed, shutdown."); -413 break None; -414 }; -415 match msg { -416 ActiveRelayPrioMessage::HasEndpointRoute(_peer, sender) => { -417 sender.send(false).ok(); -418 } -419 } -420 } -421 res = &mut dialing_fut => { -422 match res { -423 Ok(client) => { -424 break Some(Ok(client)); +207 tls_config: rustls::ClientConfig, +208} +209 +210/// Possible reasons for a failed relay connection. +211#[allow(missing_docs)] +212#[stack_error(derive, add_meta)] +213enum RelayConnectionError { +214 #[error("Failed to connect to relay server")] +215 Dial { source: DialError }, +216 #[error("Failed to handshake with relay server")] +217 Handshake { source: RunError }, +218 #[error("Lost connection to relay server")] +219 Established { source: RunError }, +220} +221 +222#[allow(missing_docs)] +223#[stack_error(derive, add_meta)] +224enum RunError { +225 #[error("Send timeout")] +226 SendTimeout, +227 #[error("Ping timeout")] +228 PingTimeout, +229 #[error("Local IP no longer valid")] +230 LocalIpInvalid, +231 #[error("No local address")] +232 LocalAddrMissing, +233 #[error("Stream closed by server.")] +234 StreamClosedServer, +235 #[error("Client stream read failed")] +236 ClientStreamRead { +237 #[error(std_err)] +238 source: RecvError, +239 }, +240 #[error("Client stream write failed")] +241 ClientStreamWrite { +242 #[error(std_err)] +243 source: SendError, +244 }, +245} +246 +247#[allow(missing_docs)] +248#[stack_error(derive, add_meta)] +249enum DialError { +250 #[error("timeout (>{timeout:?}) trying to establish a connection")] +251 Timeout { timeout: Duration }, +252 #[error("unable to connect")] +253 Connect { source: ConnectError }, +254} +255 +256impl ActiveRelayActor { +257 fn new(opts: ActiveRelayActorOptions) -> Self { +258 let ActiveRelayActorOptions { +259 url, +260 prio_inbox_: prio_inbox, +261 inbox, +262 relay_datagrams_send, +263 relay_datagrams_recv, +264 connection_opts, +265 stop_token, +266 metrics, +267 } = opts; +268 let relay_client_builder = Self::create_relay_builder(url.clone(), connection_opts); +269 ActiveRelayActor { +270 prio_inbox, +271 inbox, +272 relay_datagrams_recv, +273 relay_datagrams_send, +274 url, +275 relay_client_builder, +276 is_home_relay: false, +277 inactive_timeout: Box::pin(time::sleep(RELAY_INACTIVE_CLEANUP_TIME)), +278 stop_token, +279 metrics, +280 } +281 } +282 +283 fn create_relay_builder( +284 url: RelayUrl, +285 opts: RelayConnectionOptions, +286 ) -> relay::client::ClientBuilder { +287 let RelayConnectionOptions { +288 secret_key, +289 #[cfg(not(wasm_browser))] +290 dns_resolver, +291 proxy_url, +292 prefer_ipv6, +293 tls_config, +294 } = opts; +295 +296 let mut builder = relay::client::ClientBuilder::new( +297 url, +298 secret_key, +299 #[cfg(not(wasm_browser))] +300 dns_resolver, +301 ) +302 .tls_client_config(tls_config) +303 .address_family_selector(move || prefer_ipv6.load(Ordering::Relaxed)); +304 if let Some(proxy_url) = proxy_url { +305 builder = builder.proxy_url(proxy_url); +306 } +307 builder +308 } +309 +310 /// The main actor run loop. +311 /// +312 /// Primarily switches between the dialing and connected states. +313 async fn run(mut self) { +314 let mut backoff = Self::build_backoff(); +315 +316 while let Err(err) = self.run_once().await { +317 warn!("{err:#}"); +318 match err { +319 RelayConnectionError::Dial { .. } | RelayConnectionError::Handshake { .. } => { +320 // If dialing failed, or if the relay connection failed before we received a pong, +321 // we wait an exponentially increasing time until we attempt to reconnect again. +322 let Some(delay) = backoff.next() else { +323 warn!("retries exceeded"); +324 break; +325 }; +326 debug!("retry in {delay:?}"); +327 time::sleep(delay).await; +328 } +329 RelayConnectionError::Established { .. } => { +330 // If the relay connection remained established long enough so that we received a pong +331 // from the relay server, we reset the backoff and attempt to reconnect immediately. +332 backoff = Self::build_backoff(); +333 } +334 } +335 } +336 debug!("exiting"); +337 } +338 +339 fn build_backoff() -> impl Backoff { +340 ExponentialBuilder::new() +341 .with_min_delay(Duration::from_millis(10)) +342 .with_max_delay(Duration::from_secs(16)) +343 .with_jitter() +344 .without_max_times() +345 .build() +346 } +347 +348 /// Attempt to connect to the relay, and run the connected actor loop. +349 /// +350 /// Returns `Ok(())` if the actor loop should shut down. Returns an error if dialing failed, +351 /// or if the relay connection failed while connected. In both cases, the connection should +352 /// be retried with a backoff. +353 async fn run_once(&mut self) -> Result<(), RelayConnectionError> { +354 let client = match self.run_dialing().instrument(info_span!("dialing")).await { +355 Some(client_res) => client_res.map_err(|err| e!(RelayConnectionError::Dial, err))?, +356 None => return Ok(()), +357 }; +358 self.run_connected(client) +359 .instrument(info_span!("connected")) +360 .await +361 } +362 +363 fn reset_inactive_timeout(&mut self) { +364 self.inactive_timeout +365 .as_mut() +366 .reset(Instant::now() + RELAY_INACTIVE_CLEANUP_TIME); +367 } +368 +369 fn set_home_relay(&mut self, is_home: bool) { +370 let prev = std::mem::replace(&mut self.is_home_relay, is_home); +371 if self.is_home_relay != prev { +372 event!( +373 target: "iroh::_events::relay::home_changed", +374 Level::DEBUG, +375 url = %self.url, +376 home_relay = self.is_home_relay, +377 ); +378 } +379 } +380 +381 /// Actor loop when connecting to the relay server. +382 /// +383 /// Returns `None` if the actor needs to shut down. Returns `Some(Ok(client))` when the +384 /// connection is established, and `Some(Err(err))` if dialing the relay failed. +385 async fn run_dialing(&mut self) -> Option<Result<iroh_relay::client::Client, DialError>> { +386 trace!("Actor loop: connecting to relay."); +387 +388 // We regularly flush the relay_datagrams_send queue so it is not full of stale +389 // packets while reconnecting. Those datagrams are dropped and the QUIC congestion +390 // controller will have to handle this (DISCO packets do not yet have retry). This +391 // is not an ideal mechanism, an alternative approach would be to use +392 // e.g. ConcurrentQueue with force_push, though now you might still send very stale +393 // packets when eventually connected. So perhaps this is a reasonable compromise. +394 let mut send_datagram_flush = time::interval(UNDELIVERABLE_DATAGRAM_TIMEOUT); +395 send_datagram_flush.set_missed_tick_behavior(MissedTickBehavior::Delay); +396 send_datagram_flush.reset(); // Skip the immediate interval +397 +398 let dialing_fut = self.dial_relay(); +399 tokio::pin!(dialing_fut); +400 loop { +401 tokio::select! { +402 biased; +403 _ = self.stop_token.cancelled() => { +404 debug!("Shutdown."); +405 break None; +406 } +407 msg = self.prio_inbox.recv() => { +408 let Some(msg) = msg else { +409 warn!("Priority inbox closed, shutdown."); +410 break None; +411 }; +412 match msg { +413 ActiveRelayPrioMessage::HasEndpointRoute(_peer, sender) => { +414 sender.send(false).ok(); +415 } +416 } +417 } +418 res = &mut dialing_fut => { +419 match res { +420 Ok(client) => { +421 break Some(Ok(client)); +422 } +423 Err(err) => { +424 break Some(Err(err)); 425 } -426 Err(err) => { -427 break Some(Err(err)); -428 } -429 } -430 } -431 msg = self.inbox.recv() => { -432 let Some(msg) = msg else { -433 debug!("Inbox closed, shutdown."); -434 break None; -435 }; -436 match msg { -437 ActiveRelayMessage::SetHomeRelay(is_home) => { -438 self.set_home_relay(is_home); -439 } -440 ActiveRelayMessage::CheckConnection(_local_ips) => {} -441 #[cfg(test)] -442 ActiveRelayMessage::GetLocalAddr(sender) => { -443 sender.send(None).ok(); -444 } -445 #[cfg(test)] -446 ActiveRelayMessage::PingServer(sender) => { -447 drop(sender); -448 } -449 } -450 } -451 _ = send_datagram_flush.tick() => { -452 self.reset_inactive_timeout(); -453 let mut logged = false; -454 while self.relay_datagrams_send.try_recv().is_ok() { -455 if !logged { -456 debug!(?UNDELIVERABLE_DATAGRAM_TIMEOUT, "Dropping datagrams to send."); -457 logged = true; -458 } -459 } -460 } -461 _ = &mut self.inactive_timeout, if !self.is_home_relay => { -462 debug!(?RELAY_INACTIVE_CLEANUP_TIME, "Inactive, exiting."); -463 break None; -464 } -465 } -466 } -467 } -468 -469 /// Returns a future which will complete once connected to the relay server. -470 /// -471 /// The future only completes once the connection is established and retries -472 /// connections. It currently does not ever return `Err` as the retries continue -473 /// forever. -474 // This is using `impl Future` to return a future without a reference to self. -475 fn dial_relay(&self) -> impl Future<Output = Result<Client, DialError>> + use<> { -476 let client_builder = self.relay_client_builder.clone(); -477 async move { -478 match time::timeout(CONNECT_TIMEOUT, client_builder.connect()).await { -479 Ok(Ok(client)) => Ok(client), -480 Ok(Err(err)) => Err(e!(DialError::Connect, err)), -481 Err(_) => Err(e!(DialError::Timeout { -482 timeout: CONNECT_TIMEOUT -483 })), -484 } -485 } -486 } -487 -488 /// Runs the actor loop when connected to a relay server. -489 /// -490 /// Returns `Ok` if the actor needs to shut down. `Err` is returned if the connection -491 /// to the relay server is lost. -492 async fn run_connected( -493 &mut self, -494 client: iroh_relay::client::Client, -495 ) -> Result<(), RelayConnectionError> { -496 debug!("Actor loop: connected to relay"); -497 event!( -498 target: "iroh::_events::relay::connected", -499 Level::DEBUG, -500 url = %self.url, -501 home_relay = self.is_home_relay, -502 ); +426 } +427 } +428 msg = self.inbox.recv() => { +429 let Some(msg) = msg else { +430 debug!("Inbox closed, shutdown."); +431 break None; +432 }; +433 match msg { +434 ActiveRelayMessage::SetHomeRelay(is_home) => { +435 self.set_home_relay(is_home); +436 } +437 ActiveRelayMessage::CheckConnection(_local_ips) => {} +438 #[cfg(test)] +439 ActiveRelayMessage::GetLocalAddr(sender) => { +440 sender.send(None).ok(); +441 } +442 #[cfg(test)] +443 ActiveRelayMessage::PingServer(sender) => { +444 drop(sender); +445 } +446 } +447 } +448 _ = send_datagram_flush.tick() => { +449 self.reset_inactive_timeout(); +450 let mut logged = false; +451 while self.relay_datagrams_send.try_recv().is_ok() { +452 if !logged { +453 debug!(?UNDELIVERABLE_DATAGRAM_TIMEOUT, "Dropping datagrams to send."); +454 logged = true; +455 } +456 } +457 } +458 _ = &mut self.inactive_timeout, if !self.is_home_relay => { +459 debug!(?RELAY_INACTIVE_CLEANUP_TIME, "Inactive, exiting."); +460 break None; +461 } +462 } +463 } +464 } +465 +466 /// Returns a future which will complete once connected to the relay server. +467 /// +468 /// The future only completes once the connection is established and retries +469 /// connections. It currently does not ever return `Err` as the retries continue +470 /// forever. +471 // This is using `impl Future` to return a future without a reference to self. +472 fn dial_relay(&self) -> impl Future<Output = Result<Client, DialError>> + use<> { +473 let client_builder = self.relay_client_builder.clone(); +474 async move { +475 match time::timeout(CONNECT_TIMEOUT, client_builder.connect()).await { +476 Ok(Ok(client)) => Ok(client), +477 Ok(Err(err)) => Err(e!(DialError::Connect, err)), +478 Err(_) => Err(e!(DialError::Timeout { +479 timeout: CONNECT_TIMEOUT +480 })), +481 } +482 } +483 } +484 +485 /// Runs the actor loop when connected to a relay server. +486 /// +487 /// Returns `Ok` if the actor needs to shut down. `Err` is returned if the connection +488 /// to the relay server is lost. +489 async fn run_connected( +490 &mut self, +491 client: iroh_relay::client::Client, +492 ) -> Result<(), RelayConnectionError> { +493 debug!("Actor loop: connected to relay"); +494 event!( +495 target: "iroh::_events::relay::connected", +496 Level::DEBUG, +497 url = %self.url, +498 home_relay = self.is_home_relay, +499 ); +500 +501 let (mut client_stream, client_sink) = client.split(); +502 let mut client_sink = client_sink.sink_map_err(|e| e!(RunError::ClientStreamWrite, e)); 503 -504 let (mut client_stream, client_sink) = client.split(); -505 let mut client_sink = client_sink.sink_map_err(|e| e!(RunError::ClientStreamWrite, e)); -506 -507 let mut state = ConnectedRelayState { -508 ping_tracker: PingTracker::default(), -509 endpoints_present: BTreeSet::new(), -510 last_packet_src: None, -511 pong_pending: None, -512 established: false, -513 #[cfg(test)] -514 test_pong: None, -515 }; +504 let mut state = ConnectedRelayState { +505 ping_tracker: PingTracker::default(), +506 endpoints_present: BTreeSet::new(), +507 last_packet_src: None, +508 pong_pending: None, +509 established: false, +510 #[cfg(test)] +511 test_pong: None, +512 }; +513 +514 // A buffer to pass through multiple datagrams at once as an optimisation. +515 let mut send_datagrams_buf = Vec::with_capacity(SEND_DATAGRAM_BATCH_SIZE); 516 -517 // A buffer to pass through multiple datagrams at once as an optimisation. -518 let mut send_datagrams_buf = Vec::with_capacity(SEND_DATAGRAM_BATCH_SIZE); -519 -520 // Regularly send pings so we know the connection is healthy. -521 // The first ping will be sent immediately. -522 let mut ping_interval = time::interval(PING_INTERVAL); -523 ping_interval.set_missed_tick_behavior(MissedTickBehavior::Delay); -524 -525 let res = loop { -526 if let Some(data) = state.pong_pending.take() { -527 let fut = client_sink.send(ClientToRelayMsg::Pong(data)); -528 self.run_sending(fut, &mut state, &mut client_stream) -529 .await?; -530 } -531 tokio::select! { -532 biased; -533 _ = self.stop_token.cancelled() => { -534 debug!("Shutdown."); -535 break Ok(()); -536 } -537 msg = self.prio_inbox.recv() => { -538 let Some(msg) = msg else { -539 warn!("Priority inbox closed, shutdown."); -540 break Ok(()); -541 }; -542 match msg { -543 ActiveRelayPrioMessage::HasEndpointRoute(peer, sender) => { -544 let has_peer = state.endpoints_present.contains(&peer); -545 sender.send(has_peer).ok(); -546 } -547 } +517 // Regularly send pings so we know the connection is healthy. +518 // The first ping will be sent immediately. +519 let mut ping_interval = time::interval(PING_INTERVAL); +520 ping_interval.set_missed_tick_behavior(MissedTickBehavior::Delay); +521 +522 let res = loop { +523 if let Some(data) = state.pong_pending.take() { +524 let fut = client_sink.send(ClientToRelayMsg::Pong(data)); +525 self.run_sending(fut, &mut state, &mut client_stream) +526 .await?; +527 } +528 tokio::select! { +529 biased; +530 _ = self.stop_token.cancelled() => { +531 debug!("Shutdown."); +532 break Ok(()); +533 } +534 msg = self.prio_inbox.recv() => { +535 let Some(msg) = msg else { +536 warn!("Priority inbox closed, shutdown."); +537 break Ok(()); +538 }; +539 match msg { +540 ActiveRelayPrioMessage::HasEndpointRoute(peer, sender) => { +541 let has_peer = state.endpoints_present.contains(&peer); +542 sender.send(has_peer).ok(); +543 } +544 } +545 } +546 _ = state.ping_tracker.timeout() => { +547 break Err(e!(RunError::PingTimeout)); 548 } -549 _ = state.ping_tracker.timeout() => { -550 break Err(e!(RunError::PingTimeout)); -551 } -552 _ = ping_interval.tick() => { -553 let data = state.ping_tracker.new_ping(); -554 let fut = client_sink.send(ClientToRelayMsg::Ping(data)); -555 self.run_sending(fut, &mut state, &mut client_stream).await?; -556 } -557 msg = self.inbox.recv() => { -558 let Some(msg) = msg else { -559 warn!("Inbox closed, shutdown."); -560 break Ok(()); -561 }; -562 match msg { -563 ActiveRelayMessage::SetHomeRelay(is_home) => { -564 self.set_home_relay(is_home); -565 } -566 ActiveRelayMessage::CheckConnection(local_ips) => { -567 match client_stream.local_addr() { -568 Some(addr) if local_ips.contains(&addr.ip()) => { -569 let data = state.ping_tracker.new_ping(); -570 let fut = client_sink.send(ClientToRelayMsg::Ping(data)); -571 self.run_sending(fut, &mut state, &mut client_stream).await?; -572 } -573 Some(_) => break Err(e!(RunError::LocalIpInvalid)), -574 None => break Err(e!(RunError::LocalAddrMissing)), -575 } -576 } -577 #[cfg(test)] -578 ActiveRelayMessage::GetLocalAddr(sender) => { -579 let addr = client_stream.local_addr(); -580 sender.send(addr).ok(); -581 } -582 #[cfg(test)] -583 ActiveRelayMessage::PingServer(sender) => { -584 let data = rand::random(); -585 state.test_pong = Some((data, sender)); -586 let fut = client_sink.send(ClientToRelayMsg::Ping(data)); -587 self.run_sending(fut, &mut state, &mut client_stream).await?; -588 } -589 } -590 } -591 count = self.relay_datagrams_send.recv_many( -592 &mut send_datagrams_buf, -593 SEND_DATAGRAM_BATCH_SIZE, -594 ) => { -595 if count == 0 { -596 warn!("Datagram inbox closed, shutdown"); -597 break Ok(()); -598 }; -599 self.reset_inactive_timeout(); -600 // TODO(frando): can we avoid the clone here? -601 let metrics = self.metrics.clone(); -602 let packet_iter = send_datagrams_buf.drain(..).map(|item| { -603 metrics.send_relay.inc_by(item.datagrams.contents.len() as _); -604 Ok(ClientToRelayMsg::Datagrams { -605 dst_endpoint_id: item.remote_endpoint, -606 datagrams: item.datagrams, -607 }) -608 }); -609 let mut packet_stream = n0_future::stream::iter(packet_iter); -610 let fut = client_sink.send_all(&mut packet_stream); -611 self.run_sending(fut, &mut state, &mut client_stream).await?; -612 } -613 msg = client_stream.next() => { -614 let Some(msg) = msg else { -615 break Err(e!(RunError::StreamClosedServer)); -616 }; -617 match msg { -618 Ok(msg) => { -619 self.handle_relay_msg(msg, &mut state); -620 // reset the ping timer, we have just received a message -621 ping_interval.reset(); -622 }, -623 Err(err) => break Err(e!(RunError::ClientStreamRead, err)), -624 } -625 } -626 _ = &mut self.inactive_timeout, if !self.is_home_relay => { -627 debug!("Inactive for {RELAY_INACTIVE_CLEANUP_TIME:?}, exiting (running)."); -628 break Ok(()); -629 } -630 } -631 }; -632 -633 if res.is_ok() -634 && let Err(err) = client_sink.close().await -635 { -636 debug!("Failed to close client sink gracefully: {err:#}"); -637 } +549 _ = ping_interval.tick() => { +550 let data = state.ping_tracker.new_ping(); +551 let fut = client_sink.send(ClientToRelayMsg::Ping(data)); +552 self.run_sending(fut, &mut state, &mut client_stream).await?; +553 } +554 msg = self.inbox.recv() => { +555 let Some(msg) = msg else { +556 warn!("Inbox closed, shutdown."); +557 break Ok(()); +558 }; +559 match msg { +560 ActiveRelayMessage::SetHomeRelay(is_home) => { +561 self.set_home_relay(is_home); +562 } +563 ActiveRelayMessage::CheckConnection(local_ips) => { +564 match client_stream.local_addr() { +565 Some(addr) if local_ips.contains(&addr.ip()) => { +566 let data = state.ping_tracker.new_ping(); +567 let fut = client_sink.send(ClientToRelayMsg::Ping(data)); +568 self.run_sending(fut, &mut state, &mut client_stream).await?; +569 } +570 Some(_) => break Err(e!(RunError::LocalIpInvalid)), +571 None => break Err(e!(RunError::LocalAddrMissing)), +572 } +573 } +574 #[cfg(test)] +575 ActiveRelayMessage::GetLocalAddr(sender) => { +576 let addr = client_stream.local_addr(); +577 sender.send(addr).ok(); +578 } +579 #[cfg(test)] +580 ActiveRelayMessage::PingServer(sender) => { +581 let data = rand::random(); +582 state.test_pong = Some((data, sender)); +583 let fut = client_sink.send(ClientToRelayMsg::Ping(data)); +584 self.run_sending(fut, &mut state, &mut client_stream).await?; +585 } +586 } +587 } +588 count = self.relay_datagrams_send.recv_many( +589 &mut send_datagrams_buf, +590 SEND_DATAGRAM_BATCH_SIZE, +591 ) => { +592 if count == 0 { +593 warn!("Datagram inbox closed, shutdown"); +594 break Ok(()); +595 }; +596 self.reset_inactive_timeout(); +597 // TODO(frando): can we avoid the clone here? +598 let metrics = self.metrics.clone(); +599 let packet_iter = send_datagrams_buf.drain(..).map(|item| { +600 metrics.send_relay.inc_by(item.datagrams.contents.len() as _); +601 Ok(ClientToRelayMsg::Datagrams { +602 dst_endpoint_id: item.remote_endpoint, +603 datagrams: item.datagrams, +604 }) +605 }); +606 let mut packet_stream = n0_future::stream::iter(packet_iter); +607 let fut = client_sink.send_all(&mut packet_stream); +608 self.run_sending(fut, &mut state, &mut client_stream).await?; +609 } +610 msg = client_stream.next() => { +611 let Some(msg) = msg else { +612 break Err(e!(RunError::StreamClosedServer)); +613 }; +614 match msg { +615 Ok(msg) => { +616 self.handle_relay_msg(msg, &mut state); +617 // reset the ping timer, we have just received a message +618 ping_interval.reset(); +619 }, +620 Err(err) => break Err(e!(RunError::ClientStreamRead, err)), +621 } +622 } +623 _ = &mut self.inactive_timeout, if !self.is_home_relay => { +624 debug!("Inactive for {RELAY_INACTIVE_CLEANUP_TIME:?}, exiting (running)."); +625 break Ok(()); +626 } +627 } +628 }; +629 +630 if res.is_ok() +631 && let Err(err) = client_sink.close().await +632 { +633 debug!("Failed to close client sink gracefully: {err:#}"); +634 } +635 +636 res.map_err(|err| state.map_err(err)) +637 } 638 -639 res.map_err(|err| state.map_err(err)) -640 } -641 -642 fn handle_relay_msg(&mut self, msg: RelayToClientMsg, state: &mut ConnectedRelayState) { -643 match msg { -644 RelayToClientMsg::Datagrams { -645 remote_endpoint_id, -646 datagrams, -647 } => { -648 trace!(len = datagrams.contents.len(), "received msg"); -649 // If this is a new sender, register a route for this peer. -650 if state -651 .last_packet_src -652 .as_ref() -653 .map(|p| *p != remote_endpoint_id) -654 .unwrap_or(true) -655 { -656 // Avoid map lookup with high throughput single peer. -657 state.last_packet_src = Some(remote_endpoint_id); -658 state.endpoints_present.insert(remote_endpoint_id); -659 } -660 -661 if let Err(err) = self.relay_datagrams_recv.try_send(RelayRecvDatagram { -662 url: self.url.clone(), -663 src: remote_endpoint_id, -664 datagrams, -665 }) { -666 warn!("Dropping received relay packet: {err:#}"); -667 } +639 fn handle_relay_msg(&mut self, msg: RelayToClientMsg, state: &mut ConnectedRelayState) { +640 match msg { +641 RelayToClientMsg::Datagrams { +642 remote_endpoint_id, +643 datagrams, +644 } => { +645 trace!(len = datagrams.contents.len(), "received msg"); +646 // If this is a new sender, register a route for this peer. +647 if state +648 .last_packet_src +649 .as_ref() +650 .map(|p| *p != remote_endpoint_id) +651 .unwrap_or(true) +652 { +653 // Avoid map lookup with high throughput single peer. +654 state.last_packet_src = Some(remote_endpoint_id); +655 state.endpoints_present.insert(remote_endpoint_id); +656 } +657 +658 if let Err(err) = self.relay_datagrams_recv.try_send(RelayRecvDatagram { +659 url: self.url.clone(), +660 src: remote_endpoint_id, +661 datagrams, +662 }) { +663 warn!("Dropping received relay packet: {err:#}"); +664 } +665 } +666 RelayToClientMsg::EndpointGone(endpoint_id) => { +667 state.endpoints_present.remove(&endpoint_id); 668 } -669 RelayToClientMsg::EndpointGone(endpoint_id) => { -670 state.endpoints_present.remove(&endpoint_id); -671 } -672 RelayToClientMsg::Ping(data) => state.pong_pending = Some(data), -673 RelayToClientMsg::Pong(data) => { -674 #[cfg(test)] -675 { -676 if let Some((expected_data, sender)) = state.test_pong.take() { -677 if data == expected_data { -678 sender.send(()).ok(); -679 } else { -680 state.test_pong = Some((expected_data, sender)); -681 } -682 } -683 } -684 state.ping_tracker.pong_received(data); -685 state.established = true; +669 RelayToClientMsg::Ping(data) => state.pong_pending = Some(data), +670 RelayToClientMsg::Pong(data) => { +671 #[cfg(test)] +672 { +673 if let Some((expected_data, sender)) = state.test_pong.take() { +674 if data == expected_data { +675 sender.send(()).ok(); +676 } else { +677 state.test_pong = Some((expected_data, sender)); +678 } +679 } +680 } +681 state.ping_tracker.pong_received(data); +682 state.established = true; +683 } +684 RelayToClientMsg::Health { problem } => { +685 warn!("Relay server reports problem: {problem}"); 686 } -687 RelayToClientMsg::Health { problem } => { -688 warn!("Relay server reports problem: {problem}"); +687 RelayToClientMsg::Restarting { .. } => { +688 trace!("Ignoring {msg:?}") 689 } -690 RelayToClientMsg::Restarting { .. } => { -691 trace!("Ignoring {msg:?}") -692 } -693 } -694 } -695 -696 /// Run the actor main loop while sending to the relay server. +690 } +691 } +692 +693 /// Run the actor main loop while sending to the relay server. +694 /// +695 /// While sending the actor should not read any inboxes which will give it more things +696 /// to send to the relay server. 697 /// -698 /// While sending the actor should not read any inboxes which will give it more things -699 /// to send to the relay server. -700 /// -701 /// # Returns -702 /// -703 /// On `Err` the relay connection should be disconnected. An `Ok` return means either -704 /// the actor should shut down, consult the [`ActiveRelayActor::stop_token`] and -705 /// [`ActiveRelayActor::inactive_timeout`] for this, or the send was successful. -706 #[instrument(name = "tx", skip_all)] -707 async fn run_sending<T>( -708 &mut self, -709 sending_fut: impl Future<Output = Result<T, RunError>>, -710 state: &mut ConnectedRelayState, -711 client_stream: &mut iroh_relay::client::ClientStream, -712 ) -> Result<(), RelayConnectionError> { -713 // we use the same time as for our ping interval -714 let send_timeout = PING_INTERVAL; -715 -716 let mut timeout = pin!(time::sleep(send_timeout)); -717 let mut sending_fut = pin!(sending_fut); -718 let res = loop { -719 tokio::select! { -720 biased; -721 _ = self.stop_token.cancelled() => { -722 break Ok(()); +698 /// # Returns +699 /// +700 /// On `Err` the relay connection should be disconnected. An `Ok` return means either +701 /// the actor should shut down, consult the [`ActiveRelayActor::stop_token`] and +702 /// [`ActiveRelayActor::inactive_timeout`] for this, or the send was successful. +703 #[instrument(name = "tx", skip_all)] +704 async fn run_sending<T>( +705 &mut self, +706 sending_fut: impl Future<Output = Result<T, RunError>>, +707 state: &mut ConnectedRelayState, +708 client_stream: &mut iroh_relay::client::ClientStream, +709 ) -> Result<(), RelayConnectionError> { +710 // we use the same time as for our ping interval +711 let send_timeout = PING_INTERVAL; +712 +713 let mut timeout = pin!(time::sleep(send_timeout)); +714 let mut sending_fut = pin!(sending_fut); +715 let res = loop { +716 tokio::select! { +717 biased; +718 _ = self.stop_token.cancelled() => { +719 break Ok(()); +720 } +721 _ = &mut timeout => { +722 break Err(e!(RunError::SendTimeout)); 723 } -724 _ = &mut timeout => { -725 break Err(e!(RunError::SendTimeout)); -726 } -727 msg = self.prio_inbox.recv() => { -728 let Some(msg) = msg else { -729 warn!("Priority inbox closed, shutdown."); -730 break Ok(()); -731 }; -732 match msg { -733 ActiveRelayPrioMessage::HasEndpointRoute(peer, sender) => { -734 let has_peer = state.endpoints_present.contains(&peer); -735 sender.send(has_peer).ok(); -736 } -737 } -738 } -739 res = &mut sending_fut => { -740 match res { -741 Ok(_) => break Ok(()), -742 Err(err) => break Err(err), -743 } +724 msg = self.prio_inbox.recv() => { +725 let Some(msg) = msg else { +726 warn!("Priority inbox closed, shutdown."); +727 break Ok(()); +728 }; +729 match msg { +730 ActiveRelayPrioMessage::HasEndpointRoute(peer, sender) => { +731 let has_peer = state.endpoints_present.contains(&peer); +732 sender.send(has_peer).ok(); +733 } +734 } +735 } +736 res = &mut sending_fut => { +737 match res { +738 Ok(_) => break Ok(()), +739 Err(err) => break Err(err), +740 } +741 } +742 _ = state.ping_tracker.timeout() => { +743 break Err(e!(RunError::PingTimeout)); 744 } -745 _ = state.ping_tracker.timeout() => { -746 break Err(e!(RunError::PingTimeout)); -747 } -748 // No need to read the inbox or datagrams to send. -749 msg = client_stream.next() => { -750 let Some(msg) = msg else { -751 break Err(e!(RunError::StreamClosedServer)); -752 }; -753 match msg { -754 Ok(msg) => self.handle_relay_msg(msg, state), -755 Err(err) => break Err(e!(RunError::ClientStreamRead, err)), -756 } -757 } -758 _ = &mut self.inactive_timeout, if !self.is_home_relay => { -759 debug!("Inactive for {RELAY_INACTIVE_CLEANUP_TIME:?}, exiting (sending)."); -760 break Ok(()); -761 } -762 } -763 }; -764 res.map_err(|err| state.map_err(err)) -765 } -766} -767 -768/// Shared state when the [`ActiveRelayActor`] is connected to a relay server. -769/// -770/// Common state between [`ActiveRelayActor::run_connected`] and -771/// [`ActiveRelayActor::run_sending`]. -772#[derive(Debug)] -773struct ConnectedRelayState { -774 /// Tracks pings we have sent, awaits pong replies. -775 ping_tracker: PingTracker, -776 /// Endpoints which are reachable via this relay server. -777 endpoints_present: BTreeSet<EndpointId>, -778 /// The [`EndpointId`] from whom we received the last packet. -779 /// -780 /// This is to avoid a slower lookup in the [`ConnectedRelayState::endpoints_present`] map -781 /// when we are only communicating to a single remote endpoint. -782 last_packet_src: Option<EndpointId>, -783 /// A pong we need to send ASAP. -784 pong_pending: Option<[u8; 8]>, -785 /// Whether the connection is to be considered established. -786 /// -787 /// This is set to `true` once a pong was received from the server. -788 established: bool, -789 #[cfg(test)] -790 test_pong: Option<([u8; 8], oneshot::Sender<()>)>, -791} -792 -793impl ConnectedRelayState { -794 fn map_err(&self, error: RunError) -> RelayConnectionError { -795 if self.established { -796 e!(RelayConnectionError::Established, error) -797 } else { -798 e!(RelayConnectionError::Handshake, error) -799 } -800 } -801} -802 -803pub(super) enum RelayActorMessage { -804 MaybeCloseRelaysOnRebind, -805 NetworkChange { report: Report }, -806} -807 -808#[derive(Debug, Clone)] -809pub(crate) struct RelaySendItem { -810 /// The destination for the datagrams. -811 pub(crate) remote_endpoint: EndpointId, -812 /// The home relay of the remote endpoint. -813 pub(crate) url: RelayUrl, -814 /// One or more datagrams to send. -815 pub(crate) datagrams: Datagrams, -816} -817 -818pub(super) struct RelayActor { -819 config: Config, -820 /// Queue on which to put received datagrams. -821 relay_datagram_recv_queue: mpsc::Sender<RelayRecvDatagram>, -822 /// The actors managing each currently used relay server. -823 /// -824 /// These actors will exit when they have any inactivity. Otherwise they will keep -825 /// trying to maintain a connection to the relay server as needed. -826 active_relays: BTreeMap<RelayUrl, ActiveRelayHandle>, -827 /// The tasks for the [`ActiveRelayActor`]s in `active_relays` above. -828 active_relay_tasks: JoinSet<()>, -829 cancel_token: CancellationToken, -830} -831 -832#[derive(Debug, Clone)] -833pub struct Config { -834 pub my_relay: Watchable<Option<RelayUrl>>, -835 pub secret_key: SecretKey, -836 #[cfg(not(wasm_browser))] -837 pub dns_resolver: DnsResolver, -838 /// Proxy -839 pub proxy_url: Option<Url>, -840 /// If the last net_report report, reports IPv6 to be available. -841 pub ipv6_reported: Arc<AtomicBool>, -842 #[cfg(any(test, feature = "test-utils"))] -843 pub insecure_skip_relay_cert_verify: bool, -844 pub metrics: Arc<SocketMetrics>, -845} -846 -847impl RelayActor { -848 pub(super) fn new( -849 config: Config, -850 relay_datagram_recv_queue: mpsc::Sender<RelayRecvDatagram>, -851 cancel_token: CancellationToken, -852 ) -> Self { -853 Self { -854 config, -855 relay_datagram_recv_queue, -856 active_relays: Default::default(), -857 active_relay_tasks: JoinSet::new(), -858 cancel_token, -859 } -860 } -861 -862 pub(super) async fn run( -863 mut self, -864 mut receiver: mpsc::Receiver<RelayActorMessage>, -865 mut datagram_send_channel: mpsc::Receiver<RelaySendItem>, -866 ) { -867 // When this future is present, it is sending pending datagrams to an -868 // ActiveRelayActor. We can not process further datagrams during this time. -869 let mut datagram_send_fut = std::pin::pin!(MaybeFuture::none()); -870 -871 loop { -872 tokio::select! { -873 biased; -874 _ = self.cancel_token.cancelled() => { -875 debug!("shutting down"); -876 break; -877 } -878 Some(res) = self.active_relay_tasks.join_next() => { -879 match res { -880 Ok(()) => (), -881 Err(err) if err.is_panic() => { -882 error!("ActiveRelayActor task panicked: {err:#?}"); -883 } -884 Err(err) if err.is_cancelled() => { -885 error!("ActiveRelayActor cancelled: {err:#?}"); -886 } -887 Err(err) => error!("ActiveRelayActor failed: {err:#?}"), -888 } -889 self.reap_active_relays(); -890 } -891 msg = receiver.recv() => { -892 let Some(msg) = msg else { -893 debug!("Inbox dropped, shutting down."); -894 break; -895 }; -896 let cancel_token = self.cancel_token.child_token(); -897 cancel_token.run_until_cancelled(self.handle_msg(msg)).await; -898 } -899 // Only poll for new datagrams if we are not blocked on sending them. -900 item = datagram_send_channel.recv(), if datagram_send_fut.is_none() => { -901 let Some(item) = item else { -902 debug!("Datagram send channel dropped, shutting down."); -903 break; -904 }; -905 let token = self.cancel_token.child_token(); -906 if let Some(Some(fut)) = token.run_until_cancelled( -907 self.try_send_datagram(item) -908 ).await { -909 datagram_send_fut.as_mut().set_future(fut); -910 } +745 // No need to read the inbox or datagrams to send. +746 msg = client_stream.next() => { +747 let Some(msg) = msg else { +748 break Err(e!(RunError::StreamClosedServer)); +749 }; +750 match msg { +751 Ok(msg) => self.handle_relay_msg(msg, state), +752 Err(err) => break Err(e!(RunError::ClientStreamRead, err)), +753 } +754 } +755 _ = &mut self.inactive_timeout, if !self.is_home_relay => { +756 debug!("Inactive for {RELAY_INACTIVE_CLEANUP_TIME:?}, exiting (sending)."); +757 break Ok(()); +758 } +759 } +760 }; +761 res.map_err(|err| state.map_err(err)) +762 } +763} +764 +765/// Shared state when the [`ActiveRelayActor`] is connected to a relay server. +766/// +767/// Common state between [`ActiveRelayActor::run_connected`] and +768/// [`ActiveRelayActor::run_sending`]. +769#[derive(Debug)] +770struct ConnectedRelayState { +771 /// Tracks pings we have sent, awaits pong replies. +772 ping_tracker: PingTracker, +773 /// Endpoints which are reachable via this relay server. +774 endpoints_present: BTreeSet<EndpointId>, +775 /// The [`EndpointId`] from whom we received the last packet. +776 /// +777 /// This is to avoid a slower lookup in the [`ConnectedRelayState::endpoints_present`] map +778 /// when we are only communicating to a single remote endpoint. +779 last_packet_src: Option<EndpointId>, +780 /// A pong we need to send ASAP. +781 pong_pending: Option<[u8; 8]>, +782 /// Whether the connection is to be considered established. +783 /// +784 /// This is set to `true` once a pong was received from the server. +785 established: bool, +786 #[cfg(test)] +787 test_pong: Option<([u8; 8], oneshot::Sender<()>)>, +788} +789 +790impl ConnectedRelayState { +791 fn map_err(&self, error: RunError) -> RelayConnectionError { +792 if self.established { +793 e!(RelayConnectionError::Established, error) +794 } else { +795 e!(RelayConnectionError::Handshake, error) +796 } +797 } +798} +799 +800pub(super) enum RelayActorMessage { +801 MaybeCloseRelaysOnRebind, +802 NetworkChange { report: Report }, +803} +804 +805#[derive(Debug, Clone)] +806pub(crate) struct RelaySendItem { +807 /// The destination for the datagrams. +808 pub(crate) remote_endpoint: EndpointId, +809 /// The home relay of the remote endpoint. +810 pub(crate) url: RelayUrl, +811 /// One or more datagrams to send. +812 pub(crate) datagrams: Datagrams, +813} +814 +815pub(super) struct RelayActor { +816 config: Config, +817 /// Queue on which to put received datagrams. +818 relay_datagram_recv_queue: mpsc::Sender<RelayRecvDatagram>, +819 /// The actors managing each currently used relay server. +820 /// +821 /// These actors will exit when they have any inactivity. Otherwise they will keep +822 /// trying to maintain a connection to the relay server as needed. +823 active_relays: BTreeMap<RelayUrl, ActiveRelayHandle>, +824 /// The tasks for the [`ActiveRelayActor`]s in `active_relays` above. +825 active_relay_tasks: JoinSet<()>, +826 cancel_token: CancellationToken, +827} +828 +829#[derive(Debug, Clone)] +830pub struct Config { +831 pub my_relay: Watchable<Option<RelayUrl>>, +832 pub secret_key: SecretKey, +833 #[cfg(not(wasm_browser))] +834 pub dns_resolver: DnsResolver, +835 /// Proxy +836 pub proxy_url: Option<Url>, +837 /// If the last net_report report, reports IPv6 to be available. +838 pub ipv6_reported: Arc<AtomicBool>, +839 pub tls_config: rustls::ClientConfig, +840 pub metrics: Arc<SocketMetrics>, +841} +842 +843impl RelayActor { +844 pub(super) fn new( +845 config: Config, +846 relay_datagram_recv_queue: mpsc::Sender<RelayRecvDatagram>, +847 cancel_token: CancellationToken, +848 ) -> Self { +849 Self { +850 config, +851 relay_datagram_recv_queue, +852 active_relays: Default::default(), +853 active_relay_tasks: JoinSet::new(), +854 cancel_token, +855 } +856 } +857 +858 pub(super) async fn run( +859 mut self, +860 mut receiver: mpsc::Receiver<RelayActorMessage>, +861 mut datagram_send_channel: mpsc::Receiver<RelaySendItem>, +862 ) { +863 // When this future is present, it is sending pending datagrams to an +864 // ActiveRelayActor. We can not process further datagrams during this time. +865 let mut datagram_send_fut = std::pin::pin!(MaybeFuture::none()); +866 +867 loop { +868 tokio::select! { +869 biased; +870 _ = self.cancel_token.cancelled() => { +871 debug!("shutting down"); +872 break; +873 } +874 Some(res) = self.active_relay_tasks.join_next() => { +875 match res { +876 Ok(()) => (), +877 Err(err) if err.is_panic() => { +878 error!("ActiveRelayActor task panicked: {err:#?}"); +879 } +880 Err(err) if err.is_cancelled() => { +881 error!("ActiveRelayActor cancelled: {err:#?}"); +882 } +883 Err(err) => error!("ActiveRelayActor failed: {err:#?}"), +884 } +885 self.reap_active_relays(); +886 } +887 msg = receiver.recv() => { +888 let Some(msg) = msg else { +889 debug!("Inbox dropped, shutting down."); +890 break; +891 }; +892 let cancel_token = self.cancel_token.child_token(); +893 cancel_token.run_until_cancelled(self.handle_msg(msg)).await; +894 } +895 // Only poll for new datagrams if we are not blocked on sending them. +896 item = datagram_send_channel.recv(), if datagram_send_fut.is_none() => { +897 let Some(item) = item else { +898 debug!("Datagram send channel dropped, shutting down."); +899 break; +900 }; +901 let token = self.cancel_token.child_token(); +902 if let Some(Some(fut)) = token.run_until_cancelled( +903 self.try_send_datagram(item) +904 ).await { +905 datagram_send_fut.as_mut().set_future(fut); +906 } +907 } +908 // Only poll this future if it is in use. +909 _ = &mut datagram_send_fut, if datagram_send_fut.is_some() => { +910 datagram_send_fut.as_mut().set_none(); 911 } -912 // Only poll this future if it is in use. -913 _ = &mut datagram_send_fut, if datagram_send_fut.is_some() => { -914 datagram_send_fut.as_mut().set_none(); -915 } -916 } -917 } -918 -919 // try shutdown -920 if time::timeout(Duration::from_secs(3), self.close_all_active_relays()) -921 .await -922 .is_err() -923 { -924 warn!("Failed to shut down all ActiveRelayActors"); -925 } -926 } -927 -928 async fn handle_msg(&mut self, msg: RelayActorMessage) { -929 match msg { -930 RelayActorMessage::NetworkChange { report } => { -931 self.on_network_change(report).await; -932 } -933 RelayActorMessage::MaybeCloseRelaysOnRebind => { -934 self.maybe_close_relays_on_rebind().await; -935 } -936 } -937 } -938 -939 /// Sends datagrams to the correct [`ActiveRelayActor`], or returns a future. -940 /// -941 /// If the datagram can not be sent immediately, because the destination channel is -942 /// full, a future is returned that will complete once the datagrams have been sent to -943 /// the [`ActiveRelayActor`]. -944 async fn try_send_datagram( -945 &mut self, -946 item: RelaySendItem, -947 ) -> Option<impl Future<Output = ()> + use<>> { -948 let url = item.url.clone(); -949 let handle = self -950 .active_relay_handle_for_endpoint(&item.url, &item.remote_endpoint) -951 .await; -952 match handle.datagrams_send_queue.try_send(item) { -953 Ok(()) => None, -954 Err(mpsc::error::TrySendError::Closed(_)) => { -955 warn!(?url, "Dropped datagram(s): ActiveRelayActor closed."); -956 None -957 } -958 Err(mpsc::error::TrySendError::Full(item)) => { -959 let sender = handle.datagrams_send_queue.clone(); -960 let fut = async move { -961 if sender.send(item).await.is_err() { -962 warn!(?url, "Dropped datagram(s): ActiveRelayActor closed."); -963 } -964 }; -965 Some(fut) -966 } -967 } -968 } -969 -970 async fn on_network_change(&mut self, report: Report) { -971 let my_relay = self.config.my_relay.get(); -972 if report.preferred_relay == my_relay { -973 // No change. -974 return; -975 } -976 let old_relay = self -977 .config -978 .my_relay -979 .set(report.preferred_relay.clone()) -980 .unwrap_or_else(|e| e); -981 -982 if let Some(relay_url) = report.preferred_relay { -983 self.config.metrics.relay_home_change.inc(); -984 -985 // On change, notify all currently connected relay servers and -986 // start connecting to our home relay if we are not already. -987 info!("home is now relay {}, was {:?}", relay_url, old_relay); -988 self.set_home_relay(relay_url).await; -989 } -990 } -991 -992 async fn set_home_relay(&mut self, home_url: RelayUrl) { -993 let home_url_ref = &home_url; -994 n0_future::join_all(self.active_relays.iter().map(|(url, handle)| async move { -995 let is_preferred = url == home_url_ref; -996 handle -997 .inbox_addr -998 .send(ActiveRelayMessage::SetHomeRelay(is_preferred)) -999 .await -1000 .ok() -1001 })) -1002 .await; -1003 // Ensure we have an ActiveRelayActor for the current home relay. -1004 self.active_relay_handle(home_url); -1005 } -1006 -1007 /// Returns the handle for the [`ActiveRelayActor`] to reach `remote_endpoint`. -1008 /// -1009 /// The endpoint is expected to be reachable on `url`, but if no [`ActiveRelayActor`] for -1010 /// `url` exists but another existing [`ActiveRelayActor`] already knows about the endpoint, -1011 /// that other endpoint is used. -1012 async fn active_relay_handle_for_endpoint( -1013 &mut self, -1014 url: &RelayUrl, -1015 remote_endpoint: &EndpointId, -1016 ) -> ActiveRelayHandle { -1017 if let Some(handle) = self.active_relays.get(url) { -1018 return handle.clone(); -1019 } -1020 -1021 let mut found_relay: Option<RelayUrl> = None; -1022 // If we don't have an open connection to the remote endpoint's home relay, see if -1023 // we have an open connection to a relay endpoint where we'd heard from that peer -1024 // already. E.g. maybe they dialed our home relay recently. -1025 { -1026 // Futures which return Some(RelayUrl) if the relay knows about the remote endpoint. -1027 let check_futs = self.active_relays.iter().map(|(url, handle)| async move { -1028 let (tx, rx) = oneshot::channel(); -1029 handle -1030 .prio_inbox_addr -1031 .send(ActiveRelayPrioMessage::HasEndpointRoute( -1032 *remote_endpoint, -1033 tx, -1034 )) -1035 .await -1036 .ok(); -1037 match rx.await { -1038 Ok(true) => Some(url.clone()), -1039 _ => None, -1040 } -1041 }); -1042 let mut futures = FuturesUnorderedBounded::from_iter(check_futs); -1043 while let Some(maybe_url) = futures.next().await { -1044 if maybe_url.is_some() { -1045 found_relay = maybe_url; -1046 break; -1047 } -1048 } -1049 } -1050 let url = found_relay.unwrap_or(url.clone()); -1051 self.active_relay_handle(url) -1052 } -1053 -1054 /// Returns the handle of the [`ActiveRelayActor`]. -1055 fn active_relay_handle(&mut self, url: RelayUrl) -> ActiveRelayHandle { -1056 match self.active_relays.get(&url) { -1057 Some(e) => e.clone(), -1058 None => { -1059 let handle = self.start_active_relay(url.clone()); -1060 if Some(&url) == self.config.my_relay.get().as_ref() -1061 && let Err(err) = handle -1062 .inbox_addr -1063 .try_send(ActiveRelayMessage::SetHomeRelay(true)) -1064 { -1065 error!("Home relay not set, send to new actor failed: {err:#}."); -1066 } -1067 self.active_relays.insert(url, handle.clone()); -1068 self.log_active_relay(); -1069 handle -1070 } -1071 } -1072 } -1073 -1074 fn start_active_relay(&mut self, url: RelayUrl) -> ActiveRelayHandle { -1075 debug!(?url, "Adding relay connection"); -1076 -1077 let connection_opts = RelayConnectionOptions { -1078 secret_key: self.config.secret_key.clone(), -1079 #[cfg(not(wasm_browser))] -1080 dns_resolver: self.config.dns_resolver.clone(), -1081 proxy_url: self.config.proxy_url.clone(), -1082 prefer_ipv6: self.config.ipv6_reported.clone(), -1083 #[cfg(any(test, feature = "test-utils"))] -1084 insecure_skip_cert_verify: self.config.insecure_skip_relay_cert_verify, -1085 }; -1086 -1087 // TODO: Replace 64 with PER_CLIENT_SEND_QUEUE_DEPTH once that's unused -1088 let (send_datagram_tx, send_datagram_rx) = mpsc::channel(64); -1089 let (prio_inbox_tx, prio_inbox_rx) = mpsc::channel(32); -1090 let (inbox_tx, inbox_rx) = mpsc::channel(64); -1091 let span = info_span!("active-relay", %url); -1092 let opts = ActiveRelayActorOptions { -1093 url, -1094 prio_inbox_: prio_inbox_rx, -1095 inbox: inbox_rx, -1096 relay_datagrams_send: send_datagram_rx, -1097 relay_datagrams_recv: self.relay_datagram_recv_queue.clone(), -1098 connection_opts, -1099 stop_token: self.cancel_token.child_token(), -1100 metrics: self.config.metrics.clone(), -1101 }; -1102 let actor = ActiveRelayActor::new(opts); -1103 self.active_relay_tasks.spawn( -1104 async move { -1105 actor.run().await; -1106 } -1107 .instrument(span), -1108 ); -1109 let handle = ActiveRelayHandle { -1110 prio_inbox_addr: prio_inbox_tx, -1111 inbox_addr: inbox_tx, -1112 datagrams_send_queue: send_datagram_tx, -1113 }; -1114 self.log_active_relay(); -1115 handle -1116 } -1117 -1118 /// Closes the relay connections not originating from a local IP address. -1119 /// -1120 /// Called in response to a rebind, any relay connection originating from an address -1121 /// that's not known to be currently a local IP address should be closed. All the other -1122 /// relay connections are pinged. -1123 async fn maybe_close_relays_on_rebind(&mut self) { -1124 #[cfg(not(wasm_browser))] -1125 let ifs = interfaces::State::new().await; -1126 #[cfg(not(wasm_browser))] -1127 let local_ips: Vec<_> = ifs -1128 .interfaces -1129 .values() -1130 .flat_map(|netif| netif.addrs()) -1131 .map(|ipnet| ipnet.addr()) -1132 .collect(); -1133 // In browsers, we don't have this information. This will do the right thing in the ActiveRelayActor, though. -1134 #[cfg(wasm_browser)] -1135 let local_ips = Vec::new(); -1136 let send_futs = self.active_relays.values().map(|handle| { -1137 let local_ips = local_ips.clone(); -1138 async move { -1139 handle -1140 .inbox_addr -1141 .send(ActiveRelayMessage::CheckConnection(local_ips)) -1142 .await -1143 .ok(); -1144 } -1145 }); -1146 n0_future::join_all(send_futs).await; -1147 self.log_active_relay(); -1148 } +912 } +913 } +914 +915 // try shutdown +916 if time::timeout(Duration::from_secs(3), self.close_all_active_relays()) +917 .await +918 .is_err() +919 { +920 warn!("Failed to shut down all ActiveRelayActors"); +921 } +922 } +923 +924 async fn handle_msg(&mut self, msg: RelayActorMessage) { +925 match msg { +926 RelayActorMessage::NetworkChange { report } => { +927 self.on_network_change(report).await; +928 } +929 RelayActorMessage::MaybeCloseRelaysOnRebind => { +930 self.maybe_close_relays_on_rebind().await; +931 } +932 } +933 } +934 +935 /// Sends datagrams to the correct [`ActiveRelayActor`], or returns a future. +936 /// +937 /// If the datagram can not be sent immediately, because the destination channel is +938 /// full, a future is returned that will complete once the datagrams have been sent to +939 /// the [`ActiveRelayActor`]. +940 async fn try_send_datagram( +941 &mut self, +942 item: RelaySendItem, +943 ) -> Option<impl Future<Output = ()> + use<>> { +944 let url = item.url.clone(); +945 let handle = self +946 .active_relay_handle_for_endpoint(&item.url, &item.remote_endpoint) +947 .await; +948 match handle.datagrams_send_queue.try_send(item) { +949 Ok(()) => None, +950 Err(mpsc::error::TrySendError::Closed(_)) => { +951 warn!(?url, "Dropped datagram(s): ActiveRelayActor closed."); +952 None +953 } +954 Err(mpsc::error::TrySendError::Full(item)) => { +955 let sender = handle.datagrams_send_queue.clone(); +956 let fut = async move { +957 if sender.send(item).await.is_err() { +958 warn!(?url, "Dropped datagram(s): ActiveRelayActor closed."); +959 } +960 }; +961 Some(fut) +962 } +963 } +964 } +965 +966 async fn on_network_change(&mut self, report: Report) { +967 let my_relay = self.config.my_relay.get(); +968 if report.preferred_relay == my_relay { +969 // No change. +970 return; +971 } +972 let old_relay = self +973 .config +974 .my_relay +975 .set(report.preferred_relay.clone()) +976 .unwrap_or_else(|e| e); +977 +978 if let Some(relay_url) = report.preferred_relay { +979 self.config.metrics.relay_home_change.inc(); +980 +981 // On change, notify all currently connected relay servers and +982 // start connecting to our home relay if we are not already. +983 info!("home is now relay {}, was {:?}", relay_url, old_relay); +984 self.set_home_relay(relay_url).await; +985 } +986 } +987 +988 async fn set_home_relay(&mut self, home_url: RelayUrl) { +989 let home_url_ref = &home_url; +990 n0_future::join_all(self.active_relays.iter().map(|(url, handle)| async move { +991 let is_preferred = url == home_url_ref; +992 handle +993 .inbox_addr +994 .send(ActiveRelayMessage::SetHomeRelay(is_preferred)) +995 .await +996 .ok() +997 })) +998 .await; +999 // Ensure we have an ActiveRelayActor for the current home relay. +1000 self.active_relay_handle(home_url); +1001 } +1002 +1003 /// Returns the handle for the [`ActiveRelayActor`] to reach `remote_endpoint`. +1004 /// +1005 /// The endpoint is expected to be reachable on `url`, but if no [`ActiveRelayActor`] for +1006 /// `url` exists but another existing [`ActiveRelayActor`] already knows about the endpoint, +1007 /// that other endpoint is used. +1008 async fn active_relay_handle_for_endpoint( +1009 &mut self, +1010 url: &RelayUrl, +1011 remote_endpoint: &EndpointId, +1012 ) -> ActiveRelayHandle { +1013 if let Some(handle) = self.active_relays.get(url) { +1014 return handle.clone(); +1015 } +1016 +1017 let mut found_relay: Option<RelayUrl> = None; +1018 // If we don't have an open connection to the remote endpoint's home relay, see if +1019 // we have an open connection to a relay endpoint where we'd heard from that peer +1020 // already. E.g. maybe they dialed our home relay recently. +1021 { +1022 // Futures which return Some(RelayUrl) if the relay knows about the remote endpoint. +1023 let check_futs = self.active_relays.iter().map(|(url, handle)| async move { +1024 let (tx, rx) = oneshot::channel(); +1025 handle +1026 .prio_inbox_addr +1027 .send(ActiveRelayPrioMessage::HasEndpointRoute( +1028 *remote_endpoint, +1029 tx, +1030 )) +1031 .await +1032 .ok(); +1033 match rx.await { +1034 Ok(true) => Some(url.clone()), +1035 _ => None, +1036 } +1037 }); +1038 let mut futures = FuturesUnorderedBounded::from_iter(check_futs); +1039 while let Some(maybe_url) = futures.next().await { +1040 if maybe_url.is_some() { +1041 found_relay = maybe_url; +1042 break; +1043 } +1044 } +1045 } +1046 let url = found_relay.unwrap_or(url.clone()); +1047 self.active_relay_handle(url) +1048 } +1049 +1050 /// Returns the handle of the [`ActiveRelayActor`]. +1051 fn active_relay_handle(&mut self, url: RelayUrl) -> ActiveRelayHandle { +1052 match self.active_relays.get(&url) { +1053 Some(e) => e.clone(), +1054 None => { +1055 let handle = self.start_active_relay(url.clone()); +1056 if Some(&url) == self.config.my_relay.get().as_ref() +1057 && let Err(err) = handle +1058 .inbox_addr +1059 .try_send(ActiveRelayMessage::SetHomeRelay(true)) +1060 { +1061 error!("Home relay not set, send to new actor failed: {err:#}."); +1062 } +1063 self.active_relays.insert(url, handle.clone()); +1064 self.log_active_relay(); +1065 handle +1066 } +1067 } +1068 } +1069 +1070 fn start_active_relay(&mut self, url: RelayUrl) -> ActiveRelayHandle { +1071 debug!(?url, "Adding relay connection"); +1072 +1073 let connection_opts = RelayConnectionOptions { +1074 secret_key: self.config.secret_key.clone(), +1075 #[cfg(not(wasm_browser))] +1076 dns_resolver: self.config.dns_resolver.clone(), +1077 proxy_url: self.config.proxy_url.clone(), +1078 prefer_ipv6: self.config.ipv6_reported.clone(), +1079 tls_config: self.config.tls_config.clone(), +1080 }; +1081 +1082 // TODO: Replace 64 with PER_CLIENT_SEND_QUEUE_DEPTH once that's unused +1083 let (send_datagram_tx, send_datagram_rx) = mpsc::channel(64); +1084 let (prio_inbox_tx, prio_inbox_rx) = mpsc::channel(32); +1085 let (inbox_tx, inbox_rx) = mpsc::channel(64); +1086 let span = info_span!("active-relay", %url); +1087 let opts = ActiveRelayActorOptions { +1088 url, +1089 prio_inbox_: prio_inbox_rx, +1090 inbox: inbox_rx, +1091 relay_datagrams_send: send_datagram_rx, +1092 relay_datagrams_recv: self.relay_datagram_recv_queue.clone(), +1093 connection_opts, +1094 stop_token: self.cancel_token.child_token(), +1095 metrics: self.config.metrics.clone(), +1096 }; +1097 let actor = ActiveRelayActor::new(opts); +1098 self.active_relay_tasks.spawn( +1099 async move { +1100 actor.run().await; +1101 } +1102 .instrument(span), +1103 ); +1104 let handle = ActiveRelayHandle { +1105 prio_inbox_addr: prio_inbox_tx, +1106 inbox_addr: inbox_tx, +1107 datagrams_send_queue: send_datagram_tx, +1108 }; +1109 self.log_active_relay(); +1110 handle +1111 } +1112 +1113 /// Closes the relay connections not originating from a local IP address. +1114 /// +1115 /// Called in response to a rebind, any relay connection originating from an address +1116 /// that's not known to be currently a local IP address should be closed. All the other +1117 /// relay connections are pinged. +1118 async fn maybe_close_relays_on_rebind(&mut self) { +1119 #[cfg(not(wasm_browser))] +1120 let ifs = interfaces::State::new().await; +1121 #[cfg(not(wasm_browser))] +1122 let local_ips: Vec<_> = ifs +1123 .interfaces +1124 .values() +1125 .flat_map(|netif| netif.addrs()) +1126 .map(|ipnet| ipnet.addr()) +1127 .collect(); +1128 // In browsers, we don't have this information. This will do the right thing in the ActiveRelayActor, though. +1129 #[cfg(wasm_browser)] +1130 let local_ips = Vec::new(); +1131 let send_futs = self.active_relays.values().map(|handle| { +1132 let local_ips = local_ips.clone(); +1133 async move { +1134 handle +1135 .inbox_addr +1136 .send(ActiveRelayMessage::CheckConnection(local_ips)) +1137 .await +1138 .ok(); +1139 } +1140 }); +1141 n0_future::join_all(send_futs).await; +1142 self.log_active_relay(); +1143 } +1144 +1145 /// Cleans up [`ActiveRelayActor`]s which have stopped running. +1146 fn reap_active_relays(&mut self) { +1147 self.active_relays +1148 .retain(|_url, handle| !handle.inbox_addr.is_closed()); 1149 -1150 /// Cleans up [`ActiveRelayActor`]s which have stopped running. -1151 fn reap_active_relays(&mut self) { -1152 self.active_relays -1153 .retain(|_url, handle| !handle.inbox_addr.is_closed()); -1154 -1155 // Make sure home relay exists -1156 if let Some(url) = self.config.my_relay.get() { -1157 self.active_relay_handle(url); -1158 } -1159 self.log_active_relay(); -1160 } -1161 -1162 /// Stops all [`ActiveRelayActor`]s and awaits for them to finish. -1163 async fn close_all_active_relays(&mut self) { -1164 self.cancel_token.cancel(); -1165 let tasks = std::mem::take(&mut self.active_relay_tasks); -1166 tasks.join_all().await; -1167 -1168 self.log_active_relay(); -1169 } -1170 -1171 fn log_active_relay(&self) { -1172 debug!("{} active relay conns{}", self.active_relays.len(), { -1173 let mut s = String::new(); -1174 if !self.active_relays.is_empty() { -1175 s += ":"; -1176 for endpoint in self.active_relay_sorted() { -1177 s += &format!(" relay-{endpoint}"); -1178 } -1179 } -1180 s -1181 }); -1182 } -1183 -1184 fn active_relay_sorted(&self) -> impl Iterator<Item = RelayUrl> + use<> { -1185 let mut ids: Vec<_> = self.active_relays.keys().cloned().collect(); -1186 ids.sort(); -1187 -1188 ids.into_iter() -1189 } -1190} -1191 -1192/// Handle to one [`ActiveRelayActor`]. -1193#[derive(Debug, Clone)] -1194struct ActiveRelayHandle { -1195 prio_inbox_addr: mpsc::Sender<ActiveRelayPrioMessage>, -1196 inbox_addr: mpsc::Sender<ActiveRelayMessage>, -1197 datagrams_send_queue: mpsc::Sender<RelaySendItem>, -1198} -1199 -1200/// A single datagram received from a relay server. -1201/// -1202/// This could be either a QUIC or DISCO packet. -1203#[derive(Debug)] -1204pub(crate) struct RelayRecvDatagram { -1205 pub(crate) url: RelayUrl, -1206 pub(crate) src: EndpointId, -1207 pub(crate) datagrams: Datagrams, -1208} -1209 -1210#[cfg(test)] -1211mod tests { -1212 use std::{ -1213 sync::{Arc, atomic::AtomicBool}, -1214 time::Duration, -1215 }; -1216 -1217 use iroh_base::{EndpointId, RelayUrl, SecretKey}; -1218 use iroh_relay::{PingTracker, protos::relay::Datagrams}; -1219 use n0_error::{AnyError as Error, Result, StackResultExt, StdResultExt}; -1220 use n0_tracing_test::traced_test; -1221 use tokio::sync::{mpsc, oneshot}; -1222 use tokio_util::{sync::CancellationToken, task::AbortOnDropHandle}; -1223 use tracing::{Instrument, info, info_span}; -1224 -1225 use super::{ -1226 ActiveRelayActor, ActiveRelayActorOptions, ActiveRelayMessage, ActiveRelayPrioMessage, -1227 RELAY_INACTIVE_CLEANUP_TIME, RelayConnectionOptions, RelayRecvDatagram, RelaySendItem, -1228 UNDELIVERABLE_DATAGRAM_TIMEOUT, -1229 }; -1230 use crate::{dns::DnsResolver, test_utils}; -1231 -1232 /// Starts a new [`ActiveRelayActor`]. -1233 #[allow(clippy::too_many_arguments)] -1234 fn start_active_relay_actor( -1235 secret_key: SecretKey, -1236 stop_token: CancellationToken, -1237 url: RelayUrl, -1238 prio_inbox_rx: mpsc::Receiver<ActiveRelayPrioMessage>, -1239 inbox_rx: mpsc::Receiver<ActiveRelayMessage>, -1240 relay_datagrams_send: mpsc::Receiver<RelaySendItem>, -1241 relay_datagrams_recv: mpsc::Sender<RelayRecvDatagram>, -1242 span: tracing::Span, -1243 ) -> AbortOnDropHandle<()> { -1244 let opts = ActiveRelayActorOptions { -1245 url, -1246 prio_inbox_: prio_inbox_rx, -1247 inbox: inbox_rx, -1248 relay_datagrams_send, -1249 relay_datagrams_recv, -1250 connection_opts: RelayConnectionOptions { -1251 secret_key, -1252 dns_resolver: DnsResolver::new(), -1253 proxy_url: None, -1254 prefer_ipv6: Arc::new(AtomicBool::new(true)), -1255 insecure_skip_cert_verify: true, -1256 }, -1257 stop_token, -1258 metrics: Default::default(), -1259 }; -1260 let task = tokio::spawn(ActiveRelayActor::new(opts).run().instrument(span)); -1261 AbortOnDropHandle::new(task) -1262 } -1263 -1264 /// Starts an [`ActiveRelayActor`] as an "iroh echo endpoint". -1265 /// -1266 /// This actor will connect to the relay server, pretending to be an iroh endpoint, and echo -1267 /// back any datagram it receives from the relay. This is used by the -1268 /// [`ActiveRelayActor`] under test to check connectivity works. -1269 fn start_echo_endpoint(relay_url: RelayUrl) -> (EndpointId, AbortOnDropHandle<()>) { -1270 let secret_key = SecretKey::from_bytes(&[8u8; 32]); -1271 let (recv_datagram_tx, mut recv_datagram_rx) = mpsc::channel(16); -1272 let (send_datagram_tx, send_datagram_rx) = mpsc::channel(16); -1273 let (prio_inbox_tx, prio_inbox_rx) = mpsc::channel(8); -1274 let (inbox_tx, inbox_rx) = mpsc::channel(16); -1275 let cancel_token = CancellationToken::new(); -1276 let actor_task = start_active_relay_actor( -1277 secret_key.clone(), -1278 cancel_token.clone(), -1279 relay_url.clone(), -1280 prio_inbox_rx, -1281 inbox_rx, -1282 send_datagram_rx, -1283 recv_datagram_tx, -1284 info_span!("echo-endpoint"), -1285 ); -1286 let echo_task = tokio::spawn({ -1287 let relay_url = relay_url.clone(); -1288 async move { -1289 loop { -1290 let datagram = recv_datagram_rx.recv().await; -1291 if let Some(recv) = datagram { -1292 let RelayRecvDatagram { -1293 url: _, -1294 src, -1295 datagrams, -1296 } = recv; -1297 info!(from = %src.fmt_short(), "Received datagram"); -1298 let send = RelaySendItem { -1299 remote_endpoint: src, -1300 url: relay_url.clone(), -1301 datagrams, -1302 }; -1303 send_datagram_tx.send(send).await.ok(); -1304 } -1305 } -1306 } -1307 .instrument(info_span!("echo-task")) -1308 }); -1309 let echo_task = AbortOnDropHandle::new(echo_task); -1310 let supervisor_task = tokio::spawn(async move { -1311 let _guard = cancel_token.drop_guard(); -1312 // move the inboxes here so it is not dropped, as this stops the actor. -1313 let _prio_inbox_tx = prio_inbox_tx; -1314 let _inbox_tx = inbox_tx; -1315 tokio::select! { -1316 biased; -1317 _ = actor_task => (), -1318 _ = echo_task => (), -1319 }; -1320 }); -1321 let supervisor_task = AbortOnDropHandle::new(supervisor_task); -1322 (secret_key.public(), supervisor_task) -1323 } -1324 -1325 /// Sends a message to the echo endpoint, receives the response. -1326 /// -1327 /// This takes care of retry and timeout. Because we don't know when both the -1328 /// endpoint-under-test and the echo endpoint will be ready and datagrams aren't queued to send -1329 /// forever, we have to retry a few times. -1330 async fn send_recv_echo( -1331 item: RelaySendItem, -1332 tx: &mpsc::Sender<RelaySendItem>, -1333 rx: &mut mpsc::Receiver<RelayRecvDatagram>, -1334 ) -> Result<()> { -1335 tokio::time::timeout(Duration::from_secs(10), async move { -1336 loop { -1337 let res = tokio::time::timeout(UNDELIVERABLE_DATAGRAM_TIMEOUT, async { -1338 tx.send(item.clone()).await.std_context("send item")?; -1339 let RelayRecvDatagram { -1340 url: _, -1341 src: _, -1342 datagrams, -1343 } = rx.recv().await.unwrap(); -1344 -1345 assert_eq!(datagrams, item.datagrams); -1346 -1347 Ok::<_, Error>(()) -1348 }) -1349 .await; -1350 if res.is_ok() { -1351 break; -1352 } -1353 } -1354 }) -1355 .await -1356 .expect("overall timeout exceeded"); -1357 Ok(()) -1358 } -1359 -1360 #[tokio::test] -1361 #[traced_test] -1362 async fn test_active_relay_reconnect() -> Result { -1363 let (_relay_map, relay_url, _server) = test_utils::run_relay_server().await?; -1364 let (peer_endpoint, _echo_endpoint_task) = start_echo_endpoint(relay_url.clone()); -1365 -1366 let secret_key = SecretKey::from_bytes(&[1u8; 32]); -1367 let (datagram_recv_tx, mut datagram_recv_rx) = mpsc::channel(16); -1368 let (send_datagram_tx, send_datagram_rx) = mpsc::channel(16); -1369 let (_prio_inbox_tx, prio_inbox_rx) = mpsc::channel(8); -1370 let (inbox_tx, inbox_rx) = mpsc::channel(16); -1371 let cancel_token = CancellationToken::new(); -1372 let task = start_active_relay_actor( -1373 secret_key, -1374 cancel_token.clone(), -1375 relay_url.clone(), -1376 prio_inbox_rx, -1377 inbox_rx, -1378 send_datagram_rx, -1379 datagram_recv_tx.clone(), -1380 info_span!("actor-under-test"), -1381 ); -1382 -1383 // Send a datagram to our echo endpoint. -1384 info!("first echo"); -1385 let hello_send_item = RelaySendItem { -1386 remote_endpoint: peer_endpoint, -1387 url: relay_url.clone(), -1388 datagrams: Datagrams::from(b"hello"), -1389 }; -1390 send_recv_echo( -1391 hello_send_item.clone(), -1392 &send_datagram_tx, -1393 &mut datagram_recv_rx, -1394 ) -1395 .await?; -1396 -1397 // Now ask to check the connection, triggering a ping but no reconnect. -1398 let (tx, rx) = oneshot::channel(); -1399 inbox_tx -1400 .send(ActiveRelayMessage::GetLocalAddr(tx)) -1401 .await -1402 .std_context("send get local addr msg")?; -1403 -1404 let local_addr = rx -1405 .await -1406 .std_context("wait for local addr msg")? -1407 .context("no local addr")?; -1408 info!(?local_addr, "check connection with addr"); -1409 inbox_tx -1410 .send(ActiveRelayMessage::CheckConnection(vec![local_addr.ip()])) -1411 .await -1412 .std_context("send check connection message")?; -1413 -1414 // Sync the ActiveRelayActor. Ping blocks it and we want to be sure it has handled -1415 // another inbox message before continuing. -1416 let (tx, rx) = oneshot::channel(); -1417 inbox_tx -1418 .send(ActiveRelayMessage::GetLocalAddr(tx)) -1419 .await -1420 .std_context("send get local addr msg")?; -1421 rx.await.std_context("recv send local addr msg")?; -1422 -1423 // Echo should still work. -1424 info!("second echo"); -1425 send_recv_echo( -1426 hello_send_item.clone(), -1427 &send_datagram_tx, -1428 &mut datagram_recv_rx, -1429 ) -1430 .await?; -1431 -1432 // Now ask to check the connection, this will reconnect without pinging because we -1433 // do not supply any "valid" local IP addresses. -1434 info!("check connection"); -1435 inbox_tx -1436 .send(ActiveRelayMessage::CheckConnection(Vec::new())) -1437 .await -1438 .std_context("send check connection msg")?; -1439 -1440 // Give some time to reconnect, mostly to sort logs rather than functional. -1441 tokio::time::sleep(Duration::from_millis(10)).await; -1442 -1443 // Echo should still work. -1444 info!("third echo"); -1445 send_recv_echo( -1446 hello_send_item.clone(), -1447 &send_datagram_tx, -1448 &mut datagram_recv_rx, -1449 ) -1450 .await?; -1451 -1452 // Shut down the actor. -1453 cancel_token.cancel(); -1454 task.await.std_context("wait for task to finish")?; -1455 -1456 Ok(()) -1457 } -1458 -1459 #[tokio::test] -1460 #[traced_test] -1461 async fn test_active_relay_inactive() -> Result { -1462 let (_relay_map, relay_url, _server) = test_utils::run_relay_server().await?; -1463 -1464 let secret_key = SecretKey::from_bytes(&[1u8; 32]); -1465 let (datagram_recv_tx, _datagram_recv_rx) = mpsc::channel(16); -1466 let (_send_datagram_tx, send_datagram_rx) = mpsc::channel(16); -1467 let (_prio_inbox_tx, prio_inbox_rx) = mpsc::channel(8); -1468 let (inbox_tx, inbox_rx) = mpsc::channel(16); -1469 let cancel_token = CancellationToken::new(); -1470 let mut task = start_active_relay_actor( -1471 secret_key, -1472 cancel_token.clone(), -1473 relay_url, -1474 prio_inbox_rx, -1475 inbox_rx, -1476 send_datagram_rx, -1477 datagram_recv_tx, -1478 info_span!("actor-under-test"), -1479 ); -1480 -1481 // Wait until the actor is connected to the relay server. -1482 tokio::time::timeout(Duration::from_secs(5), async { -1483 loop { -1484 let (tx, rx) = oneshot::channel(); -1485 inbox_tx.send(ActiveRelayMessage::PingServer(tx)).await.ok(); -1486 if tokio::time::timeout(Duration::from_millis(200), rx) -1487 .await -1488 .map(|resp| resp.is_ok()) -1489 .unwrap_or_default() -1490 { -1491 break; -1492 } -1493 } -1494 }) -1495 .await -1496 .std_context("timeout")?; -1497 -1498 // We now have an idling ActiveRelayActor. If we advance time just a little it -1499 // should stay alive. -1500 info!("Stepping time forwards by RELAY_INACTIVE_CLEANUP_TIME / 2"); -1501 tokio::time::pause(); -1502 tokio::time::advance(RELAY_INACTIVE_CLEANUP_TIME / 2).await; -1503 tokio::time::resume(); -1504 -1505 assert!( -1506 tokio::time::timeout(Duration::from_millis(100), &mut task) -1507 .await -1508 .is_err(), -1509 "actor task terminated" -1510 ); -1511 -1512 // If we advance time a lot it should finish. -1513 info!("Stepping time forwards by RELAY_INACTIVE_CLEANUP_TIME"); -1514 tokio::time::pause(); -1515 tokio::time::advance(RELAY_INACTIVE_CLEANUP_TIME).await; -1516 tokio::time::resume(); -1517 -1518 // We resume time for these timeouts, as there's actual I/O happening, -1519 // for example closing the TCP stream, so we actually need the tokio -1520 // runtime to idle a bit while the kernel is doing its thing. -1521 assert!( -1522 tokio::time::timeout(Duration::from_secs(1), task) -1523 .await -1524 .is_ok(), -1525 "actor task still running" -1526 ); -1527 -1528 cancel_token.cancel(); -1529 Ok(()) -1530 } -1531 -1532 #[tokio::test] -1533 async fn test_ping_tracker() { -1534 tokio::time::pause(); -1535 let mut tracker = PingTracker::default(); -1536 -1537 let ping0 = tracker.new_ping(); -1538 -1539 let res = tokio::time::timeout(Duration::from_secs(1), tracker.timeout()).await; -1540 assert!(res.is_err(), "no ping timeout has elapsed yet"); -1541 -1542 tracker.pong_received(ping0); -1543 let res = tokio::time::timeout(Duration::from_secs(10), tracker.timeout()).await; -1544 assert!(res.is_err(), "ping completed before timeout"); -1545 -1546 let _ping1 = tracker.new_ping(); -1547 -1548 let res = tokio::time::timeout(Duration::from_secs(10), tracker.timeout()).await; -1549 assert!(res.is_ok(), "ping timeout should have happened"); -1550 -1551 let _ping2 = tracker.new_ping(); -1552 -1553 tokio::time::sleep(Duration::from_secs(10)).await; -1554 let res = tokio::time::timeout(Duration::from_millis(1), tracker.timeout()).await; -1555 assert!(res.is_ok(), "ping timeout happened in the past"); -1556 -1557 let res = tokio::time::timeout(Duration::from_secs(10), tracker.timeout()).await; -1558 assert!(res.is_err(), "ping timeout should only happen once"); -1559 } -1560} \ No newline at end of file +1150 // Make sure home relay exists +1151 if let Some(url) = self.config.my_relay.get() { +1152 self.active_relay_handle(url); +1153 } +1154 self.log_active_relay(); +1155 } +1156 +1157 /// Stops all [`ActiveRelayActor`]s and awaits for them to finish. +1158 async fn close_all_active_relays(&mut self) { +1159 self.cancel_token.cancel(); +1160 let tasks = std::mem::take(&mut self.active_relay_tasks); +1161 tasks.join_all().await; +1162 +1163 self.log_active_relay(); +1164 } +1165 +1166 fn log_active_relay(&self) { +1167 debug!("{} active relay conns{}", self.active_relays.len(), { +1168 let mut s = String::new(); +1169 if !self.active_relays.is_empty() { +1170 s += ":"; +1171 for endpoint in self.active_relay_sorted() { +1172 s += &format!(" relay-{endpoint}"); +1173 } +1174 } +1175 s +1176 }); +1177 } +1178 +1179 fn active_relay_sorted(&self) -> impl Iterator<Item = RelayUrl> + use<> { +1180 let mut ids: Vec<_> = self.active_relays.keys().cloned().collect(); +1181 ids.sort(); +1182 +1183 ids.into_iter() +1184 } +1185} +1186 +1187/// Handle to one [`ActiveRelayActor`]. +1188#[derive(Debug, Clone)] +1189struct ActiveRelayHandle { +1190 prio_inbox_addr: mpsc::Sender<ActiveRelayPrioMessage>, +1191 inbox_addr: mpsc::Sender<ActiveRelayMessage>, +1192 datagrams_send_queue: mpsc::Sender<RelaySendItem>, +1193} +1194 +1195/// A single datagram received from a relay server. +1196/// +1197/// This could be either a QUIC or DISCO packet. +1198#[derive(Debug)] +1199pub(crate) struct RelayRecvDatagram { +1200 pub(crate) url: RelayUrl, +1201 pub(crate) src: EndpointId, +1202 pub(crate) datagrams: Datagrams, +1203} +1204 +1205#[cfg(test)] +1206mod tests { +1207 use std::{ +1208 sync::{Arc, atomic::AtomicBool}, +1209 time::Duration, +1210 }; +1211 +1212 use iroh_base::{EndpointId, RelayUrl, SecretKey}; +1213 use iroh_relay::{ +1214 PingTracker, +1215 protos::relay::Datagrams, +1216 tls::{CaRootsConfig, default_provider}, +1217 }; +1218 use n0_error::{AnyError as Error, Result, StackResultExt, StdResultExt}; +1219 use n0_tracing_test::traced_test; +1220 use tokio::sync::{mpsc, oneshot}; +1221 use tokio_util::{sync::CancellationToken, task::AbortOnDropHandle}; +1222 use tracing::{Instrument, info, info_span}; +1223 +1224 use super::{ +1225 ActiveRelayActor, ActiveRelayActorOptions, ActiveRelayMessage, ActiveRelayPrioMessage, +1226 RELAY_INACTIVE_CLEANUP_TIME, RelayConnectionOptions, RelayRecvDatagram, RelaySendItem, +1227 UNDELIVERABLE_DATAGRAM_TIMEOUT, +1228 }; +1229 use crate::{dns::DnsResolver, test_utils}; +1230 +1231 /// Starts a new [`ActiveRelayActor`]. +1232 #[allow(clippy::too_many_arguments)] +1233 fn start_active_relay_actor( +1234 secret_key: SecretKey, +1235 stop_token: CancellationToken, +1236 url: RelayUrl, +1237 prio_inbox_rx: mpsc::Receiver<ActiveRelayPrioMessage>, +1238 inbox_rx: mpsc::Receiver<ActiveRelayMessage>, +1239 relay_datagrams_send: mpsc::Receiver<RelaySendItem>, +1240 relay_datagrams_recv: mpsc::Sender<RelayRecvDatagram>, +1241 span: tracing::Span, +1242 ) -> AbortOnDropHandle<()> { +1243 let opts = ActiveRelayActorOptions { +1244 url, +1245 prio_inbox_: prio_inbox_rx, +1246 inbox: inbox_rx, +1247 relay_datagrams_send, +1248 relay_datagrams_recv, +1249 connection_opts: RelayConnectionOptions { +1250 secret_key, +1251 dns_resolver: DnsResolver::new(), +1252 proxy_url: None, +1253 prefer_ipv6: Arc::new(AtomicBool::new(true)), +1254 tls_config: CaRootsConfig::insecure_skip_verify() +1255 .client_config(default_provider()) +1256 .expect("infallible"), +1257 }, +1258 stop_token, +1259 metrics: Default::default(), +1260 }; +1261 let task = tokio::spawn(ActiveRelayActor::new(opts).run().instrument(span)); +1262 AbortOnDropHandle::new(task) +1263 } +1264 +1265 /// Starts an [`ActiveRelayActor`] as an "iroh echo endpoint". +1266 /// +1267 /// This actor will connect to the relay server, pretending to be an iroh endpoint, and echo +1268 /// back any datagram it receives from the relay. This is used by the +1269 /// [`ActiveRelayActor`] under test to check connectivity works. +1270 fn start_echo_endpoint(relay_url: RelayUrl) -> (EndpointId, AbortOnDropHandle<()>) { +1271 let secret_key = SecretKey::from_bytes(&[8u8; 32]); +1272 let (recv_datagram_tx, mut recv_datagram_rx) = mpsc::channel(16); +1273 let (send_datagram_tx, send_datagram_rx) = mpsc::channel(16); +1274 let (prio_inbox_tx, prio_inbox_rx) = mpsc::channel(8); +1275 let (inbox_tx, inbox_rx) = mpsc::channel(16); +1276 let cancel_token = CancellationToken::new(); +1277 let actor_task = start_active_relay_actor( +1278 secret_key.clone(), +1279 cancel_token.clone(), +1280 relay_url.clone(), +1281 prio_inbox_rx, +1282 inbox_rx, +1283 send_datagram_rx, +1284 recv_datagram_tx, +1285 info_span!("echo-endpoint"), +1286 ); +1287 let echo_task = tokio::spawn({ +1288 let relay_url = relay_url.clone(); +1289 async move { +1290 loop { +1291 let datagram = recv_datagram_rx.recv().await; +1292 if let Some(recv) = datagram { +1293 let RelayRecvDatagram { +1294 url: _, +1295 src, +1296 datagrams, +1297 } = recv; +1298 info!(from = %src.fmt_short(), "Received datagram"); +1299 let send = RelaySendItem { +1300 remote_endpoint: src, +1301 url: relay_url.clone(), +1302 datagrams, +1303 }; +1304 send_datagram_tx.send(send).await.ok(); +1305 } +1306 } +1307 } +1308 .instrument(info_span!("echo-task")) +1309 }); +1310 let echo_task = AbortOnDropHandle::new(echo_task); +1311 let supervisor_task = tokio::spawn(async move { +1312 let _guard = cancel_token.drop_guard(); +1313 // move the inboxes here so it is not dropped, as this stops the actor. +1314 let _prio_inbox_tx = prio_inbox_tx; +1315 let _inbox_tx = inbox_tx; +1316 tokio::select! { +1317 biased; +1318 _ = actor_task => (), +1319 _ = echo_task => (), +1320 }; +1321 }); +1322 let supervisor_task = AbortOnDropHandle::new(supervisor_task); +1323 (secret_key.public(), supervisor_task) +1324 } +1325 +1326 /// Sends a message to the echo endpoint, receives the response. +1327 /// +1328 /// This takes care of retry and timeout. Because we don't know when both the +1329 /// endpoint-under-test and the echo endpoint will be ready and datagrams aren't queued to send +1330 /// forever, we have to retry a few times. +1331 async fn send_recv_echo( +1332 item: RelaySendItem, +1333 tx: &mpsc::Sender<RelaySendItem>, +1334 rx: &mut mpsc::Receiver<RelayRecvDatagram>, +1335 ) -> Result<()> { +1336 tokio::time::timeout(Duration::from_secs(10), async move { +1337 loop { +1338 let res = tokio::time::timeout(UNDELIVERABLE_DATAGRAM_TIMEOUT, async { +1339 tx.send(item.clone()).await.std_context("send item")?; +1340 let RelayRecvDatagram { +1341 url: _, +1342 src: _, +1343 datagrams, +1344 } = rx.recv().await.unwrap(); +1345 +1346 assert_eq!(datagrams, item.datagrams); +1347 +1348 Ok::<_, Error>(()) +1349 }) +1350 .await; +1351 if res.is_ok() { +1352 break; +1353 } +1354 } +1355 }) +1356 .await +1357 .expect("overall timeout exceeded"); +1358 Ok(()) +1359 } +1360 +1361 #[tokio::test] +1362 #[traced_test] +1363 async fn test_active_relay_reconnect() -> Result { +1364 let (_relay_map, relay_url, _server) = test_utils::run_relay_server().await?; +1365 let (peer_endpoint, _echo_endpoint_task) = start_echo_endpoint(relay_url.clone()); +1366 +1367 let secret_key = SecretKey::from_bytes(&[1u8; 32]); +1368 let (datagram_recv_tx, mut datagram_recv_rx) = mpsc::channel(16); +1369 let (send_datagram_tx, send_datagram_rx) = mpsc::channel(16); +1370 let (_prio_inbox_tx, prio_inbox_rx) = mpsc::channel(8); +1371 let (inbox_tx, inbox_rx) = mpsc::channel(16); +1372 let cancel_token = CancellationToken::new(); +1373 let task = start_active_relay_actor( +1374 secret_key, +1375 cancel_token.clone(), +1376 relay_url.clone(), +1377 prio_inbox_rx, +1378 inbox_rx, +1379 send_datagram_rx, +1380 datagram_recv_tx.clone(), +1381 info_span!("actor-under-test"), +1382 ); +1383 +1384 // Send a datagram to our echo endpoint. +1385 info!("first echo"); +1386 let hello_send_item = RelaySendItem { +1387 remote_endpoint: peer_endpoint, +1388 url: relay_url.clone(), +1389 datagrams: Datagrams::from(b"hello"), +1390 }; +1391 send_recv_echo( +1392 hello_send_item.clone(), +1393 &send_datagram_tx, +1394 &mut datagram_recv_rx, +1395 ) +1396 .await?; +1397 +1398 // Now ask to check the connection, triggering a ping but no reconnect. +1399 let (tx, rx) = oneshot::channel(); +1400 inbox_tx +1401 .send(ActiveRelayMessage::GetLocalAddr(tx)) +1402 .await +1403 .std_context("send get local addr msg")?; +1404 +1405 let local_addr = rx +1406 .await +1407 .std_context("wait for local addr msg")? +1408 .context("no local addr")?; +1409 info!(?local_addr, "check connection with addr"); +1410 inbox_tx +1411 .send(ActiveRelayMessage::CheckConnection(vec![local_addr.ip()])) +1412 .await +1413 .std_context("send check connection message")?; +1414 +1415 // Sync the ActiveRelayActor. Ping blocks it and we want to be sure it has handled +1416 // another inbox message before continuing. +1417 let (tx, rx) = oneshot::channel(); +1418 inbox_tx +1419 .send(ActiveRelayMessage::GetLocalAddr(tx)) +1420 .await +1421 .std_context("send get local addr msg")?; +1422 rx.await.std_context("recv send local addr msg")?; +1423 +1424 // Echo should still work. +1425 info!("second echo"); +1426 send_recv_echo( +1427 hello_send_item.clone(), +1428 &send_datagram_tx, +1429 &mut datagram_recv_rx, +1430 ) +1431 .await?; +1432 +1433 // Now ask to check the connection, this will reconnect without pinging because we +1434 // do not supply any "valid" local IP addresses. +1435 info!("check connection"); +1436 inbox_tx +1437 .send(ActiveRelayMessage::CheckConnection(Vec::new())) +1438 .await +1439 .std_context("send check connection msg")?; +1440 +1441 // Give some time to reconnect, mostly to sort logs rather than functional. +1442 tokio::time::sleep(Duration::from_millis(10)).await; +1443 +1444 // Echo should still work. +1445 info!("third echo"); +1446 send_recv_echo( +1447 hello_send_item.clone(), +1448 &send_datagram_tx, +1449 &mut datagram_recv_rx, +1450 ) +1451 .await?; +1452 +1453 // Shut down the actor. +1454 cancel_token.cancel(); +1455 task.await.std_context("wait for task to finish")?; +1456 +1457 Ok(()) +1458 } +1459 +1460 #[tokio::test] +1461 #[traced_test] +1462 async fn test_active_relay_inactive() -> Result { +1463 let (_relay_map, relay_url, _server) = test_utils::run_relay_server().await?; +1464 +1465 let secret_key = SecretKey::from_bytes(&[1u8; 32]); +1466 let (datagram_recv_tx, _datagram_recv_rx) = mpsc::channel(16); +1467 let (_send_datagram_tx, send_datagram_rx) = mpsc::channel(16); +1468 let (_prio_inbox_tx, prio_inbox_rx) = mpsc::channel(8); +1469 let (inbox_tx, inbox_rx) = mpsc::channel(16); +1470 let cancel_token = CancellationToken::new(); +1471 let mut task = start_active_relay_actor( +1472 secret_key, +1473 cancel_token.clone(), +1474 relay_url, +1475 prio_inbox_rx, +1476 inbox_rx, +1477 send_datagram_rx, +1478 datagram_recv_tx, +1479 info_span!("actor-under-test"), +1480 ); +1481 +1482 // Wait until the actor is connected to the relay server. +1483 tokio::time::timeout(Duration::from_secs(5), async { +1484 loop { +1485 let (tx, rx) = oneshot::channel(); +1486 inbox_tx.send(ActiveRelayMessage::PingServer(tx)).await.ok(); +1487 if tokio::time::timeout(Duration::from_millis(200), rx) +1488 .await +1489 .map(|resp| resp.is_ok()) +1490 .unwrap_or_default() +1491 { +1492 break; +1493 } +1494 } +1495 }) +1496 .await +1497 .std_context("timeout")?; +1498 +1499 // We now have an idling ActiveRelayActor. If we advance time just a little it +1500 // should stay alive. +1501 info!("Stepping time forwards by RELAY_INACTIVE_CLEANUP_TIME / 2"); +1502 tokio::time::pause(); +1503 tokio::time::advance(RELAY_INACTIVE_CLEANUP_TIME / 2).await; +1504 tokio::time::resume(); +1505 +1506 assert!( +1507 tokio::time::timeout(Duration::from_millis(100), &mut task) +1508 .await +1509 .is_err(), +1510 "actor task terminated" +1511 ); +1512 +1513 // If we advance time a lot it should finish. +1514 info!("Stepping time forwards by RELAY_INACTIVE_CLEANUP_TIME"); +1515 tokio::time::pause(); +1516 tokio::time::advance(RELAY_INACTIVE_CLEANUP_TIME).await; +1517 tokio::time::resume(); +1518 +1519 // We resume time for these timeouts, as there's actual I/O happening, +1520 // for example closing the TCP stream, so we actually need the tokio +1521 // runtime to idle a bit while the kernel is doing its thing. +1522 assert!( +1523 tokio::time::timeout(Duration::from_secs(1), task) +1524 .await +1525 .is_ok(), +1526 "actor task still running" +1527 ); +1528 +1529 cancel_token.cancel(); +1530 Ok(()) +1531 } +1532 +1533 #[tokio::test] +1534 async fn test_ping_tracker() { +1535 tokio::time::pause(); +1536 let mut tracker = PingTracker::default(); +1537 +1538 let ping0 = tracker.new_ping(); +1539 +1540 let res = tokio::time::timeout(Duration::from_secs(1), tracker.timeout()).await; +1541 assert!(res.is_err(), "no ping timeout has elapsed yet"); +1542 +1543 tracker.pong_received(ping0); +1544 let res = tokio::time::timeout(Duration::from_secs(10), tracker.timeout()).await; +1545 assert!(res.is_err(), "ping completed before timeout"); +1546 +1547 let _ping1 = tracker.new_ping(); +1548 +1549 let res = tokio::time::timeout(Duration::from_secs(10), tracker.timeout()).await; +1550 assert!(res.is_ok(), "ping timeout should have happened"); +1551 +1552 let _ping2 = tracker.new_ping(); +1553 +1554 tokio::time::sleep(Duration::from_secs(10)).await; +1555 let res = tokio::time::timeout(Duration::from_millis(1), tracker.timeout()).await; +1556 assert!(res.is_ok(), "ping timeout happened in the past"); +1557 +1558 let res = tokio::time::timeout(Duration::from_secs(10), tracker.timeout()).await; +1559 assert!(res.is_err(), "ping timeout should only happen once"); +1560 } +1561} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/test_utils.rs.html b/pr/3958/docs/src/iroh/test_utils.rs.html index 1fdde469c4..d2400c7f67 100644 --- a/pr/3958/docs/src/iroh/test_utils.rs.html +++ b/pr/3958/docs/src/iroh/test_utils.rs.html @@ -86,452 +86,464 @@ 86pub(crate) mod dns_and_pkarr_servers { 87 use std::{net::SocketAddr, time::Duration}; 88 -89 use iroh_base::{EndpointId, SecretKey}; +89 use iroh_base::EndpointId; 90 use url::Url; 91 92 use super::CleanupDropGuard; 93 use crate::{ -94 address_lookup::{self, ConcurrentAddressLookup, PkarrPublisher}, -95 dns::DnsResolver, -96 test_utils::{ -97 dns_server::run_dns_server, pkarr_dns_state::State, pkarr_relay::run_pkarr_relay, -98 }, -99 }; -100 -101 /// Handle and drop guard for test DNS and Pkarr servers. -102 /// -103 /// Once the struct is dropped the servers will shut down. -104 #[derive(Debug)] -105 pub struct DnsPkarrServer { -106 /// The endpoint origin domain. -107 pub endpoint_origin: String, -108 /// The shared state of the DNS and Pkarr servers. -109 state: State, -110 /// The socket address of the DNS server. -111 pub nameserver: SocketAddr, -112 /// The HTTP URL of the Pkarr server. -113 pub pkarr_url: Url, -114 _dns_drop_guard: CleanupDropGuard, -115 _pkarr_drop_guard: CleanupDropGuard, -116 } -117 -118 impl DnsPkarrServer { -119 /// Run DNS and Pkarr servers on localhost. -120 pub async fn run() -> std::io::Result<Self> { -121 Self::run_with_origin("dns.iroh.test".to_string()).await -122 } -123 -124 /// Run DNS and Pkarr servers on localhost with the specified `endpoint_origin` domain. -125 pub async fn run_with_origin(endpoint_origin: String) -> std::io::Result<Self> { -126 let state = State::new(endpoint_origin.clone()); -127 let (nameserver, dns_drop_guard) = run_dns_server(state.clone()).await?; -128 let (pkarr_url, pkarr_drop_guard) = run_pkarr_relay(state.clone()).await?; -129 Ok(Self { -130 endpoint_origin, -131 nameserver, -132 pkarr_url, -133 state, -134 _dns_drop_guard: dns_drop_guard, -135 _pkarr_drop_guard: pkarr_drop_guard, -136 }) -137 } -138 -139 /// Create a [`ConcurrentAddressLookup`] with [`crate::address_lookup::DnsAddressLookup`] and [`PkarrPublisher`] -140 /// configured to use the test servers. -141 pub fn address_lookup(&self, secret_key: SecretKey) -> ConcurrentAddressLookup { -142 ConcurrentAddressLookup::from_services(vec![ -143 // Enable DNS Address Lookup by default -144 Box::new( -145 address_lookup::DnsAddressLookup::builder(self.endpoint_origin.clone()) -146 .dns_resolver(self.dns_resolver()) -147 .build(), -148 ), -149 // Enable pkarr publishing by default -150 Box::new(PkarrPublisher::builder(self.pkarr_url.clone()).build(secret_key)), -151 ]) -152 } -153 -154 /// Create a [`DnsResolver`] configured to use the test DNS server. -155 pub fn dns_resolver(&self) -> DnsResolver { -156 DnsResolver::with_nameserver(self.nameserver) -157 } -158 -159 /// Wait until a Pkarr announce for an endpoint is published to the server. -160 /// -161 /// If `timeout` elapses an error is returned. -162 pub async fn on_endpoint( -163 &self, -164 endpoint_id: &EndpointId, -165 timeout: Duration, -166 ) -> std::io::Result<()> { -167 self.state.on_endpoint(endpoint_id, timeout).await -168 } -169 } -170} -171 -172pub(crate) mod dns_server { -173 use std::{ -174 future::Future, -175 net::{Ipv4Addr, SocketAddr}, -176 }; -177 -178 use hickory_resolver::proto::{ -179 op::{Message, header::MessageType}, -180 serialize::binary::BinDecodable, -181 }; -182 use n0_future::future::Boxed as BoxFuture; -183 use tokio::{net::UdpSocket, sync::oneshot}; -184 use tracing::{debug, error, warn}; -185 -186 use super::CleanupDropGuard; -187 -188 /// Trait used by [`run_dns_server`] for answering DNS queries. -189 pub trait QueryHandler: Send + Sync + 'static { -190 fn resolve( -191 &self, -192 query: &Message, -193 reply: &mut Message, -194 ) -> impl Future<Output = std::io::Result<()>> + Send; -195 } -196 -197 pub type QueryHandlerFunction = Box< -198 dyn Fn(&Message, &mut Message) -> BoxFuture<std::io::Result<()>> + Send + Sync + 'static, -199 >; -200 -201 impl QueryHandler for QueryHandlerFunction { +94 address_lookup::{ +95 DnsAddressLookup, DnsAddressLookupBuilder, PkarrPublisher, PkarrPublisherBuilder, +96 }, +97 dns::DnsResolver, +98 endpoint::presets::Preset, +99 test_utils::{ +100 dns_server::run_dns_server, pkarr_dns_state::State, pkarr_relay::run_pkarr_relay, +101 }, +102 }; +103 +104 /// Handle and drop guard for test DNS and Pkarr servers. +105 /// +106 /// Once the struct is dropped the servers will shut down. +107 #[derive(Debug)] +108 pub struct DnsPkarrServer { +109 /// The endpoint origin domain. +110 pub endpoint_origin: String, +111 /// The shared state of the DNS and Pkarr servers. +112 state: State, +113 /// The socket address of the DNS server. +114 pub nameserver: SocketAddr, +115 /// The HTTP URL of the Pkarr server. +116 pub pkarr_url: Url, +117 _dns_drop_guard: CleanupDropGuard, +118 _pkarr_drop_guard: CleanupDropGuard, +119 } +120 +121 impl DnsPkarrServer { +122 /// Run DNS and Pkarr servers on localhost. +123 pub async fn run() -> std::io::Result<Self> { +124 Self::run_with_origin("dns.iroh.test".to_string()).await +125 } +126 +127 /// Run DNS and Pkarr servers on localhost with the specified `endpoint_origin` domain. +128 pub async fn run_with_origin(endpoint_origin: String) -> std::io::Result<Self> { +129 let state = State::new(endpoint_origin.clone()); +130 let (nameserver, dns_drop_guard) = run_dns_server(state.clone()).await?; +131 let (pkarr_url, pkarr_drop_guard) = run_pkarr_relay(state.clone()).await?; +132 Ok(Self { +133 endpoint_origin, +134 nameserver, +135 pkarr_url, +136 state, +137 _dns_drop_guard: dns_drop_guard, +138 _pkarr_drop_guard: pkarr_drop_guard, +139 }) +140 } +141 +142 /// Returns a [`Preset`] to apply the DNS address lookup and Pkarr Publisher to an endpoint. +143 pub fn preset(&self) -> impl Preset { +144 struct DnsPkarrPreset { +145 dns_address_lookup: DnsAddressLookupBuilder, +146 pkarr_address_publisher: PkarrPublisherBuilder, +147 dns_resolver: DnsResolver, +148 } +149 +150 let preset = DnsPkarrPreset { +151 dns_address_lookup: DnsAddressLookup::builder(self.endpoint_origin.clone()), +152 pkarr_address_publisher: PkarrPublisher::builder(self.pkarr_url.clone()), +153 dns_resolver: self.dns_resolver(), +154 }; +155 impl Preset for DnsPkarrPreset { +156 fn apply(self, builder: crate::endpoint::Builder) -> crate::endpoint::Builder { +157 builder +158 .address_lookup(self.dns_address_lookup) +159 .address_lookup(self.pkarr_address_publisher) +160 .dns_resolver(self.dns_resolver) +161 } +162 } +163 preset +164 } +165 +166 /// Create a [`DnsResolver`] configured to use the test DNS server. +167 pub fn dns_resolver(&self) -> DnsResolver { +168 DnsResolver::with_nameserver(self.nameserver) +169 } +170 +171 /// Wait until a Pkarr announce for an endpoint is published to the server. +172 /// +173 /// If `timeout` elapses an error is returned. +174 pub async fn on_endpoint( +175 &self, +176 endpoint_id: &EndpointId, +177 timeout: Duration, +178 ) -> std::io::Result<()> { +179 self.state.on_endpoint(endpoint_id, timeout).await +180 } +181 } +182} +183 +184pub(crate) mod dns_server { +185 use std::{ +186 future::Future, +187 net::{Ipv4Addr, SocketAddr}, +188 }; +189 +190 use hickory_resolver::proto::{ +191 op::{Message, header::MessageType}, +192 serialize::binary::BinDecodable, +193 }; +194 use n0_future::future::Boxed as BoxFuture; +195 use tokio::{net::UdpSocket, sync::oneshot}; +196 use tracing::{debug, error, warn}; +197 +198 use super::CleanupDropGuard; +199 +200 /// Trait used by [`run_dns_server`] for answering DNS queries. +201 pub trait QueryHandler: Send + Sync + 'static { 202 fn resolve( 203 &self, 204 query: &Message, 205 reply: &mut Message, -206 ) -> impl Future<Output = std::io::Result<()>> + Send { -207 (self)(query, reply) -208 } -209 } -210 -211 /// Run a DNS server. -212 /// -213 /// Must pass a [`QueryHandler`] that answers queries. -214 pub async fn run_dns_server( -215 resolver: impl QueryHandler, -216 ) -> std::io::Result<(SocketAddr, CleanupDropGuard)> { -217 let bind_addr = SocketAddr::from((Ipv4Addr::LOCALHOST, 0)); -218 let socket = UdpSocket::bind(bind_addr).await?; -219 let bound_addr = socket.local_addr()?; -220 let s = TestDnsServer { socket, resolver }; -221 let (tx, mut rx) = oneshot::channel(); -222 tokio::task::spawn(async move { -223 tokio::select! { -224 _ = &mut rx => { -225 debug!("shutting down dns server"); -226 } -227 res = s.run() => { -228 if let Err(e) = res { -229 error!("error running dns server {e:?}"); -230 } -231 } -232 } -233 }); -234 Ok((bound_addr, CleanupDropGuard(tx))) -235 } -236 -237 struct TestDnsServer<R> { -238 resolver: R, -239 socket: UdpSocket, -240 } -241 -242 impl<R: QueryHandler> TestDnsServer<R> { -243 async fn run(self) -> std::io::Result<()> { -244 let mut buf = [0; 1450]; -245 loop { -246 let res = self.socket.recv_from(&mut buf).await; -247 let (len, from) = res?; -248 if let Err(err) = self.handle_datagram(from, &buf[..len]).await { -249 warn!(?err, %from, "failed to handle incoming datagram"); -250 } -251 } -252 } +206 ) -> impl Future<Output = std::io::Result<()>> + Send; +207 } +208 +209 pub type QueryHandlerFunction = Box< +210 dyn Fn(&Message, &mut Message) -> BoxFuture<std::io::Result<()>> + Send + Sync + 'static, +211 >; +212 +213 impl QueryHandler for QueryHandlerFunction { +214 fn resolve( +215 &self, +216 query: &Message, +217 reply: &mut Message, +218 ) -> impl Future<Output = std::io::Result<()>> + Send { +219 (self)(query, reply) +220 } +221 } +222 +223 /// Run a DNS server. +224 /// +225 /// Must pass a [`QueryHandler`] that answers queries. +226 pub async fn run_dns_server( +227 resolver: impl QueryHandler, +228 ) -> std::io::Result<(SocketAddr, CleanupDropGuard)> { +229 let bind_addr = SocketAddr::from((Ipv4Addr::LOCALHOST, 0)); +230 let socket = UdpSocket::bind(bind_addr).await?; +231 let bound_addr = socket.local_addr()?; +232 let s = TestDnsServer { socket, resolver }; +233 let (tx, mut rx) = oneshot::channel(); +234 tokio::task::spawn(async move { +235 tokio::select! { +236 _ = &mut rx => { +237 debug!("shutting down dns server"); +238 } +239 res = s.run() => { +240 if let Err(e) = res { +241 error!("error running dns server {e:?}"); +242 } +243 } +244 } +245 }); +246 Ok((bound_addr, CleanupDropGuard(tx))) +247 } +248 +249 struct TestDnsServer<R> { +250 resolver: R, +251 socket: UdpSocket, +252 } 253 -254 async fn handle_datagram(&self, from: SocketAddr, buf: &[u8]) -> std::io::Result<()> { -255 let packet = Message::from_bytes(buf)?; -256 debug!(queries = ?packet.queries(), %from, "received query"); -257 let mut reply = packet.clone(); -258 reply.set_message_type(MessageType::Response); -259 self.resolver.resolve(&packet, &mut reply).await?; -260 debug!(?reply, %from, "send reply"); -261 let buf = reply.to_vec()?; -262 let len = self.socket.send_to(&buf, from).await?; -263 assert_eq!(len, buf.len(), "failed to send complete packet"); -264 Ok(()) -265 } -266 } -267} -268 -269pub(crate) mod pkarr_relay { -270 use std::{ -271 future::IntoFuture, -272 net::{Ipv4Addr, SocketAddr}, -273 }; -274 -275 use axum::{ -276 Router, -277 extract::{Path, State}, -278 response::IntoResponse, -279 routing::put, -280 }; -281 use bytes::Bytes; -282 use tokio::sync::oneshot; -283 use tracing::{debug, error, warn}; -284 use url::Url; -285 -286 use super::CleanupDropGuard; -287 use crate::test_utils::pkarr_dns_state::State as AppState; -288 -289 pub async fn run_pkarr_relay(state: AppState) -> std::io::Result<(Url, CleanupDropGuard)> { -290 let bind_addr = SocketAddr::from((Ipv4Addr::LOCALHOST, 0)); -291 let app = Router::new() -292 .route("/pkarr/{key}", put(pkarr_put)) -293 .with_state(state); -294 let listener = tokio::net::TcpListener::bind(bind_addr).await?; -295 let bound_addr = listener.local_addr()?; -296 let url: Url = format!("http://{bound_addr}/pkarr") -297 .parse() -298 .expect("valid url"); -299 -300 let (tx, mut rx) = oneshot::channel(); -301 tokio::spawn(async move { -302 let serve = axum::serve(listener, app); -303 tokio::select! { -304 _ = &mut rx => { -305 debug!("shutting down pkarr server"); -306 } -307 res = serve.into_future() => { -308 if let Err(e) = res { -309 error!("pkarr server error: {e:?}"); -310 } -311 } -312 } -313 }); -314 Ok((url, CleanupDropGuard(tx))) -315 } -316 -317 async fn pkarr_put( -318 State(state): State<AppState>, -319 Path(key): Path<String>, -320 body: Bytes, -321 ) -> Result<impl IntoResponse, AppError> { -322 let key = pkarr::PublicKey::try_from(key.as_str()).map_err(std::io::Error::other)?; -323 let signed_packet = -324 pkarr::SignedPacket::from_relay_payload(&key, &body).map_err(std::io::Error::other)?; -325 let _updated = state.upsert(signed_packet)?; -326 Ok(http::StatusCode::NO_CONTENT) +254 impl<R: QueryHandler> TestDnsServer<R> { +255 async fn run(self) -> std::io::Result<()> { +256 let mut buf = [0; 1450]; +257 loop { +258 let res = self.socket.recv_from(&mut buf).await; +259 let (len, from) = res?; +260 if let Err(err) = self.handle_datagram(from, &buf[..len]).await { +261 warn!(?err, %from, "failed to handle incoming datagram"); +262 } +263 } +264 } +265 +266 async fn handle_datagram(&self, from: SocketAddr, buf: &[u8]) -> std::io::Result<()> { +267 let packet = Message::from_bytes(buf)?; +268 debug!(queries = ?packet.queries(), %from, "received query"); +269 let mut reply = packet.clone(); +270 reply.set_message_type(MessageType::Response); +271 self.resolver.resolve(&packet, &mut reply).await?; +272 debug!(?reply, %from, "send reply"); +273 let buf = reply.to_vec()?; +274 let len = self.socket.send_to(&buf, from).await?; +275 assert_eq!(len, buf.len(), "failed to send complete packet"); +276 Ok(()) +277 } +278 } +279} +280 +281pub(crate) mod pkarr_relay { +282 use std::{ +283 future::IntoFuture, +284 net::{Ipv4Addr, SocketAddr}, +285 }; +286 +287 use axum::{ +288 Router, +289 extract::{Path, State}, +290 response::IntoResponse, +291 routing::put, +292 }; +293 use bytes::Bytes; +294 use tokio::sync::oneshot; +295 use tracing::{debug, error, warn}; +296 use url::Url; +297 +298 use super::CleanupDropGuard; +299 use crate::test_utils::pkarr_dns_state::State as AppState; +300 +301 pub async fn run_pkarr_relay(state: AppState) -> std::io::Result<(Url, CleanupDropGuard)> { +302 let bind_addr = SocketAddr::from((Ipv4Addr::LOCALHOST, 0)); +303 let app = Router::new() +304 .route("/pkarr/{key}", put(pkarr_put)) +305 .with_state(state); +306 let listener = tokio::net::TcpListener::bind(bind_addr).await?; +307 let bound_addr = listener.local_addr()?; +308 let url: Url = format!("http://{bound_addr}/pkarr") +309 .parse() +310 .expect("valid url"); +311 +312 let (tx, mut rx) = oneshot::channel(); +313 tokio::spawn(async move { +314 let serve = axum::serve(listener, app); +315 tokio::select! { +316 _ = &mut rx => { +317 debug!("shutting down pkarr server"); +318 } +319 res = serve.into_future() => { +320 if let Err(e) = res { +321 error!("pkarr server error: {e:?}"); +322 } +323 } +324 } +325 }); +326 Ok((url, CleanupDropGuard(tx))) 327 } 328 -329 #[derive(Debug)] -330 struct AppError(std::io::Error); -331 impl<T: Into<std::io::Error>> From<T> for AppError { -332 fn from(value: T) -> Self { -333 Self(value.into()) -334 } -335 } -336 impl IntoResponse for AppError { -337 fn into_response(self) -> axum::response::Response { -338 warn!(err = ?self, "request failed"); -339 (http::StatusCode::INTERNAL_SERVER_ERROR, self.0.to_string()).into_response() -340 } -341 } -342} -343 -344pub(crate) mod pkarr_dns_state { -345 use std::{ -346 collections::{HashMap, hash_map}, -347 future::Future, -348 sync::{Arc, Mutex}, -349 time::Duration, -350 }; -351 -352 use iroh_base::EndpointId; -353 use iroh_relay::endpoint_info::{EndpointIdExt, EndpointInfo, IROH_TXT_NAME}; -354 use pkarr::SignedPacket; -355 use tracing::debug; -356 -357 use crate::test_utils::dns_server::QueryHandler; -358 -359 #[derive(Debug, Clone)] -360 pub struct State { -361 packets: Arc<Mutex<HashMap<EndpointId, SignedPacket>>>, -362 origin: String, -363 notify: Arc<tokio::sync::Notify>, -364 } -365 -366 impl State { -367 pub fn new(origin: String) -> Self { -368 Self { -369 packets: Default::default(), -370 origin, -371 notify: Arc::new(tokio::sync::Notify::new()), -372 } -373 } -374 -375 pub fn on_update(&self) -> tokio::sync::futures::Notified<'_> { -376 self.notify.notified() -377 } -378 -379 pub async fn on_endpoint( -380 &self, -381 endpoint: &EndpointId, -382 timeout: Duration, -383 ) -> std::io::Result<()> { -384 let timeout = tokio::time::sleep(timeout); -385 tokio::pin!(timeout); -386 while self.get(endpoint, |p| { -387 let endpoint_info = p -388 .as_ref() -389 .and_then(|p| EndpointInfo::from_pkarr_signed_packet(p).ok()); -390 debug!("got info {:#?}", endpoint_info); -391 p.is_none() -392 }) { -393 tokio::select! { -394 _ = &mut timeout => return Err(std::io::Error::other("timeout")), -395 _ = self.on_update() => {} -396 } -397 } -398 Ok(()) -399 } -400 -401 pub fn upsert(&self, signed_packet: SignedPacket) -> std::io::Result<bool> { -402 let endpoint_id = EndpointId::from_bytes(&signed_packet.public_key().to_bytes()) -403 .map_err(std::io::Error::other)?; -404 let mut map = self.packets.lock().expect("poisoned"); -405 let updated = match map.entry(endpoint_id) { -406 hash_map::Entry::Vacant(e) => { -407 e.insert(signed_packet); -408 true -409 } -410 hash_map::Entry::Occupied(mut e) => { -411 if signed_packet.more_recent_than(e.get()) { -412 e.insert(signed_packet); -413 true -414 } else { -415 false -416 } -417 } -418 }; -419 if updated { -420 self.notify.notify_waiters(); -421 } -422 Ok(updated) -423 } -424 -425 /// Returns a mutex guard, do not hold over await points -426 pub fn get<F, T>(&self, endpoint_id: &EndpointId, cb: F) -> T -427 where -428 F: FnOnce(Option<&mut SignedPacket>) -> T, -429 { -430 let mut map = self.packets.lock().expect("poisoned"); -431 let packet = map.get_mut(endpoint_id); -432 cb(packet) -433 } -434 -435 pub fn resolve_dns( -436 &self, -437 query: &hickory_resolver::proto::op::Message, -438 reply: &mut hickory_resolver::proto::op::Message, -439 ttl: u32, -440 ) -> std::io::Result<()> { -441 for query in query.queries() { -442 let domain_name = query.name().to_string(); -443 let Some(endpoint_id) = endpoint_id_from_domain_name(&domain_name) else { -444 continue; -445 }; +329 async fn pkarr_put( +330 State(state): State<AppState>, +331 Path(key): Path<String>, +332 body: Bytes, +333 ) -> Result<impl IntoResponse, AppError> { +334 let key = pkarr::PublicKey::try_from(key.as_str()).map_err(std::io::Error::other)?; +335 let signed_packet = +336 pkarr::SignedPacket::from_relay_payload(&key, &body).map_err(std::io::Error::other)?; +337 let _updated = state.upsert(signed_packet)?; +338 Ok(http::StatusCode::NO_CONTENT) +339 } +340 +341 #[derive(Debug)] +342 struct AppError(std::io::Error); +343 impl<T: Into<std::io::Error>> From<T> for AppError { +344 fn from(value: T) -> Self { +345 Self(value.into()) +346 } +347 } +348 impl IntoResponse for AppError { +349 fn into_response(self) -> axum::response::Response { +350 warn!(err = ?self, "request failed"); +351 (http::StatusCode::INTERNAL_SERVER_ERROR, self.0.to_string()).into_response() +352 } +353 } +354} +355 +356pub(crate) mod pkarr_dns_state { +357 use std::{ +358 collections::{HashMap, hash_map}, +359 future::Future, +360 sync::{Arc, Mutex}, +361 time::Duration, +362 }; +363 +364 use iroh_base::EndpointId; +365 use iroh_relay::endpoint_info::{EndpointIdExt, EndpointInfo, IROH_TXT_NAME}; +366 use pkarr::SignedPacket; +367 use tracing::debug; +368 +369 use crate::test_utils::dns_server::QueryHandler; +370 +371 #[derive(Debug, Clone)] +372 pub struct State { +373 packets: Arc<Mutex<HashMap<EndpointId, SignedPacket>>>, +374 origin: String, +375 notify: Arc<tokio::sync::Notify>, +376 } +377 +378 impl State { +379 pub fn new(origin: String) -> Self { +380 Self { +381 packets: Default::default(), +382 origin, +383 notify: Arc::new(tokio::sync::Notify::new()), +384 } +385 } +386 +387 pub fn on_update(&self) -> tokio::sync::futures::Notified<'_> { +388 self.notify.notified() +389 } +390 +391 pub async fn on_endpoint( +392 &self, +393 endpoint: &EndpointId, +394 timeout: Duration, +395 ) -> std::io::Result<()> { +396 let timeout = tokio::time::sleep(timeout); +397 tokio::pin!(timeout); +398 while self.get(endpoint, |p| { +399 let endpoint_info = p +400 .as_ref() +401 .and_then(|p| EndpointInfo::from_pkarr_signed_packet(p).ok()); +402 debug!("got info {:#?}", endpoint_info); +403 p.is_none() +404 }) { +405 tokio::select! { +406 _ = &mut timeout => return Err(std::io::Error::other("timeout")), +407 _ = self.on_update() => {} +408 } +409 } +410 Ok(()) +411 } +412 +413 pub fn upsert(&self, signed_packet: SignedPacket) -> std::io::Result<bool> { +414 let endpoint_id = EndpointId::from_bytes(&signed_packet.public_key().to_bytes()) +415 .map_err(std::io::Error::other)?; +416 let mut map = self.packets.lock().expect("poisoned"); +417 let updated = match map.entry(endpoint_id) { +418 hash_map::Entry::Vacant(e) => { +419 e.insert(signed_packet); +420 true +421 } +422 hash_map::Entry::Occupied(mut e) => { +423 if signed_packet.more_recent_than(e.get()) { +424 e.insert(signed_packet); +425 true +426 } else { +427 false +428 } +429 } +430 }; +431 if updated { +432 self.notify.notify_waiters(); +433 } +434 Ok(updated) +435 } +436 +437 /// Returns a mutex guard, do not hold over await points +438 pub fn get<F, T>(&self, endpoint_id: &EndpointId, cb: F) -> T +439 where +440 F: FnOnce(Option<&mut SignedPacket>) -> T, +441 { +442 let mut map = self.packets.lock().expect("poisoned"); +443 let packet = map.get_mut(endpoint_id); +444 cb(packet) +445 } 446 -447 self.get(&endpoint_id, |packet| { -448 if let Some(packet) = packet { -449 let endpoint_info = EndpointInfo::from_pkarr_signed_packet(packet) -450 .map_err(std::io::Error::other)?; -451 for record in -452 endpoint_info_to_hickory_records(&endpoint_info, &self.origin, ttl) -453 { -454 reply.add_answer(record); -455 } -456 } -457 Ok::<_, std::io::Error>(()) -458 })?; -459 } -460 Ok(()) -461 } -462 } -463 -464 impl QueryHandler for State { -465 fn resolve( -466 &self, -467 query: &hickory_resolver::proto::op::Message, -468 reply: &mut hickory_resolver::proto::op::Message, -469 ) -> impl Future<Output = std::io::Result<()>> + Send { -470 const TTL: u32 = 30; -471 let res = self.resolve_dns(query, reply, TTL); -472 std::future::ready(res) +447 pub fn resolve_dns( +448 &self, +449 query: &hickory_resolver::proto::op::Message, +450 reply: &mut hickory_resolver::proto::op::Message, +451 ttl: u32, +452 ) -> std::io::Result<()> { +453 for query in query.queries() { +454 let domain_name = query.name().to_string(); +455 let Some(endpoint_id) = endpoint_id_from_domain_name(&domain_name) else { +456 continue; +457 }; +458 +459 self.get(&endpoint_id, |packet| { +460 if let Some(packet) = packet { +461 let endpoint_info = EndpointInfo::from_pkarr_signed_packet(packet) +462 .map_err(std::io::Error::other)?; +463 for record in +464 endpoint_info_to_hickory_records(&endpoint_info, &self.origin, ttl) +465 { +466 reply.add_answer(record); +467 } +468 } +469 Ok::<_, std::io::Error>(()) +470 })?; +471 } +472 Ok(()) 473 } 474 } 475 -476 /// Parses a [`EndpointId`] from a DNS domain name. -477 /// -478 /// Splits the domain name into labels on each dot. Expects the first label to be -479 /// [`IROH_TXT_NAME`] and the second label to be a z32 encoded [`EndpointId`]. Ignores -480 /// subsequent labels. -481 /// -482 /// Returns a [`EndpointId`] if parsed successfully, otherwise `None`. -483 fn endpoint_id_from_domain_name(name: &str) -> Option<EndpointId> { -484 let mut labels = name.split("."); -485 let label = labels.next()?; -486 if label != IROH_TXT_NAME { -487 return None; -488 } -489 let label = labels.next()?; -490 let endpoint_id = EndpointId::from_z32(label).ok()?; -491 Some(endpoint_id) -492 } -493 -494 /// Converts a [`EndpointInfo`]into a [`hickory_resolver::proto::rr::Record`] DNS record. -495 fn endpoint_info_to_hickory_records( -496 endpoint_info: &EndpointInfo, -497 origin: &str, -498 ttl: u32, -499 ) -> impl Iterator<Item = hickory_resolver::proto::rr::Record> + 'static { -500 let txt_strings = endpoint_info.to_txt_strings(); -501 let records = to_hickory_records(txt_strings, endpoint_info.endpoint_id, origin, ttl); -502 records.collect::<Vec<_>>().into_iter() -503 } -504 -505 /// Converts to a list of [`hickory_resolver::proto::rr::Record`] resource records. -506 fn to_hickory_records( -507 txt_strings: Vec<String>, -508 endpoint_id: EndpointId, +476 impl QueryHandler for State { +477 fn resolve( +478 &self, +479 query: &hickory_resolver::proto::op::Message, +480 reply: &mut hickory_resolver::proto::op::Message, +481 ) -> impl Future<Output = std::io::Result<()>> + Send { +482 const TTL: u32 = 30; +483 let res = self.resolve_dns(query, reply, TTL); +484 std::future::ready(res) +485 } +486 } +487 +488 /// Parses a [`EndpointId`] from a DNS domain name. +489 /// +490 /// Splits the domain name into labels on each dot. Expects the first label to be +491 /// [`IROH_TXT_NAME`] and the second label to be a z32 encoded [`EndpointId`]. Ignores +492 /// subsequent labels. +493 /// +494 /// Returns a [`EndpointId`] if parsed successfully, otherwise `None`. +495 fn endpoint_id_from_domain_name(name: &str) -> Option<EndpointId> { +496 let mut labels = name.split("."); +497 let label = labels.next()?; +498 if label != IROH_TXT_NAME { +499 return None; +500 } +501 let label = labels.next()?; +502 let endpoint_id = EndpointId::from_z32(label).ok()?; +503 Some(endpoint_id) +504 } +505 +506 /// Converts a [`EndpointInfo`]into a [`hickory_resolver::proto::rr::Record`] DNS record. +507 fn endpoint_info_to_hickory_records( +508 endpoint_info: &EndpointInfo, 509 origin: &str, 510 ttl: u32, -511 ) -> impl Iterator<Item = hickory_resolver::proto::rr::Record> + '_ { -512 use hickory_resolver::proto::rr; -513 let name = format!("{IROH_TXT_NAME}.{}.{origin}", endpoint_id.to_z32()); -514 let name = rr::Name::from_utf8(name).expect("invalid name"); -515 txt_strings.into_iter().map(move |s| { -516 let txt = rr::rdata::TXT::new(vec![s]); -517 let rdata = rr::RData::TXT(txt); -518 rr::Record::from_rdata(name.clone(), ttl, rdata) -519 }) -520 } -521 -522 #[cfg(test)] -523 mod tests { -524 use iroh_base::EndpointId; -525 use n0_error::Result; -526 -527 #[test] -528 fn test_endpoint_id_from_domain_name() -> Result { -529 let name = "_iroh.dgjpkxyn3zyrk3zfads5duwdgbqpkwbjxfj4yt7rezidr3fijccy.dns.iroh.link."; -530 let endpoint_id = super::endpoint_id_from_domain_name(name); -531 let expected: EndpointId = -532 "1992d53c02cdc04566e5c0edb1ce83305cd550297953a047a445ea3264b54b18".parse()?; -533 assert_eq!(endpoint_id, Some(expected)); -534 Ok(()) -535 } -536 } -537} \ No newline at end of file +511 ) -> impl Iterator<Item = hickory_resolver::proto::rr::Record> + 'static { +512 let txt_strings = endpoint_info.to_txt_strings(); +513 let records = to_hickory_records(txt_strings, endpoint_info.endpoint_id, origin, ttl); +514 records.collect::<Vec<_>>().into_iter() +515 } +516 +517 /// Converts to a list of [`hickory_resolver::proto::rr::Record`] resource records. +518 fn to_hickory_records( +519 txt_strings: Vec<String>, +520 endpoint_id: EndpointId, +521 origin: &str, +522 ttl: u32, +523 ) -> impl Iterator<Item = hickory_resolver::proto::rr::Record> + '_ { +524 use hickory_resolver::proto::rr; +525 let name = format!("{IROH_TXT_NAME}.{}.{origin}", endpoint_id.to_z32()); +526 let name = rr::Name::from_utf8(name).expect("invalid name"); +527 txt_strings.into_iter().map(move |s| { +528 let txt = rr::rdata::TXT::new(vec![s]); +529 let rdata = rr::RData::TXT(txt); +530 rr::Record::from_rdata(name.clone(), ttl, rdata) +531 }) +532 } +533 +534 #[cfg(test)] +535 mod tests { +536 use iroh_base::EndpointId; +537 use n0_error::Result; +538 +539 #[test] +540 fn test_endpoint_id_from_domain_name() -> Result { +541 let name = "_iroh.dgjpkxyn3zyrk3zfads5duwdgbqpkwbjxfj4yt7rezidr3fijccy.dns.iroh.link."; +542 let endpoint_id = super::endpoint_id_from_domain_name(name); +543 let expected: EndpointId = +544 "1992d53c02cdc04566e5c0edb1ce83305cd550297953a047a445ea3264b54b18".parse()?; +545 assert_eq!(endpoint_id, Some(expected)); +546 Ok(()) +547 } +548 } +549} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/tls.rs.html b/pr/3958/docs/src/iroh/tls.rs.html index 09fb081327..2493ce8c7e 100644 --- a/pr/3958/docs/src/iroh/tls.rs.html +++ b/pr/3958/docs/src/iroh/tls.rs.html @@ -11,116 +11,113 @@ 11use quinn::crypto::rustls::{QuicClientConfig, QuicServerConfig}; 12use tracing::warn; 13 -14use self::resolver::AlwaysResolvesCert; +14use self::resolver::ResolveRawPublicKeyCert; 15 16pub(crate) mod name; 17mod resolver; 18mod verifier; 19 -20/// Maximum amount of TLS tickets we will cache (by default) for 0-RTT connection -21/// establishment. -22/// -23/// 8 tickets per remote endpoint, 32 different endpoints would max out the required storage: -24/// ~200 bytes per session + certificates (which are ~387 bytes) -25/// So 8 * 32 * (200 + 387) = 150.272 bytes, assuming pointers to certificates -26/// are never aliased pointers (they're Arc'ed). -27/// I think 150KB is an acceptable default upper limit for such a cache. -28pub(crate) const DEFAULT_MAX_TLS_TICKETS: usize = 8 * 32; -29 -30/// Configuration for TLS. -31/// -32/// The main point of this struct is to keep state that should be kept the same -33/// over multiple TLS sessions the same. -34/// E.g. the `server_verifier` and `client_verifier` Arc pointers are checked to be -35/// the same between different TLS session calls with 0-RTT data in rustls. -36/// This makes sure that's the case. -37#[derive(Debug)] -38pub(crate) struct TlsConfig { -39 pub(crate) secret_key: SecretKey, -40 cert_resolver: Arc<AlwaysResolvesCert>, -41 server_verifier: Arc<verifier::ServerCertificateVerifier>, -42 client_verifier: Arc<verifier::ClientCertificateVerifier>, -43 session_store: Arc<dyn rustls::client::ClientSessionStore>, -44} -45 -46impl TlsConfig { -47 pub(crate) fn new(secret_key: SecretKey, max_tls_tickets: usize) -> Self { -48 let cert_resolver = Arc::new( -49 AlwaysResolvesCert::new(&secret_key).expect("Client cert key DER is valid; qed"), -50 ); -51 Self { -52 secret_key, -53 cert_resolver, -54 server_verifier: Arc::new(verifier::ServerCertificateVerifier), -55 client_verifier: Arc::new(verifier::ClientCertificateVerifier), -56 session_store: Arc::new(rustls::client::ClientSessionMemoryCache::new( -57 max_tls_tickets, -58 )), -59 } -60 } -61 -62 /// Create a TLS client configuration. -63 /// -64 /// If *keylog* is `true` this will enable logging of the pre-master key to the file in the -65 /// `SSLKEYLOGFILE` environment variable. This can be used to inspect the traffic for -66 /// debugging purposes. -67 pub(crate) fn make_client_config( -68 &self, -69 alpn_protocols: Vec<Vec<u8>>, -70 keylog: bool, -71 ) -> QuicClientConfig { -72 let mut crypto = rustls::ClientConfig::builder_with_provider(Arc::new( -73 rustls::crypto::ring::default_provider(), -74 )) -75 .with_protocol_versions(verifier::PROTOCOL_VERSIONS) -76 .expect("version supported by ring") -77 .dangerous() -78 .with_custom_certificate_verifier(self.server_verifier.clone()) -79 .with_client_cert_resolver(self.cert_resolver.clone()); -80 crypto.alpn_protocols = alpn_protocols; -81 -82 // TODO: enable/disable 0-RTT/storing tickets -83 crypto.resumption = rustls::client::Resumption::store(self.session_store.clone()); -84 crypto.enable_early_data = true; -85 -86 if keylog { -87 warn!("enabling SSLKEYLOGFILE for TLS pre-master keys"); -88 crypto.key_log = Arc::new(rustls::KeyLogFile::new()); -89 } -90 -91 crypto -92 .try_into() -93 .expect("expected to have a TLS1.3-compatible crypto provider set (hardcoded)") -94 } -95 -96 /// Create a TLS server configuration. -97 /// -98 /// If *keylog* is `true` this will enable logging of the pre-master key to the file in the -99 /// `SSLKEYLOGFILE` environment variable. This can be used to inspect the traffic for -100 /// debugging purposes. -101 pub(crate) fn make_server_config( -102 &self, -103 alpn_protocols: Vec<Vec<u8>>, -104 keylog: bool, -105 ) -> QuicServerConfig { -106 let mut crypto = rustls::ServerConfig::builder_with_provider(Arc::new( -107 rustls::crypto::ring::default_provider(), -108 )) -109 .with_protocol_versions(verifier::PROTOCOL_VERSIONS) -110 .expect("fixed config") -111 .with_client_cert_verifier(self.client_verifier.clone()) -112 .with_cert_resolver(self.cert_resolver.clone()); -113 crypto.alpn_protocols = alpn_protocols; -114 if keylog { -115 warn!("enabling SSLKEYLOGFILE for TLS pre-master keys"); -116 crypto.key_log = Arc::new(rustls::KeyLogFile::new()); -117 } -118 -119 // must be u32::MAX or 0 (the default). Any other value panics with QUIC -120 // This is specified in RFC 9001: https://www.rfc-editor.org/rfc/rfc9001#section-4.6.1 -121 crypto.max_early_data_size = u32::MAX; -122 crypto -123 .try_into() -124 .expect("expected to have a TLS1.3-compatible crypto provider set (hardcoded)") -125 } -126} \ No newline at end of file +20pub use iroh_relay::tls::{CaRootsConfig, default_provider}; +21 +22/// Maximum amount of TLS tickets we will cache (by default) for 0-RTT connection +23/// establishment. +24/// +25/// 8 tickets per remote endpoint, 32 different endpoints would max out the required storage: +26/// ~200 bytes per session + certificates (which are ~387 bytes) +27/// So 8 * 32 * (200 + 387) = 150.272 bytes, assuming pointers to certificates +28/// are never aliased pointers (they're Arc'ed). +29/// I think 150KB is an acceptable default upper limit for such a cache. +30pub(crate) const DEFAULT_MAX_TLS_TICKETS: usize = 8 * 32; +31 +32/// Configuration for TLS. +33/// +34/// The main point of this struct is to keep state that should be kept the same +35/// over multiple TLS sessions the same. +36/// E.g. the `server_verifier` and `client_verifier` Arc pointers are checked to be +37/// the same between different TLS session calls with 0-RTT data in rustls. +38/// This makes sure that's the case. +39#[derive(Debug)] +40pub(crate) struct TlsConfig { +41 pub(crate) secret_key: SecretKey, +42 cert_resolver: Arc<ResolveRawPublicKeyCert>, +43 server_verifier: Arc<verifier::ServerCertificateVerifier>, +44 client_verifier: Arc<verifier::ClientCertificateVerifier>, +45 session_store: Arc<dyn rustls::client::ClientSessionStore>, +46} +47 +48impl TlsConfig { +49 pub(crate) fn new(secret_key: SecretKey, max_tls_tickets: usize) -> Self { +50 Self { +51 cert_resolver: Arc::new(ResolveRawPublicKeyCert::new(&secret_key)), +52 server_verifier: Arc::new(verifier::ServerCertificateVerifier), +53 client_verifier: Arc::new(verifier::ClientCertificateVerifier), +54 session_store: Arc::new(rustls::client::ClientSessionMemoryCache::new( +55 max_tls_tickets, +56 )), +57 secret_key, +58 } +59 } +60 +61 /// Create a TLS client configuration. +62 /// +63 /// If *keylog* is `true` this will enable logging of the pre-master key to the file in the +64 /// `SSLKEYLOGFILE` environment variable. This can be used to inspect the traffic for +65 /// debugging purposes. +66 pub(crate) fn make_client_config( +67 &self, +68 alpn_protocols: Vec<Vec<u8>>, +69 keylog: bool, +70 ) -> QuicClientConfig { +71 let mut crypto = rustls::ClientConfig::builder_with_provider(default_provider()) +72 .with_protocol_versions(verifier::PROTOCOL_VERSIONS) +73 .expect("version supported by ring") +74 .dangerous() +75 .with_custom_certificate_verifier(self.server_verifier.clone()) +76 .with_client_cert_resolver(self.cert_resolver.clone()); +77 crypto.alpn_protocols = alpn_protocols; +78 +79 // TODO: enable/disable 0-RTT/storing tickets +80 crypto.resumption = rustls::client::Resumption::store(self.session_store.clone()); +81 crypto.enable_early_data = true; +82 +83 if keylog { +84 warn!("enabling SSLKEYLOGFILE for TLS pre-master keys"); +85 crypto.key_log = Arc::new(rustls::KeyLogFile::new()); +86 } +87 +88 crypto +89 .try_into() +90 .expect("expected to have a TLS1.3-compatible crypto provider set (hardcoded)") +91 } +92 +93 /// Create a TLS server configuration. +94 /// +95 /// If *keylog* is `true` this will enable logging of the pre-master key to the file in the +96 /// `SSLKEYLOGFILE` environment variable. This can be used to inspect the traffic for +97 /// debugging purposes. +98 pub(crate) fn make_server_config( +99 &self, +100 alpn_protocols: Vec<Vec<u8>>, +101 keylog: bool, +102 ) -> QuicServerConfig { +103 let mut crypto = rustls::ServerConfig::builder_with_provider(Arc::new( +104 rustls::crypto::ring::default_provider(), +105 )) +106 .with_protocol_versions(verifier::PROTOCOL_VERSIONS) +107 .expect("fixed config") +108 .with_client_cert_verifier(self.client_verifier.clone()) +109 .with_cert_resolver(self.cert_resolver.clone()); +110 crypto.alpn_protocols = alpn_protocols; +111 if keylog { +112 warn!("enabling SSLKEYLOGFILE for TLS pre-master keys"); +113 crypto.key_log = Arc::new(rustls::KeyLogFile::new()); +114 } +115 +116 // must be u32::MAX or 0 (the default). Any other value panics with QUIC +117 // This is specified in RFC 9001: https://www.rfc-editor.org/rfc/rfc9001#section-4.6.1 +118 crypto.max_early_data_size = u32::MAX; +119 crypto +120 .try_into() +121 .expect("expected to have a TLS1.3-compatible crypto provider set (hardcoded)") +122 } +123} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/tls/resolver.rs.html b/pr/3958/docs/src/iroh/tls/resolver.rs.html index 4ad933e9df..9e10f726a4 100644 --- a/pr/3958/docs/src/iroh/tls/resolver.rs.html +++ b/pr/3958/docs/src/iroh/tls/resolver.rs.html @@ -1,80 +1,100 @@ -resolver.rs - source

    iroh/tls/
    resolver.rs

    1use std::sync::Arc;
    +resolver.rs - source

    iroh/tls/
    resolver.rs

    1use std::sync::Arc;
     2
    -3use ed25519_dalek::pkcs8::{EncodePrivateKey, spki::der::pem::LineEnding};
    -4use iroh_base::SecretKey;
    -5use n0_error::stack_error;
    -6use webpki_types::{CertificateDer, PrivatePkcs8KeyDer, pem::PemObject};
    -7
    -8#[derive(Debug)]
    -9pub(super) struct AlwaysResolvesCert {
    -10    key: Arc<rustls::sign::CertifiedKey>,
    -11}
    -12
    -13/// Error for generating TLS configs.
    -14#[stack_error(derive, add_meta, from_sources, std_sources)]
    -15#[non_exhaustive]
    -16pub(super) enum CreateConfigError {
    -17    /// Rustls configuration error
    -18    #[error("rustls error")]
    -19    Rustls { source: rustls::Error },
    -20}
    +3use iroh_base::SecretKey;
    +4use webpki_types::CertificateDer;
    +5
    +6#[derive(Debug)]
    +7pub(super) struct ResolveRawPublicKeyCert {
    +8    key: Arc<rustls::sign::CertifiedKey>,
    +9}
    +10
    +11impl ResolveRawPublicKeyCert {
    +12    pub(super) fn new(secret_key: &SecretKey) -> Self {
    +13        let client_private_key = Arc::new(IrohSecretKey::from(secret_key.clone()));
    +14        let client_public_key = client_private_key.spki_public_key();
    +15        let client_public_key_as_cert = CertificateDer::from(client_public_key.to_vec());
    +16
    +17        let certified_key =
    +18            rustls::sign::CertifiedKey::new(vec![client_public_key_as_cert], client_private_key);
    +19
    +20        let key = Arc::new(certified_key);
     21
    -22impl AlwaysResolvesCert {
    -23    pub(super) fn new(secret_key: &SecretKey) -> Result<Self, CreateConfigError> {
    -24        // Directly use the key
    -25        let client_private_key = secret_key
    -26            .as_signing_key()
    -27            .to_pkcs8_pem(LineEnding::default())
    -28            .expect("key is valid");
    -29
    -30        let client_private_key = PrivatePkcs8KeyDer::from_pem_slice(client_private_key.as_bytes())
    -31            .expect("cannot open private key file");
    -32        let client_private_key = rustls::crypto::ring::sign::any_eddsa_type(&client_private_key)?;
    -33
    -34        let client_public_key = client_private_key
    -35            .public_key()
    -36            .ok_or(rustls::Error::InconsistentKeys(
    -37                rustls::InconsistentKeys::Unknown,
    -38            ))
    -39            .expect("cannot load public key");
    -40        let client_public_key_as_cert = CertificateDer::from(client_public_key.to_vec());
    -41
    -42        let certified_key =
    -43            rustls::sign::CertifiedKey::new(vec![client_public_key_as_cert], client_private_key);
    -44
    -45        let key = Arc::new(certified_key);
    -46
    -47        Ok(Self { key })
    -48    }
    -49}
    -50
    -51impl rustls::client::ResolvesClientCert for AlwaysResolvesCert {
    -52    fn resolve(
    -53        &self,
    -54        _root_hint_subjects: &[&[u8]],
    -55        _sigschemes: &[rustls::SignatureScheme],
    -56    ) -> Option<Arc<rustls::sign::CertifiedKey>> {
    -57        Some(Arc::clone(&self.key))
    -58    }
    -59
    -60    fn only_raw_public_keys(&self) -> bool {
    -61        true
    -62    }
    -63
    -64    fn has_certs(&self) -> bool {
    -65        true
    -66    }
    -67}
    -68
    -69impl rustls::server::ResolvesServerCert for AlwaysResolvesCert {
    -70    fn resolve(
    -71        &self,
    -72        _client_hello: rustls::server::ClientHello<'_>,
    -73    ) -> Option<Arc<rustls::sign::CertifiedKey>> {
    -74        Some(Arc::clone(&self.key))
    -75    }
    -76
    -77    fn only_raw_public_keys(&self) -> bool {
    -78        true
    -79    }
    -80}
    \ No newline at end of file +22 Self { key } +23 } +24} +25 +26impl rustls::client::ResolvesClientCert for ResolveRawPublicKeyCert { +27 fn resolve( +28 &self, +29 _root_hint_subjects: &[&[u8]], +30 _sigschemes: &[rustls::SignatureScheme], +31 ) -> Option<Arc<rustls::sign::CertifiedKey>> { +32 Some(Arc::clone(&self.key)) +33 } +34 +35 fn only_raw_public_keys(&self) -> bool { +36 true +37 } +38 +39 fn has_certs(&self) -> bool { +40 true +41 } +42} +43 +44impl rustls::server::ResolvesServerCert for ResolveRawPublicKeyCert { +45 fn resolve( +46 &self, +47 _client_hello: rustls::server::ClientHello<'_>, +48 ) -> Option<Arc<rustls::sign::CertifiedKey>> { +49 Some(Arc::clone(&self.key)) +50 } +51 +52 fn only_raw_public_keys(&self) -> bool { +53 true +54 } +55} +56 +57#[derive(Debug, Clone, derive_more::From)] +58struct IrohSecretKey { +59 #[from] +60 key: SecretKey, +61} +62 +63impl IrohSecretKey { +64 fn spki_public_key(&self) -> webpki_types::SubjectPublicKeyInfoDer<'static> { +65 rustls::sign::public_key_to_spki( +66 &webpki_types::alg_id::ED25519, +67 self.key.public().as_bytes(), +68 ) +69 } +70} +71impl rustls::sign::SigningKey for IrohSecretKey { +72 fn choose_scheme( +73 &self, +74 offered: &[rustls::SignatureScheme], +75 ) -> Option<Box<dyn rustls::sign::Signer>> { +76 if offered.contains(&rustls::SignatureScheme::ED25519) { +77 Some(Box::new(self.clone())) +78 } else { +79 None +80 } +81 } +82 +83 fn algorithm(&self) -> rustls::SignatureAlgorithm { +84 rustls::SignatureAlgorithm::ED25519 +85 } +86 +87 fn public_key(&self) -> Option<webpki_types::SubjectPublicKeyInfoDer<'_>> { +88 Some(self.spki_public_key()) +89 } +90} +91 +92impl rustls::sign::Signer for IrohSecretKey { +93 fn sign(&self, message: &[u8]) -> Result<Vec<u8>, rustls::Error> { +94 Ok(self.key.sign(message).to_bytes().to_vec()) +95 } +96 +97 fn scheme(&self) -> rustls::SignatureScheme { +98 rustls::SignatureScheme::ED25519 +99 } +100}
    \ No newline at end of file diff --git a/pr/3958/docs/src/iroh/util.rs.html b/pr/3958/docs/src/iroh/util.rs.html index 75384ddc90..6702ca5d5d 100644 --- a/pr/3958/docs/src/iroh/util.rs.html +++ b/pr/3958/docs/src/iroh/util.rs.html @@ -71,33 +71,39 @@ 71 72/// Creates a reqwest client builder that always uses the rustls backend, unless we 73/// are in a browser context, where that is not supported. -74pub(crate) fn reqwest_client_builder() -> reqwest::ClientBuilder { -75 let mut builder = reqwest::Client::builder(); -76 #[cfg(not(wasm_browser))] -77 { -78 builder = builder.use_rustls_tls(); -79 } -80 builder -81} -82 -83#[cfg(test)] -84mod tests { -85 use std::pin::pin; -86 -87 use n0_future::time::Duration; +74pub(crate) fn reqwest_client_builder( +75 tls_client_config: Option<rustls::ClientConfig>, +76) -> reqwest::ClientBuilder { +77 let mut builder = reqwest::Client::builder(); +78 #[cfg(not(wasm_browser))] +79 { +80 builder = if let Some(config) = tls_client_config { +81 builder.use_preconfigured_tls(config) +82 } else { +83 builder.use_rustls_tls() +84 }; +85 } +86 builder +87} 88 -89 use super::*; -90 -91 #[tokio::test] -92 async fn test_maybefuture_poll_after_use() { -93 let fut = async move { "hello" }; -94 let mut maybe_fut = pin!(MaybeFuture::Some(fut)); -95 let res = (&mut maybe_fut).await; +89#[cfg(test)] +90mod tests { +91 use std::pin::pin; +92 +93 use n0_future::time::Duration; +94 +95 use super::*; 96 -97 assert_eq!(res, "hello"); -98 -99 // Now poll again -100 let res = tokio::time::timeout(Duration::from_millis(10), maybe_fut).await; -101 assert!(res.is_err()); -102 } -103} \ No newline at end of file +97 #[tokio::test] +98 async fn test_maybefuture_poll_after_use() { +99 let fut = async move { "hello" }; +100 let mut maybe_fut = pin!(MaybeFuture::Some(fut)); +101 let res = (&mut maybe_fut).await; +102 +103 assert_eq!(res, "hello"); +104 +105 // Now poll again +106 let res = tokio::time::timeout(Duration::from_millis(10), maybe_fut).await; +107 assert!(res.is_err()); +108 } +109} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_bench/iroh.rs.html b/pr/3958/docs/src/iroh_bench/iroh.rs.html index c364fd8278..5df3bf1e21 100644 --- a/pr/3958/docs/src/iroh_bench/iroh.rs.html +++ b/pr/3958/docs/src/iroh_bench/iroh.rs.html @@ -33,266 +33,270 @@ 33 let mut builder = Endpoint::builder(); 34 #[cfg(feature = "local-relay")] 35 { -36 builder = builder.insecure_skip_relay_cert_verify(relay_url.is_some()); -37 if opt.only_relay { -38 builder = builder.clear_ip_transports(); -39 } -40 } -41 let ep = builder -42 .alpns(vec![ALPN.to_vec()]) -43 .relay_mode(relay_mode) -44 .transport_config(transport_config(opt.max_streams, opt.initial_mtu)) -45 .bind() -46 .await -47 .unwrap(); -48 -49 if relay_url.is_some() { -50 ep.online().await; -51 } -52 -53 let addr = ep.bound_sockets(); -54 let addr = SocketAddr::new("127.0.0.1".parse().unwrap(), addr[0].port()); -55 let mut addr = EndpointAddr::new(ep.id()).with_ip_addr(addr); -56 if let Some(relay_url) = relay_url { -57 addr = addr.with_relay_url(relay_url.clone()); -58 } -59 (addr, ep) -60 }) -61} -62 -63/// Create and run a client -64pub async fn client( -65 server_addr: EndpointAddr, -66 relay_url: Option<RelayUrl>, -67 opt: Opt, -68) -> Result<ClientStats> { -69 let client_start = std::time::Instant::now(); -70 let (endpoint, connection) = connect_client(server_addr, relay_url, opt).await?; -71 let client_connect_time = client_start.elapsed(); -72 let mut res = client_handler( -73 EndpointSelector::Iroh(endpoint), -74 ConnectionSelector::Iroh(connection), -75 opt, -76 ) -77 .await?; -78 res.connect_time = client_connect_time; -79 Ok(res) -80} -81 -82/// Create a client endpoint and client connection -83pub async fn connect_client( -84 server_addr: EndpointAddr, -85 relay_url: Option<RelayUrl>, -86 opt: Opt, -87) -> Result<(Endpoint, Connection)> { -88 let relay_mode = relay_url -89 .clone() -90 .map_or(RelayMode::Disabled, |url| RelayMode::Custom(url.into())); -91 #[allow(unused_mut)] -92 let mut builder = Endpoint::builder(); -93 #[cfg(feature = "local-relay")] -94 { -95 builder = builder.insecure_skip_relay_cert_verify(relay_url.is_some()); -96 if opt.only_relay { -97 builder = builder.clear_ip_transports(); -98 } -99 } -100 let endpoint = builder -101 .alpns(vec![ALPN.to_vec()]) -102 .relay_mode(relay_mode) -103 .transport_config(transport_config(opt.max_streams, opt.initial_mtu)) -104 .bind() -105 .await -106 .unwrap(); -107 -108 if relay_url.is_some() { -109 endpoint.online().await; -110 } +36 if relay_url.is_some() { +37 builder = builder.ca_roots_config(iroh::tls::CaRootsConfig::insecure_skip_verify()); +38 } +39 if opt.only_relay { +40 builder = builder.clear_ip_transports(); +41 } +42 } +43 let ep = builder +44 .alpns(vec![ALPN.to_vec()]) +45 .relay_mode(relay_mode) +46 .transport_config(transport_config(opt.max_streams, opt.initial_mtu)) +47 .bind() +48 .await +49 .unwrap(); +50 +51 if relay_url.is_some() { +52 ep.online().await; +53 } +54 +55 let addr = ep.bound_sockets(); +56 let addr = SocketAddr::new("127.0.0.1".parse().unwrap(), addr[0].port()); +57 let mut addr = EndpointAddr::new(ep.id()).with_ip_addr(addr); +58 if let Some(relay_url) = relay_url { +59 addr = addr.with_relay_url(relay_url.clone()); +60 } +61 (addr, ep) +62 }) +63} +64 +65/// Create and run a client +66pub async fn client( +67 server_addr: EndpointAddr, +68 relay_url: Option<RelayUrl>, +69 opt: Opt, +70) -> Result<ClientStats> { +71 let client_start = std::time::Instant::now(); +72 let (endpoint, connection) = connect_client(server_addr, relay_url, opt).await?; +73 let client_connect_time = client_start.elapsed(); +74 let mut res = client_handler( +75 EndpointSelector::Iroh(endpoint), +76 ConnectionSelector::Iroh(connection), +77 opt, +78 ) +79 .await?; +80 res.connect_time = client_connect_time; +81 Ok(res) +82} +83 +84/// Create a client endpoint and client connection +85pub async fn connect_client( +86 server_addr: EndpointAddr, +87 relay_url: Option<RelayUrl>, +88 opt: Opt, +89) -> Result<(Endpoint, Connection)> { +90 let relay_mode = relay_url +91 .clone() +92 .map_or(RelayMode::Disabled, |url| RelayMode::Custom(url.into())); +93 #[allow(unused_mut)] +94 let mut builder = Endpoint::builder(); +95 #[cfg(feature = "local-relay")] +96 { +97 if relay_url.is_some() { +98 builder = builder.ca_roots_config(iroh::tls::CaRootsConfig::insecure_skip_verify()); +99 } +100 if opt.only_relay { +101 builder = builder.clear_ip_transports(); +102 } +103 } +104 let endpoint = builder +105 .alpns(vec![ALPN.to_vec()]) +106 .relay_mode(relay_mode) +107 .transport_config(transport_config(opt.max_streams, opt.initial_mtu)) +108 .bind() +109 .await +110 .unwrap(); 111 -112 // TODO: We don't support passing client transport config currently -113 // let mut client_config = quinn::ClientConfig::new(Arc::new(crypto)); -114 // client_config.transport_config(Arc::new(transport_config(&opt))); +112 if relay_url.is_some() { +113 endpoint.online().await; +114 } 115 -116 let connection = endpoint -117 .connect(server_addr, ALPN) -118 .await -119 .context("unable to connect")?; -120 trace!("connected"); -121 -122 Ok((endpoint, connection)) -123} -124 -125pub fn transport_config(max_streams: usize, initial_mtu: u16) -> QuicTransportConfig { -126 // High stream windows are chosen because the amount of concurrent streams -127 // is configurable as a parameter. -128 let mut builder = QuicTransportConfig::builder() -129 .max_concurrent_uni_streams(max_streams.try_into().unwrap()) -130 .initial_mtu(initial_mtu); -131 -132 let mut acks = quinn::AckFrequencyConfig::default(); -133 acks.ack_eliciting_threshold(10u32.into()); -134 builder = builder.ack_frequency_config(Some(acks)); +116 // TODO: We don't support passing client transport config currently +117 // let mut client_config = quinn::ClientConfig::new(Arc::new(crypto)); +118 // client_config.transport_config(Arc::new(transport_config(&opt))); +119 +120 let connection = endpoint +121 .connect(server_addr, ALPN) +122 .await +123 .context("unable to connect")?; +124 trace!("connected"); +125 +126 Ok((endpoint, connection)) +127} +128 +129pub fn transport_config(max_streams: usize, initial_mtu: u16) -> QuicTransportConfig { +130 // High stream windows are chosen because the amount of concurrent streams +131 // is configurable as a parameter. +132 let mut builder = QuicTransportConfig::builder() +133 .max_concurrent_uni_streams(max_streams.try_into().unwrap()) +134 .initial_mtu(initial_mtu); 135 -136 #[cfg(feature = "qlog")] -137 { -138 builder = builder.qlog_from_env("bench-iroh"); -139 } -140 -141 builder.build() -142} -143 -144async fn drain_stream( -145 mut stream: RecvStream, -146 read_unordered: bool, -147) -> Result<(usize, Duration, u64)> { -148 let mut read = 0; -149 -150 let download_start = Instant::now(); -151 let mut first_byte = true; -152 let mut ttfb = download_start.elapsed(); +136 let mut acks = quinn::AckFrequencyConfig::default(); +137 acks.ack_eliciting_threshold(10u32.into()); +138 builder = builder.ack_frequency_config(Some(acks)); +139 +140 #[cfg(feature = "qlog")] +141 { +142 builder = builder.qlog_from_env("bench-iroh"); +143 } +144 +145 builder.build() +146} +147 +148async fn drain_stream( +149 mut stream: RecvStream, +150 read_unordered: bool, +151) -> Result<(usize, Duration, u64)> { +152 let mut read = 0; 153 -154 let mut num_chunks: u64 = 0; -155 -156 if read_unordered { -157 let mut stream = stream.into_unordered(); -158 while let Some(chunk) = stream.read_chunk(usize::MAX).await.anyerr()? { -159 if first_byte { -160 ttfb = download_start.elapsed(); -161 first_byte = false; -162 } -163 read += chunk.bytes.len(); -164 num_chunks += 1; -165 } -166 } else { -167 // These are 32 buffers, for reading approximately 32kB at once -168 #[rustfmt::skip] -169 let mut bufs = [ -170 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), -171 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), -172 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), -173 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), +154 let download_start = Instant::now(); +155 let mut first_byte = true; +156 let mut ttfb = download_start.elapsed(); +157 +158 let mut num_chunks: u64 = 0; +159 +160 if read_unordered { +161 let mut stream = stream.into_unordered(); +162 while let Some(chunk) = stream.read_chunk(usize::MAX).await.anyerr()? { +163 if first_byte { +164 ttfb = download_start.elapsed(); +165 first_byte = false; +166 } +167 read += chunk.bytes.len(); +168 num_chunks += 1; +169 } +170 } else { +171 // These are 32 buffers, for reading approximately 32kB at once +172 #[rustfmt::skip] +173 let mut bufs = [ 174 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), 175 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), 176 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), 177 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), -178 ]; -179 -180 while let Some(n) = stream.read_chunks(&mut bufs[..]).await.anyerr()? { -181 if first_byte { -182 ttfb = download_start.elapsed(); -183 first_byte = false; -184 } -185 read += bufs.iter().take(n).map(|buf| buf.len()).sum::<usize>(); -186 num_chunks += 1; -187 } -188 } -189 -190 Ok((read, ttfb, num_chunks)) -191} -192 -193async fn send_data_on_stream(stream: &mut SendStream, stream_size: u64) -> Result<()> { -194 const DATA: &[u8] = &[0xAB; 1024 * 1024]; -195 let bytes_data = Bytes::from_static(DATA); +178 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), +179 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), +180 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), +181 Bytes::new(), Bytes::new(), Bytes::new(), Bytes::new(), +182 ]; +183 +184 while let Some(n) = stream.read_chunks(&mut bufs[..]).await.anyerr()? { +185 if first_byte { +186 ttfb = download_start.elapsed(); +187 first_byte = false; +188 } +189 read += bufs.iter().take(n).map(|buf| buf.len()).sum::<usize>(); +190 num_chunks += 1; +191 } +192 } +193 +194 Ok((read, ttfb, num_chunks)) +195} 196 -197 let full_chunks = stream_size / (DATA.len() as u64); -198 let remaining = (stream_size % (DATA.len() as u64)) as usize; -199 -200 for _ in 0..full_chunks { -201 stream -202 .write_chunk(bytes_data.clone()) -203 .await -204 .std_context("failed sending data")?; -205 } -206 -207 if remaining != 0 { -208 stream -209 .write_chunk(bytes_data.slice(0..remaining)) -210 .await -211 .std_context("failed sending data")?; -212 } -213 -214 stream.finish().std_context("failed finishing stream")?; -215 stream -216 .stopped() -217 .await -218 .std_context("failed to wait for stream to be stopped")?; -219 -220 Ok(()) -221} -222 -223pub async fn handle_client_stream( -224 connection: &Connection, -225 upload_size: u64, -226 read_unordered: bool, -227) -> Result<(TransferResult, TransferResult)> { -228 let start = Instant::now(); -229 -230 let (mut send_stream, recv_stream) = connection -231 .open_bi() -232 .await -233 .std_context("failed to open stream")?; -234 -235 send_data_on_stream(&mut send_stream, upload_size).await?; -236 -237 let upload_result = TransferResult::new(start.elapsed(), upload_size, Duration::default(), 0); +197async fn send_data_on_stream(stream: &mut SendStream, stream_size: u64) -> Result<()> { +198 const DATA: &[u8] = &[0xAB; 1024 * 1024]; +199 let bytes_data = Bytes::from_static(DATA); +200 +201 let full_chunks = stream_size / (DATA.len() as u64); +202 let remaining = (stream_size % (DATA.len() as u64)) as usize; +203 +204 for _ in 0..full_chunks { +205 stream +206 .write_chunk(bytes_data.clone()) +207 .await +208 .std_context("failed sending data")?; +209 } +210 +211 if remaining != 0 { +212 stream +213 .write_chunk(bytes_data.slice(0..remaining)) +214 .await +215 .std_context("failed sending data")?; +216 } +217 +218 stream.finish().std_context("failed finishing stream")?; +219 stream +220 .stopped() +221 .await +222 .std_context("failed to wait for stream to be stopped")?; +223 +224 Ok(()) +225} +226 +227pub async fn handle_client_stream( +228 connection: &Connection, +229 upload_size: u64, +230 read_unordered: bool, +231) -> Result<(TransferResult, TransferResult)> { +232 let start = Instant::now(); +233 +234 let (mut send_stream, recv_stream) = connection +235 .open_bi() +236 .await +237 .std_context("failed to open stream")?; 238 -239 let start = Instant::now(); -240 let (size, ttfb, num_chunks) = drain_stream(recv_stream, read_unordered).await?; -241 let download_result = TransferResult::new(start.elapsed(), size as u64, ttfb, num_chunks); +239 send_data_on_stream(&mut send_stream, upload_size).await?; +240 +241 let upload_result = TransferResult::new(start.elapsed(), upload_size, Duration::default(), 0); 242 -243 Ok((upload_result, download_result)) -244} -245 -246/// Take the provided endpoint and run the server -247pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()> { -248 let mut server_tasks = Vec::new(); +243 let start = Instant::now(); +244 let (size, ttfb, num_chunks) = drain_stream(recv_stream, read_unordered).await?; +245 let download_result = TransferResult::new(start.elapsed(), size as u64, ttfb, num_chunks); +246 +247 Ok((upload_result, download_result)) +248} 249 -250 // Handle only the expected amount of clients -251 for _ in 0..opt.clients { -252 let incoming = endpoint.accept().await.unwrap(); -253 let accepting = match incoming.accept() { -254 Ok(accepting) => accepting, -255 Err(err) => { -256 warn!("incoming connection failed: {err:#}"); -257 // we can carry on in these cases: -258 // this can be caused by retransmitted datagrams -259 continue; -260 } -261 }; -262 let connection = accepting.await.context("handshake failed")?; -263 -264 server_tasks.push(tokio::spawn(async move { -265 loop { -266 let (mut send_stream, recv_stream) = match connection.accept_bi().await { -267 Err(ConnectionError::ApplicationClosed(_)) => break, -268 Err(e) => { -269 eprintln!("accepting stream failed: {e:?}"); -270 break; -271 } -272 Ok(stream) => stream, -273 }; -274 trace!("stream established"); -275 -276 tokio::spawn(async move { -277 drain_stream(recv_stream, opt.read_unordered).await?; -278 send_data_on_stream(&mut send_stream, opt.download_size).await?; -279 n0_error::Ok(()) -280 }); -281 } -282 -283 if opt.stats { -284 println!("\nServer connection stats:\n{:#?}", connection.stats()); +250/// Take the provided endpoint and run the server +251pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()> { +252 let mut server_tasks = Vec::new(); +253 +254 // Handle only the expected amount of clients +255 for _ in 0..opt.clients { +256 let incoming = endpoint.accept().await.unwrap(); +257 let accepting = match incoming.accept() { +258 Ok(accepting) => accepting, +259 Err(err) => { +260 warn!("incoming connection failed: {err:#}"); +261 // we can carry on in these cases: +262 // this can be caused by retransmitted datagrams +263 continue; +264 } +265 }; +266 let connection = accepting.await.context("handshake failed")?; +267 +268 server_tasks.push(tokio::spawn(async move { +269 loop { +270 let (mut send_stream, recv_stream) = match connection.accept_bi().await { +271 Err(ConnectionError::ApplicationClosed(_)) => break, +272 Err(e) => { +273 eprintln!("accepting stream failed: {e:?}"); +274 break; +275 } +276 Ok(stream) => stream, +277 }; +278 trace!("stream established"); +279 +280 tokio::spawn(async move { +281 drain_stream(recv_stream, opt.read_unordered).await?; +282 send_data_on_stream(&mut send_stream, opt.download_size).await?; +283 n0_error::Ok(()) +284 }); 285 } -286 })); -287 } -288 -289 // Await all the tasks. We have to do this to prevent the runtime getting dropped -290 // and all server tasks to be cancelled -291 for handle in server_tasks { -292 if let Err(e) = handle.await { -293 eprintln!("Server task error: {e:?}"); -294 }; -295 } -296 -297 Ok(()) -298} \ No newline at end of file +286 +287 if opt.stats { +288 println!("\nServer connection stats:\n{:#?}", connection.stats()); +289 } +290 })); +291 } +292 +293 // Await all the tasks. We have to do this to prevent the runtime getting dropped +294 // and all server tasks to be cancelled +295 for handle in server_tasks { +296 if let Err(e) = handle.await { +297 eprintln!("Server task error: {e:?}"); +298 }; +299 } +300 +301 Ok(()) +302} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_dns_server/http.rs.html b/pr/3958/docs/src/iroh_dns_server/http.rs.html index f2db61148f..dc1b1a18ff 100644 --- a/pr/3958/docs/src/iroh_dns_server/http.rs.html +++ b/pr/3958/docs/src/iroh_dns_server/http.rs.html @@ -306,209 +306,213 @@ 306 RelayUrl, SecretKey, 307 address_lookup::{EndpointInfo, PkarrRelayClient}, 308 endpoint_info::EndpointIdExt, -309 }; -310 use n0_error::StdResultExt; -311 use n0_tracing_test::traced_test; -312 use rand::SeedableRng; -313 -314 use crate::{http::HttpsConfig, server::Server}; -315 -316 #[tokio::test] -317 #[traced_test] -318 async fn test_doh() -> n0_error::Result { -319 let mut rng = rand_chacha::ChaCha12Rng::seed_from_u64(0); -320 let dir = tempfile::tempdir()?; -321 let https_config = HttpsConfig { -322 port: 0, -323 bind_addr: Some(IpAddr::V4(Ipv4Addr::LOCALHOST)), -324 domains: vec!["localhost".to_string()], -325 cert_mode: crate::http::CertMode::SelfSigned, -326 letsencrypt_contact: None, -327 letsencrypt_prod: None, -328 }; -329 let server = -330 Server::spawn_for_tests_with_options(dir.path(), None, None, Some(https_config)) -331 .await?; -332 -333 const RELAY_URL: &str = "https://relay.example./"; -334 let (name_z32, signed_packet) = { -335 let secret_key = SecretKey::generate(&mut rng); -336 let endpoint_id = secret_key.public(); -337 let relay_url: RelayUrl = RELAY_URL.parse().expect("valid url"); -338 let endpoint_info = -339 EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); -340 ( -341 secret_key.public().to_z32(), -342 endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?, -343 ) -344 }; -345 -346 let http_url = server.http_url().expect("http is bound"); -347 let pkarr = PkarrRelayClient::new(format!("{http_url}pkarr").parse().anyerr()?); -348 pkarr.publish(&signed_packet).await?; -349 -350 // Create a reqwest client that does not verify certificates. -351 let client = reqwest::Client::builder() -352 .http2_prior_knowledge() -353 .use_preconfigured_tls(self::tls::insecure_tls_config()) -354 .build() -355 .anyerr()?; -356 -357 // Fetch as JSON via HTTP. -358 let url = format!( -359 "{http_url}dns-query?name={}&type=txt", -360 format_args!("_iroh.{name_z32}."), -361 ); -362 let res = client -363 .get(url) -364 .header("accept", "application/dns-json") -365 .send() -366 .await -367 .anyerr()? -368 .json::<super::doh::DnsResponse>() -369 .await -370 .anyerr()?; -371 assert_eq!(res.answer.len(), 1); -372 assert_eq!(res.answer[0].name, format!("_iroh.{name_z32}.")); -373 assert_eq!(res.answer[0].data, format!("relay={RELAY_URL}")); -374 -375 // Fetch as JSON via HTTPS. -376 let https_url = server.https_url().expect("https is bound"); -377 let url = format!( -378 "{https_url}dns-query?name={}&type=txt", -379 format_args!("_iroh.{name_z32}."), -380 ); -381 let res = client -382 .get(url) -383 .header("accept", "application/dns-json") -384 .send() -385 .await -386 .anyerr()? -387 .json::<super::doh::DnsResponse>() -388 .await -389 .anyerr()?; -390 assert_eq!(res.answer.len(), 1); -391 assert_eq!(res.answer[0].name, format!("_iroh.{name_z32}.")); -392 assert_eq!(res.answer[0].data, format!("relay={RELAY_URL}")); -393 -394 // Fetch over HTTPS via hickory-resolver -395 let client = { -396 let config = { -397 let mut config = ResolverConfig::new(); -398 let mut name_server = NameServerConfig::new( -399 server.https_addr().expect("https is bound"), -400 hickory_server::proto::xfer::Protocol::Https, -401 ); -402 name_server.tls_dns_name = Some("localhost".to_string()); -403 config.add_name_server(name_server); -404 config -405 }; -406 -407 let opts = { -408 let mut opts = ResolverOpts::default(); -409 opts.tls_config = self::tls::insecure_tls_config(); -410 opts -411 }; -412 -413 hickory_resolver::Resolver::builder_with_config( -414 config, -415 TokioConnectionProvider::default(), -416 ) -417 .with_options(opts) -418 .build() -419 }; -420 -421 let res = client -422 .txt_lookup(format!("_iroh.{name_z32}.")) -423 .await -424 .anyerr()?; -425 let records = res.as_lookup().records(); -426 assert_eq!(records.len(), 1); -427 assert_eq!(records[0].record_type(), RecordType::TXT); -428 let txt_data = records[0].data().as_txt().unwrap().txt_data(); -429 assert_eq!(&txt_data[0][..], format!("relay={RELAY_URL}").as_bytes()); -430 -431 server.shutdown().await?; -432 Ok(()) -433 } +309 tls::{CaRootsConfig, default_provider}, +310 }; +311 use n0_error::StdResultExt; +312 use n0_tracing_test::traced_test; +313 use rand::SeedableRng; +314 +315 use crate::{http::HttpsConfig, server::Server}; +316 +317 #[tokio::test] +318 #[traced_test] +319 async fn test_doh() -> n0_error::Result { +320 let mut rng = rand_chacha::ChaCha12Rng::seed_from_u64(0); +321 let dir = tempfile::tempdir()?; +322 let https_config = HttpsConfig { +323 port: 0, +324 bind_addr: Some(IpAddr::V4(Ipv4Addr::LOCALHOST)), +325 domains: vec!["localhost".to_string()], +326 cert_mode: crate::http::CertMode::SelfSigned, +327 letsencrypt_contact: None, +328 letsencrypt_prod: None, +329 }; +330 let server = +331 Server::spawn_for_tests_with_options(dir.path(), None, None, Some(https_config)) +332 .await?; +333 +334 const RELAY_URL: &str = "https://relay.example./"; +335 let (name_z32, signed_packet) = { +336 let secret_key = SecretKey::generate(&mut rng); +337 let endpoint_id = secret_key.public(); +338 let relay_url: RelayUrl = RELAY_URL.parse().expect("valid url"); +339 let endpoint_info = +340 EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); +341 ( +342 secret_key.public().to_z32(), +343 endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?, +344 ) +345 }; +346 +347 let http_url = server.http_url().expect("http is bound"); +348 let tls_config = CaRootsConfig::default() +349 .client_config(default_provider()) +350 .expect("infallible"); +351 let pkarr = PkarrRelayClient::new(format!("{http_url}pkarr").parse().anyerr()?, tls_config); +352 pkarr.publish(&signed_packet).await?; +353 +354 // Create a reqwest client that does not verify certificates. +355 let client = reqwest::Client::builder() +356 .http2_prior_knowledge() +357 .use_preconfigured_tls(self::tls::insecure_tls_config()) +358 .build() +359 .anyerr()?; +360 +361 // Fetch as JSON via HTTP. +362 let url = format!( +363 "{http_url}dns-query?name={}&type=txt", +364 format_args!("_iroh.{name_z32}."), +365 ); +366 let res = client +367 .get(url) +368 .header("accept", "application/dns-json") +369 .send() +370 .await +371 .anyerr()? +372 .json::<super::doh::DnsResponse>() +373 .await +374 .anyerr()?; +375 assert_eq!(res.answer.len(), 1); +376 assert_eq!(res.answer[0].name, format!("_iroh.{name_z32}.")); +377 assert_eq!(res.answer[0].data, format!("relay={RELAY_URL}")); +378 +379 // Fetch as JSON via HTTPS. +380 let https_url = server.https_url().expect("https is bound"); +381 let url = format!( +382 "{https_url}dns-query?name={}&type=txt", +383 format_args!("_iroh.{name_z32}."), +384 ); +385 let res = client +386 .get(url) +387 .header("accept", "application/dns-json") +388 .send() +389 .await +390 .anyerr()? +391 .json::<super::doh::DnsResponse>() +392 .await +393 .anyerr()?; +394 assert_eq!(res.answer.len(), 1); +395 assert_eq!(res.answer[0].name, format!("_iroh.{name_z32}.")); +396 assert_eq!(res.answer[0].data, format!("relay={RELAY_URL}")); +397 +398 // Fetch over HTTPS via hickory-resolver +399 let client = { +400 let config = { +401 let mut config = ResolverConfig::new(); +402 let mut name_server = NameServerConfig::new( +403 server.https_addr().expect("https is bound"), +404 hickory_server::proto::xfer::Protocol::Https, +405 ); +406 name_server.tls_dns_name = Some("localhost".to_string()); +407 config.add_name_server(name_server); +408 config +409 }; +410 +411 let opts = { +412 let mut opts = ResolverOpts::default(); +413 opts.tls_config = self::tls::insecure_tls_config(); +414 opts +415 }; +416 +417 hickory_resolver::Resolver::builder_with_config( +418 config, +419 TokioConnectionProvider::default(), +420 ) +421 .with_options(opts) +422 .build() +423 }; +424 +425 let res = client +426 .txt_lookup(format!("_iroh.{name_z32}.")) +427 .await +428 .anyerr()?; +429 let records = res.as_lookup().records(); +430 assert_eq!(records.len(), 1); +431 assert_eq!(records[0].record_type(), RecordType::TXT); +432 let txt_data = records[0].data().as_txt().unwrap().txt_data(); +433 assert_eq!(&txt_data[0][..], format!("relay={RELAY_URL}").as_bytes()); 434 -435 mod tls { -436 use std::sync::Arc; -437 -438 use rustls::{ -439 DigitallySignedStruct, RootCertStore, -440 client::{ -441 ClientConfig, -442 danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier}, -443 }, -444 crypto::{ -445 CryptoProvider, ring::default_provider, verify_tls12_signature, -446 verify_tls13_signature, +435 server.shutdown().await?; +436 Ok(()) +437 } +438 +439 mod tls { +440 use std::sync::Arc; +441 +442 use rustls::{ +443 DigitallySignedStruct, RootCertStore, +444 client::{ +445 ClientConfig, +446 danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier}, 447 }, -448 pki_types::{CertificateDer, ServerName, UnixTime}, -449 }; -450 -451 #[derive(Debug)] -452 struct NoCertificateVerification(CryptoProvider); -453 -454 impl Default for NoCertificateVerification { -455 fn default() -> Self { -456 Self(default_provider()) -457 } -458 } -459 -460 impl ServerCertVerifier for NoCertificateVerification { -461 fn verify_server_cert( -462 &self, -463 _end_entity: &CertificateDer<'_>, -464 _intermediates: &[CertificateDer<'_>], -465 _server_name: &ServerName<'_>, -466 _ocsp: &[u8], -467 _now: UnixTime, -468 ) -> Result<ServerCertVerified, rustls::Error> { -469 Ok(ServerCertVerified::assertion()) -470 } -471 -472 fn verify_tls12_signature( -473 &self, -474 message: &[u8], -475 cert: &CertificateDer<'_>, -476 dss: &DigitallySignedStruct, -477 ) -> Result<HandshakeSignatureValid, rustls::Error> { -478 verify_tls12_signature( -479 message, -480 cert, -481 dss, -482 &self.0.signature_verification_algorithms, -483 ) -484 } -485 -486 fn verify_tls13_signature( -487 &self, -488 message: &[u8], -489 cert: &CertificateDer<'_>, -490 dss: &DigitallySignedStruct, -491 ) -> Result<HandshakeSignatureValid, rustls::Error> { -492 verify_tls13_signature( -493 message, -494 cert, -495 dss, -496 &self.0.signature_verification_algorithms, -497 ) -498 } -499 -500 fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> { -501 self.0.signature_verification_algorithms.supported_schemes() +448 crypto::{ +449 CryptoProvider, ring::default_provider, verify_tls12_signature, +450 verify_tls13_signature, +451 }, +452 pki_types::{CertificateDer, ServerName, UnixTime}, +453 }; +454 +455 #[derive(Debug)] +456 struct NoCertificateVerification(CryptoProvider); +457 +458 impl Default for NoCertificateVerification { +459 fn default() -> Self { +460 Self(default_provider()) +461 } +462 } +463 +464 impl ServerCertVerifier for NoCertificateVerification { +465 fn verify_server_cert( +466 &self, +467 _end_entity: &CertificateDer<'_>, +468 _intermediates: &[CertificateDer<'_>], +469 _server_name: &ServerName<'_>, +470 _ocsp: &[u8], +471 _now: UnixTime, +472 ) -> Result<ServerCertVerified, rustls::Error> { +473 Ok(ServerCertVerified::assertion()) +474 } +475 +476 fn verify_tls12_signature( +477 &self, +478 message: &[u8], +479 cert: &CertificateDer<'_>, +480 dss: &DigitallySignedStruct, +481 ) -> Result<HandshakeSignatureValid, rustls::Error> { +482 verify_tls12_signature( +483 message, +484 cert, +485 dss, +486 &self.0.signature_verification_algorithms, +487 ) +488 } +489 +490 fn verify_tls13_signature( +491 &self, +492 message: &[u8], +493 cert: &CertificateDer<'_>, +494 dss: &DigitallySignedStruct, +495 ) -> Result<HandshakeSignatureValid, rustls::Error> { +496 verify_tls13_signature( +497 message, +498 cert, +499 dss, +500 &self.0.signature_verification_algorithms, +501 ) 502 } -503 } -504 -505 pub(super) fn insecure_tls_config() -> ClientConfig { -506 let mut cfg = ClientConfig::builder() -507 .with_root_certificates(RootCertStore::empty()) -508 .with_no_client_auth(); -509 cfg.dangerous() -510 .set_certificate_verifier(Arc::new(NoCertificateVerification::default())); -511 cfg -512 } -513 } -514} \ No newline at end of file +503 +504 fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> { +505 self.0.signature_verification_algorithms.supported_schemes() +506 } +507 } +508 +509 pub(super) fn insecure_tls_config() -> ClientConfig { +510 let mut cfg = ClientConfig::builder() +511 .with_root_certificates(RootCertStore::empty()) +512 .with_no_client_auth(); +513 cfg.dangerous() +514 .set_certificate_verifier(Arc::new(NoCertificateVerification::default())); +515 cfg +516 } +517 } +518} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_dns_server/lib.rs.html b/pr/3958/docs/src/iroh_dns_server/lib.rs.html index a12b75e736..8ed44e3088 100644 --- a/pr/3958/docs/src/iroh_dns_server/lib.rs.html +++ b/pr/3958/docs/src/iroh_dns_server/lib.rs.html @@ -22,265 +22,271 @@ 22 }; 23 24 use iroh::{ -25 RelayUrl, SecretKey, address_lookup::PkarrRelayClient, dns::DnsResolver, -26 endpoint_info::EndpointInfo, -27 }; -28 use n0_error::{Result, StdResultExt}; -29 use n0_tracing_test::traced_test; -30 use pkarr::{SignedPacket, Timestamp}; -31 use rand::{CryptoRng, SeedableRng}; -32 -33 use crate::{ -34 ZoneStore, -35 config::BootstrapOption, -36 server::Server, -37 store::{PacketSource, ZoneStoreOptions}, -38 util::PublicKeyBytes, -39 }; -40 -41 const DNS_TIMEOUT: Duration = Duration::from_secs(2); -42 -43 #[tokio::test] -44 #[traced_test] -45 async fn pkarr_publish_dns_resolve() -> Result { -46 let dir = tempfile::tempdir()?; -47 let server = Server::spawn_for_tests(dir.path()).await?; -48 let pkarr_relay_url = { -49 let mut url = server.http_url().expect("http is bound"); -50 url.set_path("/pkarr"); -51 url -52 }; -53 let signed_packet = { -54 use pkarr::dns; -55 let keypair = pkarr::Keypair::random(); -56 let mut packet = dns::Packet::new_reply(0); -57 // record at root -58 packet.answers.push(dns::ResourceRecord::new( -59 dns::Name::new("").anyerr()?, -60 dns::CLASS::IN, -61 30, -62 dns::rdata::RData::TXT("hi0".try_into().unwrap()), -63 )); -64 // record at level one -65 packet.answers.push(dns::ResourceRecord::new( -66 dns::Name::new("_hello").anyerr()?, -67 dns::CLASS::IN, -68 30, -69 dns::rdata::RData::TXT("hi1".try_into().unwrap()), -70 )); -71 // record at level two -72 packet.answers.push(dns::ResourceRecord::new( -73 dns::Name::new("_hello.world").anyerr()?, -74 dns::CLASS::IN, -75 30, -76 dns::rdata::RData::TXT("hi2".try_into().unwrap()), -77 )); -78 // multiple records for same name -79 packet.answers.push(dns::ResourceRecord::new( -80 dns::Name::new("multiple").anyerr()?, -81 dns::CLASS::IN, -82 30, -83 dns::rdata::RData::TXT("hi3".try_into().unwrap()), -84 )); -85 packet.answers.push(dns::ResourceRecord::new( -86 dns::Name::new("multiple").anyerr()?, -87 dns::CLASS::IN, -88 30, -89 dns::rdata::RData::TXT("hi4".try_into().unwrap()), -90 )); -91 // record of type A -92 packet.answers.push(dns::ResourceRecord::new( -93 dns::Name::new("").anyerr()?, -94 dns::CLASS::IN, -95 30, -96 dns::rdata::RData::A(Ipv4Addr::LOCALHOST.into()), -97 )); -98 // record of type AAAA -99 packet.answers.push(dns::ResourceRecord::new( -100 dns::Name::new("foo.bar.baz").anyerr()?, -101 dns::CLASS::IN, -102 30, -103 dns::rdata::RData::AAAA(Ipv6Addr::LOCALHOST.into()), -104 )); -105 SignedPacket::new(&keypair, &packet.answers, Timestamp::now()).anyerr()? -106 }; -107 let pkarr_client = pkarr::Client::builder() -108 .no_default_network() -109 .relays(&[pkarr_relay_url]) -110 .anyerr()? -111 .build() -112 .anyerr()?; -113 pkarr_client.publish(&signed_packet, None).await.anyerr()?; -114 -115 use hickory_server::proto::rr::Name; -116 let pubkey = signed_packet.public_key().to_z32(); -117 let resolver = test_resolver(server.dns_addr()); -118 -119 // resolve root record -120 let name = Name::from_utf8(format!("{pubkey}.")).anyerr()?; -121 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; -122 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); -123 assert_eq!(records, vec!["hi0".to_string()]); -124 -125 // resolve level one record -126 let name = Name::from_utf8(format!("_hello.{pubkey}.")).anyerr()?; -127 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; -128 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); -129 assert_eq!(records, vec!["hi1".to_string()]); -130 -131 // resolve level two record -132 let name = Name::from_utf8(format!("_hello.world.{pubkey}.")).anyerr()?; -133 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; -134 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); -135 assert_eq!(records, vec!["hi2".to_string()]); -136 -137 // resolve multiple records for same name -138 let name = Name::from_utf8(format!("multiple.{pubkey}.")).anyerr()?; -139 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; -140 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); -141 assert_eq!(records, vec!["hi3".to_string(), "hi4".to_string()]); -142 -143 // resolve A record -144 let name = Name::from_utf8(format!("{pubkey}.")).anyerr()?; -145 let res = resolver.lookup_ipv4(name, DNS_TIMEOUT).await?; -146 let records = res.collect::<Vec<_>>(); -147 assert_eq!(records, vec![Ipv4Addr::LOCALHOST]); -148 -149 // resolve AAAA record -150 let name = Name::from_utf8(format!("foo.bar.baz.{pubkey}.")).anyerr()?; -151 let res = resolver.lookup_ipv6(name, DNS_TIMEOUT).await?; -152 let records = res.collect::<Vec<_>>(); -153 assert_eq!(records, vec![Ipv6Addr::LOCALHOST]); -154 -155 server.shutdown().await?; -156 Ok(()) -157 } -158 -159 #[tokio::test] -160 #[traced_test] -161 async fn integration_smoke() -> Result { -162 let dir = tempfile::tempdir()?; -163 let server = Server::spawn_for_tests(dir.path()).await?; -164 -165 let pkarr_relay = { -166 let mut url = server.http_url().expect("http is bound"); -167 url.set_path("/pkarr"); -168 url -169 }; -170 -171 let origin = "irohdns.example."; -172 -173 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -174 -175 let secret_key = SecretKey::generate(&mut rng); -176 let endpoint_id = secret_key.public(); -177 let pkarr = PkarrRelayClient::new(pkarr_relay); -178 let relay_url: RelayUrl = "https://relay.example.".parse()?; -179 let endpoint_info = EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); -180 let signed_packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?; -181 -182 pkarr.publish(&signed_packet).await?; -183 -184 let resolver = test_resolver(server.dns_addr()); -185 let res = resolver.lookup_endpoint_by_id(&endpoint_id, origin).await?; -186 -187 assert_eq!(res.endpoint_id, endpoint_id); -188 assert_eq!(res.relay_urls().next(), Some(&relay_url)); +25 RelayUrl, SecretKey, +26 address_lookup::PkarrRelayClient, +27 dns::DnsResolver, +28 endpoint_info::EndpointInfo, +29 tls::{CaRootsConfig, default_provider}, +30 }; +31 use n0_error::{Result, StdResultExt}; +32 use n0_tracing_test::traced_test; +33 use pkarr::{SignedPacket, Timestamp}; +34 use rand::{CryptoRng, SeedableRng}; +35 +36 use crate::{ +37 ZoneStore, +38 config::BootstrapOption, +39 server::Server, +40 store::{PacketSource, ZoneStoreOptions}, +41 util::PublicKeyBytes, +42 }; +43 +44 const DNS_TIMEOUT: Duration = Duration::from_secs(2); +45 +46 #[tokio::test] +47 #[traced_test] +48 async fn pkarr_publish_dns_resolve() -> Result { +49 let dir = tempfile::tempdir()?; +50 let server = Server::spawn_for_tests(dir.path()).await?; +51 let pkarr_relay_url = { +52 let mut url = server.http_url().expect("http is bound"); +53 url.set_path("/pkarr"); +54 url +55 }; +56 let signed_packet = { +57 use pkarr::dns; +58 let keypair = pkarr::Keypair::random(); +59 let mut packet = dns::Packet::new_reply(0); +60 // record at root +61 packet.answers.push(dns::ResourceRecord::new( +62 dns::Name::new("").anyerr()?, +63 dns::CLASS::IN, +64 30, +65 dns::rdata::RData::TXT("hi0".try_into().unwrap()), +66 )); +67 // record at level one +68 packet.answers.push(dns::ResourceRecord::new( +69 dns::Name::new("_hello").anyerr()?, +70 dns::CLASS::IN, +71 30, +72 dns::rdata::RData::TXT("hi1".try_into().unwrap()), +73 )); +74 // record at level two +75 packet.answers.push(dns::ResourceRecord::new( +76 dns::Name::new("_hello.world").anyerr()?, +77 dns::CLASS::IN, +78 30, +79 dns::rdata::RData::TXT("hi2".try_into().unwrap()), +80 )); +81 // multiple records for same name +82 packet.answers.push(dns::ResourceRecord::new( +83 dns::Name::new("multiple").anyerr()?, +84 dns::CLASS::IN, +85 30, +86 dns::rdata::RData::TXT("hi3".try_into().unwrap()), +87 )); +88 packet.answers.push(dns::ResourceRecord::new( +89 dns::Name::new("multiple").anyerr()?, +90 dns::CLASS::IN, +91 30, +92 dns::rdata::RData::TXT("hi4".try_into().unwrap()), +93 )); +94 // record of type A +95 packet.answers.push(dns::ResourceRecord::new( +96 dns::Name::new("").anyerr()?, +97 dns::CLASS::IN, +98 30, +99 dns::rdata::RData::A(Ipv4Addr::LOCALHOST.into()), +100 )); +101 // record of type AAAA +102 packet.answers.push(dns::ResourceRecord::new( +103 dns::Name::new("foo.bar.baz").anyerr()?, +104 dns::CLASS::IN, +105 30, +106 dns::rdata::RData::AAAA(Ipv6Addr::LOCALHOST.into()), +107 )); +108 SignedPacket::new(&keypair, &packet.answers, Timestamp::now()).anyerr()? +109 }; +110 let pkarr_client = pkarr::Client::builder() +111 .no_default_network() +112 .relays(&[pkarr_relay_url]) +113 .anyerr()? +114 .build() +115 .anyerr()?; +116 pkarr_client.publish(&signed_packet, None).await.anyerr()?; +117 +118 use hickory_server::proto::rr::Name; +119 let pubkey = signed_packet.public_key().to_z32(); +120 let resolver = test_resolver(server.dns_addr()); +121 +122 // resolve root record +123 let name = Name::from_utf8(format!("{pubkey}.")).anyerr()?; +124 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; +125 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); +126 assert_eq!(records, vec!["hi0".to_string()]); +127 +128 // resolve level one record +129 let name = Name::from_utf8(format!("_hello.{pubkey}.")).anyerr()?; +130 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; +131 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); +132 assert_eq!(records, vec!["hi1".to_string()]); +133 +134 // resolve level two record +135 let name = Name::from_utf8(format!("_hello.world.{pubkey}.")).anyerr()?; +136 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; +137 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); +138 assert_eq!(records, vec!["hi2".to_string()]); +139 +140 // resolve multiple records for same name +141 let name = Name::from_utf8(format!("multiple.{pubkey}.")).anyerr()?; +142 let res = resolver.lookup_txt(name, DNS_TIMEOUT).await?; +143 let records = res.into_iter().map(|t| t.to_string()).collect::<Vec<_>>(); +144 assert_eq!(records, vec!["hi3".to_string(), "hi4".to_string()]); +145 +146 // resolve A record +147 let name = Name::from_utf8(format!("{pubkey}.")).anyerr()?; +148 let res = resolver.lookup_ipv4(name, DNS_TIMEOUT).await?; +149 let records = res.collect::<Vec<_>>(); +150 assert_eq!(records, vec![Ipv4Addr::LOCALHOST]); +151 +152 // resolve AAAA record +153 let name = Name::from_utf8(format!("foo.bar.baz.{pubkey}.")).anyerr()?; +154 let res = resolver.lookup_ipv6(name, DNS_TIMEOUT).await?; +155 let records = res.collect::<Vec<_>>(); +156 assert_eq!(records, vec![Ipv6Addr::LOCALHOST]); +157 +158 server.shutdown().await?; +159 Ok(()) +160 } +161 +162 #[tokio::test] +163 #[traced_test] +164 async fn integration_smoke() -> Result { +165 let dir = tempfile::tempdir()?; +166 let server = Server::spawn_for_tests(dir.path()).await?; +167 +168 let pkarr_relay = { +169 let mut url = server.http_url().expect("http is bound"); +170 url.set_path("/pkarr"); +171 url +172 }; +173 +174 let origin = "irohdns.example."; +175 +176 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +177 +178 let secret_key = SecretKey::generate(&mut rng); +179 let endpoint_id = secret_key.public(); +180 let tls_config = CaRootsConfig::default() +181 .client_config(default_provider()) +182 .expect("infallible"); +183 let pkarr = PkarrRelayClient::new(pkarr_relay, tls_config); +184 let relay_url: RelayUrl = "https://relay.example.".parse()?; +185 let endpoint_info = EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); +186 let signed_packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?; +187 +188 pkarr.publish(&signed_packet).await?; 189 -190 server.shutdown().await?; -191 Ok(()) -192 } -193 -194 #[tokio::test] -195 #[traced_test] -196 async fn store_eviction() -> Result { -197 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -198 -199 let options = ZoneStoreOptions { -200 eviction: Duration::from_millis(100), -201 eviction_interval: Duration::from_millis(100), -202 max_batch_time: Duration::from_millis(100), -203 ..Default::default() -204 }; -205 let store = ZoneStore::in_memory(options, Default::default())?; -206 -207 // create a signed packet -208 let signed_packet = random_signed_packet(&mut rng)?; -209 let key = PublicKeyBytes::from_signed_packet(&signed_packet); -210 -211 store -212 .insert(signed_packet, PacketSource::PkarrPublish) -213 .await?; -214 -215 tokio::time::sleep(Duration::from_secs(1)).await; -216 for _ in 0..10 { -217 let entry = store.get_signed_packet(&key).await?; -218 if entry.is_none() { -219 return Ok(()); -220 } -221 tokio::time::sleep(Duration::from_secs(1)).await; -222 } -223 panic!("store did not evict packet"); -224 } -225 -226 #[tokio::test] -227 #[traced_test] -228 #[ignore = "flaky"] -229 async fn integration_mainline() -> Result { -230 let dir = tempfile::tempdir()?; -231 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -232 -233 // run a mainline testnet -234 let testnet = pkarr::mainline::Testnet::new_async(5).await.anyerr()?; -235 let bootstrap = testnet.bootstrap.clone(); -236 -237 // spawn our server with mainline support -238 let server = Server::spawn_for_tests_with_options( -239 dir.path(), -240 Some(BootstrapOption::Custom(bootstrap)), -241 None, -242 None, -243 ) -244 .await?; -245 -246 let origin = "irohdns.example."; -247 -248 // create a signed packet -249 let secret_key = SecretKey::generate(&mut rng); -250 let endpoint_id = secret_key.public(); -251 let relay_url: RelayUrl = "https://relay.example.".parse()?; -252 let endpoint_info = EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); -253 let signed_packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?; -254 -255 // publish the signed packet to our DHT -256 let pkarr = pkarr::Client::builder() -257 .no_default_network() -258 .dht(|builder| builder.bootstrap(&testnet.bootstrap)) -259 .build() -260 .anyerr()?; -261 pkarr.publish(&signed_packet, None).await.anyerr()?; -262 -263 // resolve via DNS from our server, which will lookup from our DHT -264 let resolver = test_resolver(server.dns_addr()); -265 let res = resolver.lookup_endpoint_by_id(&endpoint_id, origin).await?; -266 -267 assert_eq!(res.endpoint_id, endpoint_id); -268 assert_eq!(res.relay_urls().next(), Some(&relay_url)); -269 -270 server.shutdown().await?; -271 Ok(()) -272 } -273 -274 fn test_resolver(nameserver: SocketAddr) -> DnsResolver { -275 DnsResolver::with_nameserver(nameserver) -276 } -277 -278 fn random_signed_packet<R: CryptoRng + ?Sized>(rng: &mut R) -> Result<SignedPacket> { -279 let secret_key = SecretKey::generate(rng); -280 let endpoint_id = secret_key.public(); -281 let relay_url: RelayUrl = "https://relay.example.".parse()?; -282 let endpoint_info = EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); -283 let packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?; -284 Ok(packet) -285 } -286} \ No newline at end of file +190 let resolver = test_resolver(server.dns_addr()); +191 let res = resolver.lookup_endpoint_by_id(&endpoint_id, origin).await?; +192 +193 assert_eq!(res.endpoint_id, endpoint_id); +194 assert_eq!(res.relay_urls().next(), Some(&relay_url)); +195 +196 server.shutdown().await?; +197 Ok(()) +198 } +199 +200 #[tokio::test] +201 #[traced_test] +202 async fn store_eviction() -> Result { +203 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +204 +205 let options = ZoneStoreOptions { +206 eviction: Duration::from_millis(100), +207 eviction_interval: Duration::from_millis(100), +208 max_batch_time: Duration::from_millis(100), +209 ..Default::default() +210 }; +211 let store = ZoneStore::in_memory(options, Default::default())?; +212 +213 // create a signed packet +214 let signed_packet = random_signed_packet(&mut rng)?; +215 let key = PublicKeyBytes::from_signed_packet(&signed_packet); +216 +217 store +218 .insert(signed_packet, PacketSource::PkarrPublish) +219 .await?; +220 +221 tokio::time::sleep(Duration::from_secs(1)).await; +222 for _ in 0..10 { +223 let entry = store.get_signed_packet(&key).await?; +224 if entry.is_none() { +225 return Ok(()); +226 } +227 tokio::time::sleep(Duration::from_secs(1)).await; +228 } +229 panic!("store did not evict packet"); +230 } +231 +232 #[tokio::test] +233 #[traced_test] +234 #[ignore = "flaky"] +235 async fn integration_mainline() -> Result { +236 let dir = tempfile::tempdir()?; +237 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +238 +239 // run a mainline testnet +240 let testnet = pkarr::mainline::Testnet::new_async(5).await.anyerr()?; +241 let bootstrap = testnet.bootstrap.clone(); +242 +243 // spawn our server with mainline support +244 let server = Server::spawn_for_tests_with_options( +245 dir.path(), +246 Some(BootstrapOption::Custom(bootstrap)), +247 None, +248 None, +249 ) +250 .await?; +251 +252 let origin = "irohdns.example."; +253 +254 // create a signed packet +255 let secret_key = SecretKey::generate(&mut rng); +256 let endpoint_id = secret_key.public(); +257 let relay_url: RelayUrl = "https://relay.example.".parse()?; +258 let endpoint_info = EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); +259 let signed_packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?; +260 +261 // publish the signed packet to our DHT +262 let pkarr = pkarr::Client::builder() +263 .no_default_network() +264 .dht(|builder| builder.bootstrap(&testnet.bootstrap)) +265 .build() +266 .anyerr()?; +267 pkarr.publish(&signed_packet, None).await.anyerr()?; +268 +269 // resolve via DNS from our server, which will lookup from our DHT +270 let resolver = test_resolver(server.dns_addr()); +271 let res = resolver.lookup_endpoint_by_id(&endpoint_id, origin).await?; +272 +273 assert_eq!(res.endpoint_id, endpoint_id); +274 assert_eq!(res.relay_urls().next(), Some(&relay_url)); +275 +276 server.shutdown().await?; +277 Ok(()) +278 } +279 +280 fn test_resolver(nameserver: SocketAddr) -> DnsResolver { +281 DnsResolver::with_nameserver(nameserver) +282 } +283 +284 fn random_signed_packet<R: CryptoRng + ?Sized>(rng: &mut R) -> Result<SignedPacket> { +285 let secret_key = SecretKey::generate(rng); +286 let endpoint_id = secret_key.public(); +287 let relay_url: RelayUrl = "https://relay.example.".parse()?; +288 let endpoint_info = EndpointInfo::new(endpoint_id).with_relay_url(Some(relay_url.clone())); +289 let packet = endpoint_info.to_pkarr_signed_packet(&secret_key, 30)?; +290 Ok(packet) +291 } +292} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/client.rs.html b/pr/3958/docs/src/iroh_relay/client.rs.html index f874b3eb1f..c0d7ddbc40 100644 --- a/pr/3958/docs/src/iroh_relay/client.rs.html +++ b/pr/3958/docs/src/iroh_relay/client.rs.html @@ -136,398 +136,393 @@ 136 address_family_selector: Option<Arc<dyn Fn() -> bool + Send + Sync>>, 137 /// Server url. 138 url: RelayUrl, -139 /// Allow self-signed certificates from relay servers -140 #[cfg(any(test, feature = "test-utils"))] -141 insecure_skip_cert_verify: bool, -142 /// HTTP Proxy -143 proxy_url: Option<Url>, -144 /// The secret key of this client. -145 secret_key: SecretKey, -146 /// The DNS resolver to use. -147 #[cfg(not(wasm_browser))] -148 dns_resolver: DnsResolver, -149 /// Cache for public keys of remote endpoints. -150 key_cache: KeyCache, -151} -152 -153impl ClientBuilder { -154 /// Create a new [`ClientBuilder`] -155 pub fn new( -156 url: impl Into<RelayUrl>, -157 secret_key: SecretKey, -158 #[cfg(not(wasm_browser))] dns_resolver: DnsResolver, -159 ) -> Self { -160 ClientBuilder { -161 address_family_selector: None, -162 url: url.into(), -163 -164 #[cfg(any(test, feature = "test-utils"))] -165 insecure_skip_cert_verify: false, -166 -167 proxy_url: None, -168 secret_key, -169 #[cfg(not(wasm_browser))] -170 dns_resolver, -171 key_cache: KeyCache::new(128), -172 } -173 } -174 -175 /// Returns if we should prefer ipv6 -176 /// it replaces the relayhttp.AddressFamilySelector we pass -177 /// It provides the hint as to whether in an IPv4-vs-IPv6 race that -178 /// IPv4 should be held back a bit to give IPv6 a better-than-50/50 -179 /// chance of winning. We only return true when we believe IPv6 will -180 /// work anyway, so we don't artificially delay the connection speed. -181 pub fn address_family_selector<S>(mut self, selector: S) -> Self -182 where -183 S: Fn() -> bool + Send + Sync + 'static, -184 { -185 self.address_family_selector = Some(Arc::new(selector)); -186 self -187 } -188 -189 /// Skip the verification of the relay server's SSL certificates. -190 /// -191 /// May only be used in tests. -192 #[cfg(any(test, feature = "test-utils"))] -193 pub fn insecure_skip_cert_verify(mut self, skip: bool) -> Self { -194 self.insecure_skip_cert_verify = skip; -195 self -196 } -197 -198 /// Set an explicit proxy url to proxy all HTTP(S) traffic through. -199 pub fn proxy_url(mut self, url: Url) -> Self { -200 self.proxy_url.replace(url); -201 self -202 } -203 -204 /// Set the capacity of the cache for public keys. -205 pub fn key_cache_capacity(mut self, capacity: usize) -> Self { -206 self.key_cache = KeyCache::new(capacity); -207 self -208 } -209 -210 /// Establishes a new connection to the relay server. -211 #[cfg(not(wasm_browser))] -212 pub async fn connect(&self) -> Result<Client, ConnectError> { -213 use http::header::SEC_WEBSOCKET_PROTOCOL; -214 use tls::MaybeTlsStreamBuilder; -215 -216 use crate::{ -217 http::{CLIENT_AUTH_HEADER, RELAY_PROTOCOL_VERSION}, -218 protos::{handshake::KeyMaterialClientAuth, relay::MAX_FRAME_SIZE}, -219 }; -220 -221 let mut dial_url = (*self.url).clone(); -222 dial_url.set_path(RELAY_PATH); -223 // The relay URL is exchanged with the http(s) scheme in tickets and similar. -224 // We need to use the ws:// or wss:// schemes when connecting with websockets, though. -225 dial_url -226 .set_scheme(match self.url.scheme() { -227 "http" => "ws", -228 "ws" => "ws", -229 _ => "wss", -230 }) -231 .map_err(|_| { -232 e!(ConnectError::InvalidWebsocketUrl { -233 url: dial_url.clone() -234 }) -235 })?; -236 -237 debug!(%dial_url, "Dialing relay by websocket"); -238 -239 #[allow(unused_mut)] -240 let mut builder = MaybeTlsStreamBuilder::new(dial_url.clone(), self.dns_resolver.clone()) -241 .prefer_ipv6(self.prefer_ipv6()) -242 .proxy_url(self.proxy_url.clone()); +139 /// TLS verification config. +140 tls_config: Option<rustls::ClientConfig>, +141 /// HTTP Proxy +142 proxy_url: Option<Url>, +143 /// The secret key of this client. +144 secret_key: SecretKey, +145 /// The DNS resolver to use. +146 #[cfg(not(wasm_browser))] +147 dns_resolver: DnsResolver, +148 /// Cache for public keys of remote endpoints. +149 key_cache: KeyCache, +150} +151 +152impl ClientBuilder { +153 /// Create a new [`ClientBuilder`] +154 pub fn new( +155 url: impl Into<RelayUrl>, +156 secret_key: SecretKey, +157 #[cfg(not(wasm_browser))] dns_resolver: DnsResolver, +158 ) -> Self { +159 ClientBuilder { +160 address_family_selector: None, +161 url: url.into(), +162 tls_config: None, +163 proxy_url: None, +164 secret_key, +165 #[cfg(not(wasm_browser))] +166 dns_resolver, +167 key_cache: KeyCache::new(128), +168 } +169 } +170 +171 /// Sets a custom TLS config. +172 pub fn tls_client_config(mut self, tls_config: rustls::ClientConfig) -> Self { +173 self.tls_config = Some(tls_config); +174 self +175 } +176 +177 /// Returns if we should prefer ipv6 +178 /// it replaces the relayhttp.AddressFamilySelector we pass +179 /// It provides the hint as to whether in an IPv4-vs-IPv6 race that +180 /// IPv4 should be held back a bit to give IPv6 a better-than-50/50 +181 /// chance of winning. We only return true when we believe IPv6 will +182 /// work anyway, so we don't artificially delay the connection speed. +183 pub fn address_family_selector<S>(mut self, selector: S) -> Self +184 where +185 S: Fn() -> bool + Send + Sync + 'static, +186 { +187 self.address_family_selector = Some(Arc::new(selector)); +188 self +189 } +190 +191 /// Set an explicit proxy url to proxy all HTTP(S) traffic through. +192 pub fn proxy_url(mut self, url: Url) -> Self { +193 self.proxy_url.replace(url); +194 self +195 } +196 +197 /// Set the capacity of the cache for public keys. +198 pub fn key_cache_capacity(mut self, capacity: usize) -> Self { +199 self.key_cache = KeyCache::new(capacity); +200 self +201 } +202 +203 /// Establishes a new connection to the relay server. +204 #[cfg(not(wasm_browser))] +205 pub async fn connect(&self) -> Result<Client, ConnectError> { +206 use http::header::SEC_WEBSOCKET_PROTOCOL; +207 use tls::MaybeTlsStreamBuilder; +208 +209 use crate::{ +210 http::{CLIENT_AUTH_HEADER, RELAY_PROTOCOL_VERSION}, +211 protos::{handshake::KeyMaterialClientAuth, relay::MAX_FRAME_SIZE}, +212 tls::{CaRootsConfig, default_provider}, +213 }; +214 +215 let mut dial_url = (*self.url).clone(); +216 dial_url.set_path(RELAY_PATH); +217 // The relay URL is exchanged with the http(s) scheme in tickets and similar. +218 // We need to use the ws:// or wss:// schemes when connecting with websockets, though. +219 dial_url +220 .set_scheme(match self.url.scheme() { +221 "http" => "ws", +222 "ws" => "ws", +223 _ => "wss", +224 }) +225 .map_err(|_| { +226 e!(ConnectError::InvalidWebsocketUrl { +227 url: dial_url.clone() +228 }) +229 })?; +230 +231 debug!(%dial_url, "Dialing relay by websocket"); +232 +233 let tls_config = match self.tls_config.clone() { +234 Some(config) => config, +235 None => CaRootsConfig::default().client_config(default_provider())?, +236 }; +237 +238 #[allow(unused_mut)] +239 let mut builder = +240 MaybeTlsStreamBuilder::new(dial_url.clone(), self.dns_resolver.clone(), tls_config) +241 .prefer_ipv6(self.prefer_ipv6()) +242 .proxy_url(self.proxy_url.clone()); 243 -244 #[cfg(any(test, feature = "test-utils"))] -245 if self.insecure_skip_cert_verify { -246 builder = builder.insecure_skip_cert_verify(self.insecure_skip_cert_verify); -247 } -248 -249 let stream = builder.connect().await?; -250 let local_addr = stream -251 .as_ref() -252 .local_addr() -253 .map_err(|_| e!(ConnectError::NoLocalAddr))?; -254 let mut builder = tokio_websockets::ClientBuilder::new() -255 .uri(dial_url.as_str()) -256 .map_err(|_| { -257 e!(ConnectError::InvalidRelayUrl { -258 url: dial_url.clone() -259 }) -260 })? -261 .add_header( -262 SEC_WEBSOCKET_PROTOCOL, -263 http::HeaderValue::from_static(RELAY_PROTOCOL_VERSION), -264 ) -265 .expect("valid header name and value") -266 .limits(tokio_websockets::Limits::default().max_payload_len(Some(MAX_FRAME_SIZE))) -267 // We turn off automatic flushing after a threshold (the default would be after 8KB). -268 // This means we need to flush manually, which we do by calling `Sink::send_all` or -269 // `Sink::send` (which calls `Sink::flush`) in the `ActiveRelayActor`. -270 .config(tokio_websockets::Config::default().flush_threshold(usize::MAX)); -271 if let Some(client_auth) = KeyMaterialClientAuth::new(&self.secret_key, &stream) { -272 debug!("Using TLS key export for relay client authentication"); -273 builder = builder -274 .add_header(CLIENT_AUTH_HEADER, client_auth.into_header_value()) -275 .expect( -276 "impossible: CLIENT_AUTH_HEADER isn't a disallowed header value for websockets", -277 ); -278 } -279 let (conn, response) = builder.connect_on(stream).await?; -280 -281 n0_error::ensure!( -282 response.status() == hyper::StatusCode::SWITCHING_PROTOCOLS, -283 ConnectError::UnexpectedUpgradeStatus { -284 code: response.status() -285 } -286 ); -287 -288 let conn = Conn::new(conn, self.key_cache.clone(), &self.secret_key).await?; -289 -290 event!( -291 target: "iroh::_events::net::relay::connected", -292 Level::DEBUG, -293 url = %self.url, -294 ); -295 -296 trace!("connect done"); -297 -298 Ok(Client { -299 conn, -300 local_addr: Some(local_addr), -301 }) -302 } -303 -304 /// Reports whether IPv4 dials should be slightly -305 /// delayed to give IPv6 a better chance of winning dial races. -306 /// Implementations should only return true if IPv6 is expected -307 /// to succeed. (otherwise delaying IPv4 will delay the connection -308 /// overall) -309 #[cfg(not(wasm_browser))] -310 fn prefer_ipv6(&self) -> bool { -311 match self.address_family_selector { -312 Some(ref selector) => selector(), -313 None => false, -314 } -315 } +244 let stream = builder.connect().await?; +245 let local_addr = stream +246 .as_ref() +247 .local_addr() +248 .map_err(|_| e!(ConnectError::NoLocalAddr))?; +249 let mut builder = tokio_websockets::ClientBuilder::new() +250 .uri(dial_url.as_str()) +251 .map_err(|_| { +252 e!(ConnectError::InvalidRelayUrl { +253 url: dial_url.clone() +254 }) +255 })? +256 .add_header( +257 SEC_WEBSOCKET_PROTOCOL, +258 http::HeaderValue::from_static(RELAY_PROTOCOL_VERSION), +259 ) +260 .expect("valid header name and value") +261 .limits(tokio_websockets::Limits::default().max_payload_len(Some(MAX_FRAME_SIZE))) +262 // We turn off automatic flushing after a threshold (the default would be after 8KB). +263 // This means we need to flush manually, which we do by calling `Sink::send_all` or +264 // `Sink::send` (which calls `Sink::flush`) in the `ActiveRelayActor`. +265 .config(tokio_websockets::Config::default().flush_threshold(usize::MAX)); +266 if let Some(client_auth) = KeyMaterialClientAuth::new(&self.secret_key, &stream) { +267 debug!("Using TLS key export for relay client authentication"); +268 builder = builder +269 .add_header(CLIENT_AUTH_HEADER, client_auth.into_header_value()) +270 .expect( +271 "impossible: CLIENT_AUTH_HEADER isn't a disallowed header value for websockets", +272 ); +273 } +274 let (conn, response) = builder.connect_on(stream).await?; +275 +276 n0_error::ensure!( +277 response.status() == hyper::StatusCode::SWITCHING_PROTOCOLS, +278 ConnectError::UnexpectedUpgradeStatus { +279 code: response.status() +280 } +281 ); +282 +283 let conn = Conn::new(conn, self.key_cache.clone(), &self.secret_key).await?; +284 +285 event!( +286 target: "iroh::_events::net::relay::connected", +287 Level::DEBUG, +288 url = %self.url, +289 ); +290 +291 trace!("connect done"); +292 +293 Ok(Client { +294 conn, +295 local_addr: Some(local_addr), +296 }) +297 } +298 +299 /// Reports whether IPv4 dials should be slightly +300 /// delayed to give IPv6 a better chance of winning dial races. +301 /// Implementations should only return true if IPv6 is expected +302 /// to succeed. (otherwise delaying IPv4 will delay the connection +303 /// overall) +304 #[cfg(not(wasm_browser))] +305 fn prefer_ipv6(&self) -> bool { +306 match self.address_family_selector { +307 Some(ref selector) => selector(), +308 None => false, +309 } +310 } +311 +312 /// Establishes a new connection to the relay server. +313 #[cfg(wasm_browser)] +314 pub async fn connect(&self) -> Result<Client, ConnectError> { +315 use crate::http::RELAY_PROTOCOL_VERSION; 316 -317 /// Establishes a new connection to the relay server. -318 #[cfg(wasm_browser)] -319 pub async fn connect(&self) -> Result<Client, ConnectError> { -320 use crate::http::RELAY_PROTOCOL_VERSION; -321 -322 let mut dial_url = (*self.url).clone(); -323 dial_url.set_path(RELAY_PATH); -324 // The relay URL is exchanged with the http(s) scheme in tickets and similar. -325 // We need to use the ws:// or wss:// schemes when connecting with websockets, though. -326 dial_url -327 .set_scheme(match self.url.scheme() { -328 "http" => "ws", -329 "ws" => "ws", -330 _ => "wss", -331 }) -332 .map_err(|_| { -333 e!(ConnectError::InvalidWebsocketUrl { -334 url: dial_url.clone() -335 }) -336 })?; -337 -338 debug!(%dial_url, "Dialing relay by websocket"); +317 let mut dial_url = (*self.url).clone(); +318 dial_url.set_path(RELAY_PATH); +319 // The relay URL is exchanged with the http(s) scheme in tickets and similar. +320 // We need to use the ws:// or wss:// schemes when connecting with websockets, though. +321 dial_url +322 .set_scheme(match self.url.scheme() { +323 "http" => "ws", +324 "ws" => "ws", +325 _ => "wss", +326 }) +327 .map_err(|_| { +328 e!(ConnectError::InvalidWebsocketUrl { +329 url: dial_url.clone() +330 }) +331 })?; +332 +333 debug!(%dial_url, "Dialing relay by websocket"); +334 +335 let (_, ws_stream) = +336 ws_stream_wasm::WsMeta::connect(dial_url.as_str(), Some(vec![RELAY_PROTOCOL_VERSION])) +337 .await?; +338 let conn = Conn::new(ws_stream, self.key_cache.clone(), &self.secret_key).await?; 339 -340 let (_, ws_stream) = -341 ws_stream_wasm::WsMeta::connect(dial_url.as_str(), Some(vec![RELAY_PROTOCOL_VERSION])) -342 .await?; -343 let conn = Conn::new(ws_stream, self.key_cache.clone(), &self.secret_key).await?; -344 -345 event!( -346 target: "iroh::_events::net::relay::connected", -347 Level::DEBUG, -348 url = %self.url, -349 ); -350 -351 trace!("connect done"); -352 -353 Ok(Client { -354 conn, -355 local_addr: None, -356 }) -357 } -358} -359 -360/// A relay client. -361#[derive(Debug)] -362pub struct Client { -363 conn: Conn, -364 local_addr: Option<SocketAddr>, -365} -366 -367impl Client { -368 /// Splits the client into a sink and a stream. -369 pub fn split(self) -> (ClientStream, ClientSink) { -370 let (sink, stream) = split(self.conn); -371 ( -372 ClientStream { -373 stream, -374 local_addr: self.local_addr, -375 }, -376 ClientSink { sink }, -377 ) -378 } -379} -380 -381impl Stream for Client { -382 type Item = Result<RelayToClientMsg, RecvError>; +340 event!( +341 target: "iroh::_events::net::relay::connected", +342 Level::DEBUG, +343 url = %self.url, +344 ); +345 +346 trace!("connect done"); +347 +348 Ok(Client { +349 conn, +350 local_addr: None, +351 }) +352 } +353} +354 +355/// A relay client. +356#[derive(Debug)] +357pub struct Client { +358 conn: Conn, +359 local_addr: Option<SocketAddr>, +360} +361 +362impl Client { +363 /// Splits the client into a sink and a stream. +364 pub fn split(self) -> (ClientStream, ClientSink) { +365 let (sink, stream) = split(self.conn); +366 ( +367 ClientStream { +368 stream, +369 local_addr: self.local_addr, +370 }, +371 ClientSink { sink }, +372 ) +373 } +374} +375 +376impl Stream for Client { +377 type Item = Result<RelayToClientMsg, RecvError>; +378 +379 fn poll_next(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Self::Item>> { +380 Pin::new(&mut self.conn).poll_next(cx) +381 } +382} 383 -384 fn poll_next(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Self::Item>> { -385 Pin::new(&mut self.conn).poll_next(cx) -386 } -387} -388 -389impl Sink<ClientToRelayMsg> for Client { -390 type Error = SendError; -391 -392 fn poll_ready( -393 mut self: Pin<&mut Self>, -394 cx: &mut task::Context<'_>, -395 ) -> Poll<Result<(), Self::Error>> { -396 Pin::new(&mut self.conn).poll_ready(cx) -397 } -398 -399 fn start_send(mut self: Pin<&mut Self>, item: ClientToRelayMsg) -> Result<(), Self::Error> { -400 Pin::new(&mut self.conn).start_send(item) -401 } -402 -403 fn poll_flush( -404 mut self: Pin<&mut Self>, -405 cx: &mut task::Context<'_>, -406 ) -> Poll<Result<(), Self::Error>> { -407 Pin::new(&mut self.conn).poll_flush(cx) -408 } -409 -410 fn poll_close( -411 mut self: Pin<&mut Self>, -412 cx: &mut task::Context<'_>, -413 ) -> Poll<Result<(), Self::Error>> { -414 Pin::new(&mut self.conn).poll_close(cx) -415 } -416} -417 -418/// The send half of a relay client. -419#[derive(Debug)] -420pub struct ClientSink { -421 sink: SplitSink<Conn, ClientToRelayMsg>, -422} -423 -424impl Sink<ClientToRelayMsg> for ClientSink { -425 type Error = SendError; -426 -427 fn poll_ready( -428 mut self: Pin<&mut Self>, -429 cx: &mut task::Context<'_>, -430 ) -> Poll<Result<(), Self::Error>> { -431 Pin::new(&mut self.sink).poll_ready(cx) -432 } -433 -434 fn start_send(mut self: Pin<&mut Self>, item: ClientToRelayMsg) -> Result<(), Self::Error> { -435 Pin::new(&mut self.sink).start_send(item) -436 } -437 -438 fn poll_flush( -439 mut self: Pin<&mut Self>, -440 cx: &mut task::Context<'_>, -441 ) -> Poll<Result<(), Self::Error>> { -442 Pin::new(&mut self.sink).poll_flush(cx) -443 } -444 -445 fn poll_close( -446 mut self: Pin<&mut Self>, -447 cx: &mut task::Context<'_>, -448 ) -> Poll<Result<(), Self::Error>> { -449 Pin::new(&mut self.sink).poll_close(cx) -450 } -451} -452 -453/// The receive half of a relay client. -454#[derive(Debug)] -455pub struct ClientStream { -456 stream: SplitStream<Conn>, -457 local_addr: Option<SocketAddr>, -458} -459 -460impl ClientStream { -461 /// Returns the local address of the client. -462 pub fn local_addr(&self) -> Option<SocketAddr> { -463 self.local_addr -464 } -465} -466 -467impl Stream for ClientStream { -468 type Item = Result<RelayToClientMsg, RecvError>; +384impl Sink<ClientToRelayMsg> for Client { +385 type Error = SendError; +386 +387 fn poll_ready( +388 mut self: Pin<&mut Self>, +389 cx: &mut task::Context<'_>, +390 ) -> Poll<Result<(), Self::Error>> { +391 Pin::new(&mut self.conn).poll_ready(cx) +392 } +393 +394 fn start_send(mut self: Pin<&mut Self>, item: ClientToRelayMsg) -> Result<(), Self::Error> { +395 Pin::new(&mut self.conn).start_send(item) +396 } +397 +398 fn poll_flush( +399 mut self: Pin<&mut Self>, +400 cx: &mut task::Context<'_>, +401 ) -> Poll<Result<(), Self::Error>> { +402 Pin::new(&mut self.conn).poll_flush(cx) +403 } +404 +405 fn poll_close( +406 mut self: Pin<&mut Self>, +407 cx: &mut task::Context<'_>, +408 ) -> Poll<Result<(), Self::Error>> { +409 Pin::new(&mut self.conn).poll_close(cx) +410 } +411} +412 +413/// The send half of a relay client. +414#[derive(Debug)] +415pub struct ClientSink { +416 sink: SplitSink<Conn, ClientToRelayMsg>, +417} +418 +419impl Sink<ClientToRelayMsg> for ClientSink { +420 type Error = SendError; +421 +422 fn poll_ready( +423 mut self: Pin<&mut Self>, +424 cx: &mut task::Context<'_>, +425 ) -> Poll<Result<(), Self::Error>> { +426 Pin::new(&mut self.sink).poll_ready(cx) +427 } +428 +429 fn start_send(mut self: Pin<&mut Self>, item: ClientToRelayMsg) -> Result<(), Self::Error> { +430 Pin::new(&mut self.sink).start_send(item) +431 } +432 +433 fn poll_flush( +434 mut self: Pin<&mut Self>, +435 cx: &mut task::Context<'_>, +436 ) -> Poll<Result<(), Self::Error>> { +437 Pin::new(&mut self.sink).poll_flush(cx) +438 } +439 +440 fn poll_close( +441 mut self: Pin<&mut Self>, +442 cx: &mut task::Context<'_>, +443 ) -> Poll<Result<(), Self::Error>> { +444 Pin::new(&mut self.sink).poll_close(cx) +445 } +446} +447 +448/// The receive half of a relay client. +449#[derive(Debug)] +450pub struct ClientStream { +451 stream: SplitStream<Conn>, +452 local_addr: Option<SocketAddr>, +453} +454 +455impl ClientStream { +456 /// Returns the local address of the client. +457 pub fn local_addr(&self) -> Option<SocketAddr> { +458 self.local_addr +459 } +460} +461 +462impl Stream for ClientStream { +463 type Item = Result<RelayToClientMsg, RecvError>; +464 +465 fn poll_next(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Self::Item>> { +466 Pin::new(&mut self.stream).poll_next(cx) +467 } +468} 469 -470 fn poll_next(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Self::Item>> { -471 Pin::new(&mut self.stream).poll_next(cx) -472 } -473} -474 -475#[cfg(any(test, feature = "test-utils"))] -476/// Creates a client config that trusts any servers without verifying their TLS certificate. -477/// -478/// Should be used for testing local relay setups only. -479pub fn make_dangerous_client_config() -> rustls::ClientConfig { -480 warn!( -481 "Insecure config: SSL certificates from relay servers will be trusted without verification" -482 ); -483 rustls::client::ClientConfig::builder_with_provider(Arc::new( -484 rustls::crypto::ring::default_provider(), -485 )) -486 .with_protocol_versions(&[&rustls::version::TLS13]) -487 .expect("protocols supported by ring") -488 .dangerous() -489 .with_custom_certificate_verifier(Arc::new(NoCertVerifier)) -490 .with_no_client_auth() -491} +470#[cfg(any(test, feature = "test-utils"))] +471/// Creates a client config that trusts any servers without verifying their TLS certificate. +472/// +473/// Should be used for testing local relay setups only. +474pub fn make_dangerous_client_config() -> rustls::ClientConfig { +475 warn!( +476 "Insecure config: SSL certificates from relay servers will be trusted without verification" +477 ); +478 rustls::client::ClientConfig::builder_with_provider(Arc::new( +479 rustls::crypto::ring::default_provider(), +480 )) +481 .with_protocol_versions(&[&rustls::version::TLS13]) +482 .expect("protocols supported by ring") +483 .dangerous() +484 .with_custom_certificate_verifier(Arc::new(NoCertVerifier)) +485 .with_no_client_auth() +486} +487 +488/// Used to allow self signed certificates in tests +489#[cfg(any(test, feature = "test-utils"))] +490#[derive(Debug)] +491struct NoCertVerifier; 492 -493/// Used to allow self signed certificates in tests -494#[cfg(any(test, feature = "test-utils"))] -495#[derive(Debug)] -496struct NoCertVerifier; -497 -498#[cfg(any(test, feature = "test-utils"))] -499impl rustls::client::danger::ServerCertVerifier for NoCertVerifier { -500 fn verify_server_cert( -501 &self, -502 _end_entity: &rustls::pki_types::CertificateDer, -503 _intermediates: &[rustls::pki_types::CertificateDer], -504 _server_name: &rustls::pki_types::ServerName, -505 _ocsp_response: &[u8], -506 _now: rustls::pki_types::UnixTime, -507 ) -> Result<rustls::client::danger::ServerCertVerified, rustls::Error> { -508 Ok(rustls::client::danger::ServerCertVerified::assertion()) -509 } -510 fn verify_tls12_signature( -511 &self, -512 _message: &[u8], -513 _cert: &rustls::pki_types::CertificateDer<'_>, -514 _dss: &rustls::DigitallySignedStruct, -515 ) -> Result<rustls::client::danger::HandshakeSignatureValid, rustls::Error> { -516 Ok(rustls::client::danger::HandshakeSignatureValid::assertion()) -517 } -518 -519 fn verify_tls13_signature( -520 &self, -521 _message: &[u8], -522 _cert: &rustls::pki_types::CertificateDer<'_>, -523 _dss: &rustls::DigitallySignedStruct, -524 ) -> Result<rustls::client::danger::HandshakeSignatureValid, rustls::Error> { -525 Ok(rustls::client::danger::HandshakeSignatureValid::assertion()) -526 } -527 -528 fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> { -529 rustls::crypto::ring::default_provider() -530 .signature_verification_algorithms -531 .supported_schemes() -532 } -533} \ No newline at end of file +493#[cfg(any(test, feature = "test-utils"))] +494impl rustls::client::danger::ServerCertVerifier for NoCertVerifier { +495 fn verify_server_cert( +496 &self, +497 _end_entity: &rustls::pki_types::CertificateDer, +498 _intermediates: &[rustls::pki_types::CertificateDer], +499 _server_name: &rustls::pki_types::ServerName, +500 _ocsp_response: &[u8], +501 _now: rustls::pki_types::UnixTime, +502 ) -> Result<rustls::client::danger::ServerCertVerified, rustls::Error> { +503 Ok(rustls::client::danger::ServerCertVerified::assertion()) +504 } +505 fn verify_tls12_signature( +506 &self, +507 _message: &[u8], +508 _cert: &rustls::pki_types::CertificateDer<'_>, +509 _dss: &rustls::DigitallySignedStruct, +510 ) -> Result<rustls::client::danger::HandshakeSignatureValid, rustls::Error> { +511 Ok(rustls::client::danger::HandshakeSignatureValid::assertion()) +512 } +513 +514 fn verify_tls13_signature( +515 &self, +516 _message: &[u8], +517 _cert: &rustls::pki_types::CertificateDer<'_>, +518 _dss: &rustls::DigitallySignedStruct, +519 ) -> Result<rustls::client::danger::HandshakeSignatureValid, rustls::Error> { +520 Ok(rustls::client::danger::HandshakeSignatureValid::assertion()) +521 } +522 +523 fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> { +524 rustls::crypto::ring::default_provider() +525 .signature_verification_algorithms +526 .supported_schemes() +527 } +528} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/client/tls.rs.html b/pr/3958/docs/src/iroh_relay/client/tls.rs.html index 1acec0e787..4c39c7710a 100644 --- a/pr/3958/docs/src/iroh_relay/client/tls.rs.html +++ b/pr/3958/docs/src/iroh_relay/client/tls.rs.html @@ -27,261 +27,237 @@ 27 dns_resolver: DnsResolver, 28 proxy_url: Option<Url>, 29 prefer_ipv6: bool, -30 #[cfg(any(test, feature = "test-utils"))] -31 insecure_skip_cert_verify: bool, -32} -33 -34impl MaybeTlsStreamBuilder { -35 pub fn new(url: Url, dns_resolver: DnsResolver) -> Self { -36 Self { -37 url, -38 dns_resolver, -39 proxy_url: None, -40 prefer_ipv6: false, -41 #[cfg(any(test, feature = "test-utils"))] -42 insecure_skip_cert_verify: false, -43 } -44 } -45 -46 pub fn proxy_url(mut self, proxy_url: Option<Url>) -> Self { -47 self.proxy_url = proxy_url; -48 self -49 } -50 -51 pub fn prefer_ipv6(mut self, prefer: bool) -> Self { -52 self.prefer_ipv6 = prefer; -53 self -54 } -55 -56 #[cfg(any(test, feature = "test-utils"))] -57 pub fn insecure_skip_cert_verify(mut self, skip: bool) -> Self { -58 self.insecure_skip_cert_verify = skip; -59 self -60 } -61 -62 pub async fn connect(self) -> Result<MaybeTlsStream<ProxyStream>, ConnectError> { -63 let roots = rustls::RootCertStore { -64 roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(), -65 }; -66 let mut config = rustls::client::ClientConfig::builder_with_provider(Arc::new( -67 rustls::crypto::ring::default_provider(), -68 )) -69 .with_safe_default_protocol_versions() -70 .expect("protocols supported by ring") -71 .with_root_certificates(roots) -72 .with_no_client_auth(); -73 #[cfg(any(test, feature = "test-utils"))] -74 if self.insecure_skip_cert_verify { -75 warn!("Insecure config: SSL certificates from relay servers not verified"); -76 config -77 .dangerous() -78 .set_certificate_verifier(Arc::new(NoCertVerifier)); -79 } -80 config.resumption = Resumption::default(); -81 let tls_connector: tokio_rustls::TlsConnector = Arc::new(config).into(); -82 -83 let tcp_stream = self.dial_url(&tls_connector).await?; -84 -85 let local_addr = tcp_stream -86 .local_addr() -87 .map_err(|_| e!(ConnectError::NoLocalAddr))?; -88 -89 debug!(server_addr = ?tcp_stream.peer_addr(), %local_addr, "TCP stream connected"); -90 -91 if self.use_tls() { -92 debug!("Starting TLS handshake"); -93 let hostname = self -94 .tls_servername() -95 .ok_or_else(|| e!(ConnectError::InvalidTlsServername))?; -96 -97 let hostname = hostname.to_owned(); -98 let tls_stream = tls_connector -99 .connect(hostname, tcp_stream) -100 .await -101 .map_err(|err| e!(ConnectError::Tls, err))?; -102 debug!("tls_connector connect success"); -103 Ok(MaybeTlsStream::Tls(tls_stream)) -104 } else { -105 debug!("Starting handshake"); -106 Ok(MaybeTlsStream::Raw(tcp_stream)) -107 } -108 } -109 -110 fn use_tls(&self) -> bool { -111 // only disable tls if we are explicitly dialing a http url -112 #[allow(clippy::match_like_matches_macro)] -113 match self.url.scheme() { -114 "http" => false, -115 "ws" => false, -116 _ => true, -117 } -118 } -119 -120 fn tls_servername(&self) -> Option<rustls::pki_types::ServerName<'_>> { -121 let host_str = self.url.host_str()?; -122 let servername = rustls::pki_types::ServerName::try_from(host_str).ok()?; -123 Some(servername) -124 } -125 -126 async fn dial_url( -127 &self, -128 tls_connector: &tokio_rustls::TlsConnector, -129 ) -> Result<ProxyStream, DialError> { -130 if let Some(ref proxy) = self.proxy_url { -131 let stream = self.dial_url_proxy(proxy.clone(), tls_connector).await?; -132 Ok(ProxyStream::Proxied(stream)) -133 } else { -134 let stream = self.dial_url_direct().await?; -135 Ok(ProxyStream::Raw(stream)) -136 } -137 } -138 -139 async fn dial_url_direct(&self) -> Result<tokio::net::TcpStream, DialError> { -140 use tokio::net::TcpStream; -141 let dst_ip = self -142 .dns_resolver -143 .resolve_host(&self.url, self.prefer_ipv6, DNS_TIMEOUT) -144 .await?; -145 -146 let port = url_port(&self.url).ok_or_else(|| e!(DialError::InvalidTargetPort))?; -147 let addr = SocketAddr::new(dst_ip, port); -148 -149 trace!("connecting to {}", addr); -150 let tcp_stream = time::timeout(DIAL_ENDPOINT_TIMEOUT, async move { -151 TcpStream::connect(addr).await -152 }) -153 .await -154 .map_err(|err| e!(DialError::Timeout, err))??; -155 -156 tcp_stream.set_nodelay(true)?; -157 -158 Ok(tcp_stream) -159 } -160 -161 async fn dial_url_proxy( -162 &self, -163 proxy_url: Url, -164 tls_connector: &tokio_rustls::TlsConnector, -165 ) -> Result<util::Chain<std::io::Cursor<Bytes>, MaybeTlsStream<tokio::net::TcpStream>>, DialError> -166 { -167 use hyper_util::rt::TokioIo; -168 use tokio::net::TcpStream; -169 debug!(%self.url, %proxy_url, "dial url via proxy"); -170 -171 // Resolve proxy DNS -172 let proxy_ip = self -173 .dns_resolver -174 .resolve_host(&proxy_url, self.prefer_ipv6, DNS_TIMEOUT) -175 .await?; -176 -177 let proxy_port = -178 url_port(&proxy_url).ok_or_else(|| e!(DialError::ProxyInvalidTargetPort))?; -179 let proxy_addr = SocketAddr::new(proxy_ip, proxy_port); -180 -181 debug!(%proxy_addr, "connecting to proxy"); -182 -183 let tcp_stream = time::timeout(DIAL_ENDPOINT_TIMEOUT, async move { -184 TcpStream::connect(proxy_addr).await -185 }) -186 .await??; -187 -188 tcp_stream.set_nodelay(true)?; -189 -190 // Setup TLS if necessary -191 let io = if proxy_url.scheme() == "http" { -192 MaybeTlsStream::Raw(tcp_stream) -193 } else { -194 let hostname = proxy_url.host_str().ok_or_else(|| { -195 e!(DialError::ProxyInvalidUrl { -196 proxy_url: proxy_url.clone() -197 }) -198 })?; -199 let hostname = -200 rustls::pki_types::ServerName::try_from(hostname.to_string()).map_err(|_| { -201 e!(DialError::ProxyInvalidTlsServername { -202 proxy_hostname: hostname.to_string() -203 }) -204 })?; -205 let tls_stream = tls_connector.connect(hostname, tcp_stream).await?; -206 MaybeTlsStream::Tls(tls_stream) -207 }; -208 let io = TokioIo::new(io); -209 -210 let target_host = self.url.host_str().ok_or_else(|| { -211 e!(DialError::InvalidUrl { -212 url: self.url.clone() -213 }) -214 })?; -215 -216 let port = url_port(&self.url).ok_or_else(|| e!(DialError::InvalidTargetPort))?; -217 -218 // Establish Proxy Tunnel -219 let mut req_builder = Request::builder() -220 .uri(format!("{target_host}:{port}")) -221 .method("CONNECT") -222 .header("Host", target_host) -223 .header("Proxy-Connection", "Keep-Alive"); -224 if !proxy_url.username().is_empty() { -225 // Passthrough authorization -226 // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization -227 debug!( -228 "setting proxy-authorization: username={}", -229 proxy_url.username() -230 ); -231 let to_encode = format!( -232 "{}:{}", -233 proxy_url.username(), -234 proxy_url.password().unwrap_or_default() -235 ); -236 let encoded = BASE64URL.encode(to_encode.as_bytes()); -237 req_builder = req_builder.header("Proxy-Authorization", format!("Basic {encoded}")); +30 tls_config: rustls::ClientConfig, +31} +32 +33impl MaybeTlsStreamBuilder { +34 pub fn new(url: Url, dns_resolver: DnsResolver, tls_config: rustls::ClientConfig) -> Self { +35 Self { +36 url, +37 dns_resolver, +38 proxy_url: None, +39 prefer_ipv6: false, +40 tls_config, +41 } +42 } +43 +44 pub fn proxy_url(mut self, proxy_url: Option<Url>) -> Self { +45 self.proxy_url = proxy_url; +46 self +47 } +48 +49 pub fn prefer_ipv6(mut self, prefer: bool) -> Self { +50 self.prefer_ipv6 = prefer; +51 self +52 } +53 +54 pub async fn connect(self) -> Result<MaybeTlsStream<ProxyStream>, ConnectError> { +55 let mut config = self.tls_config.clone(); +56 config.resumption = Resumption::default(); +57 let tls_connector: tokio_rustls::TlsConnector = Arc::new(config).into(); +58 +59 let tcp_stream = self.dial_url(&tls_connector).await?; +60 +61 let local_addr = tcp_stream +62 .local_addr() +63 .map_err(|_| e!(ConnectError::NoLocalAddr))?; +64 +65 debug!(server_addr = ?tcp_stream.peer_addr(), %local_addr, "TCP stream connected"); +66 +67 if self.use_tls() { +68 debug!("Starting TLS handshake"); +69 let hostname = self +70 .tls_servername() +71 .ok_or_else(|| e!(ConnectError::InvalidTlsServername))?; +72 +73 let hostname = hostname.to_owned(); +74 let tls_stream = tls_connector +75 .connect(hostname, tcp_stream) +76 .await +77 .map_err(|err| e!(ConnectError::Tls, err))?; +78 debug!("tls_connector connect success"); +79 Ok(MaybeTlsStream::Tls(tls_stream)) +80 } else { +81 debug!("Starting handshake"); +82 Ok(MaybeTlsStream::Raw(tcp_stream)) +83 } +84 } +85 +86 fn use_tls(&self) -> bool { +87 // only disable tls if we are explicitly dialing a http url +88 #[allow(clippy::match_like_matches_macro)] +89 match self.url.scheme() { +90 "http" => false, +91 "ws" => false, +92 _ => true, +93 } +94 } +95 +96 fn tls_servername(&self) -> Option<rustls::pki_types::ServerName<'_>> { +97 let host_str = self.url.host_str()?; +98 let servername = rustls::pki_types::ServerName::try_from(host_str).ok()?; +99 Some(servername) +100 } +101 +102 async fn dial_url( +103 &self, +104 tls_connector: &tokio_rustls::TlsConnector, +105 ) -> Result<ProxyStream, DialError> { +106 if let Some(ref proxy) = self.proxy_url { +107 let stream = self.dial_url_proxy(proxy.clone(), tls_connector).await?; +108 Ok(ProxyStream::Proxied(stream)) +109 } else { +110 let stream = self.dial_url_direct().await?; +111 Ok(ProxyStream::Raw(stream)) +112 } +113 } +114 +115 async fn dial_url_direct(&self) -> Result<tokio::net::TcpStream, DialError> { +116 use tokio::net::TcpStream; +117 let dst_ip = self +118 .dns_resolver +119 .resolve_host(&self.url, self.prefer_ipv6, DNS_TIMEOUT) +120 .await?; +121 +122 let port = url_port(&self.url).ok_or_else(|| e!(DialError::InvalidTargetPort))?; +123 let addr = SocketAddr::new(dst_ip, port); +124 +125 trace!("connecting to {}", addr); +126 let tcp_stream = time::timeout(DIAL_ENDPOINT_TIMEOUT, async move { +127 TcpStream::connect(addr).await +128 }) +129 .await +130 .map_err(|err| e!(DialError::Timeout, err))??; +131 +132 tcp_stream.set_nodelay(true)?; +133 +134 Ok(tcp_stream) +135 } +136 +137 async fn dial_url_proxy( +138 &self, +139 proxy_url: Url, +140 tls_connector: &tokio_rustls::TlsConnector, +141 ) -> Result<util::Chain<std::io::Cursor<Bytes>, MaybeTlsStream<tokio::net::TcpStream>>, DialError> +142 { +143 use hyper_util::rt::TokioIo; +144 use tokio::net::TcpStream; +145 debug!(%self.url, %proxy_url, "dial url via proxy"); +146 +147 // Resolve proxy DNS +148 let proxy_ip = self +149 .dns_resolver +150 .resolve_host(&proxy_url, self.prefer_ipv6, DNS_TIMEOUT) +151 .await?; +152 +153 let proxy_port = +154 url_port(&proxy_url).ok_or_else(|| e!(DialError::ProxyInvalidTargetPort))?; +155 let proxy_addr = SocketAddr::new(proxy_ip, proxy_port); +156 +157 debug!(%proxy_addr, "connecting to proxy"); +158 +159 let tcp_stream = time::timeout(DIAL_ENDPOINT_TIMEOUT, async move { +160 TcpStream::connect(proxy_addr).await +161 }) +162 .await??; +163 +164 tcp_stream.set_nodelay(true)?; +165 +166 // Setup TLS if necessary +167 let io = if proxy_url.scheme() == "http" { +168 MaybeTlsStream::Raw(tcp_stream) +169 } else { +170 let hostname = proxy_url.host_str().ok_or_else(|| { +171 e!(DialError::ProxyInvalidUrl { +172 proxy_url: proxy_url.clone() +173 }) +174 })?; +175 let hostname = +176 rustls::pki_types::ServerName::try_from(hostname.to_string()).map_err(|_| { +177 e!(DialError::ProxyInvalidTlsServername { +178 proxy_hostname: hostname.to_string() +179 }) +180 })?; +181 let tls_stream = tls_connector.connect(hostname, tcp_stream).await?; +182 MaybeTlsStream::Tls(tls_stream) +183 }; +184 let io = TokioIo::new(io); +185 +186 let target_host = self.url.host_str().ok_or_else(|| { +187 e!(DialError::InvalidUrl { +188 url: self.url.clone() +189 }) +190 })?; +191 +192 let port = url_port(&self.url).ok_or_else(|| e!(DialError::InvalidTargetPort))?; +193 +194 // Establish Proxy Tunnel +195 let mut req_builder = Request::builder() +196 .uri(format!("{target_host}:{port}")) +197 .method("CONNECT") +198 .header("Host", target_host) +199 .header("Proxy-Connection", "Keep-Alive"); +200 if !proxy_url.username().is_empty() { +201 // Passthrough authorization +202 // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization +203 debug!( +204 "setting proxy-authorization: username={}", +205 proxy_url.username() +206 ); +207 let to_encode = format!( +208 "{}:{}", +209 proxy_url.username(), +210 proxy_url.password().unwrap_or_default() +211 ); +212 let encoded = BASE64URL.encode(to_encode.as_bytes()); +213 req_builder = req_builder.header("Proxy-Authorization", format!("Basic {encoded}")); +214 } +215 let req = req_builder +216 .body(Empty::<Bytes>::new()) +217 .expect("fixed config"); +218 +219 debug!("Sending proxy request: {:?}", req); +220 +221 let (mut sender, conn) = hyper::client::conn::http1::handshake(io) +222 .await +223 .map_err(|err| e!(DialError::ProxyConnect, err))?; +224 task::spawn(async move { +225 if let Err(err) = conn.with_upgrades().await { +226 error!("Proxy connection failed: {:?}", err); +227 } +228 }); +229 +230 let res = sender +231 .send_request(req) +232 .await +233 .map_err(|err| e!(DialError::ProxyConnect, err))?; +234 if !res.status().is_success() { +235 return Err(e!(DialError::ProxyConnectInvalidStatus { +236 status: res.status() +237 })); 238 } -239 let req = req_builder -240 .body(Empty::<Bytes>::new()) -241 .expect("fixed config"); -242 -243 debug!("Sending proxy request: {:?}", req); -244 -245 let (mut sender, conn) = hyper::client::conn::http1::handshake(io) -246 .await -247 .map_err(|err| e!(DialError::ProxyConnect, err))?; -248 task::spawn(async move { -249 if let Err(err) = conn.with_upgrades().await { -250 error!("Proxy connection failed: {:?}", err); -251 } -252 }); -253 -254 let res = sender -255 .send_request(req) -256 .await -257 .map_err(|err| e!(DialError::ProxyConnect, err))?; -258 if !res.status().is_success() { -259 return Err(e!(DialError::ProxyConnectInvalidStatus { -260 status: res.status() -261 })); -262 } -263 -264 let upgraded = hyper::upgrade::on(res) -265 .await -266 .map_err(|err| e!(DialError::ProxyConnect, err))?; -267 let Parts { io, read_buf, .. } = upgraded -268 .downcast::<TokioIo<MaybeTlsStream<tokio::net::TcpStream>>>() -269 .expect("only this upgrade used"); -270 -271 let res = util::chain(std::io::Cursor::new(read_buf), io.into_inner()); -272 -273 Ok(res) -274 } -275} -276 -277fn url_port(url: &Url) -> Option<u16> { -278 if let Some(port) = url.port() { -279 return Some(port); -280 } -281 -282 match url.scheme() { -283 "http" | "ws" => Some(80), -284 "https" | "wss" => Some(443), -285 _ => None, -286 } -287} \ No newline at end of file +239 +240 let upgraded = hyper::upgrade::on(res) +241 .await +242 .map_err(|err| e!(DialError::ProxyConnect, err))?; +243 let Parts { io, read_buf, .. } = upgraded +244 .downcast::<TokioIo<MaybeTlsStream<tokio::net::TcpStream>>>() +245 .expect("only this upgrade used"); +246 +247 let res = util::chain(std::io::Cursor::new(read_buf), io.into_inner()); +248 +249 Ok(res) +250 } +251} +252 +253fn url_port(url: &Url) -> Option<u16> { +254 if let Some(port) = url.port() { +255 return Some(port); +256 } +257 +258 match url.scheme() { +259 "http" | "ws" => Some(80), +260 "https" | "wss" => Some(443), +261 _ => None, +262 } +263} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/dns.rs.html b/pr/3958/docs/src/iroh_relay/dns.rs.html index 12dfc964b2..d4bac1ed42 100644 --- a/pr/3958/docs/src/iroh_relay/dns.rs.html +++ b/pr/3958/docs/src/iroh_relay/dns.rs.html @@ -19,862 +19,874 @@ 19 boxed::BoxFuture, 20 time::{self, Duration}, 21}; -22use tokio::sync::RwLock; -23use tracing::debug; -24use url::Url; -25 -26use crate::{ -27 defaults::timeouts::DNS_TIMEOUT, -28 endpoint_info::{self, EndpointInfo, ParseError}, -29}; -30 -31/// The n0 testing DNS endpoint origin, for production. -32pub const N0_DNS_ENDPOINT_ORIGIN_PROD: &str = "dns.iroh.link"; -33/// The n0 testing DNS endpoint origin, for testing. -34pub const N0_DNS_ENDPOINT_ORIGIN_STAGING: &str = "staging-dns.iroh.link"; -35 -36/// Percent of total delay to jitter. 20 means +/- 20% of delay. -37const MAX_JITTER_PERCENT: u64 = 20; -38 -39/// Trait for DNS resolvers used in iroh. -40pub trait Resolver: fmt::Debug + Send + Sync + 'static { -41 /// Looks up an IPv4 address. -42 fn lookup_ipv4(&self, host: String) -> BoxFuture<Result<BoxIter<Ipv4Addr>, DnsError>>; -43 -44 /// Looks up an IPv6 address. -45 fn lookup_ipv6(&self, host: String) -> BoxFuture<Result<BoxIter<Ipv6Addr>, DnsError>>; -46 -47 /// Looks up TXT records. -48 fn lookup_txt(&self, host: String) -> BoxFuture<Result<BoxIter<TxtRecordData>, DnsError>>; -49 -50 /// Clears the internal cache. -51 fn clear_cache(&self); -52 -53 /// Completely resets the DNS resolver. -54 /// -55 /// This is called when the host's network changes majorly. Implementations should rebind all sockets -56 /// and refresh the nameserver configuration if read from the host system. -57 fn reset(&mut self); -58} -59 -60/// Boxed iterator alias. -61pub type BoxIter<T> = Box<dyn Iterator<Item = T> + Send + 'static>; -62 -63/// Potential errors related to dns. -64#[allow(missing_docs)] -65#[stack_error(derive, add_meta, from_sources, std_sources)] -66#[non_exhaustive] -67pub enum DnsError { -68 #[error(transparent)] -69 Timeout { source: tokio::time::error::Elapsed }, -70 #[error("No response")] -71 NoResponse {}, -72 #[error("Resolve failed ipv4: {ipv4}, ipv6 {ipv6}")] -73 ResolveBoth { -74 ipv4: Box<DnsError>, -75 ipv6: Box<DnsError>, -76 }, -77 #[error("missing host")] -78 MissingHost {}, -79 #[error(transparent)] -80 Resolve { -81 source: hickory_resolver::ResolveError, -82 }, -83 #[error("invalid DNS response: not a query for _iroh.z32encodedpubkey")] -84 InvalidResponse {}, -85} -86 -87#[cfg(not(wasm_browser))] -88#[allow(missing_docs)] -89#[stack_error(derive, add_meta, from_sources)] -90#[non_exhaustive] -91pub enum LookupError { -92 #[error("Malformed txt from lookup")] -93 ParseError { source: ParseError }, -94 #[error("Failed to resolve TXT record")] -95 LookupFailed { source: DnsError }, -96} -97 -98/// Error returned when a staggered call fails. -99#[stack_error(derive, add_meta)] -100#[error("no calls succeeded: [{}]", errors.iter().map(|e| e.to_string()).collect::<Vec<_>>().join(""))] -101pub struct StaggeredError<E: n0_error::StackError + 'static> { -102 errors: Vec<E>, -103} -104 -105impl<E: StackError + 'static> StaggeredError<E> { -106 /// Returns an iterator over all encountered errors. -107 pub fn iter(&self) -> impl Iterator<Item = &E> { -108 self.errors.iter() -109 } -110} -111 -112/// Builder for [`DnsResolver`]. -113#[derive(Debug, Clone, Default)] -114pub struct Builder { -115 use_system_defaults: bool, -116 nameservers: Vec<(SocketAddr, DnsProtocol)>, -117} -118 -119/// Protocols over which DNS records can be resolved. -120#[derive(Debug, Default, Copy, Clone, Eq, PartialEq)] -121#[non_exhaustive] -122pub enum DnsProtocol { -123 /// DNS over UDP -124 /// -125 /// This is the classic DNS protocol and supported by most DNS servers. -126 #[default] -127 Udp, -128 /// DNS over TCP -129 /// -130 /// This is specified in the original DNS RFCs, but is not supported by all DNS servers. -131 Tcp, -132 /// DNS over TLS -133 /// -134 /// Performs DNS lookups over TLS-encrypted TCP connections, as defined in [RFC 7858]. +22use rustls::ClientConfig; +23use tokio::sync::RwLock; +24use tracing::debug; +25use url::Url; +26 +27use crate::{ +28 defaults::timeouts::DNS_TIMEOUT, +29 endpoint_info::{self, EndpointInfo, ParseError}, +30}; +31 +32/// The n0 testing DNS endpoint origin, for production. +33pub const N0_DNS_ENDPOINT_ORIGIN_PROD: &str = "dns.iroh.link"; +34/// The n0 testing DNS endpoint origin, for testing. +35pub const N0_DNS_ENDPOINT_ORIGIN_STAGING: &str = "staging-dns.iroh.link"; +36 +37/// Percent of total delay to jitter. 20 means +/- 20% of delay. +38const MAX_JITTER_PERCENT: u64 = 20; +39 +40/// Trait for DNS resolvers used in iroh. +41pub trait Resolver: fmt::Debug + Send + Sync + 'static { +42 /// Looks up an IPv4 address. +43 fn lookup_ipv4(&self, host: String) -> BoxFuture<Result<BoxIter<Ipv4Addr>, DnsError>>; +44 +45 /// Looks up an IPv6 address. +46 fn lookup_ipv6(&self, host: String) -> BoxFuture<Result<BoxIter<Ipv6Addr>, DnsError>>; +47 +48 /// Looks up TXT records. +49 fn lookup_txt(&self, host: String) -> BoxFuture<Result<BoxIter<TxtRecordData>, DnsError>>; +50 +51 /// Clears the internal cache. +52 fn clear_cache(&self); +53 +54 /// Completely resets the DNS resolver. +55 /// +56 /// This is called when the host's network changes majorly. Implementations should rebind all sockets +57 /// and refresh the nameserver configuration if read from the host system. +58 fn reset(&mut self); +59} +60 +61/// Boxed iterator alias. +62pub type BoxIter<T> = Box<dyn Iterator<Item = T> + Send + 'static>; +63 +64/// Potential errors related to dns. +65#[allow(missing_docs)] +66#[stack_error(derive, add_meta, from_sources, std_sources)] +67#[non_exhaustive] +68pub enum DnsError { +69 #[error(transparent)] +70 Timeout { source: tokio::time::error::Elapsed }, +71 #[error("No response")] +72 NoResponse {}, +73 #[error("Resolve failed ipv4: {ipv4}, ipv6 {ipv6}")] +74 ResolveBoth { +75 ipv4: Box<DnsError>, +76 ipv6: Box<DnsError>, +77 }, +78 #[error("missing host")] +79 MissingHost {}, +80 #[error(transparent)] +81 Resolve { +82 source: hickory_resolver::ResolveError, +83 }, +84 #[error("invalid DNS response: not a query for _iroh.z32encodedpubkey")] +85 InvalidResponse {}, +86} +87 +88#[cfg(not(wasm_browser))] +89#[allow(missing_docs)] +90#[stack_error(derive, add_meta, from_sources)] +91#[non_exhaustive] +92pub enum LookupError { +93 #[error("Malformed txt from lookup")] +94 ParseError { source: ParseError }, +95 #[error("Failed to resolve TXT record")] +96 LookupFailed { source: DnsError }, +97} +98 +99/// Error returned when a staggered call fails. +100#[stack_error(derive, add_meta)] +101#[error("no calls succeeded: [{}]", errors.iter().map(|e| e.to_string()).collect::<Vec<_>>().join(""))] +102pub struct StaggeredError<E: n0_error::StackError + 'static> { +103 errors: Vec<E>, +104} +105 +106impl<E: StackError + 'static> StaggeredError<E> { +107 /// Returns an iterator over all encountered errors. +108 pub fn iter(&self) -> impl Iterator<Item = &E> { +109 self.errors.iter() +110 } +111} +112 +113/// Builder for [`DnsResolver`]. +114#[derive(Debug, Clone, Default)] +115pub struct Builder { +116 use_system_defaults: bool, +117 nameservers: Vec<(SocketAddr, DnsProtocol)>, +118 tls_client_config: Option<ClientConfig>, +119} +120 +121/// Protocols over which DNS records can be resolved. +122#[derive(Debug, Default, Copy, Clone, Eq, PartialEq)] +123#[non_exhaustive] +124pub enum DnsProtocol { +125 /// DNS over UDP +126 /// +127 /// This is the classic DNS protocol and supported by most DNS servers. +128 #[default] +129 Udp, +130 /// DNS over TCP +131 /// +132 /// This is specified in the original DNS RFCs, but is not supported by all DNS servers. +133 Tcp, +134 /// DNS over TLS 135 /// -136 /// [RFC 7858]: https://www.rfc-editor.org/rfc/rfc7858.html -137 Tls, -138 /// DNS over HTTPS -139 /// -140 /// Performs DNS lookups over HTTPS, as defined in [RFC 8484]. +136 /// Performs DNS lookups over TLS-encrypted TCP connections, as defined in [RFC 7858]. +137 /// +138 /// [RFC 7858]: https://www.rfc-editor.org/rfc/rfc7858.html +139 Tls, +140 /// DNS over HTTPS 141 /// -142 /// [RFC 8484]: https://www.rfc-editor.org/rfc/rfc8484.html -143 Https, -144} -145 -146impl DnsProtocol { -147 fn to_hickory(self) -> hickory_resolver::proto::xfer::Protocol { -148 use hickory_resolver::proto::xfer::Protocol; -149 match self { -150 DnsProtocol::Udp => Protocol::Udp, -151 DnsProtocol::Tcp => Protocol::Tcp, -152 DnsProtocol::Tls => Protocol::Tls, -153 DnsProtocol::Https => Protocol::Https, -154 } -155 } -156} -157 -158impl Builder { -159 /// Makes the builder respect the host system's DNS configuration. -160 /// -161 /// We first try to read the system's resolver from `/etc/resolv.conf`. -162 /// This does not work at least on some Androids, therefore we fallback -163 /// to a default config which uses Google's `8.8.8.8` or `8.8.4.4`. -164 pub fn with_system_defaults(mut self) -> Self { -165 self.use_system_defaults = true; -166 self -167 } -168 -169 /// Adds a single nameserver. -170 pub fn with_nameserver(mut self, addr: SocketAddr, protocol: DnsProtocol) -> Self { -171 self.nameservers.push((addr, protocol)); -172 self -173 } -174 -175 /// Adds a list of nameservers. -176 pub fn with_nameservers( -177 mut self, -178 nameservers: impl IntoIterator<Item = (SocketAddr, DnsProtocol)>, -179 ) -> Self { -180 self.nameservers.extend(nameservers); -181 self -182 } -183 -184 /// Builds the DNS resolver. -185 pub fn build(self) -> DnsResolver { -186 let resolver = HickoryResolver::new(self); -187 DnsResolver(DnsResolverInner::Hickory(Arc::new(RwLock::new(resolver)))) -188 } -189} -190 -191/// The DNS resolver used throughout `iroh`. -192#[derive(Debug, Clone)] -193pub struct DnsResolver(DnsResolverInner); -194 -195impl DnsResolver { -196 /// Creates a new DNS resolver with sensible cross-platform defaults. -197 /// -198 /// We first try to read the system's resolver from `/etc/resolv.conf`. -199 /// This does not work at least on some Androids, therefore we fallback -200 /// to the default `ResolverConfig` which uses eg. to google's `8.8.8.8` or `8.8.4.4`. -201 pub fn new() -> Self { -202 Builder::default().with_system_defaults().build() -203 } -204 -205 /// Creates a new DNS resolver configured with a single UDP DNS nameserver. -206 pub fn with_nameserver(nameserver: SocketAddr) -> Self { -207 Builder::default() -208 .with_nameserver(nameserver, DnsProtocol::Udp) -209 .build() -210 } -211 -212 /// Creates a builder to construct a DNS resolver with custom options. -213 pub fn builder() -> Builder { -214 Builder::default() -215 } -216 -217 /// Creates a new [`DnsResolver`] from a struct that implements [`Resolver`]. -218 /// -219 /// If you need more customization for DNS resolving than the [`Builder`] allows, you can -220 /// implement the [`Resolver`] trait on a struct and implement DNS resolution -221 /// however you see fit. -222 pub fn custom(resolver: impl Resolver) -> Self { -223 Self(DnsResolverInner::Custom(Arc::new(RwLock::new(resolver)))) -224 } -225 -226 /// Removes all entries from the cache. -227 pub async fn clear_cache(&self) { -228 self.0.clear_cache().await -229 } -230 -231 /// Recreates the inner resolver. -232 pub async fn reset(&self) { -233 self.0.reset().await -234 } -235 -236 /// Looks up a TXT record. -237 pub async fn lookup_txt<T: ToString>( -238 &self, -239 host: T, -240 timeout: Duration, -241 ) -> Result<impl Iterator<Item = TxtRecordData>, DnsError> { -242 let host = host.to_string(); -243 let res = time::timeout(timeout, self.0.lookup_txt(host)).await??; -244 Ok(res) -245 } -246 -247 /// Performs an IPv4 lookup with a timeout. -248 pub async fn lookup_ipv4<T: ToString>( -249 &self, -250 host: T, -251 timeout: Duration, -252 ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError> { -253 let host = host.to_string(); -254 let addrs = time::timeout(timeout, self.0.lookup_ipv4(host)).await??; -255 Ok(addrs.into_iter().map(IpAddr::V4)) -256 } -257 -258 /// Performs an IPv6 lookup with a timeout. -259 pub async fn lookup_ipv6<T: ToString>( -260 &self, -261 host: T, -262 timeout: Duration, -263 ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError> { -264 let host = host.to_string(); -265 let addrs = time::timeout(timeout, self.0.lookup_ipv6(host)).await??; -266 Ok(addrs.into_iter().map(IpAddr::V6)) -267 } -268 -269 /// Resolves IPv4 and IPv6 in parallel with a timeout. -270 /// -271 /// `LookupIpStrategy::Ipv4AndIpv6` will wait for ipv6 resolution timeout, even if it is -272 /// not usable on the stack, so we manually query both lookups concurrently and time them out -273 /// individually. -274 pub async fn lookup_ipv4_ipv6<T: ToString>( -275 &self, -276 host: T, -277 timeout: Duration, -278 ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError> { -279 let host = host.to_string(); -280 let res = tokio::join!( -281 self.lookup_ipv4(host.clone(), timeout), -282 self.lookup_ipv6(host, timeout) -283 ); -284 -285 match res { -286 (Ok(ipv4), Ok(ipv6)) => Ok(LookupIter::Both(ipv4.chain(ipv6))), -287 (Ok(ipv4), Err(_)) => Ok(LookupIter::Ipv4(ipv4)), -288 (Err(_), Ok(ipv6)) => Ok(LookupIter::Ipv6(ipv6)), -289 (Err(ipv4_err), Err(ipv6_err)) => Err(e!(DnsError::ResolveBoth { -290 ipv4: Box::new(ipv4_err), -291 ipv6: Box::new(ipv6_err) -292 })), -293 } -294 } -295 -296 /// Resolves a hostname from a URL to an IP address. -297 pub async fn resolve_host( -298 &self, -299 url: &Url, -300 prefer_ipv6: bool, -301 timeout: Duration, -302 ) -> Result<IpAddr, DnsError> { -303 let host = url.host().ok_or_else(|| e!(DnsError::MissingHost))?; -304 match host { -305 url::Host::Domain(domain) => { -306 // Need to do a DNS lookup -307 let lookup = tokio::join!( -308 self.lookup_ipv4(domain, timeout), -309 self.lookup_ipv6(domain, timeout) -310 ); -311 let (v4, v6) = match lookup { -312 (Err(ipv4_err), Err(ipv6_err)) => { -313 return Err(e!(DnsError::ResolveBoth { -314 ipv4: Box::new(ipv4_err), -315 ipv6: Box::new(ipv6_err) -316 })); -317 } -318 (Err(_), Ok(mut v6)) => (None, v6.next()), -319 (Ok(mut v4), Err(_)) => (v4.next(), None), -320 (Ok(mut v4), Ok(mut v6)) => (v4.next(), v6.next()), -321 }; -322 if prefer_ipv6 { -323 v6.or(v4).ok_or_else(|| e!(DnsError::NoResponse)) -324 } else { -325 v4.or(v6).ok_or_else(|| e!(DnsError::NoResponse)) -326 } -327 } -328 url::Host::Ipv4(ip) => Ok(IpAddr::V4(ip)), -329 url::Host::Ipv6(ip) => Ok(IpAddr::V6(ip)), -330 } -331 } -332 -333 /// Performs an IPv4 lookup with a timeout in a staggered fashion. -334 /// -335 /// From the moment this function is called, each lookup is scheduled after the delays in -336 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls -337 /// at T+0ms, T+200ms and T+300ms. The `timeout` is applied to each call individually. The -338 /// result of the first successful call is returned, or a summary of all errors otherwise. -339 pub async fn lookup_ipv4_staggered( -340 &self, -341 host: impl ToString, -342 timeout: Duration, -343 delays_ms: &[u64], -344 ) -> Result<impl Iterator<Item = IpAddr>, StaggeredError<DnsError>> { -345 let host = host.to_string(); -346 let f = || self.lookup_ipv4(host.clone(), timeout); -347 stagger_call(f, delays_ms).await -348 } -349 -350 /// Performs an IPv6 lookup with a timeout in a staggered fashion. -351 /// -352 /// From the moment this function is called, each lookup is scheduled after the delays in -353 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls -354 /// at T+0ms, T+200ms and T+300ms. The `timeout` is applied to each call individually. The -355 /// result of the first successful call is returned, or a summary of all errors otherwise. -356 pub async fn lookup_ipv6_staggered( -357 &self, -358 host: impl ToString, -359 timeout: Duration, -360 delays_ms: &[u64], -361 ) -> Result<impl Iterator<Item = IpAddr>, StaggeredError<DnsError>> { -362 let host = host.to_string(); -363 let f = || self.lookup_ipv6(host.clone(), timeout); -364 stagger_call(f, delays_ms).await -365 } -366 -367 /// Races an IPv4 and IPv6 lookup with a timeout in a staggered fashion. -368 /// -369 /// From the moment this function is called, each lookup is scheduled after the delays in -370 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls -371 /// at T+0ms, T+200ms and T+300ms. The `timeout` is applied as stated in -372 /// [`Self::lookup_ipv4_ipv6`]. The result of the first successful call is returned, or a -373 /// summary of all errors otherwise. -374 pub async fn lookup_ipv4_ipv6_staggered( -375 &self, -376 host: impl ToString, -377 timeout: Duration, -378 delays_ms: &[u64], -379 ) -> Result<impl Iterator<Item = IpAddr>, StaggeredError<DnsError>> { -380 let host = host.to_string(); -381 let f = || self.lookup_ipv4_ipv6(host.clone(), timeout); -382 stagger_call(f, delays_ms).await -383 } -384 -385 /// Looks up endpoint info by [`EndpointId`] and origin domain name. -386 /// -387 /// To lookup endpoints that published their endpoint info to the DNS servers run by n0, -388 /// pass [`N0_DNS_ENDPOINT_ORIGIN_PROD`] as `origin`. -389 pub async fn lookup_endpoint_by_id( -390 &self, -391 endpoint_id: &EndpointId, -392 origin: &str, -393 ) -> Result<EndpointInfo, LookupError> { -394 let name = endpoint_info::endpoint_domain(endpoint_id, origin); -395 let name = endpoint_info::ensure_iroh_txt_label(name); -396 let lookup = self.lookup_txt(name.clone(), DNS_TIMEOUT).await?; -397 let info = EndpointInfo::from_txt_lookup(name, lookup)?; -398 Ok(info) -399 } -400 -401 /// Looks up endpoint info by DNS name. -402 pub async fn lookup_endpoint_by_domain_name( -403 &self, -404 name: &str, -405 ) -> Result<EndpointInfo, LookupError> { -406 let name = endpoint_info::ensure_iroh_txt_label(name.to_string()); -407 let lookup = self.lookup_txt(name.clone(), DNS_TIMEOUT).await?; -408 let info = EndpointInfo::from_txt_lookup(name, lookup)?; -409 Ok(info) -410 } -411 -412 /// Looks up endpoint info by DNS name in a staggered fashion. -413 /// -414 /// From the moment this function is called, each lookup is scheduled after the delays in -415 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls -416 /// at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a -417 /// summary of all errors otherwise. -418 pub async fn lookup_endpoint_by_domain_name_staggered( -419 &self, -420 name: &str, -421 delays_ms: &[u64], -422 ) -> Result<EndpointInfo, StaggeredError<LookupError>> { -423 let f = || self.lookup_endpoint_by_domain_name(name); -424 stagger_call(f, delays_ms).await -425 } -426 -427 /// Looks up endpoint info by [`EndpointId`] and origin domain name. -428 /// -429 /// From the moment this function is called, each lookup is scheduled after the delays in -430 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls -431 /// at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a -432 /// summary of all errors otherwise. -433 pub async fn lookup_endpoint_by_id_staggered( -434 &self, -435 endpoint_id: &EndpointId, -436 origin: &str, -437 delays_ms: &[u64], -438 ) -> Result<EndpointInfo, StaggeredError<LookupError>> { -439 let f = || self.lookup_endpoint_by_id(endpoint_id, origin); -440 stagger_call(f, delays_ms).await -441 } -442} -443 -444impl Default for DnsResolver { -445 fn default() -> Self { -446 Self::new() -447 } -448} -449 -450impl reqwest::dns::Resolve for DnsResolver { -451 fn resolve(&self, name: reqwest::dns::Name) -> reqwest::dns::Resolving { -452 let this = self.clone(); -453 let name = name.as_str().to_string(); -454 Box::pin(async move { -455 let res = this.lookup_ipv4_ipv6(name, DNS_TIMEOUT).await; -456 match res { -457 Ok(addrs) => { -458 let addrs: reqwest::dns::Addrs = -459 Box::new(addrs.map(|addr| SocketAddr::new(addr, 0))); -460 Ok(addrs) -461 } -462 Err(err) => { -463 let err: Box<dyn std::error::Error + Send + Sync> = Box::new(err); -464 Err(err) -465 } -466 } -467 }) -468 } -469} -470 -471/// Wrapper enum that contains either a hickory resolver or a custom resolver. -472/// -473/// We do this to save the cost of boxing the futures and iterators when using -474/// default hickory resolver. -475#[derive(Debug, Clone)] -476enum DnsResolverInner { -477 Hickory(Arc<RwLock<HickoryResolver>>), -478 Custom(Arc<RwLock<dyn Resolver>>), -479} -480 -481impl DnsResolverInner { -482 async fn lookup_ipv4( -483 &self, -484 host: String, -485 ) -> Result<impl Iterator<Item = Ipv4Addr> + use<>, DnsError> { -486 Ok(match self { -487 Self::Hickory(resolver) => Either::Left(resolver.read().await.lookup_ipv4(host).await?), -488 Self::Custom(resolver) => Either::Right(resolver.read().await.lookup_ipv4(host).await?), -489 }) -490 } -491 -492 async fn lookup_ipv6( -493 &self, -494 host: String, -495 ) -> Result<impl Iterator<Item = Ipv6Addr> + use<>, DnsError> { -496 Ok(match self { -497 Self::Hickory(resolver) => Either::Left(resolver.read().await.lookup_ipv6(host).await?), -498 Self::Custom(resolver) => Either::Right(resolver.read().await.lookup_ipv6(host).await?), -499 }) -500 } -501 -502 async fn lookup_txt( -503 &self, -504 host: String, -505 ) -> Result<impl Iterator<Item = TxtRecordData> + use<>, DnsError> { -506 Ok(match self { -507 Self::Hickory(resolver) => Either::Left(resolver.read().await.lookup_txt(host).await?), -508 Self::Custom(resolver) => Either::Right(resolver.read().await.lookup_txt(host).await?), -509 }) -510 } -511 -512 async fn clear_cache(&self) { -513 match self { -514 Self::Hickory(resolver) => resolver.read().await.clear_cache(), -515 Self::Custom(resolver) => resolver.read().await.clear_cache(), -516 } -517 } -518 -519 async fn reset(&self) { -520 match self { -521 Self::Hickory(resolver) => resolver.write().await.reset(), -522 Self::Custom(resolver) => resolver.write().await.reset(), -523 } -524 } -525} +142 /// Performs DNS lookups over HTTPS, as defined in [RFC 8484]. +143 /// +144 /// [RFC 8484]: https://www.rfc-editor.org/rfc/rfc8484.html +145 Https, +146} +147 +148impl DnsProtocol { +149 fn to_hickory(self) -> hickory_resolver::proto::xfer::Protocol { +150 use hickory_resolver::proto::xfer::Protocol; +151 match self { +152 DnsProtocol::Udp => Protocol::Udp, +153 DnsProtocol::Tcp => Protocol::Tcp, +154 DnsProtocol::Tls => Protocol::Tls, +155 DnsProtocol::Https => Protocol::Https, +156 } +157 } +158} +159 +160impl Builder { +161 /// Makes the builder respect the host system's DNS configuration. +162 /// +163 /// We first try to read the system's resolver from `/etc/resolv.conf`. +164 /// This does not work at least on some Androids, therefore we fallback +165 /// to a default config which uses Google's `8.8.8.8` or `8.8.4.4`. +166 pub fn with_system_defaults(mut self) -> Self { +167 self.use_system_defaults = true; +168 self +169 } +170 +171 /// Adds a single nameserver. +172 pub fn with_nameserver(mut self, addr: SocketAddr, protocol: DnsProtocol) -> Self { +173 self.nameservers.push((addr, protocol)); +174 self +175 } +176 +177 /// Adds a list of nameservers. +178 pub fn with_nameservers( +179 mut self, +180 nameservers: impl IntoIterator<Item = (SocketAddr, DnsProtocol)>, +181 ) -> Self { +182 self.nameservers.extend(nameservers); +183 self +184 } +185 +186 /// Sets a custom TLS verification config. +187 pub fn tls_client_config(mut self, client_config: ClientConfig) -> Self { +188 self.tls_client_config = Some(client_config); +189 self +190 } +191 +192 /// Builds the DNS resolver. +193 pub fn build(self) -> DnsResolver { +194 let resolver = HickoryResolver::new(self); +195 DnsResolver(DnsResolverInner::Hickory(Arc::new(RwLock::new(resolver)))) +196 } +197} +198 +199/// The DNS resolver used throughout `iroh`. +200#[derive(Debug, Clone)] +201pub struct DnsResolver(DnsResolverInner); +202 +203impl DnsResolver { +204 /// Creates a new DNS resolver with sensible cross-platform defaults. +205 /// +206 /// We first try to read the system's resolver from `/etc/resolv.conf`. +207 /// This does not work at least on some Androids, therefore we fallback +208 /// to the default `ResolverConfig` which uses eg. to google's `8.8.8.8` or `8.8.4.4`. +209 pub fn new() -> Self { +210 Builder::default().with_system_defaults().build() +211 } +212 +213 /// Creates a new DNS resolver configured with a single UDP DNS nameserver. +214 pub fn with_nameserver(nameserver: SocketAddr) -> Self { +215 Builder::default() +216 .with_nameserver(nameserver, DnsProtocol::Udp) +217 .build() +218 } +219 +220 /// Creates a builder to construct a DNS resolver with custom options. +221 pub fn builder() -> Builder { +222 Builder::default() +223 } +224 +225 /// Creates a new [`DnsResolver`] from a struct that implements [`Resolver`]. +226 /// +227 /// If you need more customization for DNS resolving than the [`Builder`] allows, you can +228 /// implement the [`Resolver`] trait on a struct and implement DNS resolution +229 /// however you see fit. +230 pub fn custom(resolver: impl Resolver) -> Self { +231 Self(DnsResolverInner::Custom(Arc::new(RwLock::new(resolver)))) +232 } +233 +234 /// Removes all entries from the cache. +235 pub async fn clear_cache(&self) { +236 self.0.clear_cache().await +237 } +238 +239 /// Recreates the inner resolver. +240 pub async fn reset(&self) { +241 self.0.reset().await +242 } +243 +244 /// Looks up a TXT record. +245 pub async fn lookup_txt<T: ToString>( +246 &self, +247 host: T, +248 timeout: Duration, +249 ) -> Result<impl Iterator<Item = TxtRecordData>, DnsError> { +250 let host = host.to_string(); +251 let res = time::timeout(timeout, self.0.lookup_txt(host)).await??; +252 Ok(res) +253 } +254 +255 /// Performs an IPv4 lookup with a timeout. +256 pub async fn lookup_ipv4<T: ToString>( +257 &self, +258 host: T, +259 timeout: Duration, +260 ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError> { +261 let host = host.to_string(); +262 let addrs = time::timeout(timeout, self.0.lookup_ipv4(host)).await??; +263 Ok(addrs.into_iter().map(IpAddr::V4)) +264 } +265 +266 /// Performs an IPv6 lookup with a timeout. +267 pub async fn lookup_ipv6<T: ToString>( +268 &self, +269 host: T, +270 timeout: Duration, +271 ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError> { +272 let host = host.to_string(); +273 let addrs = time::timeout(timeout, self.0.lookup_ipv6(host)).await??; +274 Ok(addrs.into_iter().map(IpAddr::V6)) +275 } +276 +277 /// Resolves IPv4 and IPv6 in parallel with a timeout. +278 /// +279 /// `LookupIpStrategy::Ipv4AndIpv6` will wait for ipv6 resolution timeout, even if it is +280 /// not usable on the stack, so we manually query both lookups concurrently and time them out +281 /// individually. +282 pub async fn lookup_ipv4_ipv6<T: ToString>( +283 &self, +284 host: T, +285 timeout: Duration, +286 ) -> Result<impl Iterator<Item = IpAddr> + use<T>, DnsError> { +287 let host = host.to_string(); +288 let res = tokio::join!( +289 self.lookup_ipv4(host.clone(), timeout), +290 self.lookup_ipv6(host, timeout) +291 ); +292 +293 match res { +294 (Ok(ipv4), Ok(ipv6)) => Ok(LookupIter::Both(ipv4.chain(ipv6))), +295 (Ok(ipv4), Err(_)) => Ok(LookupIter::Ipv4(ipv4)), +296 (Err(_), Ok(ipv6)) => Ok(LookupIter::Ipv6(ipv6)), +297 (Err(ipv4_err), Err(ipv6_err)) => Err(e!(DnsError::ResolveBoth { +298 ipv4: Box::new(ipv4_err), +299 ipv6: Box::new(ipv6_err) +300 })), +301 } +302 } +303 +304 /// Resolves a hostname from a URL to an IP address. +305 pub async fn resolve_host( +306 &self, +307 url: &Url, +308 prefer_ipv6: bool, +309 timeout: Duration, +310 ) -> Result<IpAddr, DnsError> { +311 let host = url.host().ok_or_else(|| e!(DnsError::MissingHost))?; +312 match host { +313 url::Host::Domain(domain) => { +314 // Need to do a DNS lookup +315 let lookup = tokio::join!( +316 self.lookup_ipv4(domain, timeout), +317 self.lookup_ipv6(domain, timeout) +318 ); +319 let (v4, v6) = match lookup { +320 (Err(ipv4_err), Err(ipv6_err)) => { +321 return Err(e!(DnsError::ResolveBoth { +322 ipv4: Box::new(ipv4_err), +323 ipv6: Box::new(ipv6_err) +324 })); +325 } +326 (Err(_), Ok(mut v6)) => (None, v6.next()), +327 (Ok(mut v4), Err(_)) => (v4.next(), None), +328 (Ok(mut v4), Ok(mut v6)) => (v4.next(), v6.next()), +329 }; +330 if prefer_ipv6 { +331 v6.or(v4).ok_or_else(|| e!(DnsError::NoResponse)) +332 } else { +333 v4.or(v6).ok_or_else(|| e!(DnsError::NoResponse)) +334 } +335 } +336 url::Host::Ipv4(ip) => Ok(IpAddr::V4(ip)), +337 url::Host::Ipv6(ip) => Ok(IpAddr::V6(ip)), +338 } +339 } +340 +341 /// Performs an IPv4 lookup with a timeout in a staggered fashion. +342 /// +343 /// From the moment this function is called, each lookup is scheduled after the delays in +344 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls +345 /// at T+0ms, T+200ms and T+300ms. The `timeout` is applied to each call individually. The +346 /// result of the first successful call is returned, or a summary of all errors otherwise. +347 pub async fn lookup_ipv4_staggered( +348 &self, +349 host: impl ToString, +350 timeout: Duration, +351 delays_ms: &[u64], +352 ) -> Result<impl Iterator<Item = IpAddr>, StaggeredError<DnsError>> { +353 let host = host.to_string(); +354 let f = || self.lookup_ipv4(host.clone(), timeout); +355 stagger_call(f, delays_ms).await +356 } +357 +358 /// Performs an IPv6 lookup with a timeout in a staggered fashion. +359 /// +360 /// From the moment this function is called, each lookup is scheduled after the delays in +361 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls +362 /// at T+0ms, T+200ms and T+300ms. The `timeout` is applied to each call individually. The +363 /// result of the first successful call is returned, or a summary of all errors otherwise. +364 pub async fn lookup_ipv6_staggered( +365 &self, +366 host: impl ToString, +367 timeout: Duration, +368 delays_ms: &[u64], +369 ) -> Result<impl Iterator<Item = IpAddr>, StaggeredError<DnsError>> { +370 let host = host.to_string(); +371 let f = || self.lookup_ipv6(host.clone(), timeout); +372 stagger_call(f, delays_ms).await +373 } +374 +375 /// Races an IPv4 and IPv6 lookup with a timeout in a staggered fashion. +376 /// +377 /// From the moment this function is called, each lookup is scheduled after the delays in +378 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls +379 /// at T+0ms, T+200ms and T+300ms. The `timeout` is applied as stated in +380 /// [`Self::lookup_ipv4_ipv6`]. The result of the first successful call is returned, or a +381 /// summary of all errors otherwise. +382 pub async fn lookup_ipv4_ipv6_staggered( +383 &self, +384 host: impl ToString, +385 timeout: Duration, +386 delays_ms: &[u64], +387 ) -> Result<impl Iterator<Item = IpAddr>, StaggeredError<DnsError>> { +388 let host = host.to_string(); +389 let f = || self.lookup_ipv4_ipv6(host.clone(), timeout); +390 stagger_call(f, delays_ms).await +391 } +392 +393 /// Looks up endpoint info by [`EndpointId`] and origin domain name. +394 /// +395 /// To lookup endpoints that published their endpoint info to the DNS servers run by n0, +396 /// pass [`N0_DNS_ENDPOINT_ORIGIN_PROD`] as `origin`. +397 pub async fn lookup_endpoint_by_id( +398 &self, +399 endpoint_id: &EndpointId, +400 origin: &str, +401 ) -> Result<EndpointInfo, LookupError> { +402 let name = endpoint_info::endpoint_domain(endpoint_id, origin); +403 let name = endpoint_info::ensure_iroh_txt_label(name); +404 let lookup = self.lookup_txt(name.clone(), DNS_TIMEOUT).await?; +405 let info = EndpointInfo::from_txt_lookup(name, lookup)?; +406 Ok(info) +407 } +408 +409 /// Looks up endpoint info by DNS name. +410 pub async fn lookup_endpoint_by_domain_name( +411 &self, +412 name: &str, +413 ) -> Result<EndpointInfo, LookupError> { +414 let name = endpoint_info::ensure_iroh_txt_label(name.to_string()); +415 let lookup = self.lookup_txt(name.clone(), DNS_TIMEOUT).await?; +416 let info = EndpointInfo::from_txt_lookup(name, lookup)?; +417 Ok(info) +418 } +419 +420 /// Looks up endpoint info by DNS name in a staggered fashion. +421 /// +422 /// From the moment this function is called, each lookup is scheduled after the delays in +423 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls +424 /// at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a +425 /// summary of all errors otherwise. +426 pub async fn lookup_endpoint_by_domain_name_staggered( +427 &self, +428 name: &str, +429 delays_ms: &[u64], +430 ) -> Result<EndpointInfo, StaggeredError<LookupError>> { +431 let f = || self.lookup_endpoint_by_domain_name(name); +432 stagger_call(f, delays_ms).await +433 } +434 +435 /// Looks up endpoint info by [`EndpointId`] and origin domain name. +436 /// +437 /// From the moment this function is called, each lookup is scheduled after the delays in +438 /// `delays_ms` with the first call being done immediately. `[200ms, 300ms]` results in calls +439 /// at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a +440 /// summary of all errors otherwise. +441 pub async fn lookup_endpoint_by_id_staggered( +442 &self, +443 endpoint_id: &EndpointId, +444 origin: &str, +445 delays_ms: &[u64], +446 ) -> Result<EndpointInfo, StaggeredError<LookupError>> { +447 let f = || self.lookup_endpoint_by_id(endpoint_id, origin); +448 stagger_call(f, delays_ms).await +449 } +450} +451 +452impl Default for DnsResolver { +453 fn default() -> Self { +454 Self::new() +455 } +456} +457 +458impl reqwest::dns::Resolve for DnsResolver { +459 fn resolve(&self, name: reqwest::dns::Name) -> reqwest::dns::Resolving { +460 let this = self.clone(); +461 let name = name.as_str().to_string(); +462 Box::pin(async move { +463 let res = this.lookup_ipv4_ipv6(name, DNS_TIMEOUT).await; +464 match res { +465 Ok(addrs) => { +466 let addrs: reqwest::dns::Addrs = +467 Box::new(addrs.map(|addr| SocketAddr::new(addr, 0))); +468 Ok(addrs) +469 } +470 Err(err) => { +471 let err: Box<dyn std::error::Error + Send + Sync> = Box::new(err); +472 Err(err) +473 } +474 } +475 }) +476 } +477} +478 +479/// Wrapper enum that contains either a hickory resolver or a custom resolver. +480/// +481/// We do this to save the cost of boxing the futures and iterators when using +482/// default hickory resolver. +483#[derive(Debug, Clone)] +484enum DnsResolverInner { +485 Hickory(Arc<RwLock<HickoryResolver>>), +486 Custom(Arc<RwLock<dyn Resolver>>), +487} +488 +489impl DnsResolverInner { +490 async fn lookup_ipv4( +491 &self, +492 host: String, +493 ) -> Result<impl Iterator<Item = Ipv4Addr> + use<>, DnsError> { +494 Ok(match self { +495 Self::Hickory(resolver) => Either::Left(resolver.read().await.lookup_ipv4(host).await?), +496 Self::Custom(resolver) => Either::Right(resolver.read().await.lookup_ipv4(host).await?), +497 }) +498 } +499 +500 async fn lookup_ipv6( +501 &self, +502 host: String, +503 ) -> Result<impl Iterator<Item = Ipv6Addr> + use<>, DnsError> { +504 Ok(match self { +505 Self::Hickory(resolver) => Either::Left(resolver.read().await.lookup_ipv6(host).await?), +506 Self::Custom(resolver) => Either::Right(resolver.read().await.lookup_ipv6(host).await?), +507 }) +508 } +509 +510 async fn lookup_txt( +511 &self, +512 host: String, +513 ) -> Result<impl Iterator<Item = TxtRecordData> + use<>, DnsError> { +514 Ok(match self { +515 Self::Hickory(resolver) => Either::Left(resolver.read().await.lookup_txt(host).await?), +516 Self::Custom(resolver) => Either::Right(resolver.read().await.lookup_txt(host).await?), +517 }) +518 } +519 +520 async fn clear_cache(&self) { +521 match self { +522 Self::Hickory(resolver) => resolver.read().await.clear_cache(), +523 Self::Custom(resolver) => resolver.read().await.clear_cache(), +524 } +525 } 526 -527#[derive(Debug)] -528struct HickoryResolver { -529 resolver: TokioResolver, -530 builder: Builder, -531} -532 -533impl HickoryResolver { -534 fn new(builder: Builder) -> Self { -535 let resolver = Self::build_resolver(&builder); -536 Self { resolver, builder } -537 } -538 -539 fn build_resolver(builder: &Builder) -> TokioResolver { -540 let (mut config, mut options) = if builder.use_system_defaults { -541 match Self::system_config() { -542 Ok((config, options)) => (config, options), -543 Err(error) => { -544 debug!(%error, "Failed to read the system's DNS config, using fallback DNS servers."); -545 (ResolverConfig::google(), ResolverOpts::default()) -546 } -547 } -548 } else { -549 (ResolverConfig::new(), ResolverOpts::default()) -550 }; -551 -552 for (addr, proto) in builder.nameservers.iter() { -553 let nameserver = -554 hickory_resolver::config::NameServerConfig::new(*addr, proto.to_hickory()); -555 config.add_name_server(nameserver); -556 } -557 -558 // see [`DnsResolver::lookup_ipv4_ipv6`] for info on why we avoid `LookupIpStrategy::Ipv4AndIpv6` -559 options.ip_strategy = hickory_resolver::config::LookupIpStrategy::Ipv4thenIpv6; -560 -561 let mut hickory_builder = -562 TokioResolver::builder_with_config(config, TokioConnectionProvider::default()); -563 *hickory_builder.options_mut() = options; -564 hickory_builder.build() -565 } -566 -567 fn system_config() -> Result<(ResolverConfig, ResolverOpts), hickory_resolver::ResolveError> { -568 let (system_config, options) = hickory_resolver::system_conf::read_system_conf()?; +527 async fn reset(&self) { +528 match self { +529 Self::Hickory(resolver) => resolver.write().await.reset(), +530 Self::Custom(resolver) => resolver.write().await.reset(), +531 } +532 } +533} +534 +535#[derive(Debug)] +536struct HickoryResolver { +537 resolver: TokioResolver, +538 builder: Builder, +539} +540 +541impl HickoryResolver { +542 fn new(builder: Builder) -> Self { +543 let resolver = Self::build_resolver(&builder); +544 Self { resolver, builder } +545 } +546 +547 fn build_resolver(builder: &Builder) -> TokioResolver { +548 let (mut config, mut options) = if builder.use_system_defaults { +549 match Self::system_config() { +550 Ok((config, options)) => (config, options), +551 Err(error) => { +552 debug!(%error, "Failed to read the system's DNS config, using fallback DNS servers."); +553 (ResolverConfig::google(), ResolverOpts::default()) +554 } +555 } +556 } else { +557 (ResolverConfig::new(), ResolverOpts::default()) +558 }; +559 +560 if let Some(client_config) = builder.tls_client_config.clone() { +561 options.tls_config = client_config; +562 } +563 +564 for (addr, proto) in builder.nameservers.iter() { +565 let nameserver = +566 hickory_resolver::config::NameServerConfig::new(*addr, proto.to_hickory()); +567 config.add_name_server(nameserver); +568 } 569 -570 // Copy all of the system config, but strip the bad windows nameservers. Unfortunately -571 // there is no easy way to do this. -572 let mut config = hickory_resolver::config::ResolverConfig::new(); -573 if let Some(name) = system_config.domain() { -574 config.set_domain(name.clone()); -575 } -576 for name in system_config.search() { -577 config.add_search(name.clone()); -578 } -579 for nameserver_cfg in system_config.name_servers() { -580 if !WINDOWS_BAD_SITE_LOCAL_DNS_SERVERS.contains(&nameserver_cfg.socket_addr.ip()) { -581 config.add_name_server(nameserver_cfg.clone()); -582 } -583 } -584 Ok((config, options)) -585 } -586 -587 async fn lookup_ipv4( -588 &self, -589 host: String, -590 ) -> Result<impl Iterator<Item = Ipv4Addr> + use<>, DnsError> { -591 Ok(self -592 .resolver -593 .ipv4_lookup(host) -594 .await? -595 .into_iter() -596 .map(Ipv4Addr::from)) +570 // see [`DnsResolver::lookup_ipv4_ipv6`] for info on why we avoid `LookupIpStrategy::Ipv4AndIpv6` +571 options.ip_strategy = hickory_resolver::config::LookupIpStrategy::Ipv4thenIpv6; +572 +573 let mut hickory_builder = +574 TokioResolver::builder_with_config(config, TokioConnectionProvider::default()); +575 *hickory_builder.options_mut() = options; +576 hickory_builder.build() +577 } +578 +579 fn system_config() -> Result<(ResolverConfig, ResolverOpts), hickory_resolver::ResolveError> { +580 let (system_config, options) = hickory_resolver::system_conf::read_system_conf()?; +581 +582 // Copy all of the system config, but strip the bad windows nameservers. Unfortunately +583 // there is no easy way to do this. +584 let mut config = hickory_resolver::config::ResolverConfig::new(); +585 if let Some(name) = system_config.domain() { +586 config.set_domain(name.clone()); +587 } +588 for name in system_config.search() { +589 config.add_search(name.clone()); +590 } +591 for nameserver_cfg in system_config.name_servers() { +592 if !WINDOWS_BAD_SITE_LOCAL_DNS_SERVERS.contains(&nameserver_cfg.socket_addr.ip()) { +593 config.add_name_server(nameserver_cfg.clone()); +594 } +595 } +596 Ok((config, options)) 597 } 598 -599 /// Looks up an IPv6 address. -600 async fn lookup_ipv6( -601 &self, -602 host: String, -603 ) -> Result<impl Iterator<Item = Ipv6Addr> + use<>, DnsError> { -604 Ok(self -605 .resolver -606 .ipv6_lookup(host) -607 .await? -608 .into_iter() -609 .map(Ipv6Addr::from)) -610 } -611 -612 /// Looks up TXT records. -613 async fn lookup_txt( -614 &self, -615 host: String, -616 ) -> Result<impl Iterator<Item = TxtRecordData> + use<>, DnsError> { -617 Ok(self -618 .resolver -619 .txt_lookup(host) -620 .await? -621 .into_iter() -622 .map(|txt| TxtRecordData::from_iter(txt.iter().cloned()))) -623 } -624 -625 /// Clears the internal cache. -626 fn clear_cache(&self) { -627 self.resolver.clear_cache() -628 } -629 -630 fn reset(&mut self) { -631 self.resolver = Self::build_resolver(&self.builder); -632 } -633} -634 -635/// Record data for a TXT record. -636/// -637/// This contains a list of character strings, as defined in [RFC 1035 Section 3.3.14]. -638/// -639/// [`TxtRecordData`] implements [`fmt::Display`], so you can call [`ToString::to_string`] to -640/// convert the record data into a string. This will parse each character string with -641/// [`String::from_utf8_lossy`] and then concatenate all strings without a separator. -642/// -643/// If you want to process each character string individually, use [`Self::iter`]. -644/// -645/// [RFC 1035 Section 3.3.14]: https://datatracker.ietf.org/doc/html/rfc1035#section-3.3.14 -646#[derive(Debug, Clone)] -647pub struct TxtRecordData(Box<[Box<[u8]>]>); -648 -649impl TxtRecordData { -650 /// Returns an iterator over the character strings contained in this TXT record. -651 pub fn iter(&self) -> impl Iterator<Item = &[u8]> { -652 self.0.iter().map(|x| x.as_ref()) -653 } -654} -655 -656impl fmt::Display for TxtRecordData { -657 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { -658 for s in self.iter() { -659 write!(f, "{}", &String::from_utf8_lossy(s))? -660 } -661 Ok(()) -662 } -663} -664 -665impl FromIterator<Box<[u8]>> for TxtRecordData { -666 fn from_iter<T: IntoIterator<Item = Box<[u8]>>>(iter: T) -> Self { -667 Self(iter.into_iter().collect()) -668 } -669} -670 -671impl From<Vec<Box<[u8]>>> for TxtRecordData { -672 fn from(value: Vec<Box<[u8]>>) -> Self { -673 Self(value.into_boxed_slice()) +599 async fn lookup_ipv4( +600 &self, +601 host: String, +602 ) -> Result<impl Iterator<Item = Ipv4Addr> + use<>, DnsError> { +603 Ok(self +604 .resolver +605 .ipv4_lookup(host) +606 .await? +607 .into_iter() +608 .map(Ipv4Addr::from)) +609 } +610 +611 /// Looks up an IPv6 address. +612 async fn lookup_ipv6( +613 &self, +614 host: String, +615 ) -> Result<impl Iterator<Item = Ipv6Addr> + use<>, DnsError> { +616 Ok(self +617 .resolver +618 .ipv6_lookup(host) +619 .await? +620 .into_iter() +621 .map(Ipv6Addr::from)) +622 } +623 +624 /// Looks up TXT records. +625 async fn lookup_txt( +626 &self, +627 host: String, +628 ) -> Result<impl Iterator<Item = TxtRecordData> + use<>, DnsError> { +629 Ok(self +630 .resolver +631 .txt_lookup(host) +632 .await? +633 .into_iter() +634 .map(|txt| TxtRecordData::from_iter(txt.iter().cloned()))) +635 } +636 +637 /// Clears the internal cache. +638 fn clear_cache(&self) { +639 self.resolver.clear_cache() +640 } +641 +642 fn reset(&mut self) { +643 self.resolver = Self::build_resolver(&self.builder); +644 } +645} +646 +647/// Record data for a TXT record. +648/// +649/// This contains a list of character strings, as defined in [RFC 1035 Section 3.3.14]. +650/// +651/// [`TxtRecordData`] implements [`fmt::Display`], so you can call [`ToString::to_string`] to +652/// convert the record data into a string. This will parse each character string with +653/// [`String::from_utf8_lossy`] and then concatenate all strings without a separator. +654/// +655/// If you want to process each character string individually, use [`Self::iter`]. +656/// +657/// [RFC 1035 Section 3.3.14]: https://datatracker.ietf.org/doc/html/rfc1035#section-3.3.14 +658#[derive(Debug, Clone)] +659pub struct TxtRecordData(Box<[Box<[u8]>]>); +660 +661impl TxtRecordData { +662 /// Returns an iterator over the character strings contained in this TXT record. +663 pub fn iter(&self) -> impl Iterator<Item = &[u8]> { +664 self.0.iter().map(|x| x.as_ref()) +665 } +666} +667 +668impl fmt::Display for TxtRecordData { +669 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { +670 for s in self.iter() { +671 write!(f, "{}", &String::from_utf8_lossy(s))? +672 } +673 Ok(()) 674 } 675} 676 -677/// Helper enum to give a unified type to either of two iterators -678enum Either<A, B> { -679 Left(A), -680 Right(B), +677impl FromIterator<Box<[u8]>> for TxtRecordData { +678 fn from_iter<T: IntoIterator<Item = Box<[u8]>>>(iter: T) -> Self { +679 Self(iter.into_iter().collect()) +680 } 681} 682 -683impl<T, A: Iterator<Item = T>, B: Iterator<Item = T>> Iterator for Either<A, B> { -684 type Item = T; -685 -686 fn next(&mut self) -> Option<Self::Item> { -687 match self { -688 Either::Left(iter) => iter.next(), -689 Either::Right(iter) => iter.next(), -690 } -691 } -692} -693 -694/// Deprecated IPv6 site-local anycast addresses still configured by windows. -695/// -696/// Windows still configures these site-local addresses as soon even as an IPv6 loopback -697/// interface is configured. We do not want to use these DNS servers, the chances of them -698/// being usable are almost always close to zero, while the chance of DNS configuration -699/// **only** relying on these servers and not also being configured normally are also almost -700/// zero. The chance of the DNS resolver accidentally trying one of these and taking a -701/// bunch of timeouts to figure out they're no good are on the other hand very high. -702const WINDOWS_BAD_SITE_LOCAL_DNS_SERVERS: [IpAddr; 3] = [ -703 IpAddr::V6(Ipv6Addr::new(0xfec0, 0, 0, 0xffff, 0, 0, 0, 1)), -704 IpAddr::V6(Ipv6Addr::new(0xfec0, 0, 0, 0xffff, 0, 0, 0, 2)), -705 IpAddr::V6(Ipv6Addr::new(0xfec0, 0, 0, 0xffff, 0, 0, 0, 3)), -706]; -707 -708/// Helper enum to give a unified type to the iterators of [`DnsResolver::lookup_ipv4_ipv6`]. -709enum LookupIter<A, B> { -710 Ipv4(A), -711 Ipv6(B), -712 Both(std::iter::Chain<A, B>), -713} -714 -715impl<A: Iterator<Item = IpAddr>, B: Iterator<Item = IpAddr>> Iterator for LookupIter<A, B> { -716 type Item = IpAddr; -717 -718 fn next(&mut self) -> Option<Self::Item> { -719 match self { -720 LookupIter::Ipv4(iter) => iter.next(), -721 LookupIter::Ipv6(iter) => iter.next(), -722 LookupIter::Both(iter) => iter.next(), -723 } -724 } +683impl From<Vec<Box<[u8]>>> for TxtRecordData { +684 fn from(value: Vec<Box<[u8]>>) -> Self { +685 Self(value.into_boxed_slice()) +686 } +687} +688 +689/// Helper enum to give a unified type to either of two iterators +690enum Either<A, B> { +691 Left(A), +692 Right(B), +693} +694 +695impl<T, A: Iterator<Item = T>, B: Iterator<Item = T>> Iterator for Either<A, B> { +696 type Item = T; +697 +698 fn next(&mut self) -> Option<Self::Item> { +699 match self { +700 Either::Left(iter) => iter.next(), +701 Either::Right(iter) => iter.next(), +702 } +703 } +704} +705 +706/// Deprecated IPv6 site-local anycast addresses still configured by windows. +707/// +708/// Windows still configures these site-local addresses as soon even as an IPv6 loopback +709/// interface is configured. We do not want to use these DNS servers, the chances of them +710/// being usable are almost always close to zero, while the chance of DNS configuration +711/// **only** relying on these servers and not also being configured normally are also almost +712/// zero. The chance of the DNS resolver accidentally trying one of these and taking a +713/// bunch of timeouts to figure out they're no good are on the other hand very high. +714const WINDOWS_BAD_SITE_LOCAL_DNS_SERVERS: [IpAddr; 3] = [ +715 IpAddr::V6(Ipv6Addr::new(0xfec0, 0, 0, 0xffff, 0, 0, 0, 1)), +716 IpAddr::V6(Ipv6Addr::new(0xfec0, 0, 0, 0xffff, 0, 0, 0, 2)), +717 IpAddr::V6(Ipv6Addr::new(0xfec0, 0, 0, 0xffff, 0, 0, 0, 3)), +718]; +719 +720/// Helper enum to give a unified type to the iterators of [`DnsResolver::lookup_ipv4_ipv6`]. +721enum LookupIter<A, B> { +722 Ipv4(A), +723 Ipv6(B), +724 Both(std::iter::Chain<A, B>), 725} 726 -727/// Staggers calls to the future F with the given delays. -728/// -729/// The first call is performed immediately. The first call to succeed generates an Ok result -730/// ignoring any previous error. If all calls fail, an error summarizing all errors is returned. -731async fn stagger_call< -732 T, -733 E: StackError + 'static, -734 F: Fn() -> Fut, -735 Fut: Future<Output = Result<T, E>>, -736>( -737 f: F, -738 delays_ms: &[u64], -739) -> Result<T, StaggeredError<E>> { -740 let mut calls = n0_future::FuturesUnorderedBounded::new(delays_ms.len() + 1); -741 // NOTE: we add the 0 delay here to have a uniform set of futures. This is more performant than -742 // using alternatives that allow futures of different types. -743 for delay in std::iter::once(&0u64).chain(delays_ms) { -744 let delay = add_jitter(delay); -745 let fut = f(); -746 let staggered_fut = async move { -747 time::sleep(delay).await; -748 fut.await -749 }; -750 calls.push(staggered_fut) -751 } -752 -753 let mut errors = vec![]; -754 while let Some(call_result) = calls.next().await { -755 match call_result { -756 Ok(t) => return Ok(t), -757 Err(e) => errors.push(e), -758 } -759 } -760 -761 Err(e!(StaggeredError { errors })) -762} -763 -764fn add_jitter(delay: &u64) -> Duration { -765 // If delay is 0, return 0 immediately. -766 if *delay == 0 { -767 return Duration::ZERO; -768 } -769 -770 // Calculate jitter as a random value in the range of +/- MAX_JITTER_PERCENT of the delay. -771 let max_jitter = delay.saturating_mul(MAX_JITTER_PERCENT * 2) / 100; -772 let jitter = rand::random::<u64>() % max_jitter; -773 -774 Duration::from_millis(delay.saturating_sub(max_jitter / 2).saturating_add(jitter)) -775} -776 -777#[cfg(test)] -778pub(crate) mod tests { -779 use std::sync::atomic::AtomicUsize; -780 -781 use n0_tracing_test::traced_test; -782 -783 use super::*; -784 -785 #[tokio::test] -786 #[traced_test] -787 async fn stagger_basic() { -788 const CALL_RESULTS: &[Result<u8, u8>] = &[Err(2), Ok(3), Ok(5), Ok(7)]; -789 static DONE_CALL: AtomicUsize = AtomicUsize::new(0); -790 let f = || { -791 let r_pos = DONE_CALL.fetch_add(1, std::sync::atomic::Ordering::Relaxed); -792 async move { -793 tracing::info!(r_pos, "call"); -794 CALL_RESULTS[r_pos].map_err(|_| e!(DnsError::InvalidResponse)) -795 } -796 }; -797 -798 let delays = [1000, 15]; -799 let result = stagger_call(f, &delays).await.unwrap(); -800 assert_eq!(result, 5) -801 } -802 -803 #[test] -804 #[traced_test] -805 fn jitter_test_zero() { -806 let jittered_delay = add_jitter(&0); -807 assert_eq!(jittered_delay, Duration::from_secs(0)); -808 } +727impl<A: Iterator<Item = IpAddr>, B: Iterator<Item = IpAddr>> Iterator for LookupIter<A, B> { +728 type Item = IpAddr; +729 +730 fn next(&mut self) -> Option<Self::Item> { +731 match self { +732 LookupIter::Ipv4(iter) => iter.next(), +733 LookupIter::Ipv6(iter) => iter.next(), +734 LookupIter::Both(iter) => iter.next(), +735 } +736 } +737} +738 +739/// Staggers calls to the future F with the given delays. +740/// +741/// The first call is performed immediately. The first call to succeed generates an Ok result +742/// ignoring any previous error. If all calls fail, an error summarizing all errors is returned. +743async fn stagger_call< +744 T, +745 E: StackError + 'static, +746 F: Fn() -> Fut, +747 Fut: Future<Output = Result<T, E>>, +748>( +749 f: F, +750 delays_ms: &[u64], +751) -> Result<T, StaggeredError<E>> { +752 let mut calls = n0_future::FuturesUnorderedBounded::new(delays_ms.len() + 1); +753 // NOTE: we add the 0 delay here to have a uniform set of futures. This is more performant than +754 // using alternatives that allow futures of different types. +755 for delay in std::iter::once(&0u64).chain(delays_ms) { +756 let delay = add_jitter(delay); +757 let fut = f(); +758 let staggered_fut = async move { +759 time::sleep(delay).await; +760 fut.await +761 }; +762 calls.push(staggered_fut) +763 } +764 +765 let mut errors = vec![]; +766 while let Some(call_result) = calls.next().await { +767 match call_result { +768 Ok(t) => return Ok(t), +769 Err(e) => errors.push(e), +770 } +771 } +772 +773 Err(e!(StaggeredError { errors })) +774} +775 +776fn add_jitter(delay: &u64) -> Duration { +777 // If delay is 0, return 0 immediately. +778 if *delay == 0 { +779 return Duration::ZERO; +780 } +781 +782 // Calculate jitter as a random value in the range of +/- MAX_JITTER_PERCENT of the delay. +783 let max_jitter = delay.saturating_mul(MAX_JITTER_PERCENT * 2) / 100; +784 let jitter = rand::random::<u64>() % max_jitter; +785 +786 Duration::from_millis(delay.saturating_sub(max_jitter / 2).saturating_add(jitter)) +787} +788 +789#[cfg(test)] +790pub(crate) mod tests { +791 use std::sync::atomic::AtomicUsize; +792 +793 use n0_tracing_test::traced_test; +794 +795 use super::*; +796 +797 #[tokio::test] +798 #[traced_test] +799 async fn stagger_basic() { +800 const CALL_RESULTS: &[Result<u8, u8>] = &[Err(2), Ok(3), Ok(5), Ok(7)]; +801 static DONE_CALL: AtomicUsize = AtomicUsize::new(0); +802 let f = || { +803 let r_pos = DONE_CALL.fetch_add(1, std::sync::atomic::Ordering::Relaxed); +804 async move { +805 tracing::info!(r_pos, "call"); +806 CALL_RESULTS[r_pos].map_err(|_| e!(DnsError::InvalidResponse)) +807 } +808 }; 809 -810 //Sanity checks that I did the math right -811 #[test] -812 #[traced_test] -813 fn jitter_test_nonzero_lower_bound() { -814 let delay: u64 = 300; -815 for _ in 0..100 { -816 assert!(add_jitter(&delay) >= Duration::from_millis(delay * 8 / 10)); -817 } -818 } -819 -820 #[test] -821 #[traced_test] -822 fn jitter_test_nonzero_upper_bound() { -823 let delay: u64 = 300; -824 for _ in 0..100 { -825 assert!(add_jitter(&delay) < Duration::from_millis(delay * 12 / 10)); -826 } -827 } -828 -829 #[tokio::test] -830 #[traced_test] -831 async fn custom_resolver() { -832 #[derive(Debug)] -833 struct MyResolver; -834 impl Resolver for MyResolver { -835 fn lookup_ipv4(&self, host: String) -> BoxFuture<Result<BoxIter<Ipv4Addr>, DnsError>> { -836 Box::pin(async move { -837 let addr = if host == "foo.example" { -838 Ipv4Addr::new(1, 1, 1, 1) -839 } else { -840 return Err(e!(DnsError::NoResponse)); -841 }; -842 let iter: BoxIter<Ipv4Addr> = Box::new(vec![addr].into_iter()); -843 Ok(iter) -844 }) -845 } -846 -847 fn lookup_ipv6(&self, _host: String) -> BoxFuture<Result<BoxIter<Ipv6Addr>, DnsError>> { -848 todo!() -849 } -850 -851 fn lookup_txt( -852 &self, -853 _host: String, -854 ) -> BoxFuture<Result<BoxIter<TxtRecordData>, DnsError>> { -855 todo!() -856 } -857 -858 fn clear_cache(&self) { -859 todo!() -860 } -861 -862 fn reset(&mut self) { -863 todo!() -864 } -865 } -866 -867 let resolver = DnsResolver::custom(MyResolver); -868 let mut iter = resolver -869 .lookup_ipv4("foo.example", Duration::from_secs(1)) -870 .await -871 .expect("not to fail"); -872 let addr = iter.next().expect("one result"); -873 assert_eq!(addr, "1.1.1.1".parse::<IpAddr>().unwrap()); -874 -875 let res = resolver -876 .lookup_ipv4("bar.example", Duration::from_secs(1)) -877 .await; -878 assert!(matches!(res, Err(DnsError::NoResponse { .. }))) -879 } -880} \ No newline at end of file +810 let delays = [1000, 15]; +811 let result = stagger_call(f, &delays).await.unwrap(); +812 assert_eq!(result, 5) +813 } +814 +815 #[test] +816 #[traced_test] +817 fn jitter_test_zero() { +818 let jittered_delay = add_jitter(&0); +819 assert_eq!(jittered_delay, Duration::from_secs(0)); +820 } +821 +822 //Sanity checks that I did the math right +823 #[test] +824 #[traced_test] +825 fn jitter_test_nonzero_lower_bound() { +826 let delay: u64 = 300; +827 for _ in 0..100 { +828 assert!(add_jitter(&delay) >= Duration::from_millis(delay * 8 / 10)); +829 } +830 } +831 +832 #[test] +833 #[traced_test] +834 fn jitter_test_nonzero_upper_bound() { +835 let delay: u64 = 300; +836 for _ in 0..100 { +837 assert!(add_jitter(&delay) < Duration::from_millis(delay * 12 / 10)); +838 } +839 } +840 +841 #[tokio::test] +842 #[traced_test] +843 async fn custom_resolver() { +844 #[derive(Debug)] +845 struct MyResolver; +846 impl Resolver for MyResolver { +847 fn lookup_ipv4(&self, host: String) -> BoxFuture<Result<BoxIter<Ipv4Addr>, DnsError>> { +848 Box::pin(async move { +849 let addr = if host == "foo.example" { +850 Ipv4Addr::new(1, 1, 1, 1) +851 } else { +852 return Err(e!(DnsError::NoResponse)); +853 }; +854 let iter: BoxIter<Ipv4Addr> = Box::new(vec![addr].into_iter()); +855 Ok(iter) +856 }) +857 } +858 +859 fn lookup_ipv6(&self, _host: String) -> BoxFuture<Result<BoxIter<Ipv6Addr>, DnsError>> { +860 todo!() +861 } +862 +863 fn lookup_txt( +864 &self, +865 _host: String, +866 ) -> BoxFuture<Result<BoxIter<TxtRecordData>, DnsError>> { +867 todo!() +868 } +869 +870 fn clear_cache(&self) { +871 todo!() +872 } +873 +874 fn reset(&mut self) { +875 todo!() +876 } +877 } +878 +879 let resolver = DnsResolver::custom(MyResolver); +880 let mut iter = resolver +881 .lookup_ipv4("foo.example", Duration::from_secs(1)) +882 .await +883 .expect("not to fail"); +884 let addr = iter.next().expect("one result"); +885 assert_eq!(addr, "1.1.1.1".parse::<IpAddr>().unwrap()); +886 +887 let res = resolver +888 .lookup_ipv4("bar.example", Duration::from_secs(1)) +889 .await; +890 assert!(matches!(res, Err(DnsError::NoResponse { .. }))) +891 } +892} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/endpoint_info.rs.html b/pr/3958/docs/src/iroh_relay/endpoint_info.rs.html index e1f010c401..147803c2db 100644 --- a/pr/3958/docs/src/iroh_relay/endpoint_info.rs.html +++ b/pr/3958/docs/src/iroh_relay/endpoint_info.rs.html @@ -38,753 +38,814 @@ 38 hash::Hash, 39 net::SocketAddr, 40 str::{FromStr, Utf8Error}, -41}; -42 -43use iroh_base::{EndpointAddr, EndpointId, KeyParsingError, RelayUrl, SecretKey, TransportAddr}; -44use n0_error::{e, ensure, stack_error}; -45use url::Url; -46 -47/// The DNS name for the iroh TXT record. -48pub const IROH_TXT_NAME: &str = "_iroh"; -49 -50#[allow(missing_docs)] -51#[stack_error(derive, add_meta)] -52#[non_exhaustive] -53pub enum EncodingError { -54 #[error(transparent)] -55 FailedBuildingPacket { -56 #[error(std_err)] -57 source: pkarr::errors::SignedPacketBuildError, -58 }, -59 #[error("invalid TXT entry")] -60 InvalidTxtEntry { -61 #[error(std_err)] -62 source: pkarr::dns::SimpleDnsError, -63 }, -64} -65 -66#[allow(missing_docs)] -67#[stack_error(derive, add_meta)] -68#[non_exhaustive] -69pub enum DecodingError { -70 #[error("endpoint id was not encoded in valid z32")] -71 InvalidEncodingZ32 { -72 #[error(std_err)] -73 source: z32::Z32Error, -74 }, -75 #[error("length must be 32 bytes, but got {len} byte(s)")] -76 InvalidLength { len: usize }, -77 #[error("endpoint id is not a valid public key")] -78 InvalidKey { source: KeyParsingError }, -79} -80 -81/// Extension methods for [`EndpointId`] to encode to and decode from [`z32`], -82/// which is the encoding used in [`pkarr`] domain names. -83pub trait EndpointIdExt { -84 /// Encodes a [`EndpointId`] in [`z-base-32`] encoding. -85 /// -86 /// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt -87 fn to_z32(&self) -> String; -88 -89 /// Parses a [`EndpointId`] from [`z-base-32`] encoding. -90 /// -91 /// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt -92 fn from_z32(s: &str) -> Result<EndpointId, DecodingError>; -93} -94 -95impl EndpointIdExt for EndpointId { -96 fn to_z32(&self) -> String { -97 z32::encode(self.as_bytes()) -98 } -99 -100 fn from_z32(s: &str) -> Result<EndpointId, DecodingError> { -101 let bytes = -102 z32::decode(s.as_bytes()).map_err(|err| e!(DecodingError::InvalidEncodingZ32, err))?; -103 let bytes: &[u8; 32] = &bytes -104 .try_into() -105 .map_err(|_| e!(DecodingError::InvalidLength { len: s.len() }))?; -106 let endpoint_id = -107 EndpointId::from_bytes(bytes).map_err(|err| e!(DecodingError::InvalidKey, err))?; -108 Ok(endpoint_id) -109 } -110} -111 -112/// Data about an endpoint that may be published to and resolved from discovery services. -113/// -114/// This includes an optional [`RelayUrl`], a set of direct addresses, and the optional -115/// [`UserData`], a string that can be set by applications and is not parsed or used by iroh -116/// itself. -117/// -118/// This struct does not include the endpoint's [`EndpointId`], only the data *about* a certain -119/// endpoint. See [`EndpointInfo`] for a struct that contains a [`EndpointId`] with associated [`EndpointData`]. -120#[derive(Debug, Clone, Default, Eq, PartialEq)] -121pub struct EndpointData { -122 /// addresses where this endpoint can be reached. -123 addrs: BTreeSet<TransportAddr>, -124 /// Optional user-defined [`UserData`] for this endpoint. -125 user_data: Option<UserData>, -126} -127 -128impl EndpointData { -129 /// Creates a new [`EndpointData`] with a relay URL and a set of direct addresses. -130 pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self { -131 Self { -132 addrs: addrs.into_iter().collect(), -133 user_data: None, -134 } -135 } -136 -137 /// Sets the relay URL and returns the updated endpoint data. -138 pub fn with_relay_url(mut self, relay_url: Option<RelayUrl>) -> Self { -139 if let Some(url) = relay_url { -140 self.addrs.insert(TransportAddr::Relay(url)); -141 } -142 self -143 } -144 -145 /// Sets the direct addresses and returns the updated endpoint data. -146 pub fn with_ip_addrs(mut self, addresses: BTreeSet<SocketAddr>) -> Self { -147 for addr in addresses.into_iter() { -148 self.addrs.insert(TransportAddr::Ip(addr)); -149 } -150 self -151 } -152 -153 /// Sets the user-defined data and returns the updated endpoint data. -154 pub fn with_user_data(mut self, user_data: Option<UserData>) -> Self { -155 self.user_data = user_data; -156 self -157 } -158 -159 /// Returns the relay URL of the endpoint. -160 pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl> { -161 self.addrs.iter().filter_map(|addr| match addr { -162 TransportAddr::Relay(url) => Some(url), -163 _ => None, -164 }) -165 } -166 -167 /// Returns the optional user-defined data of the endpoint. -168 pub fn user_data(&self) -> Option<&UserData> { -169 self.user_data.as_ref() -170 } -171 -172 /// Returns the direct addresses of the endpoint. -173 pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr> { -174 self.addrs.iter().filter_map(|addr| match addr { -175 TransportAddr::Ip(addr) => Some(addr), -176 _ => None, -177 }) -178 } -179 -180 /// Removes all direct addresses from the endpoint data. -181 pub fn clear_ip_addrs(&mut self) { -182 self.addrs -183 .retain(|addr| !matches!(addr, TransportAddr::Ip(_))); -184 } -185 -186 /// Removes all direct addresses from the endpoint data. -187 pub fn clear_relay_urls(&mut self) { -188 self.addrs -189 .retain(|addr| !matches!(addr, TransportAddr::Relay(_))); -190 } -191 -192 /// Add addresses to the endpoint data. -193 pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>) { -194 for addr in addrs.into_iter() { -195 self.addrs.insert(addr); -196 } -197 } -198 -199 /// Sets the user-defined data of the endpoint data. -200 pub fn set_user_data(&mut self, user_data: Option<UserData>) { -201 self.user_data = user_data; -202 } -203 -204 /// Returns the full list of all known addresses -205 pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr> { -206 self.addrs.iter() -207 } -208 -209 /// Does this have any addresses? -210 pub fn has_addrs(&self) -> bool { -211 !self.addrs.is_empty() -212 } -213} +41 sync::Arc, +42}; +43 +44use iroh_base::{EndpointAddr, EndpointId, KeyParsingError, RelayUrl, SecretKey, TransportAddr}; +45use n0_error::{e, ensure, stack_error}; +46use url::Url; +47 +48/// The DNS name for the iroh TXT record. +49pub const IROH_TXT_NAME: &str = "_iroh"; +50 +51#[allow(missing_docs)] +52#[stack_error(derive, add_meta)] +53#[non_exhaustive] +54pub enum EncodingError { +55 #[error(transparent)] +56 FailedBuildingPacket { +57 #[error(std_err)] +58 source: pkarr::errors::SignedPacketBuildError, +59 }, +60 #[error("invalid TXT entry")] +61 InvalidTxtEntry { +62 #[error(std_err)] +63 source: pkarr::dns::SimpleDnsError, +64 }, +65} +66 +67#[allow(missing_docs)] +68#[stack_error(derive, add_meta)] +69#[non_exhaustive] +70pub enum DecodingError { +71 #[error("endpoint id was not encoded in valid z32")] +72 InvalidEncodingZ32 { +73 #[error(std_err)] +74 source: z32::Z32Error, +75 }, +76 #[error("length must be 32 bytes, but got {len} byte(s)")] +77 InvalidLength { len: usize }, +78 #[error("endpoint id is not a valid public key")] +79 InvalidKey { source: KeyParsingError }, +80} +81 +82/// Extension methods for [`EndpointId`] to encode to and decode from [`z32`], +83/// which is the encoding used in [`pkarr`] domain names. +84pub trait EndpointIdExt { +85 /// Encodes a [`EndpointId`] in [`z-base-32`] encoding. +86 /// +87 /// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt +88 fn to_z32(&self) -> String; +89 +90 /// Parses a [`EndpointId`] from [`z-base-32`] encoding. +91 /// +92 /// [`z-base-32`]: https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt +93 fn from_z32(s: &str) -> Result<EndpointId, DecodingError>; +94} +95 +96impl EndpointIdExt for EndpointId { +97 fn to_z32(&self) -> String { +98 z32::encode(self.as_bytes()) +99 } +100 +101 fn from_z32(s: &str) -> Result<EndpointId, DecodingError> { +102 let bytes = +103 z32::decode(s.as_bytes()).map_err(|err| e!(DecodingError::InvalidEncodingZ32, err))?; +104 let bytes: &[u8; 32] = &bytes +105 .try_into() +106 .map_err(|_| e!(DecodingError::InvalidLength { len: s.len() }))?; +107 let endpoint_id = +108 EndpointId::from_bytes(bytes).map_err(|err| e!(DecodingError::InvalidKey, err))?; +109 Ok(endpoint_id) +110 } +111} +112 +113/// Data about an endpoint that may be published to and resolved from discovery services. +114/// +115/// This includes an optional [`RelayUrl`], a set of direct addresses, and the optional +116/// [`UserData`], a string that can be set by applications and is not parsed or used by iroh +117/// itself. +118/// +119/// This struct does not include the endpoint's [`EndpointId`], only the data *about* a certain +120/// endpoint. See [`EndpointInfo`] for a struct that contains a [`EndpointId`] with associated [`EndpointData`]. +121#[derive(Debug, Clone, Default, Eq, PartialEq)] +122pub struct EndpointData { +123 /// addresses where this endpoint can be reached. +124 addrs: BTreeSet<TransportAddr>, +125 /// Optional user-defined [`UserData`] for this endpoint. +126 user_data: Option<UserData>, +127} +128 +129impl EndpointData { +130 /// Creates a new [`EndpointData`] with a relay URL and a set of direct addresses. +131 pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self { +132 Self { +133 addrs: addrs.into_iter().collect(), +134 user_data: None, +135 } +136 } +137 +138 /// Sets the relay URL and returns the updated endpoint data. +139 pub fn with_relay_url(mut self, relay_url: Option<RelayUrl>) -> Self { +140 if let Some(url) = relay_url { +141 self.addrs.insert(TransportAddr::Relay(url)); +142 } +143 self +144 } +145 +146 /// Sets the direct addresses and returns the updated endpoint data. +147 pub fn with_ip_addrs(mut self, addresses: BTreeSet<SocketAddr>) -> Self { +148 for addr in addresses.into_iter() { +149 self.addrs.insert(TransportAddr::Ip(addr)); +150 } +151 self +152 } +153 +154 /// Sets the user-defined data and returns the updated endpoint data. +155 pub fn with_user_data(mut self, user_data: Option<UserData>) -> Self { +156 self.user_data = user_data; +157 self +158 } +159 +160 /// Returns the relay URL of the endpoint. +161 pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl> { +162 self.addrs.iter().filter_map(|addr| match addr { +163 TransportAddr::Relay(url) => Some(url), +164 _ => None, +165 }) +166 } +167 +168 /// Returns the optional user-defined data of the endpoint. +169 pub fn user_data(&self) -> Option<&UserData> { +170 self.user_data.as_ref() +171 } +172 +173 /// Returns the direct addresses of the endpoint. +174 pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr> { +175 self.addrs.iter().filter_map(|addr| match addr { +176 TransportAddr::Ip(addr) => Some(addr), +177 _ => None, +178 }) +179 } +180 +181 /// Removes all direct addresses from the endpoint data. +182 pub fn clear_ip_addrs(&mut self) { +183 self.addrs +184 .retain(|addr| !matches!(addr, TransportAddr::Ip(_))); +185 } +186 +187 /// Removes all direct addresses from the endpoint data. +188 pub fn clear_relay_urls(&mut self) { +189 self.addrs +190 .retain(|addr| !matches!(addr, TransportAddr::Relay(_))); +191 } +192 +193 /// Add addresses to the endpoint data. +194 pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>) { +195 for addr in addrs.into_iter() { +196 self.addrs.insert(addr); +197 } +198 } +199 +200 /// Sets the user-defined data of the endpoint data. +201 pub fn set_user_data(&mut self, user_data: Option<UserData>) { +202 self.user_data = user_data; +203 } +204 +205 /// Returns the full list of all known addresses +206 pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr> { +207 self.addrs.iter() +208 } +209 +210 /// Does this have any addresses? +211 pub fn has_addrs(&self) -> bool { +212 !self.addrs.is_empty() +213 } 214 -215impl From<EndpointAddr> for EndpointData { -216 fn from(endpoint_addr: EndpointAddr) -> Self { -217 Self { -218 addrs: endpoint_addr.addrs, -219 user_data: None, -220 } -221 } -222} -223 -224// User-defined data that can be published and resolved through endpoint discovery. -225/// -226/// Under the hood this is a UTF-8 String is no longer than [`UserData::MAX_LENGTH`] bytes. -227/// -228/// Iroh does not keep track of or examine the user-defined data. -229/// -230/// `UserData` implements [`FromStr`] and [`TryFrom<String>`], so you can -231/// convert `&str` and `String` into `UserData` easily. -232#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] -233pub struct UserData(String); -234 -235impl UserData { -236 /// The max byte length allowed for user-defined data. -237 /// -238 /// In DNS discovery services, the user-defined data is stored in a TXT record character string, -239 /// which has a max length of 255 bytes. We need to subtract the `user-data=` prefix, -240 /// which leaves 245 bytes for the actual user-defined data. -241 pub const MAX_LENGTH: usize = 245; -242} -243 -244/// Error returned when an input value is too long for [`UserData`]. -245#[allow(missing_docs)] -246#[stack_error(derive, add_meta)] -247#[error("max length exceeded")] -248pub struct MaxLengthExceededError {} -249 -250impl TryFrom<String> for UserData { -251 type Error = MaxLengthExceededError; -252 -253 fn try_from(value: String) -> Result<Self, Self::Error> { -254 ensure!(value.len() <= Self::MAX_LENGTH, MaxLengthExceededError); -255 Ok(Self(value)) -256 } -257} -258 -259impl FromStr for UserData { -260 type Err = MaxLengthExceededError; +215 /// Apply the given filter to the current addresses. +216 /// +217 /// Returns a vec to allow re-ordering of addresses. +218 pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr> { +219 filter.apply(&self.addrs) +220 } +221} +222 +223/// The function type inside [`AddrFilter`]. +224type AddrFilterFn = dyn Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static; +225 +226/// A filter and/or reordering function applied to transport addresses, +227/// typically used by AddressLookup services in iroh before publishing. +228/// +229/// Takes the full set of transport addresses and returns them as an ordered `Vec`, +230/// allowing both filtering (by omitting addresses) and reordering (by controlling +231/// the output order). A `BTreeSet` cannot preserve a custom order, so the return +232/// type is `Vec` to make reordering possible. +233/// +234/// See the documentation for each address lookup implementation for details on +235/// what additional filtering the implementation may perform on top. +236#[derive(Clone, Default)] +237pub struct AddrFilter(Option<Arc<AddrFilterFn>>); +238 +239impl std::fmt::Debug for AddrFilter { +240 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { +241 if self.0.is_some() { +242 f.debug_struct("AddrFilter").finish_non_exhaustive() +243 } else { +244 write!(f, "identity") +245 } +246 } +247} +248 +249impl AddrFilter { +250 /// Create a new [`AddrFilter`] +251 pub fn new( +252 f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, +253 ) -> Self { +254 Self(Some(Arc::new(f))) +255 } +256 +257 /// Only keep relay addresses. +258 pub fn relay_only() -> Self { +259 Self::new(|addrs| addrs.iter().filter(|a| a.is_relay()).cloned().collect()) +260 } 261 -262 fn from_str(s: &str) -> std::result::Result<Self, Self::Err> { -263 ensure!(s.len() <= Self::MAX_LENGTH, MaxLengthExceededError); -264 Ok(Self(s.to_string())) +262 /// Only keep direct IP addresses. +263 pub fn ip_only() -> Self { +264 Self::new(|addrs| addrs.iter().filter(|a| !a.is_relay()).cloned().collect()) 265 } -266} -267 -268impl fmt::Display for UserData { -269 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { -270 write!(f, "{}", self.0) -271 } -272} -273 -274impl AsRef<str> for UserData { -275 fn as_ref(&self) -> &str { -276 &self.0 -277 } -278} -279 -280/// Information about an endpoint that may be published to and resolved from discovery services. -281/// -282/// This struct couples a [`EndpointId`] with its associated [`EndpointData`]. -283#[derive(derive_more::Debug, Clone, Eq, PartialEq)] -284pub struct EndpointInfo { -285 /// The [`EndpointId`] of the endpoint this is about. -286 pub endpoint_id: EndpointId, -287 /// The information published about the endpoint. -288 pub data: EndpointData, -289} -290 -291impl From<TxtAttrs<IrohAttr>> for EndpointInfo { -292 fn from(attrs: TxtAttrs<IrohAttr>) -> Self { -293 (&attrs).into() -294 } -295} -296 -297impl From<&TxtAttrs<IrohAttr>> for EndpointInfo { -298 fn from(attrs: &TxtAttrs<IrohAttr>) -> Self { -299 let endpoint_id = attrs.endpoint_id(); -300 let attrs = attrs.attrs(); -301 let relay_urls = attrs -302 .get(&IrohAttr::Relay) -303 .into_iter() -304 .flatten() -305 .filter_map(|s| Url::parse(s).ok()) -306 .map(|url| TransportAddr::Relay(url.into())); -307 let ip_addrs = attrs -308 .get(&IrohAttr::Addr) -309 .into_iter() -310 .flatten() -311 .filter_map(|s| SocketAddr::from_str(s).ok()) -312 .map(TransportAddr::Ip); +266 +267 /// Apply the address filter function to a set of addresses. +268 pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr> { +269 match &self.0 { +270 Some(f) => f(addrs), +271 None => addrs.iter().cloned().collect(), +272 } +273 } +274} +275 +276impl From<EndpointAddr> for EndpointData { +277 fn from(endpoint_addr: EndpointAddr) -> Self { +278 Self { +279 addrs: endpoint_addr.addrs, +280 user_data: None, +281 } +282 } +283} +284 +285// User-defined data that can be published and resolved through endpoint discovery. +286/// +287/// Under the hood this is a UTF-8 String is no longer than [`UserData::MAX_LENGTH`] bytes. +288/// +289/// Iroh does not keep track of or examine the user-defined data. +290/// +291/// `UserData` implements [`FromStr`] and [`TryFrom<String>`], so you can +292/// convert `&str` and `String` into `UserData` easily. +293#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] +294pub struct UserData(String); +295 +296impl UserData { +297 /// The max byte length allowed for user-defined data. +298 /// +299 /// In DNS discovery services, the user-defined data is stored in a TXT record character string, +300 /// which has a max length of 255 bytes. We need to subtract the `user-data=` prefix, +301 /// which leaves 245 bytes for the actual user-defined data. +302 pub const MAX_LENGTH: usize = 245; +303} +304 +305/// Error returned when an input value is too long for [`UserData`]. +306#[allow(missing_docs)] +307#[stack_error(derive, add_meta)] +308#[error("max length exceeded")] +309pub struct MaxLengthExceededError {} +310 +311impl TryFrom<String> for UserData { +312 type Error = MaxLengthExceededError; 313 -314 let user_data = attrs -315 .get(&IrohAttr::UserData) -316 .into_iter() -317 .flatten() -318 .next() -319 .and_then(|s| UserData::from_str(s).ok()); -320 let mut data = EndpointData::default(); -321 data.set_user_data(user_data); -322 data.add_addrs(relay_urls.chain(ip_addrs)); -323 -324 Self { endpoint_id, data } -325 } -326} -327 -328impl From<EndpointInfo> for EndpointAddr { -329 fn from(value: EndpointInfo) -> Self { -330 value.into_endpoint_addr() -331 } -332} -333 -334impl From<EndpointAddr> for EndpointInfo { -335 fn from(addr: EndpointAddr) -> Self { -336 let mut info = Self::new(addr.id); -337 info.add_addrs(addr.addrs); -338 info -339 } -340} -341 -342impl EndpointInfo { -343 /// Creates a new [`EndpointInfo`] with an empty [`EndpointData`]. -344 pub fn new(endpoint_id: EndpointId) -> Self { -345 Self::from_parts(endpoint_id, Default::default()) -346 } -347 -348 /// Creates a new [`EndpointInfo`] from its parts. -349 pub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self { -350 Self { endpoint_id, data } -351 } -352 -353 /// Sets the relay URL and returns the updated endpoint info. -354 pub fn with_relay_url(mut self, relay_url: Option<RelayUrl>) -> Self { -355 self.data = self.data.with_relay_url(relay_url); -356 self -357 } -358 -359 /// Sets the IP based addresses and returns the updated endpoint info. -360 pub fn with_ip_addrs(mut self, addrs: BTreeSet<SocketAddr>) -> Self { -361 self.data = self.data.with_ip_addrs(addrs); -362 self -363 } -364 -365 /// Sets the user-defined data and returns the updated endpoint info. -366 pub fn with_user_data(mut self, user_data: Option<UserData>) -> Self { -367 self.data = self.data.with_user_data(user_data); -368 self -369 } -370 -371 /// Converts into a [`EndpointAddr`] by cloning the needed fields. -372 pub fn to_endpoint_addr(&self) -> EndpointAddr { -373 EndpointAddr { -374 id: self.endpoint_id, -375 addrs: self.addrs.clone(), -376 } -377 } -378 -379 /// Converts into a [`EndpointAddr`] without cloning. -380 pub fn into_endpoint_addr(self) -> EndpointAddr { -381 let Self { endpoint_id, data } = self; -382 EndpointAddr { -383 id: endpoint_id, -384 addrs: data.addrs, -385 } +314 fn try_from(value: String) -> Result<Self, Self::Error> { +315 ensure!(value.len() <= Self::MAX_LENGTH, MaxLengthExceededError); +316 Ok(Self(value)) +317 } +318} +319 +320impl FromStr for UserData { +321 type Err = MaxLengthExceededError; +322 +323 fn from_str(s: &str) -> std::result::Result<Self, Self::Err> { +324 ensure!(s.len() <= Self::MAX_LENGTH, MaxLengthExceededError); +325 Ok(Self(s.to_string())) +326 } +327} +328 +329impl fmt::Display for UserData { +330 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { +331 write!(f, "{}", self.0) +332 } +333} +334 +335impl AsRef<str> for UserData { +336 fn as_ref(&self) -> &str { +337 &self.0 +338 } +339} +340 +341/// Information about an endpoint that may be published to and resolved from discovery services. +342/// +343/// This struct couples a [`EndpointId`] with its associated [`EndpointData`]. +344#[derive(derive_more::Debug, Clone, Eq, PartialEq)] +345pub struct EndpointInfo { +346 /// The [`EndpointId`] of the endpoint this is about. +347 pub endpoint_id: EndpointId, +348 /// The information published about the endpoint. +349 pub data: EndpointData, +350} +351 +352impl From<TxtAttrs<IrohAttr>> for EndpointInfo { +353 fn from(attrs: TxtAttrs<IrohAttr>) -> Self { +354 (&attrs).into() +355 } +356} +357 +358impl From<&TxtAttrs<IrohAttr>> for EndpointInfo { +359 fn from(attrs: &TxtAttrs<IrohAttr>) -> Self { +360 let endpoint_id = attrs.endpoint_id(); +361 let attrs = attrs.attrs(); +362 let relay_urls = attrs +363 .get(&IrohAttr::Relay) +364 .into_iter() +365 .flatten() +366 .filter_map(|s| Url::parse(s).ok()) +367 .map(|url| TransportAddr::Relay(url.into())); +368 let ip_addrs = attrs +369 .get(&IrohAttr::Addr) +370 .into_iter() +371 .flatten() +372 .filter_map(|s| SocketAddr::from_str(s).ok()) +373 .map(TransportAddr::Ip); +374 +375 let user_data = attrs +376 .get(&IrohAttr::UserData) +377 .into_iter() +378 .flatten() +379 .next() +380 .and_then(|s| UserData::from_str(s).ok()); +381 let mut data = EndpointData::default(); +382 data.set_user_data(user_data); +383 data.add_addrs(relay_urls.chain(ip_addrs)); +384 +385 Self { endpoint_id, data } 386 } -387 -388 fn to_attrs(&self) -> TxtAttrs<IrohAttr> { -389 self.into() -390 } -391 -392 #[cfg(not(wasm_browser))] -393 /// Parses a [`EndpointInfo`] from DNS TXT lookup. -394 pub fn from_txt_lookup( -395 domain_name: String, -396 lookup: impl Iterator<Item = crate::dns::TxtRecordData>, -397 ) -> Result<Self, ParseError> { -398 let attrs = TxtAttrs::from_txt_lookup(domain_name, lookup)?; -399 Ok(Self::from(attrs)) +387} +388 +389impl From<EndpointInfo> for EndpointAddr { +390 fn from(value: EndpointInfo) -> Self { +391 value.into_endpoint_addr() +392 } +393} +394 +395impl From<EndpointAddr> for EndpointInfo { +396 fn from(addr: EndpointAddr) -> Self { +397 let mut info = Self::new(addr.id); +398 info.add_addrs(addr.addrs); +399 info 400 } -401 -402 /// Parses a [`EndpointInfo`] from a [`pkarr::SignedPacket`]. -403 pub fn from_pkarr_signed_packet(packet: &pkarr::SignedPacket) -> Result<Self, ParseError> { -404 let attrs = TxtAttrs::from_pkarr_signed_packet(packet)?; -405 Ok(attrs.into()) -406 } -407 -408 /// Creates a [`pkarr::SignedPacket`]. -409 /// -410 /// This constructs a DNS packet and signs it with a [`SecretKey`]. -411 pub fn to_pkarr_signed_packet( -412 &self, -413 secret_key: &SecretKey, -414 ttl: u32, -415 ) -> Result<pkarr::SignedPacket, EncodingError> { -416 self.to_attrs().to_pkarr_signed_packet(secret_key, ttl) -417 } -418 -419 /// Converts into a list of `{key}={value}` strings. -420 pub fn to_txt_strings(&self) -> Vec<String> { -421 self.to_attrs().to_txt_strings().collect() -422 } -423} -424 -425#[allow(missing_docs)] -426#[stack_error(derive, add_meta, from_sources)] -427#[non_exhaustive] -428pub enum ParseError { -429 #[error("Expected format `key=value`, received `{s}`")] -430 UnexpectedFormat { s: String }, -431 #[error("Could not convert key to Attr")] -432 AttrFromString { key: String }, -433 #[error("Expected 2 labels, received {num_labels}")] -434 NumLabels { num_labels: usize }, -435 #[error("Could not parse labels")] -436 Utf8 { -437 #[error(std_err)] -438 source: Utf8Error, -439 }, -440 #[error("Record is not an `iroh` record, expected `_iroh`, got `{label}`")] -441 NotAnIrohRecord { label: String }, -442 #[error(transparent)] -443 DecodingError { source: DecodingError }, -444} -445 -446impl std::ops::Deref for EndpointInfo { -447 type Target = EndpointData; -448 fn deref(&self) -> &Self::Target { -449 &self.data -450 } -451} +401} +402 +403impl EndpointInfo { +404 /// Creates a new [`EndpointInfo`] with an empty [`EndpointData`]. +405 pub fn new(endpoint_id: EndpointId) -> Self { +406 Self::from_parts(endpoint_id, Default::default()) +407 } +408 +409 /// Creates a new [`EndpointInfo`] from its parts. +410 pub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self { +411 Self { endpoint_id, data } +412 } +413 +414 /// Sets the relay URL and returns the updated endpoint info. +415 pub fn with_relay_url(mut self, relay_url: Option<RelayUrl>) -> Self { +416 self.data = self.data.with_relay_url(relay_url); +417 self +418 } +419 +420 /// Sets the IP based addresses and returns the updated endpoint info. +421 pub fn with_ip_addrs(mut self, addrs: BTreeSet<SocketAddr>) -> Self { +422 self.data = self.data.with_ip_addrs(addrs); +423 self +424 } +425 +426 /// Sets the user-defined data and returns the updated endpoint info. +427 pub fn with_user_data(mut self, user_data: Option<UserData>) -> Self { +428 self.data = self.data.with_user_data(user_data); +429 self +430 } +431 +432 /// Converts into a [`EndpointAddr`] by cloning the needed fields. +433 pub fn to_endpoint_addr(&self) -> EndpointAddr { +434 EndpointAddr { +435 id: self.endpoint_id, +436 addrs: self.addrs.clone(), +437 } +438 } +439 +440 /// Converts into a [`EndpointAddr`] without cloning. +441 pub fn into_endpoint_addr(self) -> EndpointAddr { +442 let Self { endpoint_id, data } = self; +443 EndpointAddr { +444 id: endpoint_id, +445 addrs: data.addrs, +446 } +447 } +448 +449 fn to_attrs(&self) -> TxtAttrs<IrohAttr> { +450 self.into() +451 } 452 -453impl std::ops::DerefMut for EndpointInfo { -454 fn deref_mut(&mut self) -> &mut Self::Target { -455 &mut self.data -456 } -457} -458 -459/// Parses a [`EndpointId`] from iroh DNS name. -460/// -461/// Takes a [`hickory_resolver::proto::rr::Name`] DNS name and expects the first label to be -462/// [`IROH_TXT_NAME`] and the second label to be a z32 encoded [`EndpointId`]. Ignores -463/// subsequent labels. -464#[cfg(not(wasm_browser))] -465fn endpoint_id_from_txt_name(name: &str) -> Result<EndpointId, ParseError> { -466 let num_labels = name.split(".").count(); -467 if num_labels < 2 { -468 return Err(e!(ParseError::NumLabels { num_labels })); -469 } -470 let mut labels = name.split("."); -471 let label = labels.next().expect("checked above"); -472 if label != IROH_TXT_NAME { -473 return Err(e!(ParseError::NotAnIrohRecord { -474 label: label.to_string() -475 })); -476 } -477 let label = labels.next().expect("checked above"); -478 let endpoint_id = EndpointId::from_z32(label)?; -479 Ok(endpoint_id) -480} -481 -482/// The attributes supported by iroh for [`IROH_TXT_NAME`] DNS resource records. -483/// -484/// The resource record uses the lower-case names. -485#[derive( -486 Debug, strum::Display, strum::AsRefStr, strum::EnumString, Hash, Eq, PartialEq, Ord, PartialOrd, -487)] -488#[strum(serialize_all = "kebab-case")] -489pub(crate) enum IrohAttr { -490 /// URL of home relay. -491 Relay, -492 /// Direct address. -493 Addr, -494 /// User-defined data -495 UserData, -496} -497 -498/// Attributes parsed from [`IROH_TXT_NAME`] TXT records. -499/// -500/// This struct is generic over the key type. When using with [`String`], this will parse -501/// all attributes. Can also be used with an enum, if it implements [`FromStr`] and -502/// [`Display`]. -503#[derive(Debug)] -504pub(crate) struct TxtAttrs<T> { -505 endpoint_id: EndpointId, -506 attrs: BTreeMap<T, Vec<String>>, -507} -508 -509impl From<&EndpointInfo> for TxtAttrs<IrohAttr> { -510 fn from(info: &EndpointInfo) -> Self { -511 let mut attrs = vec![]; -512 for addr in &info.data.addrs { -513 match addr { -514 TransportAddr::Relay(relay_url) => { -515 attrs.push((IrohAttr::Relay, relay_url.to_string())) -516 } -517 TransportAddr::Ip(addr) => attrs.push((IrohAttr::Addr, addr.to_string())), -518 _ => {} -519 } -520 } -521 -522 if let Some(user_data) = &info.data.user_data { -523 attrs.push((IrohAttr::UserData, user_data.to_string())); -524 } -525 Self::from_parts(info.endpoint_id, attrs.into_iter()) -526 } -527} -528 -529impl<T: FromStr + Display + Hash + Ord> TxtAttrs<T> { -530 /// Creates [`TxtAttrs`] from an endpoint id and an iterator of key-value pairs. -531 pub(crate) fn from_parts( -532 endpoint_id: EndpointId, -533 pairs: impl Iterator<Item = (T, String)>, -534 ) -> Self { -535 let mut attrs: BTreeMap<T, Vec<String>> = BTreeMap::new(); -536 for (k, v) in pairs { -537 attrs.entry(k).or_default().push(v); -538 } -539 Self { attrs, endpoint_id } -540 } -541 -542 /// Creates [`TxtAttrs`] from an endpoint id and an iterator of "{key}={value}" strings. -543 pub(crate) fn from_strings( -544 endpoint_id: EndpointId, -545 strings: impl Iterator<Item = String>, -546 ) -> Result<Self, ParseError> { -547 let mut attrs: BTreeMap<T, Vec<String>> = BTreeMap::new(); -548 for s in strings { -549 let mut parts = s.split('='); -550 let (Some(key), Some(value)) = (parts.next(), parts.next()) else { -551 return Err(e!(ParseError::UnexpectedFormat { s })); -552 }; -553 let attr = T::from_str(key).map_err(|_| { -554 e!(ParseError::AttrFromString { -555 key: key.to_string() -556 }) -557 })?; -558 attrs.entry(attr).or_default().push(value.to_string()); -559 } -560 Ok(Self { attrs, endpoint_id }) -561 } -562 -563 /// Returns the parsed attributes. -564 pub(crate) fn attrs(&self) -> &BTreeMap<T, Vec<String>> { -565 &self.attrs -566 } -567 -568 /// Returns the endpoint id. -569 pub(crate) fn endpoint_id(&self) -> EndpointId { -570 self.endpoint_id -571 } -572 -573 /// Parses a [`pkarr::SignedPacket`]. -574 pub(crate) fn from_pkarr_signed_packet( -575 packet: &pkarr::SignedPacket, -576 ) -> Result<Self, ParseError> { -577 use pkarr::dns::{ -578 rdata::RData, -579 {self}, -580 }; -581 let pubkey = packet.public_key(); -582 let pubkey_z32 = pubkey.to_z32(); -583 let endpoint_id = -584 EndpointId::from_bytes(&pubkey.verifying_key().to_bytes()).expect("valid key"); -585 let zone = dns::Name::new(&pubkey_z32).expect("z32 encoding is valid"); -586 let txt_data = packet -587 .all_resource_records() -588 .filter_map(|rr| match &rr.rdata { -589 RData::TXT(txt) => match rr.name.without(&zone) { -590 Some(name) if name.to_string() == IROH_TXT_NAME => Some(txt), -591 Some(_) | None => None, -592 }, -593 _ => None, -594 }); -595 -596 let txt_strs = txt_data.filter_map(|s| String::try_from(s.clone()).ok()); -597 Self::from_strings(endpoint_id, txt_strs) -598 } -599 -600 /// Parses a TXT records lookup. -601 #[cfg(not(wasm_browser))] -602 pub(crate) fn from_txt_lookup( -603 name: String, -604 lookup: impl Iterator<Item = crate::dns::TxtRecordData>, -605 ) -> Result<Self, ParseError> { -606 let queried_endpoint_id = endpoint_id_from_txt_name(&name)?; -607 -608 let strings = lookup.map(|record| record.to_string()); -609 Self::from_strings(queried_endpoint_id, strings) -610 } -611 -612 fn to_txt_strings(&self) -> impl Iterator<Item = String> + '_ { -613 self.attrs -614 .iter() -615 .flat_map(move |(k, vs)| vs.iter().map(move |v| format!("{k}={v}"))) -616 } -617 -618 /// Creates a [`pkarr::SignedPacket`] -619 /// -620 /// This constructs a DNS packet and signs it with a [`SecretKey`]. -621 pub(crate) fn to_pkarr_signed_packet( -622 &self, -623 secret_key: &SecretKey, -624 ttl: u32, -625 ) -> Result<pkarr::SignedPacket, EncodingError> { -626 use pkarr::dns::{self, rdata}; -627 let keypair = pkarr::Keypair::from_secret_key(&secret_key.to_bytes()); -628 let name = dns::Name::new(IROH_TXT_NAME).expect("constant"); -629 -630 let mut builder = pkarr::SignedPacket::builder(); -631 for s in self.to_txt_strings() { -632 let mut txt = rdata::TXT::new(); -633 txt.add_string(&s) -634 .map_err(|err| e!(EncodingError::InvalidTxtEntry, err))?; -635 builder = builder.txt(name.clone(), txt.into_owned(), ttl); -636 } -637 let signed_packet = builder -638 .build(&keypair) -639 .map_err(|err| e!(EncodingError::FailedBuildingPacket, err))?; -640 Ok(signed_packet) -641 } -642} -643 -644#[cfg(not(wasm_browser))] -645pub(crate) fn ensure_iroh_txt_label(name: String) -> String { -646 let mut parts = name.split("."); -647 if parts.next() == Some(IROH_TXT_NAME) { -648 name -649 } else { -650 format!("{IROH_TXT_NAME}.{name}") -651 } -652} -653 -654#[cfg(not(wasm_browser))] -655pub(crate) fn endpoint_domain(endpoint_id: &EndpointId, origin: &str) -> String { -656 format!("{}.{}", EndpointId::to_z32(endpoint_id), origin) -657} -658 -659#[cfg(test)] -660mod tests { -661 use std::{collections::BTreeSet, str::FromStr, sync::Arc}; -662 -663 use hickory_resolver::{ -664 Name, -665 lookup::Lookup, -666 proto::{ -667 op::Query, -668 rr::{ -669 RData, Record, RecordType, -670 rdata::{A, TXT}, -671 }, -672 }, -673 }; -674 use iroh_base::{EndpointId, SecretKey, TransportAddr}; -675 use n0_error::{Result, StdResultExt}; -676 -677 use super::{EndpointData, EndpointIdExt, EndpointInfo}; -678 use crate::dns::TxtRecordData; -679 -680 #[test] -681 fn txt_attr_roundtrip() { -682 let endpoint_data = EndpointData::new([ -683 TransportAddr::Relay("https://example.com".parse().unwrap()), -684 TransportAddr::Ip("127.0.0.1:1234".parse().unwrap()), -685 ]) -686 .with_user_data(Some("foobar".parse().unwrap())); -687 let endpoint_id = "vpnk377obfvzlipnsfbqba7ywkkenc4xlpmovt5tsfujoa75zqia" -688 .parse() -689 .unwrap(); -690 let expected = EndpointInfo::from_parts(endpoint_id, endpoint_data); -691 let attrs = expected.to_attrs(); -692 let actual = EndpointInfo::from(&attrs); -693 assert_eq!(expected, actual); -694 } -695 -696 #[test] -697 fn signed_packet_roundtrip() { -698 let secret_key = -699 SecretKey::from_str("vpnk377obfvzlipnsfbqba7ywkkenc4xlpmovt5tsfujoa75zqia").unwrap(); -700 let endpoint_data = EndpointData::new([ -701 TransportAddr::Relay("https://example.com".parse().unwrap()), -702 TransportAddr::Ip("127.0.0.1:1234".parse().unwrap()), -703 ]) -704 .with_user_data(Some("foobar".parse().unwrap())); -705 let expected = EndpointInfo::from_parts(secret_key.public(), endpoint_data); -706 let packet = expected.to_pkarr_signed_packet(&secret_key, 30).unwrap(); -707 let actual = EndpointInfo::from_pkarr_signed_packet(&packet).unwrap(); -708 assert_eq!(expected, actual); -709 } -710 -711 /// There used to be a bug where uploading an EndpointAddr with more than only exactly -712 /// one relay URL or one publicly reachable IP addr would prevent connection -713 /// establishment. -714 /// -715 /// The reason was that only the first address was parsed (e.g. 192.168.96.145 in -716 /// this example), which could be a local, unreachable address. -717 #[test] -718 fn test_from_hickory_lookup() -> Result { -719 let name = Name::from_utf8( -720 "_iroh.dgjpkxyn3zyrk3zfads5duwdgbqpkwbjxfj4yt7rezidr3fijccy.dns.iroh.link.", -721 ) -722 .std_context("dns name")?; -723 let query = Query::query(name.clone(), RecordType::TXT); -724 let records = [ -725 Record::from_rdata( -726 name.clone(), -727 30, -728 RData::TXT(TXT::new(vec!["addr=192.168.96.145:60165".to_string()])), -729 ), -730 Record::from_rdata( -731 name.clone(), -732 30, -733 RData::TXT(TXT::new(vec!["addr=213.208.157.87:60165".to_string()])), -734 ), -735 // Test a record with mismatching record type (A instead of TXT). It should be filtered out. -736 Record::from_rdata(name.clone(), 30, RData::A(A::new(127, 0, 0, 1))), -737 // Test a record with a mismatching name -738 Record::from_rdata( -739 Name::from_utf8(format!( -740 "_iroh.{}.dns.iroh.link.", -741 EndpointId::from_str( -742 // Another EndpointId -743 "a55f26132e5e43de834d534332f66a20d480c3e50a13a312a071adea6569981e" -744 )? -745 .to_z32() -746 )) -747 .std_context("name")?, -748 30, -749 RData::TXT(TXT::new(vec![ -750 "relay=https://euw1-1.relay.iroh.network./".to_string(), -751 ])), -752 ), -753 // Test a record with a completely different name -754 Record::from_rdata( -755 Name::from_utf8("dns.iroh.link.").std_context("name")?, -756 30, -757 RData::TXT(TXT::new(vec![ -758 "relay=https://euw1-1.relay.iroh.network./".to_string(), -759 ])), -760 ), -761 Record::from_rdata( -762 name.clone(), -763 30, -764 RData::TXT(TXT::new(vec![ -765 "relay=https://euw1-1.relay.iroh.network./".to_string(), -766 ])), -767 ), -768 ]; -769 let lookup = Lookup::new_with_max_ttl(query, Arc::new(records)); -770 let lookup = hickory_resolver::lookup::TxtLookup::from(lookup); -771 let lookup = lookup -772 .into_iter() -773 .map(|txt| TxtRecordData::from_iter(txt.iter().cloned())); -774 -775 let endpoint_info = EndpointInfo::from_txt_lookup(name.to_string(), lookup)?; -776 -777 let expected_endpoint_info = EndpointInfo::new(EndpointId::from_str( -778 "1992d53c02cdc04566e5c0edb1ce83305cd550297953a047a445ea3264b54b18", -779 )?) -780 .with_relay_url(Some("https://euw1-1.relay.iroh.network./".parse()?)) -781 .with_ip_addrs(BTreeSet::from([ -782 "192.168.96.145:60165".parse().unwrap(), -783 "213.208.157.87:60165".parse().unwrap(), -784 ])); -785 -786 assert_eq!(endpoint_info, expected_endpoint_info); -787 -788 Ok(()) -789 } -790} \ No newline at end of file +453 #[cfg(not(wasm_browser))] +454 /// Parses a [`EndpointInfo`] from DNS TXT lookup. +455 pub fn from_txt_lookup( +456 domain_name: String, +457 lookup: impl Iterator<Item = crate::dns::TxtRecordData>, +458 ) -> Result<Self, ParseError> { +459 let attrs = TxtAttrs::from_txt_lookup(domain_name, lookup)?; +460 Ok(Self::from(attrs)) +461 } +462 +463 /// Parses a [`EndpointInfo`] from a [`pkarr::SignedPacket`]. +464 pub fn from_pkarr_signed_packet(packet: &pkarr::SignedPacket) -> Result<Self, ParseError> { +465 let attrs = TxtAttrs::from_pkarr_signed_packet(packet)?; +466 Ok(attrs.into()) +467 } +468 +469 /// Creates a [`pkarr::SignedPacket`]. +470 /// +471 /// This constructs a DNS packet and signs it with a [`SecretKey`]. +472 pub fn to_pkarr_signed_packet( +473 &self, +474 secret_key: &SecretKey, +475 ttl: u32, +476 ) -> Result<pkarr::SignedPacket, EncodingError> { +477 self.to_attrs().to_pkarr_signed_packet(secret_key, ttl) +478 } +479 +480 /// Converts into a list of `{key}={value}` strings. +481 pub fn to_txt_strings(&self) -> Vec<String> { +482 self.to_attrs().to_txt_strings().collect() +483 } +484} +485 +486#[allow(missing_docs)] +487#[stack_error(derive, add_meta, from_sources)] +488#[non_exhaustive] +489pub enum ParseError { +490 #[error("Expected format `key=value`, received `{s}`")] +491 UnexpectedFormat { s: String }, +492 #[error("Could not convert key to Attr")] +493 AttrFromString { key: String }, +494 #[error("Expected 2 labels, received {num_labels}")] +495 NumLabels { num_labels: usize }, +496 #[error("Could not parse labels")] +497 Utf8 { +498 #[error(std_err)] +499 source: Utf8Error, +500 }, +501 #[error("Record is not an `iroh` record, expected `_iroh`, got `{label}`")] +502 NotAnIrohRecord { label: String }, +503 #[error(transparent)] +504 DecodingError { source: DecodingError }, +505} +506 +507impl std::ops::Deref for EndpointInfo { +508 type Target = EndpointData; +509 fn deref(&self) -> &Self::Target { +510 &self.data +511 } +512} +513 +514impl std::ops::DerefMut for EndpointInfo { +515 fn deref_mut(&mut self) -> &mut Self::Target { +516 &mut self.data +517 } +518} +519 +520/// Parses a [`EndpointId`] from iroh DNS name. +521/// +522/// Takes a [`hickory_resolver::proto::rr::Name`] DNS name and expects the first label to be +523/// [`IROH_TXT_NAME`] and the second label to be a z32 encoded [`EndpointId`]. Ignores +524/// subsequent labels. +525#[cfg(not(wasm_browser))] +526fn endpoint_id_from_txt_name(name: &str) -> Result<EndpointId, ParseError> { +527 let num_labels = name.split(".").count(); +528 if num_labels < 2 { +529 return Err(e!(ParseError::NumLabels { num_labels })); +530 } +531 let mut labels = name.split("."); +532 let label = labels.next().expect("checked above"); +533 if label != IROH_TXT_NAME { +534 return Err(e!(ParseError::NotAnIrohRecord { +535 label: label.to_string() +536 })); +537 } +538 let label = labels.next().expect("checked above"); +539 let endpoint_id = EndpointId::from_z32(label)?; +540 Ok(endpoint_id) +541} +542 +543/// The attributes supported by iroh for [`IROH_TXT_NAME`] DNS resource records. +544/// +545/// The resource record uses the lower-case names. +546#[derive( +547 Debug, strum::Display, strum::AsRefStr, strum::EnumString, Hash, Eq, PartialEq, Ord, PartialOrd, +548)] +549#[strum(serialize_all = "kebab-case")] +550pub(crate) enum IrohAttr { +551 /// URL of home relay. +552 Relay, +553 /// Direct address. +554 Addr, +555 /// User-defined data +556 UserData, +557} +558 +559/// Attributes parsed from [`IROH_TXT_NAME`] TXT records. +560/// +561/// This struct is generic over the key type. When using with [`String`], this will parse +562/// all attributes. Can also be used with an enum, if it implements [`FromStr`] and +563/// [`Display`]. +564#[derive(Debug)] +565pub(crate) struct TxtAttrs<T> { +566 endpoint_id: EndpointId, +567 attrs: BTreeMap<T, Vec<String>>, +568} +569 +570impl From<&EndpointInfo> for TxtAttrs<IrohAttr> { +571 fn from(info: &EndpointInfo) -> Self { +572 let mut attrs = vec![]; +573 for addr in &info.data.addrs { +574 match addr { +575 TransportAddr::Relay(relay_url) => { +576 attrs.push((IrohAttr::Relay, relay_url.to_string())) +577 } +578 TransportAddr::Ip(addr) => attrs.push((IrohAttr::Addr, addr.to_string())), +579 _ => {} +580 } +581 } +582 +583 if let Some(user_data) = &info.data.user_data { +584 attrs.push((IrohAttr::UserData, user_data.to_string())); +585 } +586 Self::from_parts(info.endpoint_id, attrs.into_iter()) +587 } +588} +589 +590impl<T: FromStr + Display + Hash + Ord> TxtAttrs<T> { +591 /// Creates [`TxtAttrs`] from an endpoint id and an iterator of key-value pairs. +592 pub(crate) fn from_parts( +593 endpoint_id: EndpointId, +594 pairs: impl Iterator<Item = (T, String)>, +595 ) -> Self { +596 let mut attrs: BTreeMap<T, Vec<String>> = BTreeMap::new(); +597 for (k, v) in pairs { +598 attrs.entry(k).or_default().push(v); +599 } +600 Self { attrs, endpoint_id } +601 } +602 +603 /// Creates [`TxtAttrs`] from an endpoint id and an iterator of "{key}={value}" strings. +604 pub(crate) fn from_strings( +605 endpoint_id: EndpointId, +606 strings: impl Iterator<Item = String>, +607 ) -> Result<Self, ParseError> { +608 let mut attrs: BTreeMap<T, Vec<String>> = BTreeMap::new(); +609 for s in strings { +610 let mut parts = s.split('='); +611 let (Some(key), Some(value)) = (parts.next(), parts.next()) else { +612 return Err(e!(ParseError::UnexpectedFormat { s })); +613 }; +614 let attr = T::from_str(key).map_err(|_| { +615 e!(ParseError::AttrFromString { +616 key: key.to_string() +617 }) +618 })?; +619 attrs.entry(attr).or_default().push(value.to_string()); +620 } +621 Ok(Self { attrs, endpoint_id }) +622 } +623 +624 /// Returns the parsed attributes. +625 pub(crate) fn attrs(&self) -> &BTreeMap<T, Vec<String>> { +626 &self.attrs +627 } +628 +629 /// Returns the endpoint id. +630 pub(crate) fn endpoint_id(&self) -> EndpointId { +631 self.endpoint_id +632 } +633 +634 /// Parses a [`pkarr::SignedPacket`]. +635 pub(crate) fn from_pkarr_signed_packet( +636 packet: &pkarr::SignedPacket, +637 ) -> Result<Self, ParseError> { +638 use pkarr::dns::{ +639 rdata::RData, +640 {self}, +641 }; +642 let pubkey = packet.public_key(); +643 let pubkey_z32 = pubkey.to_z32(); +644 let endpoint_id = +645 EndpointId::from_bytes(&pubkey.verifying_key().to_bytes()).expect("valid key"); +646 let zone = dns::Name::new(&pubkey_z32).expect("z32 encoding is valid"); +647 let txt_data = packet +648 .all_resource_records() +649 .filter_map(|rr| match &rr.rdata { +650 RData::TXT(txt) => match rr.name.without(&zone) { +651 Some(name) if name.to_string() == IROH_TXT_NAME => Some(txt), +652 Some(_) | None => None, +653 }, +654 _ => None, +655 }); +656 +657 let txt_strs = txt_data.filter_map(|s| String::try_from(s.clone()).ok()); +658 Self::from_strings(endpoint_id, txt_strs) +659 } +660 +661 /// Parses a TXT records lookup. +662 #[cfg(not(wasm_browser))] +663 pub(crate) fn from_txt_lookup( +664 name: String, +665 lookup: impl Iterator<Item = crate::dns::TxtRecordData>, +666 ) -> Result<Self, ParseError> { +667 let queried_endpoint_id = endpoint_id_from_txt_name(&name)?; +668 +669 let strings = lookup.map(|record| record.to_string()); +670 Self::from_strings(queried_endpoint_id, strings) +671 } +672 +673 fn to_txt_strings(&self) -> impl Iterator<Item = String> + '_ { +674 self.attrs +675 .iter() +676 .flat_map(move |(k, vs)| vs.iter().map(move |v| format!("{k}={v}"))) +677 } +678 +679 /// Creates a [`pkarr::SignedPacket`] +680 /// +681 /// This constructs a DNS packet and signs it with a [`SecretKey`]. +682 pub(crate) fn to_pkarr_signed_packet( +683 &self, +684 secret_key: &SecretKey, +685 ttl: u32, +686 ) -> Result<pkarr::SignedPacket, EncodingError> { +687 use pkarr::dns::{self, rdata}; +688 let keypair = pkarr::Keypair::from_secret_key(&secret_key.to_bytes()); +689 let name = dns::Name::new(IROH_TXT_NAME).expect("constant"); +690 +691 let mut builder = pkarr::SignedPacket::builder(); +692 for s in self.to_txt_strings() { +693 let mut txt = rdata::TXT::new(); +694 txt.add_string(&s) +695 .map_err(|err| e!(EncodingError::InvalidTxtEntry, err))?; +696 builder = builder.txt(name.clone(), txt.into_owned(), ttl); +697 } +698 let signed_packet = builder +699 .build(&keypair) +700 .map_err(|err| e!(EncodingError::FailedBuildingPacket, err))?; +701 Ok(signed_packet) +702 } +703} +704 +705#[cfg(not(wasm_browser))] +706pub(crate) fn ensure_iroh_txt_label(name: String) -> String { +707 let mut parts = name.split("."); +708 if parts.next() == Some(IROH_TXT_NAME) { +709 name +710 } else { +711 format!("{IROH_TXT_NAME}.{name}") +712 } +713} +714 +715#[cfg(not(wasm_browser))] +716pub(crate) fn endpoint_domain(endpoint_id: &EndpointId, origin: &str) -> String { +717 format!("{}.{}", EndpointId::to_z32(endpoint_id), origin) +718} +719 +720#[cfg(test)] +721mod tests { +722 use std::{collections::BTreeSet, str::FromStr, sync::Arc}; +723 +724 use hickory_resolver::{ +725 Name, +726 lookup::Lookup, +727 proto::{ +728 op::Query, +729 rr::{ +730 RData, Record, RecordType, +731 rdata::{A, TXT}, +732 }, +733 }, +734 }; +735 use iroh_base::{EndpointId, SecretKey, TransportAddr}; +736 use n0_error::{Result, StdResultExt}; +737 +738 use super::{EndpointData, EndpointIdExt, EndpointInfo}; +739 use crate::dns::TxtRecordData; +740 +741 #[test] +742 fn txt_attr_roundtrip() { +743 let endpoint_data = EndpointData::new([ +744 TransportAddr::Relay("https://example.com".parse().unwrap()), +745 TransportAddr::Ip("127.0.0.1:1234".parse().unwrap()), +746 ]) +747 .with_user_data(Some("foobar".parse().unwrap())); +748 let endpoint_id = "vpnk377obfvzlipnsfbqba7ywkkenc4xlpmovt5tsfujoa75zqia" +749 .parse() +750 .unwrap(); +751 let expected = EndpointInfo::from_parts(endpoint_id, endpoint_data); +752 let attrs = expected.to_attrs(); +753 let actual = EndpointInfo::from(&attrs); +754 assert_eq!(expected, actual); +755 } +756 +757 #[test] +758 fn signed_packet_roundtrip() { +759 let secret_key = +760 SecretKey::from_str("vpnk377obfvzlipnsfbqba7ywkkenc4xlpmovt5tsfujoa75zqia").unwrap(); +761 let endpoint_data = EndpointData::new([ +762 TransportAddr::Relay("https://example.com".parse().unwrap()), +763 TransportAddr::Ip("127.0.0.1:1234".parse().unwrap()), +764 ]) +765 .with_user_data(Some("foobar".parse().unwrap())); +766 let expected = EndpointInfo::from_parts(secret_key.public(), endpoint_data); +767 let packet = expected.to_pkarr_signed_packet(&secret_key, 30).unwrap(); +768 let actual = EndpointInfo::from_pkarr_signed_packet(&packet).unwrap(); +769 assert_eq!(expected, actual); +770 } +771 +772 /// There used to be a bug where uploading an EndpointAddr with more than only exactly +773 /// one relay URL or one publicly reachable IP addr would prevent connection +774 /// establishment. +775 /// +776 /// The reason was that only the first address was parsed (e.g. 192.168.96.145 in +777 /// this example), which could be a local, unreachable address. +778 #[test] +779 fn test_from_hickory_lookup() -> Result { +780 let name = Name::from_utf8( +781 "_iroh.dgjpkxyn3zyrk3zfads5duwdgbqpkwbjxfj4yt7rezidr3fijccy.dns.iroh.link.", +782 ) +783 .std_context("dns name")?; +784 let query = Query::query(name.clone(), RecordType::TXT); +785 let records = [ +786 Record::from_rdata( +787 name.clone(), +788 30, +789 RData::TXT(TXT::new(vec!["addr=192.168.96.145:60165".to_string()])), +790 ), +791 Record::from_rdata( +792 name.clone(), +793 30, +794 RData::TXT(TXT::new(vec!["addr=213.208.157.87:60165".to_string()])), +795 ), +796 // Test a record with mismatching record type (A instead of TXT). It should be filtered out. +797 Record::from_rdata(name.clone(), 30, RData::A(A::new(127, 0, 0, 1))), +798 // Test a record with a mismatching name +799 Record::from_rdata( +800 Name::from_utf8(format!( +801 "_iroh.{}.dns.iroh.link.", +802 EndpointId::from_str( +803 // Another EndpointId +804 "a55f26132e5e43de834d534332f66a20d480c3e50a13a312a071adea6569981e" +805 )? +806 .to_z32() +807 )) +808 .std_context("name")?, +809 30, +810 RData::TXT(TXT::new(vec![ +811 "relay=https://euw1-1.relay.iroh.network./".to_string(), +812 ])), +813 ), +814 // Test a record with a completely different name +815 Record::from_rdata( +816 Name::from_utf8("dns.iroh.link.").std_context("name")?, +817 30, +818 RData::TXT(TXT::new(vec![ +819 "relay=https://euw1-1.relay.iroh.network./".to_string(), +820 ])), +821 ), +822 Record::from_rdata( +823 name.clone(), +824 30, +825 RData::TXT(TXT::new(vec![ +826 "relay=https://euw1-1.relay.iroh.network./".to_string(), +827 ])), +828 ), +829 ]; +830 let lookup = Lookup::new_with_max_ttl(query, Arc::new(records)); +831 let lookup = hickory_resolver::lookup::TxtLookup::from(lookup); +832 let lookup = lookup +833 .into_iter() +834 .map(|txt| TxtRecordData::from_iter(txt.iter().cloned())); +835 +836 let endpoint_info = EndpointInfo::from_txt_lookup(name.to_string(), lookup)?; +837 +838 let expected_endpoint_info = EndpointInfo::new(EndpointId::from_str( +839 "1992d53c02cdc04566e5c0edb1ce83305cd550297953a047a445ea3264b54b18", +840 )?) +841 .with_relay_url(Some("https://euw1-1.relay.iroh.network./".parse()?)) +842 .with_ip_addrs(BTreeSet::from([ +843 "192.168.96.145:60165".parse().unwrap(), +844 "213.208.157.87:60165".parse().unwrap(), +845 ])); +846 +847 assert_eq!(endpoint_info, expected_endpoint_info); +848 +849 Ok(()) +850 } +851} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/lib.rs.html b/pr/3958/docs/src/iroh_relay/lib.rs.html index 28e1e70eab..3de1ac9474 100644 --- a/pr/3958/docs/src/iroh_relay/lib.rs.html +++ b/pr/3958/docs/src/iroh_relay/lib.rs.html @@ -37,52 +37,53 @@ 37pub mod quic; 38#[cfg(feature = "server")] 39pub mod server; -40 -41mod ping_tracker; -42 -43mod key_cache; -44mod relay_map; -45pub use key_cache::KeyCache; -46 -47#[cfg(not(wasm_browser))] -48pub mod dns; -49pub mod endpoint_info; -50 -51pub use protos::relay::MAX_PACKET_SIZE; -52 -53pub use self::{ -54 ping_tracker::PingTracker, -55 relay_map::{RelayConfig, RelayMap, RelayQuicConfig}, -56}; -57 -58/// This trait allows anything that ends up potentially -59/// wrapping a TLS stream use the underlying [`export_keying_material`] -60/// function. -61/// -62/// [`export_keying_material`]: rustls::ConnectionCommon::export_keying_material -63/// Trait for extracting keying material from a TLS connection. -64/// -65/// This is used during the relay handshake to establish a shared secret -66/// between the client and server for authentication purposes. -67pub trait ExportKeyingMaterial { -68 /// If this type ends up wrapping a TLS stream, then this tries -69 /// to export keying material by calling the underlying [`export_keying_material`] -70 /// function. -71 /// -72 /// However unlike that function, this returns `Option`, in case the -73 /// underlying stream might not be wrapping TLS, e.g. as in the case of -74 /// [`MaybeTlsStream`]. -75 /// -76 /// For more information on what this function does, see the -77 /// [`export_keying_material`] documentation. -78 /// -79 /// [`export_keying_material`]: rustls::ConnectionCommon::export_keying_material -80 /// [`MaybeTlsStream`]: crate::server::streams::MaybeTlsStream -81 #[cfg_attr(wasm_browser, allow(unused))] -82 fn export_keying_material<T: AsMut<[u8]>>( -83 &self, -84 output: T, -85 label: &[u8], -86 context: Option<&[u8]>, -87 ) -> Option<T>; -88} \ No newline at end of file +40pub mod tls; +41 +42mod ping_tracker; +43 +44mod key_cache; +45mod relay_map; +46pub use key_cache::KeyCache; +47 +48#[cfg(not(wasm_browser))] +49pub mod dns; +50pub mod endpoint_info; +51 +52pub use protos::relay::MAX_PACKET_SIZE; +53 +54pub use self::{ +55 ping_tracker::PingTracker, +56 relay_map::{RelayConfig, RelayMap, RelayQuicConfig}, +57}; +58 +59/// This trait allows anything that ends up potentially +60/// wrapping a TLS stream use the underlying [`export_keying_material`] +61/// function. +62/// +63/// [`export_keying_material`]: rustls::ConnectionCommon::export_keying_material +64/// Trait for extracting keying material from a TLS connection. +65/// +66/// This is used during the relay handshake to establish a shared secret +67/// between the client and server for authentication purposes. +68pub trait ExportKeyingMaterial { +69 /// If this type ends up wrapping a TLS stream, then this tries +70 /// to export keying material by calling the underlying [`export_keying_material`] +71 /// function. +72 /// +73 /// However unlike that function, this returns `Option`, in case the +74 /// underlying stream might not be wrapping TLS, e.g. as in the case of +75 /// [`MaybeTlsStream`]. +76 /// +77 /// For more information on what this function does, see the +78 /// [`export_keying_material`] documentation. +79 /// +80 /// [`export_keying_material`]: rustls::ConnectionCommon::export_keying_material +81 /// [`MaybeTlsStream`]: crate::server::streams::MaybeTlsStream +82 #[cfg_attr(wasm_browser, allow(unused))] +83 fn export_keying_material<T: AsMut<[u8]>>( +84 &self, +85 output: T, +86 label: &[u8], +87 context: Option<&[u8]>, +88 ) -> Option<T>; +89} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/server/http_server.rs.html b/pr/3958/docs/src/iroh_relay/server/http_server.rs.html index dbb5f08dbc..f50d89d3ee 100644 --- a/pr/3958/docs/src/iroh_relay/server/http_server.rs.html +++ b/pr/3958/docs/src/iroh_relay/server/http_server.rs.html @@ -1003,477 +1003,481 @@ 1003 client::{Client, ClientBuilder, ConnectError, conn::Conn}, 1004 dns::DnsResolver, 1005 protos::relay::{ClientToRelayMsg, Datagrams, RelayToClientMsg}, -1006 }; -1007 -1008 pub(crate) fn make_tls_config() -> TlsConfig { -1009 let subject_alt_names = vec!["localhost".to_string()]; -1010 -1011 let cert = rcgen::generate_simple_self_signed(subject_alt_names).unwrap(); -1012 let rustls_certificate = cert.cert.der().clone(); -1013 let rustls_key = -1014 rustls::pki_types::PrivatePkcs8KeyDer::from(cert.signing_key.serialize_der()); -1015 let config = rustls::ServerConfig::builder_with_provider(Arc::new( -1016 rustls::crypto::ring::default_provider(), -1017 )) -1018 .with_safe_default_protocol_versions() -1019 .expect("protocols supported by ring") -1020 .with_no_client_auth() -1021 .with_single_cert(vec![(rustls_certificate)], rustls_key.into()) -1022 .expect("cert is right"); -1023 -1024 TlsConfig::new(Arc::new(config)) -1025 } -1026 -1027 #[tokio::test] -1028 #[traced_test] -1029 async fn test_http_clients_and_server() -> Result { -1030 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -1031 -1032 let a_key = SecretKey::generate(&mut rng); -1033 let b_key = SecretKey::generate(&mut rng); -1034 -1035 // start server -1036 let server = ServerBuilder::new("127.0.0.1:0".parse().unwrap()) -1037 .spawn() -1038 .await?; -1039 -1040 let addr = server.addr(); -1041 -1042 // get dial info -1043 let port = addr.port(); -1044 let addr = if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() { -1045 ipv4_addr -1046 } else { -1047 bail_any!("cannot get ipv4 addr from socket addr {addr:?}"); -1048 }; -1049 -1050 info!("addr: {addr}:{port}"); -1051 let relay_addr: Url = format!("http://{addr}:{port}").parse().unwrap(); -1052 -1053 // create clients -1054 let (a_key, mut client_a) = create_test_client(a_key, relay_addr.clone()).await?; -1055 info!("created client {a_key:?}"); -1056 let (b_key, mut client_b) = create_test_client(b_key, relay_addr).await?; -1057 info!("created client {b_key:?}"); -1058 -1059 info!("ping a"); -1060 client_a.send(ClientToRelayMsg::Ping([1u8; 8])).await?; -1061 let pong = client_a.next().await.expect("eos")?; -1062 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); -1063 -1064 info!("ping b"); -1065 client_b.send(ClientToRelayMsg::Ping([2u8; 8])).await?; -1066 let pong = client_b.next().await.expect("eos")?; -1067 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); -1068 -1069 info!("sending message from a to b"); -1070 let msg = Datagrams::from(b"hi there, client b!"); -1071 client_a -1072 .send(ClientToRelayMsg::Datagrams { -1073 dst_endpoint_id: b_key, -1074 datagrams: msg.clone(), -1075 }) -1076 .await?; -1077 info!("waiting for message from a on b"); -1078 let (got_key, got_msg) = -1079 process_msg(client_b.next().await).expect("expected message from client_a"); -1080 assert_eq!(a_key, got_key); -1081 assert_eq!(msg, got_msg); -1082 -1083 info!("sending message from b to a"); -1084 let msg = Datagrams::from(b"right back at ya, client b!"); -1085 client_b -1086 .send(ClientToRelayMsg::Datagrams { -1087 dst_endpoint_id: a_key, -1088 datagrams: msg.clone(), -1089 }) -1090 .await?; -1091 info!("waiting for message b on a"); -1092 let (got_key, got_msg) = -1093 process_msg(client_a.next().await).expect("expected message from client_b"); -1094 assert_eq!(b_key, got_key); -1095 assert_eq!(msg, got_msg); -1096 -1097 // Close before shutting down, otherwise we'll try to send close frames on broken pipes -1098 client_a.close().await?; -1099 client_b.close().await?; -1100 server.shutdown(); -1101 -1102 Ok(()) -1103 } -1104 -1105 async fn create_test_client( -1106 key: SecretKey, -1107 server_url: Url, -1108 ) -> Result<(PublicKey, Client), ConnectError> { -1109 let public_key = key.public(); -1110 let client = -1111 ClientBuilder::new(server_url, key, DnsResolver::new()).insecure_skip_cert_verify(true); -1112 let client = client.connect().await?; -1113 -1114 Ok((public_key, client)) -1115 } -1116 -1117 fn process_msg( -1118 msg: Option<Result<RelayToClientMsg, crate::client::RecvError>>, -1119 ) -> Option<(PublicKey, Datagrams)> { -1120 match msg { -1121 Some(Err(e)) => { -1122 info!("client `recv` error {e}"); -1123 None -1124 } -1125 Some(Ok(msg)) => { -1126 info!("got message on: {msg:?}"); -1127 if let RelayToClientMsg::Datagrams { -1128 remote_endpoint_id: source, -1129 datagrams, -1130 } = msg -1131 { -1132 Some((source, datagrams)) -1133 } else { -1134 None -1135 } -1136 } -1137 None => { -1138 info!("client end of stream"); -1139 None -1140 } -1141 } -1142 } -1143 -1144 #[tokio::test] -1145 #[traced_test] -1146 async fn test_https_clients_and_server() -> Result { -1147 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -1148 -1149 let a_key = SecretKey::generate(&mut rng); -1150 let b_key = SecretKey::generate(&mut rng); -1151 -1152 // create tls_config -1153 let tls_config = make_tls_config(); -1154 -1155 // start server -1156 let mut server = ServerBuilder::new("127.0.0.1:0".parse().unwrap()) -1157 .tls_config(Some(tls_config)) -1158 .spawn() -1159 .await?; -1160 -1161 let addr = server.addr(); -1162 -1163 // get dial info -1164 let port = addr.port(); -1165 let addr = if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() { -1166 ipv4_addr -1167 } else { -1168 bail_any!("cannot get ipv4 addr from socket addr {addr:?}"); -1169 }; -1170 -1171 info!("Relay listening on: {addr}:{port}"); -1172 -1173 let url: Url = format!("https://localhost:{port}").parse().unwrap(); +1006 tls::{CaRootsConfig, default_provider}, +1007 }; +1008 +1009 pub(crate) fn make_tls_config() -> TlsConfig { +1010 let subject_alt_names = vec!["localhost".to_string()]; +1011 +1012 let cert = rcgen::generate_simple_self_signed(subject_alt_names).unwrap(); +1013 let rustls_certificate = cert.cert.der().clone(); +1014 let rustls_key = +1015 rustls::pki_types::PrivatePkcs8KeyDer::from(cert.signing_key.serialize_der()); +1016 let config = rustls::ServerConfig::builder_with_provider(Arc::new( +1017 rustls::crypto::ring::default_provider(), +1018 )) +1019 .with_safe_default_protocol_versions() +1020 .expect("protocols supported by ring") +1021 .with_no_client_auth() +1022 .with_single_cert(vec![(rustls_certificate)], rustls_key.into()) +1023 .expect("cert is right"); +1024 +1025 TlsConfig::new(Arc::new(config)) +1026 } +1027 +1028 #[tokio::test] +1029 #[traced_test] +1030 async fn test_http_clients_and_server() -> Result { +1031 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1032 +1033 let a_key = SecretKey::generate(&mut rng); +1034 let b_key = SecretKey::generate(&mut rng); +1035 +1036 // start server +1037 let server = ServerBuilder::new("127.0.0.1:0".parse().unwrap()) +1038 .spawn() +1039 .await?; +1040 +1041 let addr = server.addr(); +1042 +1043 // get dial info +1044 let port = addr.port(); +1045 let addr = if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() { +1046 ipv4_addr +1047 } else { +1048 bail_any!("cannot get ipv4 addr from socket addr {addr:?}"); +1049 }; +1050 +1051 info!("addr: {addr}:{port}"); +1052 let relay_addr: Url = format!("http://{addr}:{port}").parse().unwrap(); +1053 +1054 // create clients +1055 let (a_key, mut client_a) = create_test_client(a_key, relay_addr.clone()).await?; +1056 info!("created client {a_key:?}"); +1057 let (b_key, mut client_b) = create_test_client(b_key, relay_addr).await?; +1058 info!("created client {b_key:?}"); +1059 +1060 info!("ping a"); +1061 client_a.send(ClientToRelayMsg::Ping([1u8; 8])).await?; +1062 let pong = client_a.next().await.expect("eos")?; +1063 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); +1064 +1065 info!("ping b"); +1066 client_b.send(ClientToRelayMsg::Ping([2u8; 8])).await?; +1067 let pong = client_b.next().await.expect("eos")?; +1068 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); +1069 +1070 info!("sending message from a to b"); +1071 let msg = Datagrams::from(b"hi there, client b!"); +1072 client_a +1073 .send(ClientToRelayMsg::Datagrams { +1074 dst_endpoint_id: b_key, +1075 datagrams: msg.clone(), +1076 }) +1077 .await?; +1078 info!("waiting for message from a on b"); +1079 let (got_key, got_msg) = +1080 process_msg(client_b.next().await).expect("expected message from client_a"); +1081 assert_eq!(a_key, got_key); +1082 assert_eq!(msg, got_msg); +1083 +1084 info!("sending message from b to a"); +1085 let msg = Datagrams::from(b"right back at ya, client b!"); +1086 client_b +1087 .send(ClientToRelayMsg::Datagrams { +1088 dst_endpoint_id: a_key, +1089 datagrams: msg.clone(), +1090 }) +1091 .await?; +1092 info!("waiting for message b on a"); +1093 let (got_key, got_msg) = +1094 process_msg(client_a.next().await).expect("expected message from client_b"); +1095 assert_eq!(b_key, got_key); +1096 assert_eq!(msg, got_msg); +1097 +1098 // Close before shutting down, otherwise we'll try to send close frames on broken pipes +1099 client_a.close().await?; +1100 client_b.close().await?; +1101 server.shutdown(); +1102 +1103 Ok(()) +1104 } +1105 +1106 async fn create_test_client( +1107 key: SecretKey, +1108 server_url: Url, +1109 ) -> Result<(PublicKey, Client), ConnectError> { +1110 let public_key = key.public(); +1111 let client = ClientBuilder::new(server_url, key, DnsResolver::new()).tls_client_config( +1112 CaRootsConfig::insecure_skip_verify() +1113 .client_config(default_provider()) +1114 .expect("infallible"), +1115 ); +1116 let client = client.connect().await?; +1117 +1118 Ok((public_key, client)) +1119 } +1120 +1121 fn process_msg( +1122 msg: Option<Result<RelayToClientMsg, crate::client::RecvError>>, +1123 ) -> Option<(PublicKey, Datagrams)> { +1124 match msg { +1125 Some(Err(e)) => { +1126 info!("client `recv` error {e}"); +1127 None +1128 } +1129 Some(Ok(msg)) => { +1130 info!("got message on: {msg:?}"); +1131 if let RelayToClientMsg::Datagrams { +1132 remote_endpoint_id: source, +1133 datagrams, +1134 } = msg +1135 { +1136 Some((source, datagrams)) +1137 } else { +1138 None +1139 } +1140 } +1141 None => { +1142 info!("client end of stream"); +1143 None +1144 } +1145 } +1146 } +1147 +1148 #[tokio::test] +1149 #[traced_test] +1150 async fn test_https_clients_and_server() -> Result { +1151 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1152 +1153 let a_key = SecretKey::generate(&mut rng); +1154 let b_key = SecretKey::generate(&mut rng); +1155 +1156 // create tls_config +1157 let tls_config = make_tls_config(); +1158 +1159 // start server +1160 let mut server = ServerBuilder::new("127.0.0.1:0".parse().unwrap()) +1161 .tls_config(Some(tls_config)) +1162 .spawn() +1163 .await?; +1164 +1165 let addr = server.addr(); +1166 +1167 // get dial info +1168 let port = addr.port(); +1169 let addr = if let std::net::IpAddr::V4(ipv4_addr) = addr.ip() { +1170 ipv4_addr +1171 } else { +1172 bail_any!("cannot get ipv4 addr from socket addr {addr:?}"); +1173 }; 1174 -1175 // create clients -1176 let (a_key, mut client_a) = create_test_client(a_key, url.clone()).await?; -1177 info!("created client {a_key:?}"); -1178 let (b_key, mut client_b) = create_test_client(b_key, url).await?; -1179 info!("created client {b_key:?}"); -1180 -1181 info!("ping a"); -1182 client_a.send(ClientToRelayMsg::Ping([1u8; 8])).await?; -1183 let pong = client_a.next().await.expect("eos")?; -1184 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); -1185 -1186 info!("ping b"); -1187 client_b.send(ClientToRelayMsg::Ping([2u8; 8])).await?; -1188 let pong = client_b.next().await.expect("eos")?; -1189 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); -1190 -1191 info!("sending message from a to b"); -1192 let msg = Datagrams::from(b"hi there, client b!"); -1193 client_a -1194 .send(ClientToRelayMsg::Datagrams { -1195 dst_endpoint_id: b_key, -1196 datagrams: msg.clone(), -1197 }) -1198 .await?; -1199 info!("waiting for message from a on b"); -1200 let (got_key, got_msg) = -1201 process_msg(client_b.next().await).expect("expected message from client_a"); -1202 assert_eq!(a_key, got_key); -1203 assert_eq!(msg, got_msg); -1204 -1205 info!("sending message from b to a"); -1206 let msg = Datagrams::from(b"right back at ya, client b!"); -1207 client_b -1208 .send(ClientToRelayMsg::Datagrams { -1209 dst_endpoint_id: a_key, -1210 datagrams: msg.clone(), -1211 }) -1212 .await?; -1213 info!("waiting for message b on a"); -1214 let (got_key, got_msg) = -1215 process_msg(client_a.next().await).expect("expected message from client_b"); -1216 assert_eq!(b_key, got_key); -1217 assert_eq!(msg, got_msg); -1218 -1219 // Close before shutting down, otherwise we'll try to send close frames on broken pipes -1220 client_a.close().await?; -1221 client_b.close().await?; -1222 server.shutdown(); -1223 server.task_handle().await.std_context("join")?; -1224 -1225 Ok(()) -1226 } -1227 -1228 async fn make_test_client(client: tokio::io::DuplexStream, key: &SecretKey) -> Result<Conn> { -1229 let client = crate::client::streams::MaybeTlsStream::Test(client); -1230 let client = tokio_websockets::ClientBuilder::new().take_over(client); -1231 let client = Conn::new(client, KeyCache::test(), key).await?; -1232 Ok(client) -1233 } -1234 -1235 #[tokio::test] -1236 #[traced_test] -1237 async fn test_server_basic() -> Result { -1238 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); -1239 -1240 info!("Create the server."); -1241 let metrics = Arc::new(Metrics::default()); -1242 let service = RelayService::new( -1243 Default::default(), -1244 Default::default(), -1245 None, -1246 KeyCache::test(), -1247 AccessConfig::Everyone, -1248 metrics.clone(), -1249 ); -1250 -1251 info!("Create client A and connect it to the server."); -1252 let key_a = SecretKey::generate(&mut rng); -1253 let public_key_a = key_a.public(); -1254 let (client_a, rw_a) = tokio::io::duplex(10); -1255 let s = service.clone(); -1256 let handler_task = -1257 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_a), None).await }); -1258 let mut client_a = make_test_client(client_a, &key_a).await?; -1259 handler_task.await.std_context("join")??; -1260 -1261 info!("Create client B and connect it to the server."); -1262 let key_b = SecretKey::generate(&mut rng); -1263 let public_key_b = key_b.public(); -1264 let (client_b, rw_b) = tokio::io::duplex(10); -1265 let s = service.clone(); -1266 let handler_task = -1267 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_b), None).await }); -1268 let mut client_b = make_test_client(client_b, &key_b).await?; -1269 handler_task.await.std_context("join")??; -1270 -1271 info!("Send message from A to B."); -1272 let msg = Datagrams::from(b"hello client b!!"); -1273 client_a -1274 .send(ClientToRelayMsg::Datagrams { -1275 dst_endpoint_id: public_key_b, -1276 datagrams: msg.clone(), -1277 }) -1278 .await?; -1279 match client_b.next().await.unwrap()? { -1280 RelayToClientMsg::Datagrams { -1281 remote_endpoint_id, -1282 datagrams, -1283 } => { -1284 assert_eq!(public_key_a, remote_endpoint_id); -1285 assert_eq!(msg, datagrams); -1286 } -1287 msg => { -1288 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); -1289 } -1290 } -1291 -1292 info!("Send message from B to A."); -1293 let msg = Datagrams::from(b"nice to meet you client a!!"); -1294 client_b -1295 .send(ClientToRelayMsg::Datagrams { -1296 dst_endpoint_id: public_key_a, -1297 datagrams: msg.clone(), -1298 }) -1299 .await?; -1300 match client_a.next().await.unwrap()? { -1301 RelayToClientMsg::Datagrams { -1302 remote_endpoint_id, -1303 datagrams, -1304 } => { -1305 assert_eq!(public_key_b, remote_endpoint_id); -1306 assert_eq!(msg, datagrams); -1307 } -1308 msg => { -1309 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); -1310 } -1311 } -1312 -1313 info!("Close the server and clients"); -1314 service.shutdown().await; -1315 tokio::time::sleep(Duration::from_secs(1)).await; +1175 info!("Relay listening on: {addr}:{port}"); +1176 +1177 let url: Url = format!("https://localhost:{port}").parse().unwrap(); +1178 +1179 // create clients +1180 let (a_key, mut client_a) = create_test_client(a_key, url.clone()).await?; +1181 info!("created client {a_key:?}"); +1182 let (b_key, mut client_b) = create_test_client(b_key, url).await?; +1183 info!("created client {b_key:?}"); +1184 +1185 info!("ping a"); +1186 client_a.send(ClientToRelayMsg::Ping([1u8; 8])).await?; +1187 let pong = client_a.next().await.expect("eos")?; +1188 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); +1189 +1190 info!("ping b"); +1191 client_b.send(ClientToRelayMsg::Ping([2u8; 8])).await?; +1192 let pong = client_b.next().await.expect("eos")?; +1193 assert!(matches!(pong, RelayToClientMsg::Pong { .. })); +1194 +1195 info!("sending message from a to b"); +1196 let msg = Datagrams::from(b"hi there, client b!"); +1197 client_a +1198 .send(ClientToRelayMsg::Datagrams { +1199 dst_endpoint_id: b_key, +1200 datagrams: msg.clone(), +1201 }) +1202 .await?; +1203 info!("waiting for message from a on b"); +1204 let (got_key, got_msg) = +1205 process_msg(client_b.next().await).expect("expected message from client_a"); +1206 assert_eq!(a_key, got_key); +1207 assert_eq!(msg, got_msg); +1208 +1209 info!("sending message from b to a"); +1210 let msg = Datagrams::from(b"right back at ya, client b!"); +1211 client_b +1212 .send(ClientToRelayMsg::Datagrams { +1213 dst_endpoint_id: a_key, +1214 datagrams: msg.clone(), +1215 }) +1216 .await?; +1217 info!("waiting for message b on a"); +1218 let (got_key, got_msg) = +1219 process_msg(client_a.next().await).expect("expected message from client_b"); +1220 assert_eq!(b_key, got_key); +1221 assert_eq!(msg, got_msg); +1222 +1223 // Close before shutting down, otherwise we'll try to send close frames on broken pipes +1224 client_a.close().await?; +1225 client_b.close().await?; +1226 server.shutdown(); +1227 server.task_handle().await.std_context("join")?; +1228 +1229 Ok(()) +1230 } +1231 +1232 async fn make_test_client(client: tokio::io::DuplexStream, key: &SecretKey) -> Result<Conn> { +1233 let client = crate::client::streams::MaybeTlsStream::Test(client); +1234 let client = tokio_websockets::ClientBuilder::new().take_over(client); +1235 let client = Conn::new(client, KeyCache::test(), key).await?; +1236 Ok(client) +1237 } +1238 +1239 #[tokio::test] +1240 #[traced_test] +1241 async fn test_server_basic() -> Result { +1242 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1243 +1244 info!("Create the server."); +1245 let metrics = Arc::new(Metrics::default()); +1246 let service = RelayService::new( +1247 Default::default(), +1248 Default::default(), +1249 None, +1250 KeyCache::test(), +1251 AccessConfig::Everyone, +1252 metrics.clone(), +1253 ); +1254 +1255 info!("Create client A and connect it to the server."); +1256 let key_a = SecretKey::generate(&mut rng); +1257 let public_key_a = key_a.public(); +1258 let (client_a, rw_a) = tokio::io::duplex(10); +1259 let s = service.clone(); +1260 let handler_task = +1261 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_a), None).await }); +1262 let mut client_a = make_test_client(client_a, &key_a).await?; +1263 handler_task.await.std_context("join")??; +1264 +1265 info!("Create client B and connect it to the server."); +1266 let key_b = SecretKey::generate(&mut rng); +1267 let public_key_b = key_b.public(); +1268 let (client_b, rw_b) = tokio::io::duplex(10); +1269 let s = service.clone(); +1270 let handler_task = +1271 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_b), None).await }); +1272 let mut client_b = make_test_client(client_b, &key_b).await?; +1273 handler_task.await.std_context("join")??; +1274 +1275 info!("Send message from A to B."); +1276 let msg = Datagrams::from(b"hello client b!!"); +1277 client_a +1278 .send(ClientToRelayMsg::Datagrams { +1279 dst_endpoint_id: public_key_b, +1280 datagrams: msg.clone(), +1281 }) +1282 .await?; +1283 match client_b.next().await.unwrap()? { +1284 RelayToClientMsg::Datagrams { +1285 remote_endpoint_id, +1286 datagrams, +1287 } => { +1288 assert_eq!(public_key_a, remote_endpoint_id); +1289 assert_eq!(msg, datagrams); +1290 } +1291 msg => { +1292 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); +1293 } +1294 } +1295 +1296 info!("Send message from B to A."); +1297 let msg = Datagrams::from(b"nice to meet you client a!!"); +1298 client_b +1299 .send(ClientToRelayMsg::Datagrams { +1300 dst_endpoint_id: public_key_a, +1301 datagrams: msg.clone(), +1302 }) +1303 .await?; +1304 match client_a.next().await.unwrap()? { +1305 RelayToClientMsg::Datagrams { +1306 remote_endpoint_id, +1307 datagrams, +1308 } => { +1309 assert_eq!(public_key_b, remote_endpoint_id); +1310 assert_eq!(msg, datagrams); +1311 } +1312 msg => { +1313 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); +1314 } +1315 } 1316 -1317 info!("Fail to send message from A to B."); -1318 let res = client_a -1319 .send(ClientToRelayMsg::Datagrams { -1320 dst_endpoint_id: public_key_b, -1321 datagrams: Datagrams::from(b"try to send"), -1322 }) -1323 .await; -1324 assert!(res.is_err()); -1325 assert!(client_b.next().await.is_none()); -1326 -1327 drop(client_a); -1328 drop(client_b); -1329 -1330 service.shutdown().await; -1331 -1332 assert_eq!(metrics.accepts.get(), metrics.disconnects.get()); +1317 info!("Close the server and clients"); +1318 service.shutdown().await; +1319 tokio::time::sleep(Duration::from_secs(1)).await; +1320 +1321 info!("Fail to send message from A to B."); +1322 let res = client_a +1323 .send(ClientToRelayMsg::Datagrams { +1324 dst_endpoint_id: public_key_b, +1325 datagrams: Datagrams::from(b"try to send"), +1326 }) +1327 .await; +1328 assert!(res.is_err()); +1329 assert!(client_b.next().await.is_none()); +1330 +1331 drop(client_a); +1332 drop(client_b); 1333 -1334 Ok(()) -1335 } -1336 -1337 #[tokio::test] -1338 async fn test_server_replace_client() -> Result { -1339 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1334 service.shutdown().await; +1335 +1336 assert_eq!(metrics.accepts.get(), metrics.disconnects.get()); +1337 +1338 Ok(()) +1339 } 1340 -1341 info!("Create the server."); -1342 let service = RelayService::new( -1343 Default::default(), -1344 Default::default(), -1345 None, -1346 KeyCache::test(), -1347 AccessConfig::Everyone, +1341 #[tokio::test] +1342 async fn test_server_replace_client() -> Result { +1343 let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0u64); +1344 +1345 info!("Create the server."); +1346 let service = RelayService::new( +1347 Default::default(), 1348 Default::default(), -1349 ); -1350 -1351 info!("Create client A and connect it to the server."); -1352 let key_a = SecretKey::generate(&mut rng); -1353 let public_key_a = key_a.public(); -1354 let (client_a, rw_a) = tokio::io::duplex(10); -1355 let s = service.clone(); -1356 let handler_task = -1357 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_a), None).await }); -1358 let mut client_a = make_test_client(client_a, &key_a).await?; -1359 handler_task.await.std_context("join")??; -1360 -1361 info!("Create client B and connect it to the server."); -1362 let key_b = SecretKey::generate(&mut rng); -1363 let public_key_b = key_b.public(); -1364 let (client_b, rw_b) = tokio::io::duplex(10); -1365 let s = service.clone(); -1366 let handler_task = -1367 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_b), None).await }); -1368 let mut client_b = make_test_client(client_b, &key_b).await?; -1369 handler_task.await.std_context("join")??; -1370 -1371 info!("Send message from A to B."); -1372 let msg = Datagrams::from(b"hello client b!!"); -1373 client_a -1374 .send(ClientToRelayMsg::Datagrams { -1375 dst_endpoint_id: public_key_b, -1376 datagrams: msg.clone(), -1377 }) -1378 .await?; -1379 match client_b.next().await.expect("eos")? { -1380 RelayToClientMsg::Datagrams { -1381 remote_endpoint_id, -1382 datagrams, -1383 } => { -1384 assert_eq!(public_key_a, remote_endpoint_id); -1385 assert_eq!(msg, datagrams); -1386 } -1387 msg => { -1388 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); -1389 } -1390 } -1391 -1392 info!("Send message from B to A."); -1393 let msg = Datagrams::from(b"nice to meet you client a!!"); -1394 client_b -1395 .send(ClientToRelayMsg::Datagrams { -1396 dst_endpoint_id: public_key_a, -1397 datagrams: msg.clone(), -1398 }) -1399 .await?; -1400 match client_a.next().await.expect("eos")? { -1401 RelayToClientMsg::Datagrams { -1402 remote_endpoint_id, -1403 datagrams, -1404 } => { -1405 assert_eq!(public_key_b, remote_endpoint_id); -1406 assert_eq!(msg, datagrams); -1407 } -1408 msg => { -1409 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); -1410 } -1411 } -1412 -1413 info!("Create client B and connect it to the server"); -1414 let (new_client_b, new_rw_b) = tokio::io::duplex(10); -1415 let s = service.clone(); -1416 let handler_task = -1417 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(new_rw_b), None).await }); -1418 let mut new_client_b = make_test_client(new_client_b, &key_b).await?; -1419 handler_task.await.std_context("join")??; -1420 -1421 // assert!(client_b.recv().await.is_err()); -1422 -1423 info!("Send message from A to B."); -1424 let msg = Datagrams::from(b"are you still there, b?!"); -1425 client_a -1426 .send(ClientToRelayMsg::Datagrams { -1427 dst_endpoint_id: public_key_b, -1428 datagrams: msg.clone(), -1429 }) -1430 .await?; -1431 match new_client_b.next().await.expect("eos")? { -1432 RelayToClientMsg::Datagrams { -1433 remote_endpoint_id, -1434 datagrams, -1435 } => { -1436 assert_eq!(public_key_a, remote_endpoint_id); -1437 assert_eq!(msg, datagrams); -1438 } -1439 msg => { -1440 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); -1441 } -1442 } -1443 -1444 info!("Send message from B to A."); -1445 let msg = Datagrams::from(b"just had a spot of trouble but I'm back now,a!!"); -1446 new_client_b -1447 .send(ClientToRelayMsg::Datagrams { -1448 dst_endpoint_id: public_key_a, -1449 datagrams: msg.clone(), -1450 }) -1451 .await?; -1452 match client_a.next().await.expect("eos")? { -1453 RelayToClientMsg::Datagrams { -1454 remote_endpoint_id, -1455 datagrams, -1456 } => { -1457 assert_eq!(public_key_b, remote_endpoint_id); -1458 assert_eq!(msg, datagrams); -1459 } -1460 msg => { -1461 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); -1462 } -1463 } -1464 -1465 info!("Close the server and clients"); -1466 service.shutdown().await; -1467 -1468 info!("Sending message from A to B fails"); -1469 let res = client_a -1470 .send(ClientToRelayMsg::Datagrams { -1471 dst_endpoint_id: public_key_b, -1472 datagrams: Datagrams::from(b"try to send"), -1473 }) -1474 .await; -1475 assert!(res.is_err()); -1476 assert!(new_client_b.next().await.is_none()); -1477 Ok(()) -1478 } -1479} \ No newline at end of file +1349 None, +1350 KeyCache::test(), +1351 AccessConfig::Everyone, +1352 Default::default(), +1353 ); +1354 +1355 info!("Create client A and connect it to the server."); +1356 let key_a = SecretKey::generate(&mut rng); +1357 let public_key_a = key_a.public(); +1358 let (client_a, rw_a) = tokio::io::duplex(10); +1359 let s = service.clone(); +1360 let handler_task = +1361 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_a), None).await }); +1362 let mut client_a = make_test_client(client_a, &key_a).await?; +1363 handler_task.await.std_context("join")??; +1364 +1365 info!("Create client B and connect it to the server."); +1366 let key_b = SecretKey::generate(&mut rng); +1367 let public_key_b = key_b.public(); +1368 let (client_b, rw_b) = tokio::io::duplex(10); +1369 let s = service.clone(); +1370 let handler_task = +1371 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(rw_b), None).await }); +1372 let mut client_b = make_test_client(client_b, &key_b).await?; +1373 handler_task.await.std_context("join")??; +1374 +1375 info!("Send message from A to B."); +1376 let msg = Datagrams::from(b"hello client b!!"); +1377 client_a +1378 .send(ClientToRelayMsg::Datagrams { +1379 dst_endpoint_id: public_key_b, +1380 datagrams: msg.clone(), +1381 }) +1382 .await?; +1383 match client_b.next().await.expect("eos")? { +1384 RelayToClientMsg::Datagrams { +1385 remote_endpoint_id, +1386 datagrams, +1387 } => { +1388 assert_eq!(public_key_a, remote_endpoint_id); +1389 assert_eq!(msg, datagrams); +1390 } +1391 msg => { +1392 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); +1393 } +1394 } +1395 +1396 info!("Send message from B to A."); +1397 let msg = Datagrams::from(b"nice to meet you client a!!"); +1398 client_b +1399 .send(ClientToRelayMsg::Datagrams { +1400 dst_endpoint_id: public_key_a, +1401 datagrams: msg.clone(), +1402 }) +1403 .await?; +1404 match client_a.next().await.expect("eos")? { +1405 RelayToClientMsg::Datagrams { +1406 remote_endpoint_id, +1407 datagrams, +1408 } => { +1409 assert_eq!(public_key_b, remote_endpoint_id); +1410 assert_eq!(msg, datagrams); +1411 } +1412 msg => { +1413 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); +1414 } +1415 } +1416 +1417 info!("Create client B and connect it to the server"); +1418 let (new_client_b, new_rw_b) = tokio::io::duplex(10); +1419 let s = service.clone(); +1420 let handler_task = +1421 tokio::spawn(async move { s.0.accept(MaybeTlsStream::Test(new_rw_b), None).await }); +1422 let mut new_client_b = make_test_client(new_client_b, &key_b).await?; +1423 handler_task.await.std_context("join")??; +1424 +1425 // assert!(client_b.recv().await.is_err()); +1426 +1427 info!("Send message from A to B."); +1428 let msg = Datagrams::from(b"are you still there, b?!"); +1429 client_a +1430 .send(ClientToRelayMsg::Datagrams { +1431 dst_endpoint_id: public_key_b, +1432 datagrams: msg.clone(), +1433 }) +1434 .await?; +1435 match new_client_b.next().await.expect("eos")? { +1436 RelayToClientMsg::Datagrams { +1437 remote_endpoint_id, +1438 datagrams, +1439 } => { +1440 assert_eq!(public_key_a, remote_endpoint_id); +1441 assert_eq!(msg, datagrams); +1442 } +1443 msg => { +1444 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); +1445 } +1446 } +1447 +1448 info!("Send message from B to A."); +1449 let msg = Datagrams::from(b"just had a spot of trouble but I'm back now,a!!"); +1450 new_client_b +1451 .send(ClientToRelayMsg::Datagrams { +1452 dst_endpoint_id: public_key_a, +1453 datagrams: msg.clone(), +1454 }) +1455 .await?; +1456 match client_a.next().await.expect("eos")? { +1457 RelayToClientMsg::Datagrams { +1458 remote_endpoint_id, +1459 datagrams, +1460 } => { +1461 assert_eq!(public_key_b, remote_endpoint_id); +1462 assert_eq!(msg, datagrams); +1463 } +1464 msg => { +1465 bail_any!("expected ReceivedDatagrams msg, got {msg:?}"); +1466 } +1467 } +1468 +1469 info!("Close the server and clients"); +1470 service.shutdown().await; +1471 +1472 info!("Sending message from A to B fails"); +1473 let res = client_a +1474 .send(ClientToRelayMsg::Datagrams { +1475 dst_endpoint_id: public_key_b, +1476 datagrams: Datagrams::from(b"try to send"), +1477 }) +1478 .await; +1479 assert!(res.is_err()); +1480 assert!(new_client_b.next().await.is_none()); +1481 Ok(()) +1482 } +1483} \ No newline at end of file diff --git a/pr/3958/docs/src/iroh_relay/tls.rs.html b/pr/3958/docs/src/iroh_relay/tls.rs.html new file mode 100644 index 0000000000..b1ded2aaf9 --- /dev/null +++ b/pr/3958/docs/src/iroh_relay/tls.rs.html @@ -0,0 +1,214 @@ +tls.rs - source

    iroh_relay/
    tls.rs

    1//! TLS verification configuration for iroh and iroh-relay.
    +2
    +3use std::{io, sync::Arc};
    +4
    +5use rustls::{
    +6    client::{ClientConfig, WebPkiServerVerifier, danger::ServerCertVerifier},
    +7    crypto::CryptoProvider,
    +8};
    +9use webpki_types::CertificateDer;
    +10
    +11/// Configures the trusted CA root certificates for non-iroh TLS connections.
    +12///
    +13/// These roots are used whenever iroh establishes standard TLS connections to
    +14/// external services, such as iroh relays, pkarr servers, or DNS-over-HTTPS
    +15/// resolvers.
    +16///
    +17/// The configured Certificate Authority (CA) roots are only used for verifying
    +18/// the validity of TLS certificates presented by those external services. These
    +19/// CAs don't need to be trusted for the integrity or authenticity of native
    +20/// iroh connections, which rely on iroh's own cryptographic authentication mechanisms.
    +21#[derive(Debug, Clone)]
    +22pub struct CaRootsConfig {
    +23    mode: Mode,
    +24    extra_roots: Vec<CertificateDer<'static>>,
    +25}
    +26
    +27#[derive(Debug, Clone)]
    +28enum Mode {
    +29    /// Use a compiled-in copy of the root certificates trusted by Mozilla.
    +30    ///
    +31    /// See [`webpki_roots`].
    +32    EmbeddedWebPki,
    +33    /// Use the operating system's certificate facilities for verifying the validity of TLS certificates.
    +34    ///
    +35    /// See [`rustls_platform_verifier`] for details how roots are retrieved on different platforms.
    +36    #[cfg(feature = "platform-verifier")]
    +37    System,
    +38    /// Only trust explicitly set root certificates.
    +39    ExtraRootsOnly,
    +40    /// INSECURE: Do not verify server certificates at all.
    +41    ///
    +42    /// May only be used in tests or local development setups.
    +43    #[cfg(any(test, feature = "test-utils"))]
    +44    InsecureSkipVerify,
    +45}
    +46
    +47impl Default for CaRootsConfig {
    +48    fn default() -> Self {
    +49        Self {
    +50            mode: Mode::EmbeddedWebPki,
    +51            extra_roots: vec![],
    +52        }
    +53    }
    +54}
    +55
    +56impl CaRootsConfig {
    +57    /// Use the operating system's certificate facilities for verifying the validity of TLS certificates.
    +58    ///
    +59    /// See [`rustls_platform_verifier`] for details how trust anchors are retrieved on different platforms.
    +60    ///
    +61    /// Note: Additional certificates added via [`Self::with_extra_roots`] will be ignored on Android due to
    +62    /// missing support in [`rustls`].
    +63    #[cfg(feature = "platform-verifier")]
    +64    pub fn system() -> Self {
    +65        Self {
    +66            mode: Mode::System,
    +67            extra_roots: Vec::new(),
    +68        }
    +69    }
    +70
    +71    /// Use a compiled-in copy of the root certificates trusted by Mozilla.
    +72    ///
    +73    /// See [`webpki_roots`] for details.
    +74    pub fn embedded() -> Self {
    +75        Self {
    +76            mode: Mode::EmbeddedWebPki,
    +77            extra_roots: Vec::new(),
    +78        }
    +79    }
    +80
    +81    /// INSECURE: Do not verify server certificates at all.
    +82    ///
    +83    /// May only be used in tests or local development setups.
    +84    #[cfg(any(test, feature = "test-utils"))]
    +85    pub fn insecure_skip_verify() -> Self {
    +86        Self {
    +87            mode: Mode::InsecureSkipVerify,
    +88            extra_roots: Vec::new(),
    +89        }
    +90    }
    +91
    +92    /// Only trust the explicitly set root certificates.
    +93    pub fn custom(roots: impl IntoIterator<Item = CertificateDer<'static>>) -> Self {
    +94        Self {
    +95            mode: Mode::ExtraRootsOnly,
    +96            extra_roots: roots.into_iter().collect(),
    +97        }
    +98    }
    +99
    +100    /// Add additional root certificates to the list of trusted certificates.
    +101    pub fn with_extra_roots(
    +102        mut self,
    +103        extra_roots: impl IntoIterator<Item = CertificateDer<'static>>,
    +104    ) -> Self {
    +105        self.extra_roots.extend(extra_roots);
    +106        self
    +107    }
    +108
    +109    /// Builds a [`ServerCertVerifier`] from this config.
    +110    pub fn server_cert_verifier(
    +111        &self,
    +112        crypto_provider: Arc<CryptoProvider>,
    +113    ) -> io::Result<Arc<dyn ServerCertVerifier>> {
    +114        Ok(match self.mode {
    +115            #[cfg(feature = "platform-verifier")]
    +116            Mode::System => {
    +117                #[cfg(not(target_os = "android"))]
    +118                let verifier = rustls_platform_verifier::Verifier::new_with_extra_roots(
    +119                    self.extra_roots.clone(),
    +120                    crypto_provider,
    +121                );
    +122                #[cfg(target_os = "android")]
    +123                let verifier = rustls_platform_verifier::Verifier::new(crypto_provider);
    +124                Arc::new(verifier.map_err(io::Error::other)?)
    +125            }
    +126
    +127            Mode::EmbeddedWebPki => {
    +128                let mut root_store = rustls::RootCertStore {
    +129                    roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(),
    +130                };
    +131                root_store.add_parsable_certificates(self.extra_roots.clone());
    +132                WebPkiServerVerifier::builder_with_provider(Arc::new(root_store), crypto_provider)
    +133                    .build()
    +134                    .map_err(io::Error::other)?
    +135            }
    +136            Mode::ExtraRootsOnly => {
    +137                let mut root_store = rustls::RootCertStore { roots: vec![] };
    +138                root_store.add_parsable_certificates(self.extra_roots.clone());
    +139                WebPkiServerVerifier::builder_with_provider(Arc::new(root_store), crypto_provider)
    +140                    .build()
    +141                    .map_err(io::Error::other)?
    +142            }
    +143            #[cfg(any(test, feature = "test-utils"))]
    +144            Mode::InsecureSkipVerify => Arc::new(self::no_cert_verifier::NoCertVerifier),
    +145        })
    +146    }
    +147
    +148    /// Build a [`ClientConfig`] from this config.
    +149    pub fn client_config(&self, crypto_provider: Arc<CryptoProvider>) -> io::Result<ClientConfig> {
    +150        let verifier = self.server_cert_verifier(crypto_provider.clone())?;
    +151        let config = ClientConfig::builder_with_provider(crypto_provider)
    +152            .with_safe_default_protocol_versions()
    +153            .expect("protocols supported by ring")
    +154            .dangerous()
    +155            .with_custom_certificate_verifier(verifier)
    +156            .with_no_client_auth();
    +157        Ok(config)
    +158    }
    +159}
    +160
    +161/// Returns iroh's default crypto provider.
    +162///
    +163/// Currently, this is [`rustls::crypto::ring`].
    +164pub fn default_provider() -> Arc<CryptoProvider> {
    +165    Arc::new(rustls::crypto::ring::default_provider())
    +166}
    +167
    +168#[cfg(any(test, feature = "test-utils"))]
    +169mod no_cert_verifier {
    +170    use rustls::{
    +171        client::danger::{ServerCertVerified, ServerCertVerifier},
    +172        pki_types::{CertificateDer, ServerName},
    +173    };
    +174
    +175    /// Used to allow self signed certificates in tests
    +176    #[derive(Debug)]
    +177    pub(super) struct NoCertVerifier;
    +178
    +179    impl ServerCertVerifier for NoCertVerifier {
    +180        fn verify_server_cert(
    +181            &self,
    +182            _end_entity: &CertificateDer,
    +183            _intermediates: &[CertificateDer],
    +184            _server_name: &ServerName,
    +185            _ocsp_response: &[u8],
    +186            _now: rustls::pki_types::UnixTime,
    +187        ) -> Result<ServerCertVerified, rustls::Error> {
    +188            Ok(ServerCertVerified::assertion())
    +189        }
    +190        fn verify_tls12_signature(
    +191            &self,
    +192            _message: &[u8],
    +193            _cert: &CertificateDer<'_>,
    +194            _dss: &rustls::DigitallySignedStruct,
    +195        ) -> Result<rustls::client::danger::HandshakeSignatureValid, rustls::Error> {
    +196            Ok(rustls::client::danger::HandshakeSignatureValid::assertion())
    +197        }
    +198
    +199        fn verify_tls13_signature(
    +200            &self,
    +201            _message: &[u8],
    +202            _cert: &CertificateDer<'_>,
    +203            _dss: &rustls::DigitallySignedStruct,
    +204        ) -> Result<rustls::client::danger::HandshakeSignatureValid, rustls::Error> {
    +205            Ok(rustls::client::danger::HandshakeSignatureValid::assertion())
    +206        }
    +207
    +208        fn supported_verify_schemes(&self) -> Vec<rustls::SignatureScheme> {
    +209            super::default_provider()
    +210                .signature_verification_algorithms
    +211                .supported_schemes()
    +212        }
    +213    }
    +214}
    \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/clone/trait.Clone.js b/pr/3958/docs/trait.impl/core/clone/trait.Clone.js index 73754a1e87..d1e9f47220 100644 --- a/pr/3958/docs/trait.impl/core/clone/trait.Clone.js +++ b/pr/3958/docs/trait.impl/core/clone/trait.Clone.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Clone for Error"],["impl Clone for DiscoveryEvent"],["impl Clone for AuthenticationError"],["impl Clone for ConnectingError"],["impl Clone for DirectAddrType"],["impl Clone for RelayMode"],["impl Clone for Source"],["impl Clone for TransportAddrUsage"],["impl Clone for ZeroRttStatus"],["impl Clone for MdnsAddressLookup"],["impl Clone for MemoryLookup"],["impl Clone for DhtAddressLookup"],["impl Clone for PkarrPublisher"],["impl Clone for PkarrRelayClient"],["impl Clone for PkarrResolver"],["impl Clone for ConcurrentAddressLookup"],["impl Clone for Item"],["impl Clone for N0"],["impl Clone for BindOpts"],["impl Clone for ConnectOptions"],["impl Clone for ConnectionInfo"],["impl Clone for DirectAddr"],["impl Clone for Endpoint"],["impl Clone for HandshakeCompleted"],["impl Clone for IncomingZeroRtt"],["impl Clone for OutgoingZeroRtt"],["impl Clone for PathInfo"],["impl Clone for PathInfoList"],["impl Clone for PathWatcher"],["impl Clone for QuicTransportConfig"],["impl Clone for QuicTransportConfigBuilder"],["impl Clone for RemoteEndpointIdError"],["impl Clone for RemoteInfo"],["impl Clone for ServerConfig"],["impl Clone for ServerConfigBuilder"],["impl Clone for TransportAddrInfo"],["impl Clone for EndpointMetrics"],["impl Clone for Router"],["impl Clone for Report"],["impl Clone for QlogFileGroup"],["impl<P: Clone + ProtocolHandler + Clone> Clone for AccessLimit<P>"],["impl<State: Clone + ConnectionState> Clone for Connection<State>
    where\n State::Data: Clone,
    "]]],["iroh_base",[["impl Clone for TransportAddr"],["impl Clone for EndpointAddr"],["impl Clone for PublicKey"],["impl Clone for RelayUrl"],["impl Clone for SecretKey"],["impl Clone for Signature"]]],["iroh_bench",[["impl Clone for Commands"],["impl Clone for Opt"],["impl Clone for Opt"]]],["iroh_dns_server",[["impl Clone for CertMode"],["impl Clone for RateLimitConfig"],["impl Clone for StoreConfig"],["impl Clone for DnsConfig"],["impl Clone for DnsHandler"],["impl Clone for Handle"],["impl Clone for HttpConfig"],["impl Clone for HttpsConfig"],["impl Clone for AppState"],["impl Clone for ZoneStore"]]],["iroh_relay",[["impl Clone for DnsProtocol"],["impl Clone for KeyCache"],["impl Clone for FrameType"],["impl Clone for Mechanism"],["impl Clone for ClientToRelayMsg"],["impl Clone for RelayToClientMsg"],["impl Clone for Access"],["impl Clone for ClientBuilder"],["impl Clone for Builder"],["impl Clone for DnsResolver"],["impl Clone for TxtRecordData"],["impl Clone for EndpointData"],["impl Clone for EndpointInfo"],["impl Clone for UserData"],["impl Clone for Datagrams"],["impl Clone for QuicClient"],["impl Clone for Clients"],["impl Clone for RelayService"],["impl Clone for TlsConfig"],["impl Clone for ClientRateLimit"],["impl Clone for RelayMetrics"],["impl Clone for RelayConfig"],["impl Clone for RelayMap"],["impl Clone for RelayQuicConfig"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Clone for Error"],["impl Clone for DiscoveryEvent"],["impl Clone for AuthenticationError"],["impl Clone for ConnectingError"],["impl Clone for DirectAddrType"],["impl Clone for IncomingAddr"],["impl Clone for RelayMode"],["impl Clone for Source"],["impl Clone for TransportAddrUsage"],["impl Clone for ZeroRttStatus"],["impl Clone for MdnsAddressLookup"],["impl Clone for MemoryLookup"],["impl Clone for DhtAddressLookup"],["impl Clone for PkarrPublisher"],["impl Clone for PkarrRelayClient"],["impl Clone for PkarrRelayClientBuilder"],["impl Clone for PkarrResolver"],["impl Clone for ConcurrentAddressLookup"],["impl Clone for Item"],["impl Clone for N0"],["impl Clone for N0DisableRelay"],["impl Clone for BindOpts"],["impl Clone for ConnectOptions"],["impl Clone for ConnectionInfo"],["impl Clone for DirectAddr"],["impl Clone for Endpoint"],["impl Clone for HandshakeCompleted"],["impl Clone for IncomingZeroRtt"],["impl Clone for OutgoingZeroRtt"],["impl Clone for PathInfo"],["impl Clone for PathInfoList"],["impl Clone for PathWatcher"],["impl Clone for QuicTransportConfig"],["impl Clone for QuicTransportConfigBuilder"],["impl Clone for RemoteEndpointIdError"],["impl Clone for RemoteInfo"],["impl Clone for ServerConfig"],["impl Clone for ServerConfigBuilder"],["impl Clone for TransportAddrInfo"],["impl Clone for EndpointMetrics"],["impl Clone for Router"],["impl Clone for Report"],["impl Clone for QlogFileGroup"],["impl<P: Clone + ProtocolHandler + Clone> Clone for AccessLimit<P>"],["impl<State: Clone + ConnectionState> Clone for Connection<State>
    where\n State::Data: Clone,
    "]]],["iroh_base",[["impl Clone for TransportAddr"],["impl Clone for EndpointAddr"],["impl Clone for PublicKey"],["impl Clone for RelayUrl"],["impl Clone for SecretKey"],["impl Clone for Signature"]]],["iroh_bench",[["impl Clone for Commands"],["impl Clone for Opt"],["impl Clone for Opt"]]],["iroh_dns_server",[["impl Clone for CertMode"],["impl Clone for RateLimitConfig"],["impl Clone for StoreConfig"],["impl Clone for DnsConfig"],["impl Clone for DnsHandler"],["impl Clone for Handle"],["impl Clone for HttpConfig"],["impl Clone for HttpsConfig"],["impl Clone for AppState"],["impl Clone for ZoneStore"]]],["iroh_relay",[["impl Clone for DnsProtocol"],["impl Clone for KeyCache"],["impl Clone for FrameType"],["impl Clone for Mechanism"],["impl Clone for ClientToRelayMsg"],["impl Clone for RelayToClientMsg"],["impl Clone for Access"],["impl Clone for ClientBuilder"],["impl Clone for Builder"],["impl Clone for DnsResolver"],["impl Clone for TxtRecordData"],["impl Clone for AddrFilter"],["impl Clone for EndpointData"],["impl Clone for EndpointInfo"],["impl Clone for UserData"],["impl Clone for Datagrams"],["impl Clone for QuicClient"],["impl Clone for Clients"],["impl Clone for RelayService"],["impl Clone for TlsConfig"],["impl Clone for ClientRateLimit"],["impl Clone for RelayMetrics"],["impl Clone for RelayConfig"],["impl Clone for RelayMap"],["impl Clone for RelayQuicConfig"],["impl Clone for CaRootsConfig"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[13102,1594,770,2860,6872]} \ No newline at end of file +//{"start":57,"fragment_lengths":[14014,1594,770,2860,7451]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/cmp/trait.Eq.js b/pr/3958/docs/trait.impl/core/cmp/trait.Eq.js index 7e0b68564a..e6d995e817 100644 --- a/pr/3958/docs/trait.impl/core/cmp/trait.Eq.js +++ b/pr/3958/docs/trait.impl/core/cmp/trait.Eq.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Eq for DiscoveryEvent"],["impl Eq for DirectAddrType"],["impl Eq for RelayMode"],["impl Eq for Source"],["impl Eq for Item"],["impl Eq for BindOpts"],["impl Eq for DirectAddr"],["impl Eq for PathInfo"],["impl Eq for PathInfoList"],["impl Eq for Report"]]],["iroh_base",[["impl Eq for TransportAddr"],["impl Eq for EndpointAddr"],["impl Eq for PublicKey"],["impl Eq for RelayUrl"],["impl Eq for Signature"]]],["iroh_dns_server",[["impl Eq for CertMode"]]],["iroh_relay",[["impl Eq for DnsProtocol"],["impl Eq for FrameType"],["impl Eq for Mechanism"],["impl Eq for ClientToRelayMsg"],["impl Eq for RelayToClientMsg"],["impl Eq for Access"],["impl Eq for EndpointData"],["impl Eq for EndpointInfo"],["impl Eq for UserData"],["impl Eq for Datagrams"],["impl Eq for RelayConfig"],["impl Eq for RelayMap"],["impl Eq for RelayQuicConfig"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Eq for DiscoveryEvent"],["impl Eq for DirectAddrType"],["impl Eq for IncomingAddr"],["impl Eq for RelayMode"],["impl Eq for Source"],["impl Eq for Item"],["impl Eq for BindOpts"],["impl Eq for DirectAddr"],["impl Eq for PathInfo"],["impl Eq for PathInfoList"],["impl Eq for Report"]]],["iroh_base",[["impl Eq for TransportAddr"],["impl Eq for EndpointAddr"],["impl Eq for PublicKey"],["impl Eq for RelayUrl"],["impl Eq for Signature"]]],["iroh_dns_server",[["impl Eq for CertMode"]]],["iroh_relay",[["impl Eq for DnsProtocol"],["impl Eq for FrameType"],["impl Eq for Mechanism"],["impl Eq for ClientToRelayMsg"],["impl Eq for RelayToClientMsg"],["impl Eq for Access"],["impl Eq for EndpointData"],["impl Eq for EndpointInfo"],["impl Eq for UserData"],["impl Eq for Datagrams"],["impl Eq for RelayConfig"],["impl Eq for RelayMap"],["impl Eq for RelayQuicConfig"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[2581,1268,284,3567]} \ No newline at end of file +//{"start":57,"fragment_lengths":[2841,1268,284,3567]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/cmp/trait.PartialEq.js b/pr/3958/docs/trait.impl/core/cmp/trait.PartialEq.js index 1b1b416a2a..0937ebf980 100644 --- a/pr/3958/docs/trait.impl/core/cmp/trait.PartialEq.js +++ b/pr/3958/docs/trait.impl/core/cmp/trait.PartialEq.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl PartialEq for DiscoveryEvent"],["impl PartialEq for DirectAddrType"],["impl PartialEq for RelayMode"],["impl PartialEq for Source"],["impl PartialEq for Item"],["impl PartialEq for BindOpts"],["impl PartialEq for DirectAddr"],["impl PartialEq for PathInfo"],["impl PartialEq for PathInfoList"],["impl PartialEq for Report"]]],["iroh_base",[["impl PartialEq for TransportAddr"],["impl PartialEq for EndpointAddr"],["impl PartialEq for PublicKey"],["impl PartialEq for RelayUrl"],["impl PartialEq for Signature"]]],["iroh_dns_server",[["impl PartialEq for CertMode"]]],["iroh_relay",[["impl PartialEq for DnsProtocol"],["impl PartialEq for FrameType"],["impl PartialEq for Mechanism"],["impl PartialEq for ClientToRelayMsg"],["impl PartialEq for RelayToClientMsg"],["impl PartialEq for Access"],["impl PartialEq for EndpointData"],["impl PartialEq for EndpointInfo"],["impl PartialEq for UserData"],["impl PartialEq for Datagrams"],["impl PartialEq for RelayConfig"],["impl PartialEq for RelayMap"],["impl PartialEq for RelayQuicConfig"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl PartialEq for DiscoveryEvent"],["impl PartialEq for DirectAddrType"],["impl PartialEq for IncomingAddr"],["impl PartialEq for RelayMode"],["impl PartialEq for Source"],["impl PartialEq for Item"],["impl PartialEq for BindOpts"],["impl PartialEq for DirectAddr"],["impl PartialEq for PathInfo"],["impl PartialEq for PathInfoList"],["impl PartialEq for Report"]]],["iroh_base",[["impl PartialEq for TransportAddr"],["impl PartialEq for EndpointAddr"],["impl PartialEq for PublicKey"],["impl PartialEq for RelayUrl"],["impl PartialEq for Signature"]]],["iroh_dns_server",[["impl PartialEq for CertMode"]]],["iroh_relay",[["impl PartialEq for DnsProtocol"],["impl PartialEq for FrameType"],["impl PartialEq for Mechanism"],["impl PartialEq for ClientToRelayMsg"],["impl PartialEq for RelayToClientMsg"],["impl PartialEq for Access"],["impl PartialEq for EndpointData"],["impl PartialEq for EndpointInfo"],["impl PartialEq for UserData"],["impl PartialEq for Datagrams"],["impl PartialEq for RelayConfig"],["impl PartialEq for RelayMap"],["impl PartialEq for RelayQuicConfig"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[2791,1373,305,3840]} \ No newline at end of file +//{"start":57,"fragment_lengths":[3072,1373,305,3840]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/convert/trait.From.js b/pr/3958/docs/trait.impl/core/convert/trait.From.js index 2185d3c95e..1f7f16237e 100644 --- a/pr/3958/docs/trait.impl/core/convert/trait.From.js +++ b/pr/3958/docs/trait.impl/core/convert/trait.From.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl From<Infallible> for InvalidSocketAddr"],["impl From<Error> for ConnectWithOptsError"],["impl From<Error> for AnyError"],["impl From<IntoAddressLookupError> for BindError"],["impl From<IntoAddressLookupError> for AnyError"],["impl From<PkarrError> for Error"],["impl From<PkarrError> for AnyError"],["impl From<AlpnError> for AnyError"],["impl From<AuthenticationError> for ConnectingError"],["impl From<AuthenticationError> for AnyError"],["impl From<BindError> for AnyError"],["impl From<ConnectError> for AnyError"],["impl From<ConnectWithOptsError> for ConnectError"],["impl From<ConnectWithOptsError> for AnyError"],["impl From<ConnectingError> for ConnectError"],["impl From<ConnectingError> for AcceptError"],["impl From<ConnectingError> for AnyError"],["impl From<ConnectionError> for AlpnError"],["impl From<ConnectionError> for ConnectError"],["impl From<ConnectionError> for ConnectingError"],["impl From<ConnectionError> for AcceptError"],["impl From<EndpointError> for IntoAddressLookupError"],["impl From<EndpointError> for AnyError"],["impl From<InvalidSocketAddr> for AnyError"],["impl From<ConnectError> for ConnectWithOptsError"],["impl From<RelayMode> for Option<TransportConfig>"],["impl From<AcceptError> for AnyError"],["impl From<AddrParseError> for InvalidSocketAddr"],["impl From<Error> for AcceptError"],["impl From<PrefixLenError> for InvalidSocketAddr"],["impl From<Item> for EndpointInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteEndpointIdError> for AuthenticationError"],["impl From<RemoteEndpointIdError> for AcceptError"],["impl From<RemoteEndpointIdError> for AnyError"],["impl From<RetryError> for AnyError"],["impl From<TransportAddrInfo> for TransportAddr"],["impl From<AnyError> for IntoAddressLookupError"],["impl From<AnyError> for AcceptError"],["impl<T> From<T> for ConcurrentAddressLookup
    where\n T: IntoIterator<Item = Box<dyn AddressLookup>>,
    "],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["iroh_base",[["impl From<KeyParsingError> for AnyError"],["impl From<Url> for RelayUrl"],["impl From<PublicKey> for EndpointAddr"],["impl From<RelayUrl> for Url"],["impl From<RelayUrlParseError> for AnyError"],["impl From<SignatureError> for AnyError"],["impl From<DecodeError> for KeyParsingError"],["impl From<Error> for KeyParsingError"],["impl From<[u8; 32]> for SecretKey"]]],["iroh_relay",[["impl From<ConnectError> for AnyError"],["impl From<DialError> for ConnectError"],["impl From<DialError> for AnyError"],["impl From<RecvError> for AnyError"],["impl From<SendError> for AnyError"],["impl From<DnsError> for DialError"],["impl From<DnsError> for LookupError"],["impl From<DnsError> for AnyError"],["impl From<LookupError> for AnyError"],["impl From<DecodingError> for ParseError"],["impl From<DecodingError> for AnyError"],["impl From<EncodingError> for AnyError"],["impl From<ParseError> for LookupError"],["impl From<ParseError> for AnyError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for AnyError"],["impl From<Error> for ConnectError"],["impl From<Error> for AcceptError"],["impl From<Error> for AnyError"],["impl From<Error> for RecvError"],["impl From<Error> for RecvError"],["impl From<Error> for AnyError"],["impl From<Error> for AnyError"],["impl From<HandleFrameError> for RunError"],["impl From<HandleFrameError> for AnyError"],["impl From<RunError> for AnyError"],["impl From<WriteFrameError> for HandleFrameError"],["impl From<WriteFrameError> for AnyError"],["impl From<SpawnError> for AnyError"],["impl From<SupervisorError> for AnyError"],["impl From<AcceptError> for ConnectionHandlerError"],["impl From<AcceptError> for AnyError"],["impl From<ConnectionHandlerError> for AnyError"],["impl From<ServeConnectionError> for AnyError"],["impl From<RecvError> for HandleFrameError"],["impl From<RecvError> for AnyError"],["impl From<SendError> for WriteFrameError"],["impl From<SendError> for AnyError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Utf8Error> for ParseError"],["impl From<Utf8Error> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for DialError"],["impl From<EndpointInfo> for EndpointAddr"],["impl From<MaxLengthExceededError> for AnyError"],["impl From<ForwardPacketError> for HandleFrameError"],["impl From<ForwardPacketError> for RunError"],["impl From<ForwardPacketError> for AnyError"],["impl From<InvalidBucketConfig> for AcceptError"],["impl From<InvalidBucketConfig> for AnyError"],["impl From<RelayConfig> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["impl From<Elapsed> for WriteFrameError"],["impl From<EndpointAddr> for EndpointData"],["impl From<EndpointAddr> for EndpointInfo"],["impl From<Error> for ConnectError"],["impl From<Error> for ConnectError"],["impl From<Error> for DialError"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<JoinError> for SupervisorError"],["impl From<KeyParsingError> for Error"],["impl From<RecvError> for Error"],["impl From<RelayUrl> for RelayConfig"],["impl From<RelayUrl> for RelayMap"],["impl From<ResolveError> for DnsError"],["impl<E: StackError + 'static> From<StaggeredError<E>> for AnyError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl From<Infallible> for InvalidSocketAddr"],["impl From<AddressLookupBuilderError> for BindError"],["impl From<AddressLookupBuilderError> for AnyError"],["impl From<Error> for ConnectWithOptsError"],["impl From<Error> for AnyError"],["impl From<PkarrError> for Error"],["impl From<PkarrError> for AnyError"],["impl From<AlpnError> for AnyError"],["impl From<AuthenticationError> for ConnectingError"],["impl From<AuthenticationError> for AnyError"],["impl From<BindError> for AnyError"],["impl From<ConnectError> for AnyError"],["impl From<ConnectWithOptsError> for ConnectError"],["impl From<ConnectWithOptsError> for AnyError"],["impl From<ConnectingError> for ConnectError"],["impl From<ConnectingError> for AcceptError"],["impl From<ConnectingError> for AnyError"],["impl From<ConnectionError> for AlpnError"],["impl From<ConnectionError> for ConnectError"],["impl From<ConnectionError> for ConnectingError"],["impl From<ConnectionError> for AcceptError"],["impl From<EndpointError> for AddressLookupBuilderError"],["impl From<EndpointError> for AnyError"],["impl From<IncomingAddr> for TransportAddr"],["impl From<InvalidSocketAddr> for AnyError"],["impl From<ConnectError> for ConnectWithOptsError"],["impl From<RelayMode> for Option<TransportConfig>"],["impl From<AcceptError> for AnyError"],["impl From<AddrParseError> for InvalidSocketAddr"],["impl From<Error> for AcceptError"],["impl From<PrefixLenError> for InvalidSocketAddr"],["impl From<Item> for EndpointInfo"],["impl From<ClosedStream> for AcceptError"],["impl From<RemoteEndpointIdError> for AuthenticationError"],["impl From<RemoteEndpointIdError> for AcceptError"],["impl From<RemoteEndpointIdError> for AnyError"],["impl From<RetryError> for AnyError"],["impl From<TransportAddrInfo> for TransportAddr"],["impl From<AnyError> for AddressLookupBuilderError"],["impl From<AnyError> for AcceptError"],["impl<T> From<T> for ConcurrentAddressLookup
    where\n T: IntoIterator<Item = Box<dyn AddressLookup>>,
    "],["impl<T: ProtocolHandler> From<T> for Box<dyn DynProtocolHandler>"]]],["iroh_base",[["impl From<KeyParsingError> for AnyError"],["impl From<Url> for RelayUrl"],["impl From<PublicKey> for EndpointAddr"],["impl From<RelayUrl> for Url"],["impl From<RelayUrlParseError> for AnyError"],["impl From<SignatureError> for AnyError"],["impl From<DecodeError> for KeyParsingError"],["impl From<Error> for KeyParsingError"],["impl From<[u8; 32]> for SecretKey"]]],["iroh_relay",[["impl From<KeyParsingError> for Error"],["impl From<ConnectError> for AnyError"],["impl From<DialError> for ConnectError"],["impl From<DialError> for AnyError"],["impl From<RecvError> for AnyError"],["impl From<SendError> for AnyError"],["impl From<DnsError> for DialError"],["impl From<DnsError> for LookupError"],["impl From<DnsError> for AnyError"],["impl From<LookupError> for AnyError"],["impl From<DecodingError> for ParseError"],["impl From<DecodingError> for AnyError"],["impl From<EncodingError> for AnyError"],["impl From<ParseError> for LookupError"],["impl From<ParseError> for AnyError"],["impl From<FrameType> for u32"],["impl From<FrameType> for VarInt"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for Error"],["impl From<FrameTypeError> for AnyError"],["impl From<Error> for ConnectError"],["impl From<Error> for AcceptError"],["impl From<Error> for AnyError"],["impl From<Error> for RecvError"],["impl From<Error> for RecvError"],["impl From<Error> for AnyError"],["impl From<Error> for AnyError"],["impl From<HandleFrameError> for RunError"],["impl From<HandleFrameError> for AnyError"],["impl From<RunError> for AnyError"],["impl From<WriteFrameError> for HandleFrameError"],["impl From<WriteFrameError> for AnyError"],["impl From<SpawnError> for AnyError"],["impl From<SupervisorError> for AnyError"],["impl From<AcceptError> for ConnectionHandlerError"],["impl From<AcceptError> for AnyError"],["impl From<ConnectionHandlerError> for AnyError"],["impl From<ServeConnectionError> for AnyError"],["impl From<RecvError> for HandleFrameError"],["impl From<RecvError> for AnyError"],["impl From<SendError> for WriteFrameError"],["impl From<SendError> for AnyError"],["impl From<Vec<Box<[u8]>>> for TxtRecordData"],["impl From<Utf8Error> for ParseError"],["impl From<Utf8Error> for Error"],["impl From<Error> for ConnectError"],["impl From<Error> for DialError"],["impl From<EndpointAddr> for EndpointData"],["impl From<EndpointAddr> for EndpointInfo"],["impl From<RelayUrl> for RelayConfig"],["impl From<RelayUrl> for RelayMap"],["impl From<EndpointInfo> for EndpointAddr"],["impl From<MaxLengthExceededError> for AnyError"],["impl From<ForwardPacketError> for HandleFrameError"],["impl From<ForwardPacketError> for RunError"],["impl From<ForwardPacketError> for AnyError"],["impl From<InvalidBucketConfig> for AcceptError"],["impl From<InvalidBucketConfig> for AnyError"],["impl From<RelayConfig> for RelayMap"],["impl From<ConnectError> for Error"],["impl From<ConnectionError> for Error"],["impl From<Elapsed> for DialError"],["impl From<Elapsed> for DnsError"],["impl From<Elapsed> for WriteFrameError"],["impl From<Error> for ConnectError"],["impl From<Error> for ConnectError"],["impl From<Error> for DialError"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for RecvError"],["impl From<Error> for SendError"],["impl From<JoinError> for SupervisorError"],["impl From<RecvError> for Error"],["impl From<ResolveError> for DnsError"],["impl<E: StackError + 'static> From<StaggeredError<E>> for AnyError"],["impl<T: AsRef<[u8]>> From<T> for Datagrams"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[16172,3090,27662]} \ No newline at end of file +//{"start":57,"fragment_lengths":[16598,3090,28438]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/default/trait.Default.js b/pr/3958/docs/trait.impl/core/default/trait.Default.js index c3c3a7c563..a43107874e 100644 --- a/pr/3958/docs/trait.impl/core/default/trait.Default.js +++ b/pr/3958/docs/trait.impl/core/default/trait.Default.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Default for MdnsAddressLookupBuilder"],["impl Default for MemoryLookup"],["impl Default for Builder"],["impl Default for DhtAddressLookup"],["impl Default for ConcurrentAddressLookup"],["impl Default for N0"],["impl Default for BindOpts"],["impl Default for ConnectOptions"],["impl Default for PathInfoList"],["impl Default for QuicTransportConfig"],["impl Default for EndpointMetrics"],["impl Default for Metrics"],["impl Default for Metrics"],["impl Default for Report"]]],["iroh_bench",[["impl Default for Stats"],["impl Default for StreamStats"],["impl Default for ClientStats"]]],["iroh_dns_server",[["impl Default for &RateLimitConfig"],["impl Default for BootstrapOption"],["impl Default for RateLimitConfig"],["impl Default for Config"],["impl Default for MainlineConfig"],["impl Default for StoreConfig"],["impl Default for Metrics"]]],["iroh_relay",[["impl Default for DnsProtocol"],["impl Default for Builder"],["impl Default for DnsResolver"],["impl Default for EndpointData"],["impl Default for Clients"],["impl Default for Handlers"],["impl Default for Limits"],["impl Default for Metrics"],["impl Default for RelayMetrics"],["impl Default for PingTracker"],["impl Default for RelayQuicConfig"],["impl<EC: Default + Debug, EA: Default + Debug> Default for ServerConfig<EC, EA>"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Default for MdnsAddressLookupBuilder"],["impl Default for MemoryLookup"],["impl Default for Builder"],["impl Default for DhtAddressLookup"],["impl Default for ConcurrentAddressLookup"],["impl Default for N0"],["impl Default for N0DisableRelay"],["impl Default for BindOpts"],["impl Default for ConnectOptions"],["impl Default for PathInfoList"],["impl Default for QuicTransportConfig"],["impl Default for EndpointMetrics"],["impl Default for Metrics"],["impl Default for Metrics"],["impl Default for Report"]]],["iroh_bench",[["impl Default for Stats"],["impl Default for StreamStats"],["impl Default for ClientStats"]]],["iroh_dns_server",[["impl Default for &RateLimitConfig"],["impl Default for BootstrapOption"],["impl Default for RateLimitConfig"],["impl Default for Config"],["impl Default for MainlineConfig"],["impl Default for StoreConfig"],["impl Default for Metrics"]]],["iroh_relay",[["impl Default for DnsProtocol"],["impl Default for Builder"],["impl Default for DnsResolver"],["impl Default for AddrFilter"],["impl Default for EndpointData"],["impl Default for Clients"],["impl Default for Handlers"],["impl Default for Limits"],["impl Default for Metrics"],["impl Default for RelayMetrics"],["impl Default for PingTracker"],["impl Default for RelayQuicConfig"],["impl Default for CaRootsConfig"],["impl<EC: Default + Debug, EA: Default + Debug> Default for ServerConfig<EC, EA>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[4226,862,2149,4094]} \ No newline at end of file +//{"start":57,"fragment_lengths":[4538,862,2149,4693]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/error/trait.Error.js b/pr/3958/docs/trait.impl/core/error/trait.Error.js index 9541f91f0e..ccc0b9b57c 100644 --- a/pr/3958/docs/trait.impl/core/error/trait.Error.js +++ b/pr/3958/docs/trait.impl/core/error/trait.Error.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Error for Error"],["impl Error for IntoAddressLookupError"],["impl Error for PkarrError"],["impl Error for AlpnError"],["impl Error for AuthenticationError"],["impl Error for BindError"],["impl Error for ConnectError"],["impl Error for ConnectWithOptsError"],["impl Error for ConnectingError"],["impl Error for EndpointError"],["impl Error for InvalidSocketAddr"],["impl Error for AcceptError"],["impl Error for RemoteEndpointIdError"],["impl Error for RetryError"]]],["iroh_base",[["impl Error for KeyParsingError"],["impl Error for RelayUrlParseError"],["impl Error for SignatureError"]]],["iroh_relay",[["impl Error for ConnectError"],["impl Error for DialError"],["impl Error for RecvError"],["impl Error for SendError"],["impl Error for DnsError"],["impl Error for LookupError"],["impl Error for DecodingError"],["impl Error for EncodingError"],["impl Error for ParseError"],["impl Error for FrameTypeError"],["impl Error for Error"],["impl Error for Error"],["impl Error for Error"],["impl Error for HandleFrameError"],["impl Error for RunError"],["impl Error for WriteFrameError"],["impl Error for SpawnError"],["impl Error for SupervisorError"],["impl Error for AcceptError"],["impl Error for ConnectionHandlerError"],["impl Error for ServeConnectionError"],["impl Error for RecvError"],["impl Error for SendError"],["impl Error for MaxLengthExceededError"],["impl Error for ForwardPacketError"],["impl Error for InvalidBucketConfig"],["impl<E: StackError + 'static> Error for StaggeredError<E>"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Error for AddressLookupBuilderError"],["impl Error for Error"],["impl Error for PkarrError"],["impl Error for AlpnError"],["impl Error for AuthenticationError"],["impl Error for BindError"],["impl Error for ConnectError"],["impl Error for ConnectWithOptsError"],["impl Error for ConnectingError"],["impl Error for EndpointError"],["impl Error for InvalidSocketAddr"],["impl Error for AcceptError"],["impl Error for RemoteEndpointIdError"],["impl Error for RetryError"]]],["iroh_base",[["impl Error for KeyParsingError"],["impl Error for RelayUrlParseError"],["impl Error for SignatureError"]]],["iroh_relay",[["impl Error for ConnectError"],["impl Error for DialError"],["impl Error for RecvError"],["impl Error for SendError"],["impl Error for DnsError"],["impl Error for LookupError"],["impl Error for DecodingError"],["impl Error for EncodingError"],["impl Error for ParseError"],["impl Error for FrameTypeError"],["impl Error for Error"],["impl Error for Error"],["impl Error for Error"],["impl Error for HandleFrameError"],["impl Error for RunError"],["impl Error for WriteFrameError"],["impl Error for SpawnError"],["impl Error for SupervisorError"],["impl Error for AcceptError"],["impl Error for ConnectionHandlerError"],["impl Error for ServeConnectionError"],["impl Error for RecvError"],["impl Error for SendError"],["impl Error for MaxLengthExceededError"],["impl Error for ForwardPacketError"],["impl Error for InvalidBucketConfig"],["impl<E: StackError + 'static> Error for StaggeredError<E>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[3968,853,7958]} \ No newline at end of file +//{"start":57,"fragment_lengths":[3977,853,7958]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/fmt/trait.Debug.js b/pr/3958/docs/trait.impl/core/fmt/trait.Debug.js index 517c5025fe..11deb0ad2b 100644 --- a/pr/3958/docs/trait.impl/core/fmt/trait.Debug.js +++ b/pr/3958/docs/trait.impl/core/fmt/trait.Debug.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Debug for Error"],["impl Debug for IntoAddressLookupError"],["impl Debug for DiscoveryEvent"],["impl Debug for PkarrError"],["impl Debug for AfterHandshakeOutcome"],["impl Debug for AlpnError"],["impl Debug for AuthenticationError"],["impl Debug for BeforeConnectOutcome"],["impl Debug for BindError"],["impl Debug for ConnectError"],["impl Debug for ConnectWithOptsError"],["impl Debug for ConnectingError"],["impl Debug for DirectAddrType"],["impl Debug for EndpointError"],["impl Debug for InvalidSocketAddr"],["impl Debug for RelayMode"],["impl Debug for Source"],["impl Debug for TransportAddrUsage"],["impl Debug for ZeroRttStatus"],["impl Debug for AcceptError"],["impl Debug for DnsAddressLookup"],["impl Debug for DnsAddressLookupBuilder"],["impl Debug for MdnsAddressLookup"],["impl Debug for MdnsAddressLookupBuilder"],["impl Debug for MemoryLookup"],["impl Debug for Builder"],["impl Debug for DhtAddressLookup"],["impl Debug for PkarrPublisher"],["impl Debug for PkarrPublisherBuilder"],["impl Debug for PkarrRelayClient"],["impl Debug for PkarrResolver"],["impl Debug for PkarrResolverBuilder"],["impl Debug for ConcurrentAddressLookup"],["impl Debug for Item"],["impl Debug for N0"],["impl Debug for Accepting"],["impl Debug for BindOpts"],["impl Debug for Builder"],["impl Debug for ConnectOptions"],["impl Debug for Connecting"],["impl Debug for ConnectionInfo"],["impl Debug for DirectAddr"],["impl Debug for Endpoint"],["impl Debug for EndpointClosed"],["impl Debug for HandshakeCompleted"],["impl Debug for Incoming"],["impl Debug for IncomingZeroRtt"],["impl Debug for OutgoingZeroRtt"],["impl Debug for PathInfo"],["impl Debug for PathInfoList"],["impl Debug for PathInfoListIter"],["impl Debug for PathWatcher"],["impl Debug for QuicTransportConfig"],["impl Debug for QuicTransportConfigBuilder"],["impl Debug for RemoteEndpointIdError"],["impl Debug for RemoteInfo"],["impl Debug for RetryError"],["impl Debug for ServerConfig"],["impl Debug for ServerConfigBuilder"],["impl Debug for TransportAddrInfo"],["impl Debug for EndpointMetrics"],["impl Debug for Metrics"],["impl Debug for Metrics"],["impl Debug for Router"],["impl Debug for RouterBuilder"],["impl Debug for Report"],["impl Debug for CleanupDropGuard"],["impl Debug for DnsPkarrServer"],["impl Debug for QlogFileGroup"],["impl<'a> Debug for Accept<'a>"],["impl<P> Debug for AccessLimit<P>
    where\n P: Debug + ProtocolHandler + Clone,
    "],["impl<State: Debug + ConnectionState> Debug for Connection<State>
    where\n State::Data: Debug,
    "]]],["iroh_base",[["impl Debug for KeyParsingError"],["impl Debug for TransportAddr"],["impl Debug for EndpointAddr"],["impl Debug for PublicKey"],["impl Debug for RelayUrl"],["impl Debug for RelayUrlParseError"],["impl Debug for SecretKey"],["impl Debug for Signature"],["impl Debug for SignatureError"]]],["iroh_bench",[["impl Debug for Commands"],["impl Debug for Opt"],["impl Debug for Stats"],["impl Debug for StreamStats"],["impl Debug for TransferResult"],["impl Debug for Opt"]]],["iroh_dns_server",[["impl Debug for BootstrapOption"],["impl Debug for CertMode"],["impl Debug for RateLimitConfig"],["impl Debug for Config"],["impl Debug for MainlineConfig"],["impl Debug for MetricsConfig"],["impl Debug for StoreConfig"],["impl Debug for DnsConfig"],["impl Debug for DnsHandler"],["impl Debug for Handle"],["impl Debug for HttpConfig"],["impl Debug for HttpsConfig"],["impl Debug for Metrics"],["impl Debug for ZoneStore"]]],["iroh_relay",[["impl Debug for ConnectError"],["impl Debug for DialError"],["impl Debug for RecvError"],["impl Debug for SendError"],["impl Debug for DnsError"],["impl Debug for DnsProtocol"],["impl Debug for LookupError"],["impl Debug for DecodingError"],["impl Debug for EncodingError"],["impl Debug for ParseError"],["impl Debug for KeyCache"],["impl Debug for FrameType"],["impl Debug for FrameTypeError"],["impl Debug for Error"],["impl Debug for Mechanism"],["impl Debug for ClientToRelayMsg"],["impl Debug for Error"],["impl Debug for RelayToClientMsg"],["impl Debug for Error"],["impl Debug for HandleFrameError"],["impl Debug for RunError"],["impl Debug for WriteFrameError"],["impl Debug for Access"],["impl Debug for AccessConfig"],["impl Debug for SpawnError"],["impl Debug for SupervisorError"],["impl Debug for AcceptError"],["impl Debug for ConnectionHandlerError"],["impl Debug for ServeConnectionError"],["impl Debug for MaybeTlsStream"],["impl Debug for RecvError"],["impl Debug for SendError"],["impl Debug for Client"],["impl Debug for ClientBuilder"],["impl Debug for ClientSink"],["impl Debug for ClientStream"],["impl Debug for Builder"],["impl Debug for DnsResolver"],["impl Debug for TxtRecordData"],["impl Debug for EndpointData"],["impl Debug for EndpointInfo"],["impl Debug for MaxLengthExceededError"],["impl Debug for UserData"],["impl Debug for SuccessfulAuthentication"],["impl Debug for Datagrams"],["impl Debug for QuicClient"],["impl Debug for Client"],["impl Debug for ForwardPacketError"],["impl Debug for Clients"],["impl Debug for Handlers"],["impl Debug for RelayService"],["impl Debug for TlsConfig"],["impl Debug for InvalidBucketConfig"],["impl Debug for ClientRateLimit"],["impl Debug for Limits"],["impl Debug for Metrics"],["impl Debug for QuicConfig"],["impl Debug for RelayMetrics"],["impl Debug for Server"],["impl Debug for PingTracker"],["impl Debug for RelayConfig"],["impl Debug for RelayMap"],["impl Debug for RelayQuicConfig"],["impl<E: StackError + 'static> Debug for StaggeredError<E>"],["impl<EC: Debug, EA: Debug> Debug for CertConfig<EC, EA>"],["impl<EC: Debug, EA: Debug> Debug for RelayConfig<EC, EA>
    where\n Option<TlsConfig<EC, EA>>: Debug,
    "],["impl<EC: Debug, EA: Debug> Debug for ServerConfig<EC, EA>
    where\n Option<RelayConfig<EC, EA>>: Debug,
    "],["impl<EC: Debug, EA: Debug> Debug for TlsConfig<EC, EA>
    where\n CertConfig<EC, EA>: Debug,
    "],["impl<Loader: Debug + Send + 'static> Debug for ReloadingResolver<Loader>"],["impl<S: Debug> Debug for Config<S>"],["impl<S: Debug> Debug for RelayedStream<S>"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Debug for AddressLookupBuilderError"],["impl Debug for Error"],["impl Debug for DiscoveryEvent"],["impl Debug for PkarrError"],["impl Debug for AfterHandshakeOutcome"],["impl Debug for AlpnError"],["impl Debug for AuthenticationError"],["impl Debug for BeforeConnectOutcome"],["impl Debug for BindError"],["impl Debug for ConnectError"],["impl Debug for ConnectWithOptsError"],["impl Debug for ConnectingError"],["impl Debug for DirectAddrType"],["impl Debug for EndpointError"],["impl Debug for IncomingAddr"],["impl Debug for InvalidSocketAddr"],["impl Debug for RelayMode"],["impl Debug for Source"],["impl Debug for TransportAddrUsage"],["impl Debug for ZeroRttStatus"],["impl Debug for AcceptError"],["impl Debug for DnsAddressLookup"],["impl Debug for DnsAddressLookupBuilder"],["impl Debug for MdnsAddressLookup"],["impl Debug for MdnsAddressLookupBuilder"],["impl Debug for MemoryLookup"],["impl Debug for Builder"],["impl Debug for DhtAddressLookup"],["impl Debug for PkarrPublisher"],["impl Debug for PkarrPublisherBuilder"],["impl Debug for PkarrRelayClient"],["impl Debug for PkarrRelayClientBuilder"],["impl Debug for PkarrResolver"],["impl Debug for PkarrResolverBuilder"],["impl Debug for ConcurrentAddressLookup"],["impl Debug for Item"],["impl Debug for N0"],["impl Debug for N0DisableRelay"],["impl Debug for Accepting"],["impl Debug for BindOpts"],["impl Debug for Builder"],["impl Debug for ConnectOptions"],["impl Debug for Connecting"],["impl Debug for ConnectionInfo"],["impl Debug for DirectAddr"],["impl Debug for Endpoint"],["impl Debug for EndpointClosed"],["impl Debug for HandshakeCompleted"],["impl Debug for Incoming"],["impl Debug for IncomingZeroRtt"],["impl Debug for OutgoingZeroRtt"],["impl Debug for PathInfo"],["impl Debug for PathInfoList"],["impl Debug for PathInfoListIter"],["impl Debug for PathWatcher"],["impl Debug for QuicTransportConfig"],["impl Debug for QuicTransportConfigBuilder"],["impl Debug for RemoteEndpointIdError"],["impl Debug for RemoteInfo"],["impl Debug for RetryError"],["impl Debug for ServerConfig"],["impl Debug for ServerConfigBuilder"],["impl Debug for TransportAddrInfo"],["impl Debug for EndpointMetrics"],["impl Debug for Metrics"],["impl Debug for Metrics"],["impl Debug for Router"],["impl Debug for RouterBuilder"],["impl Debug for Report"],["impl Debug for CleanupDropGuard"],["impl Debug for DnsPkarrServer"],["impl Debug for QlogFileGroup"],["impl<'a> Debug for Accept<'a>"],["impl<P> Debug for AccessLimit<P>
    where\n P: Debug + ProtocolHandler + Clone,
    "],["impl<State: Debug + ConnectionState> Debug for Connection<State>
    where\n State::Data: Debug,
    "]]],["iroh_base",[["impl Debug for KeyParsingError"],["impl Debug for TransportAddr"],["impl Debug for EndpointAddr"],["impl Debug for PublicKey"],["impl Debug for RelayUrl"],["impl Debug for RelayUrlParseError"],["impl Debug for SecretKey"],["impl Debug for Signature"],["impl Debug for SignatureError"]]],["iroh_bench",[["impl Debug for Commands"],["impl Debug for Opt"],["impl Debug for Stats"],["impl Debug for StreamStats"],["impl Debug for TransferResult"],["impl Debug for Opt"]]],["iroh_dns_server",[["impl Debug for BootstrapOption"],["impl Debug for CertMode"],["impl Debug for RateLimitConfig"],["impl Debug for Config"],["impl Debug for MainlineConfig"],["impl Debug for MetricsConfig"],["impl Debug for StoreConfig"],["impl Debug for DnsConfig"],["impl Debug for DnsHandler"],["impl Debug for Handle"],["impl Debug for HttpConfig"],["impl Debug for HttpsConfig"],["impl Debug for Metrics"],["impl Debug for ZoneStore"]]],["iroh_relay",[["impl Debug for ConnectError"],["impl Debug for DialError"],["impl Debug for RecvError"],["impl Debug for SendError"],["impl Debug for DnsError"],["impl Debug for DnsProtocol"],["impl Debug for LookupError"],["impl Debug for DecodingError"],["impl Debug for EncodingError"],["impl Debug for ParseError"],["impl Debug for KeyCache"],["impl Debug for FrameType"],["impl Debug for FrameTypeError"],["impl Debug for Error"],["impl Debug for Mechanism"],["impl Debug for ClientToRelayMsg"],["impl Debug for Error"],["impl Debug for RelayToClientMsg"],["impl Debug for Error"],["impl Debug for HandleFrameError"],["impl Debug for RunError"],["impl Debug for WriteFrameError"],["impl Debug for Access"],["impl Debug for AccessConfig"],["impl Debug for SpawnError"],["impl Debug for SupervisorError"],["impl Debug for AcceptError"],["impl Debug for ConnectionHandlerError"],["impl Debug for ServeConnectionError"],["impl Debug for MaybeTlsStream"],["impl Debug for RecvError"],["impl Debug for SendError"],["impl Debug for Client"],["impl Debug for ClientBuilder"],["impl Debug for ClientSink"],["impl Debug for ClientStream"],["impl Debug for Builder"],["impl Debug for DnsResolver"],["impl Debug for TxtRecordData"],["impl Debug for AddrFilter"],["impl Debug for EndpointData"],["impl Debug for EndpointInfo"],["impl Debug for MaxLengthExceededError"],["impl Debug for UserData"],["impl Debug for SuccessfulAuthentication"],["impl Debug for Datagrams"],["impl Debug for QuicClient"],["impl Debug for Client"],["impl Debug for ForwardPacketError"],["impl Debug for Clients"],["impl Debug for Handlers"],["impl Debug for RelayService"],["impl Debug for TlsConfig"],["impl Debug for InvalidBucketConfig"],["impl Debug for ClientRateLimit"],["impl Debug for Limits"],["impl Debug for Metrics"],["impl Debug for QuicConfig"],["impl Debug for RelayMetrics"],["impl Debug for Server"],["impl Debug for PingTracker"],["impl Debug for RelayConfig"],["impl Debug for RelayMap"],["impl Debug for RelayQuicConfig"],["impl Debug for CaRootsConfig"],["impl<E: StackError + 'static> Debug for StaggeredError<E>"],["impl<EC: Debug, EA: Debug> Debug for CertConfig<EC, EA>"],["impl<EC: Debug, EA: Debug> Debug for RelayConfig<EC, EA>
    where\n Option<TlsConfig<EC, EA>>: Debug,
    "],["impl<EC: Debug, EA: Debug> Debug for ServerConfig<EC, EA>
    where\n Option<RelayConfig<EC, EA>>: Debug,
    "],["impl<EC: Debug, EA: Debug> Debug for TlsConfig<EC, EA>
    where\n CertConfig<EC, EA>: Debug,
    "],["impl<Loader: Debug + Send + 'static> Debug for ReloadingResolver<Loader>"],["impl<S: Debug> Debug for Config<S>"],["impl<S: Debug> Debug for RelayedStream<S>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[21542,2395,1583,3987,23263]} \ No newline at end of file +//{"start":57,"fragment_lengths":[22451,2395,1583,3987,23834]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/fmt/trait.Display.js b/pr/3958/docs/trait.impl/core/fmt/trait.Display.js index 822d14d9cd..ddce21fb2a 100644 --- a/pr/3958/docs/trait.impl/core/fmt/trait.Display.js +++ b/pr/3958/docs/trait.impl/core/fmt/trait.Display.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Display for Error"],["impl Display for IntoAddressLookupError"],["impl Display for PkarrError"],["impl Display for AlpnError"],["impl Display for AuthenticationError"],["impl Display for BindError"],["impl Display for ConnectError"],["impl Display for ConnectWithOptsError"],["impl Display for ConnectingError"],["impl Display for DirectAddrType"],["impl Display for EndpointError"],["impl Display for InvalidSocketAddr"],["impl Display for Source"],["impl Display for AcceptError"],["impl Display for RemoteEndpointIdError"],["impl Display for RetryError"],["impl Display for Report"]]],["iroh_base",[["impl Display for KeyParsingError"],["impl Display for PublicKey"],["impl Display for RelayUrl"],["impl Display for RelayUrlParseError"],["impl Display for Signature"],["impl Display for SignatureError"]]],["iroh_dns_server",[["impl Display for CertMode"]]],["iroh_relay",[["impl Display for ConnectError"],["impl Display for DialError"],["impl Display for RecvError"],["impl Display for SendError"],["impl Display for DnsError"],["impl Display for LookupError"],["impl Display for DecodingError"],["impl Display for EncodingError"],["impl Display for ParseError"],["impl Display for FrameTypeError"],["impl Display for Error"],["impl Display for Error"],["impl Display for Error"],["impl Display for HandleFrameError"],["impl Display for RunError"],["impl Display for WriteFrameError"],["impl Display for SpawnError"],["impl Display for SupervisorError"],["impl Display for AcceptError"],["impl Display for ConnectionHandlerError"],["impl Display for ServeConnectionError"],["impl Display for RecvError"],["impl Display for SendError"],["impl Display for TxtRecordData"],["impl Display for MaxLengthExceededError"],["impl Display for UserData"],["impl Display for ForwardPacketError"],["impl Display for InvalidBucketConfig"],["impl Display for RelayConfig"],["impl Display for RelayMap"],["impl<E: StackError + 'static> Display for StaggeredError<E>"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Display for AddressLookupBuilderError"],["impl Display for Error"],["impl Display for PkarrError"],["impl Display for AlpnError"],["impl Display for AuthenticationError"],["impl Display for BindError"],["impl Display for ConnectError"],["impl Display for ConnectWithOptsError"],["impl Display for ConnectingError"],["impl Display for DirectAddrType"],["impl Display for EndpointError"],["impl Display for InvalidSocketAddr"],["impl Display for Source"],["impl Display for AcceptError"],["impl Display for RemoteEndpointIdError"],["impl Display for RetryError"],["impl Display for Report"]]],["iroh_base",[["impl Display for KeyParsingError"],["impl Display for PublicKey"],["impl Display for RelayUrl"],["impl Display for RelayUrlParseError"],["impl Display for Signature"],["impl Display for SignatureError"]]],["iroh_dns_server",[["impl Display for CertMode"]]],["iroh_relay",[["impl Display for ConnectError"],["impl Display for DialError"],["impl Display for RecvError"],["impl Display for SendError"],["impl Display for DnsError"],["impl Display for LookupError"],["impl Display for DecodingError"],["impl Display for EncodingError"],["impl Display for ParseError"],["impl Display for FrameTypeError"],["impl Display for Error"],["impl Display for Error"],["impl Display for Error"],["impl Display for HandleFrameError"],["impl Display for RunError"],["impl Display for WriteFrameError"],["impl Display for SpawnError"],["impl Display for SupervisorError"],["impl Display for AcceptError"],["impl Display for ConnectionHandlerError"],["impl Display for ServeConnectionError"],["impl Display for RecvError"],["impl Display for SendError"],["impl Display for TxtRecordData"],["impl Display for MaxLengthExceededError"],["impl Display for UserData"],["impl Display for ForwardPacketError"],["impl Display for InvalidBucketConfig"],["impl Display for RelayConfig"],["impl Display for RelayMap"],["impl<E: StackError + 'static> Display for StaggeredError<E>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[4784,1645,299,9122]} \ No newline at end of file +//{"start":57,"fragment_lengths":[4793,1645,299,9122]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js b/pr/3958/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js index 53eb8f19b7..6823ee20ab 100644 --- a/pr/3958/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js +++ b/pr/3958/docs/trait.impl/core/iter/traits/collect/trait.FromIterator.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<Arc<RelayConfig>> for RelayMap"],["impl FromIterator<RelayConfig> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"]]]]); + var implementors = Object.fromEntries([["iroh_relay",[["impl FromIterator<Box<[u8]>> for TxtRecordData"],["impl FromIterator<Arc<RelayConfig>> for RelayMap"],["impl FromIterator<RelayUrl> for RelayMap"],["impl FromIterator<RelayConfig> for RelayMap"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[1940]} \ No newline at end of file +//{"start":57,"fragment_lengths":[2062]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.Copy.js b/pr/3958/docs/trait.impl/core/marker/trait.Copy.js index 7be091ef30..044cb04290 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.Copy.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.Copy.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Copy for DirectAddrType"],["impl Copy for TransportAddrUsage"],["impl Copy for N0"]]],["iroh_base",[["impl Copy for PublicKey"],["impl Copy for Signature"]]],["iroh_bench",[["impl Copy for Commands"],["impl Copy for Opt"],["impl Copy for Opt"]]],["iroh_relay",[["impl Copy for DnsProtocol"],["impl Copy for FrameType"],["impl Copy for Mechanism"],["impl Copy for Access"],["impl Copy for ClientRateLimit"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Copy for DirectAddrType"],["impl Copy for TransportAddrUsage"],["impl Copy for N0"],["impl Copy for N0DisableRelay"]]],["iroh_base",[["impl Copy for PublicKey"],["impl Copy for Signature"]]],["iroh_bench",[["impl Copy for Commands"],["impl Copy for Opt"],["impl Copy for Opt"]]],["iroh_relay",[["impl Copy for DnsProtocol"],["impl Copy for FrameType"],["impl Copy for Mechanism"],["impl Copy for Access"],["impl Copy for ClientRateLimit"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[843,536,767,1423]} \ No newline at end of file +//{"start":57,"fragment_lengths":[1144,536,767,1423]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.Freeze.js b/pr/3958/docs/trait.impl/core/marker/trait.Freeze.js index b3d29739b2..91cc9180d7 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.Freeze.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.Freeze.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl !Freeze for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl !Freeze for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl !Freeze for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl !Freeze for AcceptError",1,["iroh::protocol::AcceptError"]],["impl !Freeze for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl !Freeze for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl !Freeze for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl !Freeze for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Freeze for Error",1,["iroh::address_lookup::Error"]],["impl Freeze for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl Freeze for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Freeze for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Freeze for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Freeze for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Freeze for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Freeze for BindError",1,["iroh::socket::BindError"]],["impl Freeze for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Freeze for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Freeze for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Freeze for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Freeze for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Freeze for Source",1,["iroh::socket::remote_map::Source"]],["impl Freeze for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Freeze for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Freeze for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Freeze for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Freeze for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Freeze for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Freeze for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Freeze for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Freeze for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Freeze for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Freeze for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Freeze for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Freeze for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Freeze for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Freeze for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Freeze for Item",1,["iroh::address_lookup::Item"]],["impl Freeze for N0",1,["iroh::endpoint::presets::N0"]],["impl Freeze for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl Freeze for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Freeze for Builder",1,["iroh::endpoint::Builder"]],["impl Freeze for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Freeze for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Freeze for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Freeze for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Freeze for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Freeze for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Freeze for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Freeze for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Freeze for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Freeze for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Freeze for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Freeze for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Freeze for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Freeze for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Freeze for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Freeze for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Freeze for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Freeze for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Freeze for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Freeze for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Freeze for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Freeze for Router",1,["iroh::protocol::Router"]],["impl Freeze for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Freeze for Report",1,["iroh::net_report::report::Report"]],["impl Freeze for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Freeze for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Freeze for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !Freeze for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> Freeze for AccessLimit<P>
    where\n P: Freeze,
    ",1,["iroh::protocol::AccessLimit"]],["impl<State> Freeze for Connection<State>
    where\n <State as ConnectionState>::Data: Freeze,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Freeze for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Freeze for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Freeze for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Freeze for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Freeze for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Freeze for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Freeze for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Freeze for Signature",1,["iroh_base::key::Signature"]],["impl Freeze for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Freeze for Commands",1,["iroh_bench::Commands"]],["impl Freeze for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Freeze for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Freeze for Opt",1,["iroh_bench::s2n::Opt"]],["impl Freeze for Stats",1,["iroh_bench::stats::Stats"]],["impl Freeze for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Freeze for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Freeze for ClientStats",1,["iroh_bench::ClientStats"]],["impl Freeze for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl !Freeze for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Freeze for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Freeze for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Freeze for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Freeze for Config",1,["iroh_dns_server::config::Config"]],["impl Freeze for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Freeze for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Freeze for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Freeze for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Freeze for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Freeze for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Freeze for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Freeze for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Freeze for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Freeze for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Freeze for Server",1,["iroh_dns_server::server::Server"]],["impl Freeze for AppState",1,["iroh_dns_server::state::AppState"]],["impl Freeze for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl !Freeze for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl !Freeze for Error",1,["iroh_relay::protos::handshake::Error"]],["impl !Freeze for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl !Freeze for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl !Freeze for Error",1,["iroh_relay::quic::Error"]],["impl !Freeze for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl !Freeze for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl !Freeze for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl !Freeze for Client",1,["iroh_relay::client::Client"]],["impl !Freeze for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl !Freeze for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl !Freeze for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Freeze for DialError",1,["iroh_relay::client::DialError"]],["impl Freeze for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Freeze for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Freeze for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Freeze for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Freeze for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Freeze for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Freeze for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Freeze for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Freeze for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Freeze for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Freeze for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Freeze for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Freeze for Error",1,["iroh_relay::protos::relay::Error"]],["impl Freeze for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Freeze for RunError",1,["iroh_relay::server::client::RunError"]],["impl Freeze for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Freeze for Access",1,["iroh_relay::server::Access"]],["impl Freeze for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Freeze for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Freeze for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Freeze for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Freeze for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Freeze for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Freeze for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Freeze for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Freeze for Builder",1,["iroh_relay::dns::Builder"]],["impl Freeze for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Freeze for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Freeze for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Freeze for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Freeze for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Freeze for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Freeze for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Freeze for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Freeze for Client",1,["iroh_relay::server::client::Client"]],["impl Freeze for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Freeze for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Freeze for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Freeze for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Freeze for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Freeze for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Freeze for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Freeze for Limits",1,["iroh_relay::server::Limits"]],["impl Freeze for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Freeze for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Freeze for Server",1,["iroh_relay::server::Server"]],["impl Freeze for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Freeze for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Freeze for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Freeze for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> Freeze for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> Freeze for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> Freeze for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> Freeze for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> Freeze for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Freeze for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Freeze for Config<S>
    where\n S: Freeze,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Freeze for RelayedStream<S>
    where\n S: Freeze,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl !Freeze for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl !Freeze for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl !Freeze for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl !Freeze for AcceptError",1,["iroh::protocol::AcceptError"]],["impl !Freeze for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl !Freeze for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl !Freeze for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl !Freeze for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Freeze for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl Freeze for Error",1,["iroh::address_lookup::Error"]],["impl Freeze for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Freeze for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Freeze for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Freeze for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Freeze for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Freeze for BindError",1,["iroh::socket::BindError"]],["impl Freeze for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Freeze for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Freeze for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Freeze for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl Freeze for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Freeze for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Freeze for Source",1,["iroh::socket::remote_map::Source"]],["impl Freeze for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Freeze for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Freeze for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Freeze for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Freeze for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Freeze for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Freeze for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Freeze for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Freeze for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Freeze for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Freeze for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Freeze for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Freeze for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl Freeze for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Freeze for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Freeze for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Freeze for Item",1,["iroh::address_lookup::Item"]],["impl Freeze for N0",1,["iroh::endpoint::presets::N0"]],["impl Freeze for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl Freeze for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl Freeze for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Freeze for Builder",1,["iroh::endpoint::Builder"]],["impl Freeze for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Freeze for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Freeze for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Freeze for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Freeze for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Freeze for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Freeze for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Freeze for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Freeze for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Freeze for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Freeze for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Freeze for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Freeze for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Freeze for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Freeze for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Freeze for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Freeze for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Freeze for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Freeze for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Freeze for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Freeze for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Freeze for Router",1,["iroh::protocol::Router"]],["impl Freeze for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Freeze for Report",1,["iroh::net_report::report::Report"]],["impl Freeze for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Freeze for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Freeze for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !Freeze for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> Freeze for AccessLimit<P>
    where\n P: Freeze,
    ",1,["iroh::protocol::AccessLimit"]],["impl<State> Freeze for Connection<State>
    where\n <State as ConnectionState>::Data: Freeze,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Freeze for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Freeze for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Freeze for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Freeze for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Freeze for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Freeze for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Freeze for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Freeze for Signature",1,["iroh_base::key::Signature"]],["impl Freeze for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Freeze for Commands",1,["iroh_bench::Commands"]],["impl Freeze for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Freeze for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Freeze for Opt",1,["iroh_bench::s2n::Opt"]],["impl Freeze for Stats",1,["iroh_bench::stats::Stats"]],["impl Freeze for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Freeze for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Freeze for ClientStats",1,["iroh_bench::ClientStats"]],["impl Freeze for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl !Freeze for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Freeze for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Freeze for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Freeze for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Freeze for Config",1,["iroh_dns_server::config::Config"]],["impl Freeze for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Freeze for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Freeze for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Freeze for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Freeze for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Freeze for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Freeze for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Freeze for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Freeze for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Freeze for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Freeze for Server",1,["iroh_dns_server::server::Server"]],["impl Freeze for AppState",1,["iroh_dns_server::state::AppState"]],["impl Freeze for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl !Freeze for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl !Freeze for Error",1,["iroh_relay::protos::handshake::Error"]],["impl !Freeze for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl !Freeze for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl !Freeze for Error",1,["iroh_relay::quic::Error"]],["impl !Freeze for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl !Freeze for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl !Freeze for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl !Freeze for Client",1,["iroh_relay::client::Client"]],["impl !Freeze for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl !Freeze for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl !Freeze for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Freeze for DialError",1,["iroh_relay::client::DialError"]],["impl Freeze for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Freeze for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Freeze for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Freeze for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Freeze for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Freeze for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Freeze for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Freeze for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Freeze for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Freeze for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Freeze for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Freeze for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Freeze for Error",1,["iroh_relay::protos::relay::Error"]],["impl Freeze for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Freeze for RunError",1,["iroh_relay::server::client::RunError"]],["impl Freeze for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Freeze for Access",1,["iroh_relay::server::Access"]],["impl Freeze for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Freeze for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Freeze for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Freeze for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Freeze for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Freeze for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Freeze for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Freeze for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Freeze for Builder",1,["iroh_relay::dns::Builder"]],["impl Freeze for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Freeze for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Freeze for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl Freeze for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Freeze for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Freeze for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Freeze for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Freeze for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Freeze for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Freeze for Client",1,["iroh_relay::server::client::Client"]],["impl Freeze for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Freeze for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Freeze for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Freeze for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Freeze for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Freeze for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Freeze for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Freeze for Limits",1,["iroh_relay::server::Limits"]],["impl Freeze for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Freeze for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Freeze for Server",1,["iroh_relay::server::Server"]],["impl Freeze for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Freeze for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Freeze for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Freeze for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl Freeze for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> Freeze for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> Freeze for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> Freeze for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> Freeze for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> Freeze for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Freeze for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Freeze for Config<S>
    where\n S: Freeze,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Freeze for RelayedStream<S>
    where\n S: Freeze,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[25212,2822,2769,6015,24479]} \ No newline at end of file +//{"start":57,"fragment_lengths":[26303,2822,2769,6015,25149]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.Send.js b/pr/3958/docs/trait.impl/core/marker/trait.Send.js index 06b47c0e69..860eaa102d 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.Send.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.Send.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Send for Error",1,["iroh::address_lookup::Error"]],["impl Send for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl Send for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Send for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Send for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Send for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl Send for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Send for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Send for BindError",1,["iroh::socket::BindError"]],["impl Send for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl Send for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Send for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl Send for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Send for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Send for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Send for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Send for Source",1,["iroh::socket::remote_map::Source"]],["impl Send for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Send for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Send for AcceptError",1,["iroh::protocol::AcceptError"]],["impl Send for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Send for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Send for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Send for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Send for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Send for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Send for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Send for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Send for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Send for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Send for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Send for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Send for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Send for Item",1,["iroh::address_lookup::Item"]],["impl Send for N0",1,["iroh::endpoint::presets::N0"]],["impl Send for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl Send for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Send for Builder",1,["iroh::endpoint::Builder"]],["impl Send for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Send for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Send for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Send for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Send for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Send for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl Send for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Send for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl Send for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Send for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Send for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Send for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Send for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Send for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Send for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Send for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Send for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Send for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Send for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Send for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Send for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Send for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Send for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Send for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl Send for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Send for Router",1,["iroh::protocol::Router"]],["impl Send for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Send for Report",1,["iroh::net_report::report::Report"]],["impl Send for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Send for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Send for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> Send for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> Send for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> Send for Connection<State>
    where\n <State as ConnectionState>::Data: Send,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Send for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Send for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Send for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Send for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Send for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Send for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Send for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Send for Signature",1,["iroh_base::key::Signature"]],["impl Send for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Send for Commands",1,["iroh_bench::Commands"]],["impl Send for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Send for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Send for Opt",1,["iroh_bench::s2n::Opt"]],["impl Send for Stats",1,["iroh_bench::stats::Stats"]],["impl Send for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Send for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Send for ClientStats",1,["iroh_bench::ClientStats"]],["impl Send for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl Send for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Send for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Send for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Send for Config",1,["iroh_dns_server::config::Config"]],["impl Send for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Send for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Send for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Send for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Send for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Send for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Send for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Send for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Send for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Send for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Send for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Send for Server",1,["iroh_dns_server::server::Server"]],["impl Send for AppState",1,["iroh_dns_server::state::AppState"]],["impl Send for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl Send for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl Send for DialError",1,["iroh_relay::client::DialError"]],["impl Send for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Send for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Send for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Send for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Send for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Send for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Send for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Send for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Send for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Send for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Send for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Send for Error",1,["iroh_relay::protos::handshake::Error"]],["impl Send for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Send for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl Send for Error",1,["iroh_relay::protos::relay::Error"]],["impl Send for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl Send for Error",1,["iroh_relay::quic::Error"]],["impl Send for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Send for RunError",1,["iroh_relay::server::client::RunError"]],["impl Send for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Send for Access",1,["iroh_relay::server::Access"]],["impl Send for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Send for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Send for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Send for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl Send for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl Send for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Send for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl Send for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Send for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Send for Client",1,["iroh_relay::client::Client"]],["impl Send for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Send for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl Send for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Send for Builder",1,["iroh_relay::dns::Builder"]],["impl Send for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Send for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Send for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Send for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Send for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Send for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Send for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Send for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl Send for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Send for Client",1,["iroh_relay::server::client::Client"]],["impl Send for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Send for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Send for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Send for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Send for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Send for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Send for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Send for Limits",1,["iroh_relay::server::Limits"]],["impl Send for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Send for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Send for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Send for Server",1,["iroh_relay::server::Server"]],["impl Send for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Send for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Send for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Send for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> Send for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> Send for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> Send for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> Send for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> Send for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Send for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Send for Config<S>
    where\n S: Send,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Send for RelayedStream<S>
    where\n S: Send,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Send for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl Send for Error",1,["iroh::address_lookup::Error"]],["impl Send for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Send for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Send for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Send for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl Send for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Send for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Send for BindError",1,["iroh::socket::BindError"]],["impl Send for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl Send for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Send for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl Send for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Send for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Send for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl Send for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Send for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Send for Source",1,["iroh::socket::remote_map::Source"]],["impl Send for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Send for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Send for AcceptError",1,["iroh::protocol::AcceptError"]],["impl Send for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Send for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Send for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Send for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Send for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Send for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Send for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Send for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Send for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Send for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Send for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl Send for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Send for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Send for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Send for Item",1,["iroh::address_lookup::Item"]],["impl Send for N0",1,["iroh::endpoint::presets::N0"]],["impl Send for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl Send for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl Send for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Send for Builder",1,["iroh::endpoint::Builder"]],["impl Send for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Send for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Send for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Send for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Send for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Send for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl Send for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Send for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl Send for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Send for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Send for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Send for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Send for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Send for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Send for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Send for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Send for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Send for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Send for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Send for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Send for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Send for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Send for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Send for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl Send for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Send for Router",1,["iroh::protocol::Router"]],["impl Send for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Send for Report",1,["iroh::net_report::report::Report"]],["impl Send for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Send for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Send for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> Send for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> Send for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> Send for Connection<State>
    where\n <State as ConnectionState>::Data: Send,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Send for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Send for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Send for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Send for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Send for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Send for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Send for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Send for Signature",1,["iroh_base::key::Signature"]],["impl Send for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Send for Commands",1,["iroh_bench::Commands"]],["impl Send for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Send for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Send for Opt",1,["iroh_bench::s2n::Opt"]],["impl Send for Stats",1,["iroh_bench::stats::Stats"]],["impl Send for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Send for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Send for ClientStats",1,["iroh_bench::ClientStats"]],["impl Send for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl Send for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Send for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Send for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Send for Config",1,["iroh_dns_server::config::Config"]],["impl Send for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Send for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Send for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Send for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Send for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Send for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Send for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Send for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Send for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Send for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Send for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Send for Server",1,["iroh_dns_server::server::Server"]],["impl Send for AppState",1,["iroh_dns_server::state::AppState"]],["impl Send for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl Send for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl Send for DialError",1,["iroh_relay::client::DialError"]],["impl Send for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Send for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Send for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Send for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Send for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Send for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Send for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Send for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Send for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Send for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Send for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Send for Error",1,["iroh_relay::protos::handshake::Error"]],["impl Send for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Send for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl Send for Error",1,["iroh_relay::protos::relay::Error"]],["impl Send for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl Send for Error",1,["iroh_relay::quic::Error"]],["impl Send for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Send for RunError",1,["iroh_relay::server::client::RunError"]],["impl Send for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Send for Access",1,["iroh_relay::server::Access"]],["impl Send for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Send for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Send for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Send for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl Send for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl Send for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Send for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl Send for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Send for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Send for Client",1,["iroh_relay::client::Client"]],["impl Send for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Send for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl Send for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Send for Builder",1,["iroh_relay::dns::Builder"]],["impl Send for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Send for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Send for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl Send for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Send for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Send for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Send for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Send for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Send for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl Send for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Send for Client",1,["iroh_relay::server::client::Client"]],["impl Send for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Send for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Send for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Send for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Send for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Send for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Send for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Send for Limits",1,["iroh_relay::server::Limits"]],["impl Send for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Send for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Send for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Send for Server",1,["iroh_relay::server::Server"]],["impl Send for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Send for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Send for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Send for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl Send for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> Send for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> Send for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> Send for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> Send for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> Send for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Send for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Send for Config<S>
    where\n S: Send,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Send for RelayedStream<S>
    where\n S: Send,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[24584,2768,2715,5906,24029]} \ No newline at end of file +//{"start":57,"fragment_lengths":[25657,2768,2715,5906,24687]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.StructuralPartialEq.js b/pr/3958/docs/trait.impl/core/marker/trait.StructuralPartialEq.js index efdf7e988c..935510b61c 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.StructuralPartialEq.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.StructuralPartialEq.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl StructuralPartialEq for DiscoveryEvent"],["impl StructuralPartialEq for DirectAddrType"],["impl StructuralPartialEq for RelayMode"],["impl StructuralPartialEq for Source"],["impl StructuralPartialEq for Item"],["impl StructuralPartialEq for BindOpts"],["impl StructuralPartialEq for DirectAddr"],["impl StructuralPartialEq for PathInfo"],["impl StructuralPartialEq for PathInfoList"],["impl StructuralPartialEq for Report"]]],["iroh_base",[["impl StructuralPartialEq for TransportAddr"],["impl StructuralPartialEq for EndpointAddr"],["impl StructuralPartialEq for PublicKey"],["impl StructuralPartialEq for RelayUrl"],["impl StructuralPartialEq for Signature"]]],["iroh_dns_server",[["impl StructuralPartialEq for CertMode"]]],["iroh_relay",[["impl StructuralPartialEq for DnsProtocol"],["impl StructuralPartialEq for FrameType"],["impl StructuralPartialEq for Mechanism"],["impl StructuralPartialEq for ClientToRelayMsg"],["impl StructuralPartialEq for RelayToClientMsg"],["impl StructuralPartialEq for Access"],["impl StructuralPartialEq for EndpointData"],["impl StructuralPartialEq for EndpointInfo"],["impl StructuralPartialEq for UserData"],["impl StructuralPartialEq for Datagrams"],["impl StructuralPartialEq for RelayConfig"],["impl StructuralPartialEq for RelayQuicConfig"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl StructuralPartialEq for DiscoveryEvent"],["impl StructuralPartialEq for DirectAddrType"],["impl StructuralPartialEq for IncomingAddr"],["impl StructuralPartialEq for RelayMode"],["impl StructuralPartialEq for Source"],["impl StructuralPartialEq for Item"],["impl StructuralPartialEq for BindOpts"],["impl StructuralPartialEq for DirectAddr"],["impl StructuralPartialEq for PathInfo"],["impl StructuralPartialEq for PathInfoList"],["impl StructuralPartialEq for Report"]]],["iroh_base",[["impl StructuralPartialEq for TransportAddr"],["impl StructuralPartialEq for EndpointAddr"],["impl StructuralPartialEq for PublicKey"],["impl StructuralPartialEq for RelayUrl"],["impl StructuralPartialEq for Signature"]]],["iroh_dns_server",[["impl StructuralPartialEq for CertMode"]]],["iroh_relay",[["impl StructuralPartialEq for DnsProtocol"],["impl StructuralPartialEq for FrameType"],["impl StructuralPartialEq for Mechanism"],["impl StructuralPartialEq for ClientToRelayMsg"],["impl StructuralPartialEq for RelayToClientMsg"],["impl StructuralPartialEq for Access"],["impl StructuralPartialEq for EndpointData"],["impl StructuralPartialEq for EndpointInfo"],["impl StructuralPartialEq for UserData"],["impl StructuralPartialEq for Datagrams"],["impl StructuralPartialEq for RelayConfig"],["impl StructuralPartialEq for RelayQuicConfig"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[3151,1553,341,4004]} \ No newline at end of file +//{"start":57,"fragment_lengths":[3468,1553,341,4004]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.Sync.js b/pr/3958/docs/trait.impl/core/marker/trait.Sync.js index da6ae0239a..29c0fc701e 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.Sync.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.Sync.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl !Sync for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl !Sync for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Sync for Error",1,["iroh::address_lookup::Error"]],["impl Sync for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl Sync for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Sync for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Sync for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Sync for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl Sync for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Sync for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Sync for BindError",1,["iroh::socket::BindError"]],["impl Sync for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl Sync for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Sync for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl Sync for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Sync for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Sync for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Sync for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Sync for Source",1,["iroh::socket::remote_map::Source"]],["impl Sync for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Sync for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Sync for AcceptError",1,["iroh::protocol::AcceptError"]],["impl Sync for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Sync for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Sync for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Sync for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Sync for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Sync for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Sync for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Sync for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Sync for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Sync for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Sync for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Sync for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Sync for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Sync for Item",1,["iroh::address_lookup::Item"]],["impl Sync for N0",1,["iroh::endpoint::presets::N0"]],["impl Sync for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Sync for Builder",1,["iroh::endpoint::Builder"]],["impl Sync for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Sync for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Sync for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Sync for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Sync for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl Sync for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Sync for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl Sync for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Sync for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Sync for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Sync for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Sync for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Sync for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Sync for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Sync for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Sync for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Sync for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Sync for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Sync for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Sync for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Sync for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Sync for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Sync for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl Sync for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Sync for Router",1,["iroh::protocol::Router"]],["impl Sync for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Sync for Report",1,["iroh::net_report::report::Report"]],["impl Sync for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Sync for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Sync for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> Sync for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> Sync for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> Sync for Connection<State>
    where\n <State as ConnectionState>::Data: Sync,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Sync for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Sync for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Sync for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Sync for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Sync for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Sync for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Sync for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Sync for Signature",1,["iroh_base::key::Signature"]],["impl Sync for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Sync for Commands",1,["iroh_bench::Commands"]],["impl Sync for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Sync for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Sync for Opt",1,["iroh_bench::s2n::Opt"]],["impl Sync for Stats",1,["iroh_bench::stats::Stats"]],["impl Sync for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Sync for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Sync for ClientStats",1,["iroh_bench::ClientStats"]],["impl Sync for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl Sync for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Sync for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Sync for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Sync for Config",1,["iroh_dns_server::config::Config"]],["impl Sync for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Sync for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Sync for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Sync for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Sync for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Sync for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Sync for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Sync for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Sync for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Sync for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Sync for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Sync for Server",1,["iroh_dns_server::server::Server"]],["impl Sync for AppState",1,["iroh_dns_server::state::AppState"]],["impl Sync for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl Sync for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl Sync for DialError",1,["iroh_relay::client::DialError"]],["impl Sync for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Sync for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Sync for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Sync for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Sync for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Sync for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Sync for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Sync for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Sync for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Sync for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Sync for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Sync for Error",1,["iroh_relay::protos::handshake::Error"]],["impl Sync for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Sync for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl Sync for Error",1,["iroh_relay::protos::relay::Error"]],["impl Sync for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl Sync for Error",1,["iroh_relay::quic::Error"]],["impl Sync for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Sync for RunError",1,["iroh_relay::server::client::RunError"]],["impl Sync for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Sync for Access",1,["iroh_relay::server::Access"]],["impl Sync for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Sync for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Sync for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Sync for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl Sync for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl Sync for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Sync for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl Sync for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Sync for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Sync for Client",1,["iroh_relay::client::Client"]],["impl Sync for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Sync for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl Sync for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Sync for Builder",1,["iroh_relay::dns::Builder"]],["impl Sync for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Sync for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Sync for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Sync for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Sync for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Sync for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Sync for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Sync for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl Sync for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Sync for Client",1,["iroh_relay::server::client::Client"]],["impl Sync for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Sync for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Sync for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Sync for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Sync for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Sync for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Sync for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Sync for Limits",1,["iroh_relay::server::Limits"]],["impl Sync for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Sync for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Sync for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Sync for Server",1,["iroh_relay::server::Server"]],["impl Sync for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Sync for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Sync for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Sync for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> Sync for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA = EC> !Sync for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA = EC> !Sync for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA = EC> !Sync for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA = EC> !Sync for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Sync for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Sync for Config<S>
    where\n S: Sync,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Sync for RelayedStream<S>
    where\n S: Sync,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl !Sync for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl !Sync for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Sync for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl Sync for Error",1,["iroh::address_lookup::Error"]],["impl Sync for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Sync for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Sync for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Sync for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl Sync for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Sync for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Sync for BindError",1,["iroh::socket::BindError"]],["impl Sync for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl Sync for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Sync for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl Sync for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Sync for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Sync for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl Sync for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Sync for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Sync for Source",1,["iroh::socket::remote_map::Source"]],["impl Sync for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Sync for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Sync for AcceptError",1,["iroh::protocol::AcceptError"]],["impl Sync for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Sync for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Sync for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Sync for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Sync for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Sync for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Sync for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Sync for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Sync for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Sync for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Sync for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl Sync for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Sync for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Sync for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Sync for Item",1,["iroh::address_lookup::Item"]],["impl Sync for N0",1,["iroh::endpoint::presets::N0"]],["impl Sync for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl Sync for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Sync for Builder",1,["iroh::endpoint::Builder"]],["impl Sync for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Sync for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Sync for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Sync for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Sync for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl Sync for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Sync for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl Sync for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Sync for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Sync for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Sync for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Sync for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Sync for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Sync for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Sync for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Sync for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Sync for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Sync for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Sync for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Sync for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Sync for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Sync for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Sync for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl Sync for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Sync for Router",1,["iroh::protocol::Router"]],["impl Sync for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Sync for Report",1,["iroh::net_report::report::Report"]],["impl Sync for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Sync for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Sync for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> Sync for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> Sync for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> Sync for Connection<State>
    where\n <State as ConnectionState>::Data: Sync,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Sync for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Sync for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Sync for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Sync for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Sync for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Sync for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Sync for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Sync for Signature",1,["iroh_base::key::Signature"]],["impl Sync for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Sync for Commands",1,["iroh_bench::Commands"]],["impl Sync for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Sync for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Sync for Opt",1,["iroh_bench::s2n::Opt"]],["impl Sync for Stats",1,["iroh_bench::stats::Stats"]],["impl Sync for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Sync for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Sync for ClientStats",1,["iroh_bench::ClientStats"]],["impl Sync for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl Sync for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Sync for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Sync for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Sync for Config",1,["iroh_dns_server::config::Config"]],["impl Sync for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Sync for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Sync for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Sync for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Sync for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Sync for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Sync for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Sync for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Sync for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Sync for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Sync for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Sync for Server",1,["iroh_dns_server::server::Server"]],["impl Sync for AppState",1,["iroh_dns_server::state::AppState"]],["impl Sync for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl Sync for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl Sync for DialError",1,["iroh_relay::client::DialError"]],["impl Sync for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Sync for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Sync for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Sync for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Sync for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Sync for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Sync for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Sync for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Sync for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Sync for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Sync for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Sync for Error",1,["iroh_relay::protos::handshake::Error"]],["impl Sync for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Sync for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl Sync for Error",1,["iroh_relay::protos::relay::Error"]],["impl Sync for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl Sync for Error",1,["iroh_relay::quic::Error"]],["impl Sync for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Sync for RunError",1,["iroh_relay::server::client::RunError"]],["impl Sync for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Sync for Access",1,["iroh_relay::server::Access"]],["impl Sync for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Sync for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Sync for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Sync for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl Sync for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl Sync for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Sync for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl Sync for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Sync for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Sync for Client",1,["iroh_relay::client::Client"]],["impl Sync for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Sync for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl Sync for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Sync for Builder",1,["iroh_relay::dns::Builder"]],["impl Sync for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Sync for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Sync for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl Sync for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Sync for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Sync for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Sync for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Sync for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Sync for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl Sync for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Sync for Client",1,["iroh_relay::server::client::Client"]],["impl Sync for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Sync for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Sync for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Sync for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Sync for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Sync for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Sync for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Sync for Limits",1,["iroh_relay::server::Limits"]],["impl Sync for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Sync for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Sync for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Sync for Server",1,["iroh_relay::server::Server"]],["impl Sync for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Sync for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Sync for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Sync for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl Sync for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> Sync for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA = EC> !Sync for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA = EC> !Sync for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA = EC> !Sync for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA = EC> !Sync for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Sync for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Sync for Config<S>
    where\n S: Sync,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Sync for RelayedStream<S>
    where\n S: Sync,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[24586,2768,2715,5906,24053]} \ No newline at end of file +//{"start":57,"fragment_lengths":[25659,2768,2715,5906,24711]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.Unpin.js b/pr/3958/docs/trait.impl/core/marker/trait.Unpin.js index 5be7ac8c3e..eab076e71c 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.Unpin.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.Unpin.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl Unpin for Error",1,["iroh::address_lookup::Error"]],["impl Unpin for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl Unpin for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Unpin for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Unpin for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Unpin for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl Unpin for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Unpin for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Unpin for BindError",1,["iroh::socket::BindError"]],["impl Unpin for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl Unpin for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Unpin for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl Unpin for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Unpin for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Unpin for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Unpin for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Unpin for Source",1,["iroh::socket::remote_map::Source"]],["impl Unpin for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Unpin for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Unpin for AcceptError",1,["iroh::protocol::AcceptError"]],["impl Unpin for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Unpin for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Unpin for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Unpin for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Unpin for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Unpin for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Unpin for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Unpin for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Unpin for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Unpin for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Unpin for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Unpin for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Unpin for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Unpin for Item",1,["iroh::address_lookup::Item"]],["impl Unpin for N0",1,["iroh::endpoint::presets::N0"]],["impl Unpin for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl Unpin for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Unpin for Builder",1,["iroh::endpoint::Builder"]],["impl Unpin for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Unpin for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Unpin for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Unpin for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Unpin for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Unpin for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Unpin for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl Unpin for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Unpin for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Unpin for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Unpin for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Unpin for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Unpin for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Unpin for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Unpin for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Unpin for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Unpin for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Unpin for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Unpin for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Unpin for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Unpin for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Unpin for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Unpin for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl Unpin for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Unpin for Router",1,["iroh::protocol::Router"]],["impl Unpin for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Unpin for Report",1,["iroh::net_report::report::Report"]],["impl Unpin for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Unpin for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Unpin for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'pin> Unpin for EndpointClosed
    where\n PinnedFieldsOf<__EndpointClosed<'pin>>: Unpin,
    "],["impl<'pin, 'a> Unpin for Accept<'a>
    where\n PinnedFieldsOf<__Accept<'pin, 'a>>: Unpin,
    "],["impl<P> Unpin for AccessLimit<P>
    where\n P: Unpin,
    ",1,["iroh::protocol::AccessLimit"]],["impl<State> Unpin for Connection<State>
    where\n <State as ConnectionState>::Data: Unpin,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Unpin for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Unpin for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Unpin for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Unpin for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Unpin for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Unpin for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Unpin for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Unpin for Signature",1,["iroh_base::key::Signature"]],["impl Unpin for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Unpin for Commands",1,["iroh_bench::Commands"]],["impl Unpin for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Unpin for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Unpin for Opt",1,["iroh_bench::s2n::Opt"]],["impl Unpin for Stats",1,["iroh_bench::stats::Stats"]],["impl Unpin for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Unpin for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Unpin for ClientStats",1,["iroh_bench::ClientStats"]],["impl Unpin for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl Unpin for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Unpin for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Unpin for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Unpin for Config",1,["iroh_dns_server::config::Config"]],["impl Unpin for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Unpin for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Unpin for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Unpin for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Unpin for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Unpin for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Unpin for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Unpin for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Unpin for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Unpin for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Unpin for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Unpin for Server",1,["iroh_dns_server::server::Server"]],["impl Unpin for AppState",1,["iroh_dns_server::state::AppState"]],["impl Unpin for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl Unpin for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl Unpin for DialError",1,["iroh_relay::client::DialError"]],["impl Unpin for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Unpin for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Unpin for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Unpin for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Unpin for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Unpin for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Unpin for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Unpin for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Unpin for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Unpin for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Unpin for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Unpin for Error",1,["iroh_relay::protos::handshake::Error"]],["impl Unpin for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Unpin for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl Unpin for Error",1,["iroh_relay::protos::relay::Error"]],["impl Unpin for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl Unpin for Error",1,["iroh_relay::quic::Error"]],["impl Unpin for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Unpin for RunError",1,["iroh_relay::server::client::RunError"]],["impl Unpin for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Unpin for Access",1,["iroh_relay::server::Access"]],["impl Unpin for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Unpin for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Unpin for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Unpin for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl Unpin for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl Unpin for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Unpin for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl Unpin for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Unpin for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Unpin for Client",1,["iroh_relay::client::Client"]],["impl Unpin for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Unpin for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl Unpin for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Unpin for Builder",1,["iroh_relay::dns::Builder"]],["impl Unpin for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Unpin for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Unpin for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Unpin for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Unpin for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Unpin for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Unpin for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Unpin for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl Unpin for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Unpin for Client",1,["iroh_relay::server::client::Client"]],["impl Unpin for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Unpin for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Unpin for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Unpin for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Unpin for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Unpin for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Unpin for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Unpin for Limits",1,["iroh_relay::server::Limits"]],["impl Unpin for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Unpin for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Unpin for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Unpin for Server",1,["iroh_relay::server::Server"]],["impl Unpin for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Unpin for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Unpin for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Unpin for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> Unpin for StaggeredError<E>
    where\n E: Unpin,
    ",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> Unpin for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> Unpin for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> Unpin for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> Unpin for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Unpin for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Unpin for Config<S>
    where\n S: Unpin,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Unpin for RelayedStream<S>
    where\n S: Unpin,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl Unpin for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl Unpin for Error",1,["iroh::address_lookup::Error"]],["impl Unpin for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl Unpin for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl Unpin for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl Unpin for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl Unpin for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl Unpin for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl Unpin for BindError",1,["iroh::socket::BindError"]],["impl Unpin for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl Unpin for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl Unpin for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl Unpin for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl Unpin for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl Unpin for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl Unpin for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl Unpin for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl Unpin for Source",1,["iroh::socket::remote_map::Source"]],["impl Unpin for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl Unpin for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl Unpin for AcceptError",1,["iroh::protocol::AcceptError"]],["impl Unpin for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl Unpin for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl Unpin for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl Unpin for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl Unpin for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl Unpin for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl Unpin for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl Unpin for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl Unpin for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl Unpin for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl Unpin for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl Unpin for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl Unpin for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl Unpin for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl Unpin for Item",1,["iroh::address_lookup::Item"]],["impl Unpin for N0",1,["iroh::endpoint::presets::N0"]],["impl Unpin for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl Unpin for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl Unpin for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl Unpin for Builder",1,["iroh::endpoint::Builder"]],["impl Unpin for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl Unpin for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl Unpin for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl Unpin for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl Unpin for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl Unpin for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl Unpin for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl Unpin for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl Unpin for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl Unpin for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl Unpin for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl Unpin for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl Unpin for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl Unpin for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl Unpin for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl Unpin for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl Unpin for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl Unpin for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl Unpin for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl Unpin for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl Unpin for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl Unpin for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl Unpin for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl Unpin for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl Unpin for Router",1,["iroh::protocol::Router"]],["impl Unpin for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl Unpin for Report",1,["iroh::net_report::report::Report"]],["impl Unpin for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl Unpin for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl Unpin for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'pin> Unpin for EndpointClosed
    where\n PinnedFieldsOf<__EndpointClosed<'pin>>: Unpin,
    "],["impl<'pin, 'a> Unpin for Accept<'a>
    where\n PinnedFieldsOf<__Accept<'pin, 'a>>: Unpin,
    "],["impl<P> Unpin for AccessLimit<P>
    where\n P: Unpin,
    ",1,["iroh::protocol::AccessLimit"]],["impl<State> Unpin for Connection<State>
    where\n <State as ConnectionState>::Data: Unpin,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl Unpin for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl Unpin for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl Unpin for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl Unpin for PublicKey",1,["iroh_base::key::PublicKey"]],["impl Unpin for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl Unpin for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl Unpin for SecretKey",1,["iroh_base::key::SecretKey"]],["impl Unpin for Signature",1,["iroh_base::key::Signature"]],["impl Unpin for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl Unpin for Commands",1,["iroh_bench::Commands"]],["impl Unpin for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl Unpin for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl Unpin for Opt",1,["iroh_bench::s2n::Opt"]],["impl Unpin for Stats",1,["iroh_bench::stats::Stats"]],["impl Unpin for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl Unpin for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl Unpin for ClientStats",1,["iroh_bench::ClientStats"]],["impl Unpin for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl Unpin for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl Unpin for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl Unpin for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl Unpin for Config",1,["iroh_dns_server::config::Config"]],["impl Unpin for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl Unpin for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl Unpin for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl Unpin for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl Unpin for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl Unpin for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl Unpin for Handle",1,["iroh_dns_server::dns::Handle"]],["impl Unpin for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl Unpin for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl Unpin for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl Unpin for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl Unpin for Server",1,["iroh_dns_server::server::Server"]],["impl Unpin for AppState",1,["iroh_dns_server::state::AppState"]],["impl Unpin for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl Unpin for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl Unpin for DialError",1,["iroh_relay::client::DialError"]],["impl Unpin for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl Unpin for SendError",1,["iroh_relay::client::conn::SendError"]],["impl Unpin for DnsError",1,["iroh_relay::dns::DnsError"]],["impl Unpin for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl Unpin for LookupError",1,["iroh_relay::dns::LookupError"]],["impl Unpin for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl Unpin for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl Unpin for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl Unpin for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl Unpin for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl Unpin for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl Unpin for Error",1,["iroh_relay::protos::handshake::Error"]],["impl Unpin for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl Unpin for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl Unpin for Error",1,["iroh_relay::protos::relay::Error"]],["impl Unpin for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl Unpin for Error",1,["iroh_relay::quic::Error"]],["impl Unpin for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl Unpin for RunError",1,["iroh_relay::server::client::RunError"]],["impl Unpin for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl Unpin for Access",1,["iroh_relay::server::Access"]],["impl Unpin for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl Unpin for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl Unpin for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl Unpin for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl Unpin for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl Unpin for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl Unpin for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl Unpin for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl Unpin for SendError",1,["iroh_relay::server::streams::SendError"]],["impl Unpin for Client",1,["iroh_relay::client::Client"]],["impl Unpin for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl Unpin for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl Unpin for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl Unpin for Builder",1,["iroh_relay::dns::Builder"]],["impl Unpin for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl Unpin for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl Unpin for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl Unpin for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl Unpin for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl Unpin for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl Unpin for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl Unpin for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl Unpin for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl Unpin for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl Unpin for Client",1,["iroh_relay::server::client::Client"]],["impl Unpin for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl Unpin for Clients",1,["iroh_relay::server::clients::Clients"]],["impl Unpin for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl Unpin for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl Unpin for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl Unpin for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl Unpin for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl Unpin for Limits",1,["iroh_relay::server::Limits"]],["impl Unpin for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl Unpin for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl Unpin for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl Unpin for Server",1,["iroh_relay::server::Server"]],["impl Unpin for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl Unpin for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl Unpin for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl Unpin for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl Unpin for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> Unpin for StaggeredError<E>
    where\n E: Unpin,
    ",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> Unpin for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> Unpin for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> Unpin for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> Unpin for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> Unpin for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> Unpin for Config<S>
    where\n S: Unpin,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> Unpin for RelayedStream<S>
    where\n S: Unpin,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[25371,2795,2742,5960,24426]} \ No newline at end of file +//{"start":57,"fragment_lengths":[26453,2795,2742,5960,25090]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/marker/trait.UnsafeUnpin.js b/pr/3958/docs/trait.impl/core/marker/trait.UnsafeUnpin.js index f4a6265460..5b47412118 100644 --- a/pr/3958/docs/trait.impl/core/marker/trait.UnsafeUnpin.js +++ b/pr/3958/docs/trait.impl/core/marker/trait.UnsafeUnpin.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl !UnsafeUnpin for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl UnsafeUnpin for Error",1,["iroh::address_lookup::Error"]],["impl UnsafeUnpin for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl UnsafeUnpin for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl UnsafeUnpin for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl UnsafeUnpin for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl UnsafeUnpin for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl UnsafeUnpin for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl UnsafeUnpin for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl UnsafeUnpin for BindError",1,["iroh::socket::BindError"]],["impl UnsafeUnpin for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl UnsafeUnpin for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl UnsafeUnpin for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl UnsafeUnpin for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl UnsafeUnpin for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl UnsafeUnpin for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl UnsafeUnpin for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl UnsafeUnpin for Source",1,["iroh::socket::remote_map::Source"]],["impl UnsafeUnpin for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl UnsafeUnpin for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl UnsafeUnpin for AcceptError",1,["iroh::protocol::AcceptError"]],["impl UnsafeUnpin for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl UnsafeUnpin for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl UnsafeUnpin for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl UnsafeUnpin for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl UnsafeUnpin for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl UnsafeUnpin for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl UnsafeUnpin for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl UnsafeUnpin for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl UnsafeUnpin for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl UnsafeUnpin for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl UnsafeUnpin for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl UnsafeUnpin for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl UnsafeUnpin for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl UnsafeUnpin for Item",1,["iroh::address_lookup::Item"]],["impl UnsafeUnpin for N0",1,["iroh::endpoint::presets::N0"]],["impl UnsafeUnpin for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl UnsafeUnpin for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl UnsafeUnpin for Builder",1,["iroh::endpoint::Builder"]],["impl UnsafeUnpin for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl UnsafeUnpin for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl UnsafeUnpin for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl UnsafeUnpin for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl UnsafeUnpin for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl UnsafeUnpin for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl UnsafeUnpin for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl UnsafeUnpin for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl UnsafeUnpin for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl UnsafeUnpin for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl UnsafeUnpin for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl UnsafeUnpin for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl UnsafeUnpin for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl UnsafeUnpin for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl UnsafeUnpin for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl UnsafeUnpin for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl UnsafeUnpin for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl UnsafeUnpin for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl UnsafeUnpin for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl UnsafeUnpin for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl UnsafeUnpin for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl UnsafeUnpin for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl UnsafeUnpin for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl UnsafeUnpin for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl UnsafeUnpin for Router",1,["iroh::protocol::Router"]],["impl UnsafeUnpin for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl UnsafeUnpin for Report",1,["iroh::net_report::report::Report"]],["impl UnsafeUnpin for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl UnsafeUnpin for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl UnsafeUnpin for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !UnsafeUnpin for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> UnsafeUnpin for AccessLimit<P>
    where\n P: UnsafeUnpin,
    ",1,["iroh::protocol::AccessLimit"]],["impl<State> UnsafeUnpin for Connection<State>
    where\n <State as ConnectionState>::Data: UnsafeUnpin,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl UnsafeUnpin for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl UnsafeUnpin for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl UnsafeUnpin for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl UnsafeUnpin for PublicKey",1,["iroh_base::key::PublicKey"]],["impl UnsafeUnpin for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl UnsafeUnpin for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl UnsafeUnpin for SecretKey",1,["iroh_base::key::SecretKey"]],["impl UnsafeUnpin for Signature",1,["iroh_base::key::Signature"]],["impl UnsafeUnpin for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl UnsafeUnpin for Commands",1,["iroh_bench::Commands"]],["impl UnsafeUnpin for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl UnsafeUnpin for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl UnsafeUnpin for Opt",1,["iroh_bench::s2n::Opt"]],["impl UnsafeUnpin for Stats",1,["iroh_bench::stats::Stats"]],["impl UnsafeUnpin for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl UnsafeUnpin for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl UnsafeUnpin for ClientStats",1,["iroh_bench::ClientStats"]],["impl UnsafeUnpin for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl UnsafeUnpin for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl UnsafeUnpin for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl UnsafeUnpin for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl UnsafeUnpin for Config",1,["iroh_dns_server::config::Config"]],["impl UnsafeUnpin for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl UnsafeUnpin for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl UnsafeUnpin for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl UnsafeUnpin for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl UnsafeUnpin for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl UnsafeUnpin for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl UnsafeUnpin for Handle",1,["iroh_dns_server::dns::Handle"]],["impl UnsafeUnpin for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl UnsafeUnpin for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl UnsafeUnpin for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl UnsafeUnpin for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl UnsafeUnpin for Server",1,["iroh_dns_server::server::Server"]],["impl UnsafeUnpin for AppState",1,["iroh_dns_server::state::AppState"]],["impl UnsafeUnpin for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl UnsafeUnpin for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl UnsafeUnpin for DialError",1,["iroh_relay::client::DialError"]],["impl UnsafeUnpin for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl UnsafeUnpin for SendError",1,["iroh_relay::client::conn::SendError"]],["impl UnsafeUnpin for DnsError",1,["iroh_relay::dns::DnsError"]],["impl UnsafeUnpin for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl UnsafeUnpin for LookupError",1,["iroh_relay::dns::LookupError"]],["impl UnsafeUnpin for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl UnsafeUnpin for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl UnsafeUnpin for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl UnsafeUnpin for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl UnsafeUnpin for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl UnsafeUnpin for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl UnsafeUnpin for Error",1,["iroh_relay::protos::handshake::Error"]],["impl UnsafeUnpin for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl UnsafeUnpin for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl UnsafeUnpin for Error",1,["iroh_relay::protos::relay::Error"]],["impl UnsafeUnpin for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl UnsafeUnpin for Error",1,["iroh_relay::quic::Error"]],["impl UnsafeUnpin for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl UnsafeUnpin for RunError",1,["iroh_relay::server::client::RunError"]],["impl UnsafeUnpin for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl UnsafeUnpin for Access",1,["iroh_relay::server::Access"]],["impl UnsafeUnpin for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl UnsafeUnpin for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl UnsafeUnpin for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl UnsafeUnpin for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl UnsafeUnpin for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl UnsafeUnpin for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl UnsafeUnpin for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl UnsafeUnpin for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl UnsafeUnpin for SendError",1,["iroh_relay::server::streams::SendError"]],["impl UnsafeUnpin for Client",1,["iroh_relay::client::Client"]],["impl UnsafeUnpin for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl UnsafeUnpin for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl UnsafeUnpin for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl UnsafeUnpin for Builder",1,["iroh_relay::dns::Builder"]],["impl UnsafeUnpin for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl UnsafeUnpin for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl UnsafeUnpin for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl UnsafeUnpin for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl UnsafeUnpin for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl UnsafeUnpin for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl UnsafeUnpin for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl UnsafeUnpin for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl UnsafeUnpin for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl UnsafeUnpin for Client",1,["iroh_relay::server::client::Client"]],["impl UnsafeUnpin for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl UnsafeUnpin for Clients",1,["iroh_relay::server::clients::Clients"]],["impl UnsafeUnpin for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl UnsafeUnpin for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl UnsafeUnpin for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl UnsafeUnpin for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl UnsafeUnpin for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl UnsafeUnpin for Limits",1,["iroh_relay::server::Limits"]],["impl UnsafeUnpin for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl UnsafeUnpin for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl UnsafeUnpin for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl UnsafeUnpin for Server",1,["iroh_relay::server::Server"]],["impl UnsafeUnpin for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl UnsafeUnpin for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl UnsafeUnpin for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl UnsafeUnpin for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> UnsafeUnpin for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> UnsafeUnpin for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> UnsafeUnpin for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> UnsafeUnpin for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> UnsafeUnpin for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> UnsafeUnpin for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> UnsafeUnpin for Config<S>
    where\n S: UnsafeUnpin,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> UnsafeUnpin for RelayedStream<S>
    where\n S: UnsafeUnpin,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl !UnsafeUnpin for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl UnsafeUnpin for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl UnsafeUnpin for Error",1,["iroh::address_lookup::Error"]],["impl UnsafeUnpin for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl UnsafeUnpin for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl UnsafeUnpin for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl UnsafeUnpin for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl UnsafeUnpin for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl UnsafeUnpin for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl UnsafeUnpin for BindError",1,["iroh::socket::BindError"]],["impl UnsafeUnpin for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl UnsafeUnpin for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl UnsafeUnpin for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl UnsafeUnpin for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl UnsafeUnpin for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl UnsafeUnpin for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl UnsafeUnpin for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl UnsafeUnpin for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl UnsafeUnpin for Source",1,["iroh::socket::remote_map::Source"]],["impl UnsafeUnpin for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl UnsafeUnpin for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl UnsafeUnpin for AcceptError",1,["iroh::protocol::AcceptError"]],["impl UnsafeUnpin for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl UnsafeUnpin for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl UnsafeUnpin for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl UnsafeUnpin for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl UnsafeUnpin for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl UnsafeUnpin for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl UnsafeUnpin for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl UnsafeUnpin for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl UnsafeUnpin for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl UnsafeUnpin for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl UnsafeUnpin for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl UnsafeUnpin for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl UnsafeUnpin for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl UnsafeUnpin for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl UnsafeUnpin for Item",1,["iroh::address_lookup::Item"]],["impl UnsafeUnpin for N0",1,["iroh::endpoint::presets::N0"]],["impl UnsafeUnpin for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl UnsafeUnpin for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl UnsafeUnpin for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl UnsafeUnpin for Builder",1,["iroh::endpoint::Builder"]],["impl UnsafeUnpin for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl UnsafeUnpin for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl UnsafeUnpin for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl UnsafeUnpin for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl UnsafeUnpin for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl UnsafeUnpin for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl UnsafeUnpin for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl UnsafeUnpin for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl UnsafeUnpin for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl UnsafeUnpin for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl UnsafeUnpin for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl UnsafeUnpin for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl UnsafeUnpin for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl UnsafeUnpin for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl UnsafeUnpin for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl UnsafeUnpin for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl UnsafeUnpin for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl UnsafeUnpin for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl UnsafeUnpin for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl UnsafeUnpin for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl UnsafeUnpin for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl UnsafeUnpin for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl UnsafeUnpin for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl UnsafeUnpin for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl UnsafeUnpin for Router",1,["iroh::protocol::Router"]],["impl UnsafeUnpin for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl UnsafeUnpin for Report",1,["iroh::net_report::report::Report"]],["impl UnsafeUnpin for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl UnsafeUnpin for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl UnsafeUnpin for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !UnsafeUnpin for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> UnsafeUnpin for AccessLimit<P>
    where\n P: UnsafeUnpin,
    ",1,["iroh::protocol::AccessLimit"]],["impl<State> UnsafeUnpin for Connection<State>
    where\n <State as ConnectionState>::Data: UnsafeUnpin,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl UnsafeUnpin for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl UnsafeUnpin for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl UnsafeUnpin for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl UnsafeUnpin for PublicKey",1,["iroh_base::key::PublicKey"]],["impl UnsafeUnpin for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl UnsafeUnpin for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl UnsafeUnpin for SecretKey",1,["iroh_base::key::SecretKey"]],["impl UnsafeUnpin for Signature",1,["iroh_base::key::Signature"]],["impl UnsafeUnpin for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl UnsafeUnpin for Commands",1,["iroh_bench::Commands"]],["impl UnsafeUnpin for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl UnsafeUnpin for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl UnsafeUnpin for Opt",1,["iroh_bench::s2n::Opt"]],["impl UnsafeUnpin for Stats",1,["iroh_bench::stats::Stats"]],["impl UnsafeUnpin for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl UnsafeUnpin for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl UnsafeUnpin for ClientStats",1,["iroh_bench::ClientStats"]],["impl UnsafeUnpin for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl UnsafeUnpin for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl UnsafeUnpin for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl UnsafeUnpin for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl UnsafeUnpin for Config",1,["iroh_dns_server::config::Config"]],["impl UnsafeUnpin for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl UnsafeUnpin for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl UnsafeUnpin for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl UnsafeUnpin for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl UnsafeUnpin for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl UnsafeUnpin for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl UnsafeUnpin for Handle",1,["iroh_dns_server::dns::Handle"]],["impl UnsafeUnpin for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl UnsafeUnpin for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl UnsafeUnpin for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl UnsafeUnpin for Metrics",1,["iroh_dns_server::metrics::Metrics"]],["impl UnsafeUnpin for Server",1,["iroh_dns_server::server::Server"]],["impl UnsafeUnpin for AppState",1,["iroh_dns_server::state::AppState"]],["impl UnsafeUnpin for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]]]],["iroh_relay",[["impl UnsafeUnpin for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl UnsafeUnpin for DialError",1,["iroh_relay::client::DialError"]],["impl UnsafeUnpin for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl UnsafeUnpin for SendError",1,["iroh_relay::client::conn::SendError"]],["impl UnsafeUnpin for DnsError",1,["iroh_relay::dns::DnsError"]],["impl UnsafeUnpin for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl UnsafeUnpin for LookupError",1,["iroh_relay::dns::LookupError"]],["impl UnsafeUnpin for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl UnsafeUnpin for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl UnsafeUnpin for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl UnsafeUnpin for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl UnsafeUnpin for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl UnsafeUnpin for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl UnsafeUnpin for Error",1,["iroh_relay::protos::handshake::Error"]],["impl UnsafeUnpin for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl UnsafeUnpin for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl UnsafeUnpin for Error",1,["iroh_relay::protos::relay::Error"]],["impl UnsafeUnpin for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl UnsafeUnpin for Error",1,["iroh_relay::quic::Error"]],["impl UnsafeUnpin for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl UnsafeUnpin for RunError",1,["iroh_relay::server::client::RunError"]],["impl UnsafeUnpin for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl UnsafeUnpin for Access",1,["iroh_relay::server::Access"]],["impl UnsafeUnpin for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl UnsafeUnpin for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl UnsafeUnpin for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl UnsafeUnpin for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl UnsafeUnpin for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl UnsafeUnpin for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl UnsafeUnpin for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl UnsafeUnpin for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl UnsafeUnpin for SendError",1,["iroh_relay::server::streams::SendError"]],["impl UnsafeUnpin for Client",1,["iroh_relay::client::Client"]],["impl UnsafeUnpin for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl UnsafeUnpin for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl UnsafeUnpin for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl UnsafeUnpin for Builder",1,["iroh_relay::dns::Builder"]],["impl UnsafeUnpin for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl UnsafeUnpin for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl UnsafeUnpin for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl UnsafeUnpin for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl UnsafeUnpin for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl UnsafeUnpin for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl UnsafeUnpin for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl UnsafeUnpin for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl UnsafeUnpin for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl UnsafeUnpin for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl UnsafeUnpin for Client",1,["iroh_relay::server::client::Client"]],["impl UnsafeUnpin for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl UnsafeUnpin for Clients",1,["iroh_relay::server::clients::Clients"]],["impl UnsafeUnpin for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl UnsafeUnpin for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl UnsafeUnpin for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl UnsafeUnpin for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl UnsafeUnpin for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl UnsafeUnpin for Limits",1,["iroh_relay::server::Limits"]],["impl UnsafeUnpin for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl UnsafeUnpin for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl UnsafeUnpin for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl UnsafeUnpin for Server",1,["iroh_relay::server::Server"]],["impl UnsafeUnpin for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl UnsafeUnpin for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl UnsafeUnpin for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl UnsafeUnpin for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl UnsafeUnpin for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> UnsafeUnpin for StaggeredError<E>",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA> UnsafeUnpin for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA> UnsafeUnpin for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA> UnsafeUnpin for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA> UnsafeUnpin for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> UnsafeUnpin for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> UnsafeUnpin for Config<S>
    where\n S: UnsafeUnpin,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> UnsafeUnpin for RelayedStream<S>
    where\n S: UnsafeUnpin,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[15733,1670,1617,3710,15123]} \ No newline at end of file +//{"start":57,"fragment_lengths":[16440,1670,1617,3710,15537]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js b/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js index 6e489f7d2c..3e9c47fede 100644 --- a/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl !RefUnwindSafe for Error",1,["iroh::address_lookup::Error"]],["impl !RefUnwindSafe for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl !RefUnwindSafe for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl !RefUnwindSafe for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl !RefUnwindSafe for BindError",1,["iroh::socket::BindError"]],["impl !RefUnwindSafe for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl !RefUnwindSafe for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl !RefUnwindSafe for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl !RefUnwindSafe for AcceptError",1,["iroh::protocol::AcceptError"]],["impl !RefUnwindSafe for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl !RefUnwindSafe for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl !RefUnwindSafe for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl !RefUnwindSafe for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl !RefUnwindSafe for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl !RefUnwindSafe for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl !RefUnwindSafe for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl !RefUnwindSafe for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl !RefUnwindSafe for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl !RefUnwindSafe for Builder",1,["iroh::endpoint::Builder"]],["impl !RefUnwindSafe for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl !RefUnwindSafe for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl !RefUnwindSafe for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl !RefUnwindSafe for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl !RefUnwindSafe for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl !RefUnwindSafe for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl !RefUnwindSafe for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl !RefUnwindSafe for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl !RefUnwindSafe for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl !RefUnwindSafe for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl !RefUnwindSafe for Router",1,["iroh::protocol::Router"]],["impl !RefUnwindSafe for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl !RefUnwindSafe for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl !RefUnwindSafe for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl RefUnwindSafe for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl RefUnwindSafe for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl RefUnwindSafe for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl RefUnwindSafe for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl RefUnwindSafe for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl RefUnwindSafe for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl RefUnwindSafe for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl RefUnwindSafe for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl RefUnwindSafe for Source",1,["iroh::socket::remote_map::Source"]],["impl RefUnwindSafe for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl RefUnwindSafe for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl RefUnwindSafe for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl RefUnwindSafe for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl RefUnwindSafe for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl RefUnwindSafe for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl RefUnwindSafe for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl RefUnwindSafe for Item",1,["iroh::address_lookup::Item"]],["impl RefUnwindSafe for N0",1,["iroh::endpoint::presets::N0"]],["impl RefUnwindSafe for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl RefUnwindSafe for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl RefUnwindSafe for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl RefUnwindSafe for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl RefUnwindSafe for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl RefUnwindSafe for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl RefUnwindSafe for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl RefUnwindSafe for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl RefUnwindSafe for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl RefUnwindSafe for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl RefUnwindSafe for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl RefUnwindSafe for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl RefUnwindSafe for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl RefUnwindSafe for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl RefUnwindSafe for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl RefUnwindSafe for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl RefUnwindSafe for Report",1,["iroh::net_report::report::Report"]],["impl RefUnwindSafe for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !RefUnwindSafe for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> !RefUnwindSafe for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> RefUnwindSafe for Connection<State>
    where\n <State as ConnectionState>::Data: RefUnwindSafe,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl !RefUnwindSafe for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl RefUnwindSafe for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl RefUnwindSafe for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl RefUnwindSafe for PublicKey",1,["iroh_base::key::PublicKey"]],["impl RefUnwindSafe for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl RefUnwindSafe for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl RefUnwindSafe for SecretKey",1,["iroh_base::key::SecretKey"]],["impl RefUnwindSafe for Signature",1,["iroh_base::key::Signature"]],["impl RefUnwindSafe for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl !RefUnwindSafe for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl RefUnwindSafe for Commands",1,["iroh_bench::Commands"]],["impl RefUnwindSafe for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl RefUnwindSafe for Opt",1,["iroh_bench::s2n::Opt"]],["impl RefUnwindSafe for Stats",1,["iroh_bench::stats::Stats"]],["impl RefUnwindSafe for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl RefUnwindSafe for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl RefUnwindSafe for ClientStats",1,["iroh_bench::ClientStats"]],["impl RefUnwindSafe for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl !RefUnwindSafe for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl !RefUnwindSafe for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl !RefUnwindSafe for Handle",1,["iroh_dns_server::dns::Handle"]],["impl !RefUnwindSafe for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl !RefUnwindSafe for Server",1,["iroh_dns_server::server::Server"]],["impl !RefUnwindSafe for AppState",1,["iroh_dns_server::state::AppState"]],["impl !RefUnwindSafe for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]],["impl RefUnwindSafe for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl RefUnwindSafe for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl RefUnwindSafe for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl RefUnwindSafe for Config",1,["iroh_dns_server::config::Config"]],["impl RefUnwindSafe for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl RefUnwindSafe for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl RefUnwindSafe for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl RefUnwindSafe for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl RefUnwindSafe for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl RefUnwindSafe for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl RefUnwindSafe for Metrics",1,["iroh_dns_server::metrics::Metrics"]]]],["iroh_relay",[["impl !RefUnwindSafe for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl !RefUnwindSafe for DialError",1,["iroh_relay::client::DialError"]],["impl !RefUnwindSafe for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl !RefUnwindSafe for SendError",1,["iroh_relay::client::conn::SendError"]],["impl !RefUnwindSafe for DnsError",1,["iroh_relay::dns::DnsError"]],["impl !RefUnwindSafe for LookupError",1,["iroh_relay::dns::LookupError"]],["impl !RefUnwindSafe for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl !RefUnwindSafe for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl !RefUnwindSafe for Error",1,["iroh_relay::protos::handshake::Error"]],["impl !RefUnwindSafe for Error",1,["iroh_relay::protos::relay::Error"]],["impl !RefUnwindSafe for Error",1,["iroh_relay::quic::Error"]],["impl !RefUnwindSafe for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl !RefUnwindSafe for RunError",1,["iroh_relay::server::client::RunError"]],["impl !RefUnwindSafe for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl !RefUnwindSafe for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl !RefUnwindSafe for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl !RefUnwindSafe for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl !RefUnwindSafe for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl !RefUnwindSafe for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl !RefUnwindSafe for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl !RefUnwindSafe for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl !RefUnwindSafe for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl !RefUnwindSafe for SendError",1,["iroh_relay::server::streams::SendError"]],["impl !RefUnwindSafe for Client",1,["iroh_relay::client::Client"]],["impl !RefUnwindSafe for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl !RefUnwindSafe for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl !RefUnwindSafe for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl !RefUnwindSafe for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl !RefUnwindSafe for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl !RefUnwindSafe for Clients",1,["iroh_relay::server::clients::Clients"]],["impl !RefUnwindSafe for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl !RefUnwindSafe for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl !RefUnwindSafe for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl !RefUnwindSafe for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl RefUnwindSafe for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl RefUnwindSafe for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl RefUnwindSafe for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl RefUnwindSafe for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl RefUnwindSafe for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl RefUnwindSafe for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl RefUnwindSafe for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl RefUnwindSafe for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl RefUnwindSafe for Access",1,["iroh_relay::server::Access"]],["impl RefUnwindSafe for Builder",1,["iroh_relay::dns::Builder"]],["impl RefUnwindSafe for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl RefUnwindSafe for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl RefUnwindSafe for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl RefUnwindSafe for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl RefUnwindSafe for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl RefUnwindSafe for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl RefUnwindSafe for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl RefUnwindSafe for Client",1,["iroh_relay::server::client::Client"]],["impl RefUnwindSafe for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl RefUnwindSafe for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl RefUnwindSafe for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl RefUnwindSafe for Limits",1,["iroh_relay::server::Limits"]],["impl RefUnwindSafe for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl RefUnwindSafe for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl RefUnwindSafe for Server",1,["iroh_relay::server::Server"]],["impl RefUnwindSafe for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl RefUnwindSafe for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl RefUnwindSafe for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl RefUnwindSafe for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> RefUnwindSafe for StaggeredError<E>
    where\n E: RefUnwindSafe,
    ",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA = EC> !RefUnwindSafe for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA = EC> !RefUnwindSafe for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA = EC> !RefUnwindSafe for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA = EC> !RefUnwindSafe for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> !RefUnwindSafe for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> RefUnwindSafe for Config<S>
    where\n S: RefUnwindSafe,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> RefUnwindSafe for RelayedStream<S>
    where\n S: RefUnwindSafe,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl !RefUnwindSafe for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl !RefUnwindSafe for Error",1,["iroh::address_lookup::Error"]],["impl !RefUnwindSafe for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl !RefUnwindSafe for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl !RefUnwindSafe for BindError",1,["iroh::socket::BindError"]],["impl !RefUnwindSafe for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl !RefUnwindSafe for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl !RefUnwindSafe for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl !RefUnwindSafe for AcceptError",1,["iroh::protocol::AcceptError"]],["impl !RefUnwindSafe for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl !RefUnwindSafe for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl !RefUnwindSafe for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl !RefUnwindSafe for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl !RefUnwindSafe for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl !RefUnwindSafe for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl !RefUnwindSafe for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl !RefUnwindSafe for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl !RefUnwindSafe for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl !RefUnwindSafe for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl !RefUnwindSafe for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl !RefUnwindSafe for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl !RefUnwindSafe for Builder",1,["iroh::endpoint::Builder"]],["impl !RefUnwindSafe for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl !RefUnwindSafe for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl !RefUnwindSafe for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl !RefUnwindSafe for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl !RefUnwindSafe for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl !RefUnwindSafe for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl !RefUnwindSafe for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl !RefUnwindSafe for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl !RefUnwindSafe for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl !RefUnwindSafe for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl !RefUnwindSafe for Router",1,["iroh::protocol::Router"]],["impl !RefUnwindSafe for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl !RefUnwindSafe for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl !RefUnwindSafe for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl RefUnwindSafe for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl RefUnwindSafe for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl RefUnwindSafe for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl RefUnwindSafe for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl RefUnwindSafe for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl RefUnwindSafe for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl RefUnwindSafe for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl RefUnwindSafe for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl RefUnwindSafe for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl RefUnwindSafe for Source",1,["iroh::socket::remote_map::Source"]],["impl RefUnwindSafe for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl RefUnwindSafe for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl RefUnwindSafe for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl RefUnwindSafe for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl RefUnwindSafe for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl RefUnwindSafe for Item",1,["iroh::address_lookup::Item"]],["impl RefUnwindSafe for N0",1,["iroh::endpoint::presets::N0"]],["impl RefUnwindSafe for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl RefUnwindSafe for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl RefUnwindSafe for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl RefUnwindSafe for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl RefUnwindSafe for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl RefUnwindSafe for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl RefUnwindSafe for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl RefUnwindSafe for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl RefUnwindSafe for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl RefUnwindSafe for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl RefUnwindSafe for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl RefUnwindSafe for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl RefUnwindSafe for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl RefUnwindSafe for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl RefUnwindSafe for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl RefUnwindSafe for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl RefUnwindSafe for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl RefUnwindSafe for Report",1,["iroh::net_report::report::Report"]],["impl RefUnwindSafe for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !RefUnwindSafe for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> !RefUnwindSafe for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> RefUnwindSafe for Connection<State>
    where\n <State as ConnectionState>::Data: RefUnwindSafe,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl !RefUnwindSafe for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl RefUnwindSafe for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl RefUnwindSafe for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl RefUnwindSafe for PublicKey",1,["iroh_base::key::PublicKey"]],["impl RefUnwindSafe for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl RefUnwindSafe for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl RefUnwindSafe for SecretKey",1,["iroh_base::key::SecretKey"]],["impl RefUnwindSafe for Signature",1,["iroh_base::key::Signature"]],["impl RefUnwindSafe for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl !RefUnwindSafe for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl RefUnwindSafe for Commands",1,["iroh_bench::Commands"]],["impl RefUnwindSafe for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl RefUnwindSafe for Opt",1,["iroh_bench::s2n::Opt"]],["impl RefUnwindSafe for Stats",1,["iroh_bench::stats::Stats"]],["impl RefUnwindSafe for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl RefUnwindSafe for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl RefUnwindSafe for ClientStats",1,["iroh_bench::ClientStats"]],["impl RefUnwindSafe for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl !RefUnwindSafe for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl !RefUnwindSafe for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl !RefUnwindSafe for Handle",1,["iroh_dns_server::dns::Handle"]],["impl !RefUnwindSafe for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl !RefUnwindSafe for Server",1,["iroh_dns_server::server::Server"]],["impl !RefUnwindSafe for AppState",1,["iroh_dns_server::state::AppState"]],["impl !RefUnwindSafe for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]],["impl RefUnwindSafe for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl RefUnwindSafe for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl RefUnwindSafe for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl RefUnwindSafe for Config",1,["iroh_dns_server::config::Config"]],["impl RefUnwindSafe for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl RefUnwindSafe for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl RefUnwindSafe for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl RefUnwindSafe for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl RefUnwindSafe for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl RefUnwindSafe for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl RefUnwindSafe for Metrics",1,["iroh_dns_server::metrics::Metrics"]]]],["iroh_relay",[["impl !RefUnwindSafe for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl !RefUnwindSafe for DialError",1,["iroh_relay::client::DialError"]],["impl !RefUnwindSafe for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl !RefUnwindSafe for SendError",1,["iroh_relay::client::conn::SendError"]],["impl !RefUnwindSafe for DnsError",1,["iroh_relay::dns::DnsError"]],["impl !RefUnwindSafe for LookupError",1,["iroh_relay::dns::LookupError"]],["impl !RefUnwindSafe for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl !RefUnwindSafe for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl !RefUnwindSafe for Error",1,["iroh_relay::protos::handshake::Error"]],["impl !RefUnwindSafe for Error",1,["iroh_relay::protos::relay::Error"]],["impl !RefUnwindSafe for Error",1,["iroh_relay::quic::Error"]],["impl !RefUnwindSafe for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl !RefUnwindSafe for RunError",1,["iroh_relay::server::client::RunError"]],["impl !RefUnwindSafe for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl !RefUnwindSafe for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl !RefUnwindSafe for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl !RefUnwindSafe for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl !RefUnwindSafe for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl !RefUnwindSafe for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl !RefUnwindSafe for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl !RefUnwindSafe for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl !RefUnwindSafe for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl !RefUnwindSafe for SendError",1,["iroh_relay::server::streams::SendError"]],["impl !RefUnwindSafe for Client",1,["iroh_relay::client::Client"]],["impl !RefUnwindSafe for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl !RefUnwindSafe for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl !RefUnwindSafe for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl !RefUnwindSafe for Builder",1,["iroh_relay::dns::Builder"]],["impl !RefUnwindSafe for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl !RefUnwindSafe for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl !RefUnwindSafe for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl !RefUnwindSafe for Clients",1,["iroh_relay::server::clients::Clients"]],["impl !RefUnwindSafe for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl !RefUnwindSafe for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl !RefUnwindSafe for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl !RefUnwindSafe for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl RefUnwindSafe for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl RefUnwindSafe for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl RefUnwindSafe for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl RefUnwindSafe for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl RefUnwindSafe for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl RefUnwindSafe for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl RefUnwindSafe for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl RefUnwindSafe for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl RefUnwindSafe for Access",1,["iroh_relay::server::Access"]],["impl RefUnwindSafe for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl RefUnwindSafe for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl RefUnwindSafe for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl RefUnwindSafe for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl RefUnwindSafe for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl RefUnwindSafe for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl RefUnwindSafe for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl RefUnwindSafe for Client",1,["iroh_relay::server::client::Client"]],["impl RefUnwindSafe for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl RefUnwindSafe for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl RefUnwindSafe for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl RefUnwindSafe for Limits",1,["iroh_relay::server::Limits"]],["impl RefUnwindSafe for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl RefUnwindSafe for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl RefUnwindSafe for Server",1,["iroh_relay::server::Server"]],["impl RefUnwindSafe for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl RefUnwindSafe for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl RefUnwindSafe for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl RefUnwindSafe for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl RefUnwindSafe for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> RefUnwindSafe for StaggeredError<E>
    where\n E: RefUnwindSafe,
    ",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA = EC> !RefUnwindSafe for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA = EC> !RefUnwindSafe for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA = EC> !RefUnwindSafe for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA = EC> !RefUnwindSafe for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> !RefUnwindSafe for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> RefUnwindSafe for Config<S>
    where\n S: RefUnwindSafe,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> RefUnwindSafe for RelayedStream<S>
    where\n S: RefUnwindSafe,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[28269,3219,3166,6813,27963]} \ No newline at end of file +//{"start":57,"fragment_lengths":[29495,3219,3166,6813,28723]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js b/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js index 0a7d798ca2..e1b17cc338 100644 --- a/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/pr/3958/docs/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl !UnwindSafe for Error",1,["iroh::address_lookup::Error"]],["impl !UnwindSafe for IntoAddressLookupError",1,["iroh::address_lookup::IntoAddressLookupError"]],["impl !UnwindSafe for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl !UnwindSafe for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl !UnwindSafe for BindError",1,["iroh::socket::BindError"]],["impl !UnwindSafe for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl !UnwindSafe for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl !UnwindSafe for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl !UnwindSafe for AcceptError",1,["iroh::protocol::AcceptError"]],["impl !UnwindSafe for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl !UnwindSafe for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl !UnwindSafe for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl !UnwindSafe for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl !UnwindSafe for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl !UnwindSafe for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl !UnwindSafe for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl !UnwindSafe for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl !UnwindSafe for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl !UnwindSafe for Builder",1,["iroh::endpoint::Builder"]],["impl !UnwindSafe for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl !UnwindSafe for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl !UnwindSafe for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl !UnwindSafe for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl !UnwindSafe for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl !UnwindSafe for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl !UnwindSafe for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl !UnwindSafe for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl !UnwindSafe for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl !UnwindSafe for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl !UnwindSafe for Router",1,["iroh::protocol::Router"]],["impl !UnwindSafe for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl !UnwindSafe for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl !UnwindSafe for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl UnwindSafe for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl UnwindSafe for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl UnwindSafe for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl UnwindSafe for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl UnwindSafe for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl UnwindSafe for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl UnwindSafe for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl UnwindSafe for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl UnwindSafe for Source",1,["iroh::socket::remote_map::Source"]],["impl UnwindSafe for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl UnwindSafe for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl UnwindSafe for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl UnwindSafe for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl UnwindSafe for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl UnwindSafe for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl UnwindSafe for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl UnwindSafe for Item",1,["iroh::address_lookup::Item"]],["impl UnwindSafe for N0",1,["iroh::endpoint::presets::N0"]],["impl UnwindSafe for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl UnwindSafe for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl UnwindSafe for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl UnwindSafe for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl UnwindSafe for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl UnwindSafe for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl UnwindSafe for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl UnwindSafe for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl UnwindSafe for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl UnwindSafe for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl UnwindSafe for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl UnwindSafe for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl UnwindSafe for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl UnwindSafe for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl UnwindSafe for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl UnwindSafe for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl UnwindSafe for Report",1,["iroh::net_report::report::Report"]],["impl UnwindSafe for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !UnwindSafe for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> !UnwindSafe for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> UnwindSafe for Connection<State>
    where\n <State as ConnectionState>::Data: UnwindSafe,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl !UnwindSafe for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl UnwindSafe for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl UnwindSafe for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl UnwindSafe for PublicKey",1,["iroh_base::key::PublicKey"]],["impl UnwindSafe for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl UnwindSafe for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl UnwindSafe for SecretKey",1,["iroh_base::key::SecretKey"]],["impl UnwindSafe for Signature",1,["iroh_base::key::Signature"]],["impl UnwindSafe for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl !UnwindSafe for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl UnwindSafe for Commands",1,["iroh_bench::Commands"]],["impl UnwindSafe for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl UnwindSafe for Opt",1,["iroh_bench::s2n::Opt"]],["impl UnwindSafe for Stats",1,["iroh_bench::stats::Stats"]],["impl UnwindSafe for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl UnwindSafe for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl UnwindSafe for ClientStats",1,["iroh_bench::ClientStats"]],["impl UnwindSafe for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl !UnwindSafe for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl !UnwindSafe for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl !UnwindSafe for Handle",1,["iroh_dns_server::dns::Handle"]],["impl !UnwindSafe for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl !UnwindSafe for Server",1,["iroh_dns_server::server::Server"]],["impl !UnwindSafe for AppState",1,["iroh_dns_server::state::AppState"]],["impl !UnwindSafe for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]],["impl UnwindSafe for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl UnwindSafe for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl UnwindSafe for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl UnwindSafe for Config",1,["iroh_dns_server::config::Config"]],["impl UnwindSafe for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl UnwindSafe for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl UnwindSafe for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl UnwindSafe for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl UnwindSafe for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl UnwindSafe for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl UnwindSafe for Metrics",1,["iroh_dns_server::metrics::Metrics"]]]],["iroh_relay",[["impl !UnwindSafe for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl !UnwindSafe for DialError",1,["iroh_relay::client::DialError"]],["impl !UnwindSafe for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl !UnwindSafe for SendError",1,["iroh_relay::client::conn::SendError"]],["impl !UnwindSafe for DnsError",1,["iroh_relay::dns::DnsError"]],["impl !UnwindSafe for LookupError",1,["iroh_relay::dns::LookupError"]],["impl !UnwindSafe for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl !UnwindSafe for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl !UnwindSafe for Error",1,["iroh_relay::protos::handshake::Error"]],["impl !UnwindSafe for Error",1,["iroh_relay::protos::relay::Error"]],["impl !UnwindSafe for Error",1,["iroh_relay::quic::Error"]],["impl !UnwindSafe for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl !UnwindSafe for RunError",1,["iroh_relay::server::client::RunError"]],["impl !UnwindSafe for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl !UnwindSafe for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl !UnwindSafe for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl !UnwindSafe for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl !UnwindSafe for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl !UnwindSafe for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl !UnwindSafe for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl !UnwindSafe for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl !UnwindSafe for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl !UnwindSafe for SendError",1,["iroh_relay::server::streams::SendError"]],["impl !UnwindSafe for Client",1,["iroh_relay::client::Client"]],["impl !UnwindSafe for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl !UnwindSafe for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl !UnwindSafe for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl !UnwindSafe for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl !UnwindSafe for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl !UnwindSafe for Clients",1,["iroh_relay::server::clients::Clients"]],["impl !UnwindSafe for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl !UnwindSafe for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl !UnwindSafe for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl !UnwindSafe for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl UnwindSafe for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl UnwindSafe for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl UnwindSafe for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl UnwindSafe for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl UnwindSafe for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl UnwindSafe for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl UnwindSafe for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl UnwindSafe for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl UnwindSafe for Access",1,["iroh_relay::server::Access"]],["impl UnwindSafe for Builder",1,["iroh_relay::dns::Builder"]],["impl UnwindSafe for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl UnwindSafe for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl UnwindSafe for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl UnwindSafe for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl UnwindSafe for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl UnwindSafe for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl UnwindSafe for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl UnwindSafe for Client",1,["iroh_relay::server::client::Client"]],["impl UnwindSafe for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl UnwindSafe for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl UnwindSafe for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl UnwindSafe for Limits",1,["iroh_relay::server::Limits"]],["impl UnwindSafe for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl UnwindSafe for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl UnwindSafe for Server",1,["iroh_relay::server::Server"]],["impl UnwindSafe for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl UnwindSafe for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl UnwindSafe for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl UnwindSafe for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl<E> UnwindSafe for StaggeredError<E>
    where\n E: UnwindSafe,
    ",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA = EC> !UnwindSafe for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA = EC> !UnwindSafe for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA = EC> !UnwindSafe for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA = EC> !UnwindSafe for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> !UnwindSafe for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> UnwindSafe for Config<S>
    where\n S: UnwindSafe,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> UnwindSafe for RelayedStream<S>
    where\n S: UnwindSafe,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); + var implementors = Object.fromEntries([["iroh",[["impl !UnwindSafe for AddressLookupBuilderError",1,["iroh::address_lookup::AddressLookupBuilderError"]],["impl !UnwindSafe for Error",1,["iroh::address_lookup::Error"]],["impl !UnwindSafe for PkarrError",1,["iroh::address_lookup::pkarr::PkarrError"]],["impl !UnwindSafe for AlpnError",1,["iroh::endpoint::connection::AlpnError"]],["impl !UnwindSafe for BindError",1,["iroh::socket::BindError"]],["impl !UnwindSafe for ConnectError",1,["iroh::endpoint::ConnectError"]],["impl !UnwindSafe for ConnectWithOptsError",1,["iroh::endpoint::ConnectWithOptsError"]],["impl !UnwindSafe for ConnectingError",1,["iroh::endpoint::connection::ConnectingError"]],["impl !UnwindSafe for AcceptError",1,["iroh::protocol::AcceptError"]],["impl !UnwindSafe for DnsAddressLookup",1,["iroh::address_lookup::dns::DnsAddressLookup"]],["impl !UnwindSafe for DnsAddressLookupBuilder",1,["iroh::address_lookup::dns::DnsAddressLookupBuilder"]],["impl !UnwindSafe for MdnsAddressLookupBuilder",1,["iroh::address_lookup::mdns::MdnsAddressLookupBuilder"]],["impl !UnwindSafe for Builder",1,["iroh::address_lookup::pkarr::dht::Builder"]],["impl !UnwindSafe for DhtAddressLookup",1,["iroh::address_lookup::pkarr::dht::DhtAddressLookup"]],["impl !UnwindSafe for PkarrPublisher",1,["iroh::address_lookup::pkarr::PkarrPublisher"]],["impl !UnwindSafe for PkarrPublisherBuilder",1,["iroh::address_lookup::pkarr::PkarrPublisherBuilder"]],["impl !UnwindSafe for PkarrRelayClient",1,["iroh::address_lookup::pkarr::PkarrRelayClient"]],["impl !UnwindSafe for PkarrRelayClientBuilder",1,["iroh::address_lookup::pkarr::PkarrRelayClientBuilder"]],["impl !UnwindSafe for PkarrResolver",1,["iroh::address_lookup::pkarr::PkarrResolver"]],["impl !UnwindSafe for PkarrResolverBuilder",1,["iroh::address_lookup::pkarr::PkarrResolverBuilder"]],["impl !UnwindSafe for Accepting",1,["iroh::endpoint::connection::Accepting"]],["impl !UnwindSafe for Builder",1,["iroh::endpoint::Builder"]],["impl !UnwindSafe for ConnectOptions",1,["iroh::endpoint::ConnectOptions"]],["impl !UnwindSafe for Connecting",1,["iroh::endpoint::connection::Connecting"]],["impl !UnwindSafe for Endpoint",1,["iroh::endpoint::Endpoint"]],["impl !UnwindSafe for EndpointClosed",1,["iroh::endpoint::EndpointClosed"]],["impl !UnwindSafe for Incoming",1,["iroh::endpoint::connection::Incoming"]],["impl !UnwindSafe for QuicTransportConfig",1,["iroh::endpoint::quic::QuicTransportConfig"]],["impl !UnwindSafe for QuicTransportConfigBuilder",1,["iroh::endpoint::quic::QuicTransportConfigBuilder"]],["impl !UnwindSafe for RetryError",1,["iroh::endpoint::connection::RetryError"]],["impl !UnwindSafe for ServerConfig",1,["iroh::endpoint::quic::ServerConfig"]],["impl !UnwindSafe for ServerConfigBuilder",1,["iroh::endpoint::quic::ServerConfigBuilder"]],["impl !UnwindSafe for Router",1,["iroh::protocol::Router"]],["impl !UnwindSafe for RouterBuilder",1,["iroh::protocol::RouterBuilder"]],["impl !UnwindSafe for CleanupDropGuard",1,["iroh::test_utils::CleanupDropGuard"]],["impl !UnwindSafe for DnsPkarrServer",1,["iroh::test_utils::dns_and_pkarr_servers::DnsPkarrServer"]],["impl UnwindSafe for DiscoveryEvent",1,["iroh::address_lookup::mdns::DiscoveryEvent"]],["impl UnwindSafe for AfterHandshakeOutcome",1,["iroh::endpoint::hooks::AfterHandshakeOutcome"]],["impl UnwindSafe for AuthenticationError",1,["iroh::endpoint::connection::AuthenticationError"]],["impl UnwindSafe for BeforeConnectOutcome",1,["iroh::endpoint::hooks::BeforeConnectOutcome"]],["impl UnwindSafe for DirectAddrType",1,["iroh::socket::DirectAddrType"]],["impl UnwindSafe for EndpointError",1,["iroh::endpoint::EndpointError"]],["impl UnwindSafe for IncomingAddr",1,["iroh::endpoint::connection::IncomingAddr"]],["impl UnwindSafe for InvalidSocketAddr",1,["iroh::endpoint::bind::InvalidSocketAddr"]],["impl UnwindSafe for RelayMode",1,["iroh::endpoint::RelayMode"]],["impl UnwindSafe for Source",1,["iroh::socket::remote_map::Source"]],["impl UnwindSafe for TransportAddrUsage",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrUsage"]],["impl UnwindSafe for ZeroRttStatus",1,["iroh::endpoint::connection::ZeroRttStatus"]],["impl UnwindSafe for MdnsAddressLookup",1,["iroh::address_lookup::mdns::MdnsAddressLookup"]],["impl UnwindSafe for MemoryLookup",1,["iroh::address_lookup::memory::MemoryLookup"]],["impl UnwindSafe for ConcurrentAddressLookup",1,["iroh::address_lookup::ConcurrentAddressLookup"]],["impl UnwindSafe for Item",1,["iroh::address_lookup::Item"]],["impl UnwindSafe for N0",1,["iroh::endpoint::presets::N0"]],["impl UnwindSafe for N0DisableRelay",1,["iroh::endpoint::presets::N0DisableRelay"]],["impl UnwindSafe for BindOpts",1,["iroh::endpoint::bind::BindOpts"]],["impl UnwindSafe for ConnectionInfo",1,["iroh::endpoint::connection::ConnectionInfo"]],["impl UnwindSafe for DirectAddr",1,["iroh::socket::DirectAddr"]],["impl UnwindSafe for HandshakeCompleted",1,["iroh::endpoint::connection::HandshakeCompleted"]],["impl UnwindSafe for IncomingZeroRtt",1,["iroh::endpoint::connection::IncomingZeroRtt"]],["impl UnwindSafe for OutgoingZeroRtt",1,["iroh::endpoint::connection::OutgoingZeroRtt"]],["impl UnwindSafe for PathInfo",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfo"]],["impl UnwindSafe for PathInfoList",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoList"]],["impl UnwindSafe for PathInfoListIter",1,["iroh::socket::remote_map::remote_state::path_watcher::PathInfoListIter"]],["impl UnwindSafe for PathWatcher",1,["iroh::socket::remote_map::remote_state::path_watcher::PathWatcher"]],["impl UnwindSafe for RemoteEndpointIdError",1,["iroh::endpoint::connection::RemoteEndpointIdError"]],["impl UnwindSafe for RemoteInfo",1,["iroh::socket::remote_map::remote_state::remote_info::RemoteInfo"]],["impl UnwindSafe for TransportAddrInfo",1,["iroh::socket::remote_map::remote_state::remote_info::TransportAddrInfo"]],["impl UnwindSafe for EndpointMetrics",1,["iroh::metrics::EndpointMetrics"]],["impl UnwindSafe for Metrics",1,["iroh::net_report::metrics::Metrics"]],["impl UnwindSafe for Metrics",1,["iroh::socket::metrics::Metrics"]],["impl UnwindSafe for Report",1,["iroh::net_report::report::Report"]],["impl UnwindSafe for QlogFileGroup",1,["iroh::test_utils::qlog::QlogFileGroup"]],["impl<'a> !UnwindSafe for Accept<'a>",1,["iroh::endpoint::connection::Accept"]],["impl<P> !UnwindSafe for AccessLimit<P>",1,["iroh::protocol::AccessLimit"]],["impl<State> UnwindSafe for Connection<State>
    where\n <State as ConnectionState>::Data: UnwindSafe,
    ",1,["iroh::endpoint::connection::Connection"]]]],["iroh_base",[["impl !UnwindSafe for KeyParsingError",1,["iroh_base::key::KeyParsingError"]],["impl UnwindSafe for TransportAddr",1,["iroh_base::endpoint_addr::TransportAddr"]],["impl UnwindSafe for EndpointAddr",1,["iroh_base::endpoint_addr::EndpointAddr"]],["impl UnwindSafe for PublicKey",1,["iroh_base::key::PublicKey"]],["impl UnwindSafe for RelayUrl",1,["iroh_base::relay_url::RelayUrl"]],["impl UnwindSafe for RelayUrlParseError",1,["iroh_base::relay_url::RelayUrlParseError"]],["impl UnwindSafe for SecretKey",1,["iroh_base::key::SecretKey"]],["impl UnwindSafe for Signature",1,["iroh_base::key::Signature"]],["impl UnwindSafe for SignatureError",1,["iroh_base::key::SignatureError"]]]],["iroh_bench",[["impl !UnwindSafe for EndpointSelector",1,["iroh_bench::EndpointSelector"]],["impl UnwindSafe for Commands",1,["iroh_bench::Commands"]],["impl UnwindSafe for ConnectionSelector",1,["iroh_bench::ConnectionSelector"]],["impl UnwindSafe for Opt",1,["iroh_bench::s2n::Opt"]],["impl UnwindSafe for Stats",1,["iroh_bench::stats::Stats"]],["impl UnwindSafe for StreamStats",1,["iroh_bench::stats::StreamStats"]],["impl UnwindSafe for TransferResult",1,["iroh_bench::stats::TransferResult"]],["impl UnwindSafe for ClientStats",1,["iroh_bench::ClientStats"]],["impl UnwindSafe for Opt",1,["iroh_bench::Opt"]]]],["iroh_dns_server",[["impl !UnwindSafe for DnsHandler",1,["iroh_dns_server::dns::DnsHandler"]],["impl !UnwindSafe for DnsServer",1,["iroh_dns_server::dns::DnsServer"]],["impl !UnwindSafe for Handle",1,["iroh_dns_server::dns::Handle"]],["impl !UnwindSafe for HttpServer",1,["iroh_dns_server::http::HttpServer"]],["impl !UnwindSafe for Server",1,["iroh_dns_server::server::Server"]],["impl !UnwindSafe for AppState",1,["iroh_dns_server::state::AppState"]],["impl !UnwindSafe for ZoneStore",1,["iroh_dns_server::store::ZoneStore"]],["impl UnwindSafe for BootstrapOption",1,["iroh_dns_server::config::BootstrapOption"]],["impl UnwindSafe for CertMode",1,["iroh_dns_server::http::tls::CertMode"]],["impl UnwindSafe for RateLimitConfig",1,["iroh_dns_server::http::rate_limiting::RateLimitConfig"]],["impl UnwindSafe for Config",1,["iroh_dns_server::config::Config"]],["impl UnwindSafe for MainlineConfig",1,["iroh_dns_server::config::MainlineConfig"]],["impl UnwindSafe for MetricsConfig",1,["iroh_dns_server::config::MetricsConfig"]],["impl UnwindSafe for StoreConfig",1,["iroh_dns_server::config::StoreConfig"]],["impl UnwindSafe for DnsConfig",1,["iroh_dns_server::dns::DnsConfig"]],["impl UnwindSafe for HttpConfig",1,["iroh_dns_server::http::HttpConfig"]],["impl UnwindSafe for HttpsConfig",1,["iroh_dns_server::http::HttpsConfig"]],["impl UnwindSafe for Metrics",1,["iroh_dns_server::metrics::Metrics"]]]],["iroh_relay",[["impl !UnwindSafe for ConnectError",1,["iroh_relay::client::ConnectError"]],["impl !UnwindSafe for DialError",1,["iroh_relay::client::DialError"]],["impl !UnwindSafe for RecvError",1,["iroh_relay::client::conn::RecvError"]],["impl !UnwindSafe for SendError",1,["iroh_relay::client::conn::SendError"]],["impl !UnwindSafe for DnsError",1,["iroh_relay::dns::DnsError"]],["impl !UnwindSafe for LookupError",1,["iroh_relay::dns::LookupError"]],["impl !UnwindSafe for DecodingError",1,["iroh_relay::endpoint_info::DecodingError"]],["impl !UnwindSafe for ParseError",1,["iroh_relay::endpoint_info::ParseError"]],["impl !UnwindSafe for Error",1,["iroh_relay::protos::handshake::Error"]],["impl !UnwindSafe for Error",1,["iroh_relay::protos::relay::Error"]],["impl !UnwindSafe for Error",1,["iroh_relay::quic::Error"]],["impl !UnwindSafe for HandleFrameError",1,["iroh_relay::server::client::HandleFrameError"]],["impl !UnwindSafe for RunError",1,["iroh_relay::server::client::RunError"]],["impl !UnwindSafe for WriteFrameError",1,["iroh_relay::server::client::WriteFrameError"]],["impl !UnwindSafe for AccessConfig",1,["iroh_relay::server::AccessConfig"]],["impl !UnwindSafe for SpawnError",1,["iroh_relay::server::SpawnError"]],["impl !UnwindSafe for SupervisorError",1,["iroh_relay::server::SupervisorError"]],["impl !UnwindSafe for AcceptError",1,["iroh_relay::server::http_server::AcceptError"]],["impl !UnwindSafe for ConnectionHandlerError",1,["iroh_relay::server::http_server::ConnectionHandlerError"]],["impl !UnwindSafe for ServeConnectionError",1,["iroh_relay::server::http_server::ServeConnectionError"]],["impl !UnwindSafe for MaybeTlsStream",1,["iroh_relay::server::streams::MaybeTlsStream"]],["impl !UnwindSafe for RecvError",1,["iroh_relay::server::streams::RecvError"]],["impl !UnwindSafe for SendError",1,["iroh_relay::server::streams::SendError"]],["impl !UnwindSafe for Client",1,["iroh_relay::client::Client"]],["impl !UnwindSafe for ClientBuilder",1,["iroh_relay::client::ClientBuilder"]],["impl !UnwindSafe for ClientSink",1,["iroh_relay::client::ClientSink"]],["impl !UnwindSafe for ClientStream",1,["iroh_relay::client::ClientStream"]],["impl !UnwindSafe for Builder",1,["iroh_relay::dns::Builder"]],["impl !UnwindSafe for DnsResolver",1,["iroh_relay::dns::DnsResolver"]],["impl !UnwindSafe for AddrFilter",1,["iroh_relay::endpoint_info::AddrFilter"]],["impl !UnwindSafe for QuicClient",1,["iroh_relay::quic::QuicClient"]],["impl !UnwindSafe for Clients",1,["iroh_relay::server::clients::Clients"]],["impl !UnwindSafe for Handlers",1,["iroh_relay::server::http_server::Handlers"]],["impl !UnwindSafe for RelayService",1,["iroh_relay::server::http_server::RelayService"]],["impl !UnwindSafe for TlsConfig",1,["iroh_relay::server::http_server::TlsConfig"]],["impl !UnwindSafe for QuicConfig",1,["iroh_relay::server::QuicConfig"]],["impl UnwindSafe for DnsProtocol",1,["iroh_relay::dns::DnsProtocol"]],["impl UnwindSafe for EncodingError",1,["iroh_relay::endpoint_info::EncodingError"]],["impl UnwindSafe for KeyCache",1,["iroh_relay::key_cache::KeyCache"]],["impl UnwindSafe for FrameType",1,["iroh_relay::protos::common::FrameType"]],["impl UnwindSafe for FrameTypeError",1,["iroh_relay::protos::common::FrameTypeError"]],["impl UnwindSafe for Mechanism",1,["iroh_relay::protos::handshake::Mechanism"]],["impl UnwindSafe for ClientToRelayMsg",1,["iroh_relay::protos::relay::ClientToRelayMsg"]],["impl UnwindSafe for RelayToClientMsg",1,["iroh_relay::protos::relay::RelayToClientMsg"]],["impl UnwindSafe for Access",1,["iroh_relay::server::Access"]],["impl UnwindSafe for TxtRecordData",1,["iroh_relay::dns::TxtRecordData"]],["impl UnwindSafe for EndpointData",1,["iroh_relay::endpoint_info::EndpointData"]],["impl UnwindSafe for EndpointInfo",1,["iroh_relay::endpoint_info::EndpointInfo"]],["impl UnwindSafe for MaxLengthExceededError",1,["iroh_relay::endpoint_info::MaxLengthExceededError"]],["impl UnwindSafe for UserData",1,["iroh_relay::endpoint_info::UserData"]],["impl UnwindSafe for SuccessfulAuthentication",1,["iroh_relay::protos::handshake::SuccessfulAuthentication"]],["impl UnwindSafe for Datagrams",1,["iroh_relay::protos::relay::Datagrams"]],["impl UnwindSafe for Client",1,["iroh_relay::server::client::Client"]],["impl UnwindSafe for ForwardPacketError",1,["iroh_relay::server::client::ForwardPacketError"]],["impl UnwindSafe for InvalidBucketConfig",1,["iroh_relay::server::streams::InvalidBucketConfig"]],["impl UnwindSafe for ClientRateLimit",1,["iroh_relay::server::ClientRateLimit"]],["impl UnwindSafe for Limits",1,["iroh_relay::server::Limits"]],["impl UnwindSafe for Metrics",1,["iroh_relay::server::metrics::Metrics"]],["impl UnwindSafe for RelayMetrics",1,["iroh_relay::server::metrics::RelayMetrics"]],["impl UnwindSafe for Server",1,["iroh_relay::server::Server"]],["impl UnwindSafe for PingTracker",1,["iroh_relay::ping_tracker::PingTracker"]],["impl UnwindSafe for RelayConfig",1,["iroh_relay::relay_map::RelayConfig"]],["impl UnwindSafe for RelayMap",1,["iroh_relay::relay_map::RelayMap"]],["impl UnwindSafe for RelayQuicConfig",1,["iroh_relay::relay_map::RelayQuicConfig"]],["impl UnwindSafe for CaRootsConfig",1,["iroh_relay::tls::CaRootsConfig"]],["impl<E> UnwindSafe for StaggeredError<E>
    where\n E: UnwindSafe,
    ",1,["iroh_relay::dns::StaggeredError"]],["impl<EC, EA = EC> !UnwindSafe for CertConfig<EC, EA>",1,["iroh_relay::server::CertConfig"]],["impl<EC, EA = EC> !UnwindSafe for RelayConfig<EC, EA>",1,["iroh_relay::server::RelayConfig"]],["impl<EC, EA = EC> !UnwindSafe for ServerConfig<EC, EA>",1,["iroh_relay::server::ServerConfig"]],["impl<EC, EA = EC> !UnwindSafe for TlsConfig<EC, EA>",1,["iroh_relay::server::TlsConfig"]],["impl<Loader> !UnwindSafe for ReloadingResolver<Loader>",1,["iroh_relay::server::resolver::ReloadingResolver"]],["impl<S> UnwindSafe for Config<S>
    where\n S: UnwindSafe,
    ",1,["iroh_relay::server::client::Config"]],["impl<S> UnwindSafe for RelayedStream<S>
    where\n S: UnwindSafe,
    ",1,["iroh_relay::server::streams::RelayedStream"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[27612,3138,3085,6651,27297]} \ No newline at end of file +//{"start":57,"fragment_lengths":[28811,3138,3085,6651,28039]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/iroh/address_lookup/trait.IntoAddressLookup.js b/pr/3958/docs/trait.impl/iroh/address_lookup/trait.AddressLookupBuilder.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh/address_lookup/trait.IntoAddressLookup.js rename to pr/3958/docs/trait.impl/iroh/address_lookup/trait.AddressLookupBuilder.js diff --git a/pr/3958/docs/trait.impl/n0_error/error/trait.StackError.js b/pr/3958/docs/trait.impl/n0_error/error/trait.StackError.js index 5d4584045e..5799e0ea13 100644 --- a/pr/3958/docs/trait.impl/n0_error/error/trait.StackError.js +++ b/pr/3958/docs/trait.impl/n0_error/error/trait.StackError.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iroh",[["impl StackError for Error"],["impl StackError for IntoAddressLookupError"],["impl StackError for PkarrError"],["impl StackError for AlpnError"],["impl StackError for AuthenticationError"],["impl StackError for BindError"],["impl StackError for ConnectError"],["impl StackError for ConnectWithOptsError"],["impl StackError for ConnectingError"],["impl StackError for EndpointError"],["impl StackError for InvalidSocketAddr"],["impl StackError for AcceptError"],["impl StackError for RemoteEndpointIdError"],["impl StackError for RetryError"]]],["iroh_base",[["impl StackError for KeyParsingError"],["impl StackError for RelayUrlParseError"],["impl StackError for SignatureError"]]],["iroh_relay",[["impl StackError for ConnectError"],["impl StackError for DialError"],["impl StackError for RecvError"],["impl StackError for SendError"],["impl StackError for DnsError"],["impl StackError for LookupError"],["impl StackError for DecodingError"],["impl StackError for EncodingError"],["impl StackError for ParseError"],["impl StackError for FrameTypeError"],["impl StackError for Error"],["impl StackError for Error"],["impl StackError for Error"],["impl StackError for HandleFrameError"],["impl StackError for RunError"],["impl StackError for WriteFrameError"],["impl StackError for SpawnError"],["impl StackError for SupervisorError"],["impl StackError for AcceptError"],["impl StackError for ConnectionHandlerError"],["impl StackError for ServeConnectionError"],["impl StackError for RecvError"],["impl StackError for SendError"],["impl StackError for MaxLengthExceededError"],["impl StackError for ForwardPacketError"],["impl StackError for InvalidBucketConfig"],["impl<E: StackError + 'static> StackError for StaggeredError<E>"]]]]); + var implementors = Object.fromEntries([["iroh",[["impl StackError for AddressLookupBuilderError"],["impl StackError for Error"],["impl StackError for PkarrError"],["impl StackError for AlpnError"],["impl StackError for AuthenticationError"],["impl StackError for BindError"],["impl StackError for ConnectError"],["impl StackError for ConnectWithOptsError"],["impl StackError for ConnectingError"],["impl StackError for EndpointError"],["impl StackError for InvalidSocketAddr"],["impl StackError for AcceptError"],["impl StackError for RemoteEndpointIdError"],["impl StackError for RetryError"]]],["iroh_base",[["impl StackError for KeyParsingError"],["impl StackError for RelayUrlParseError"],["impl StackError for SignatureError"]]],["iroh_relay",[["impl StackError for ConnectError"],["impl StackError for DialError"],["impl StackError for RecvError"],["impl StackError for SendError"],["impl StackError for DnsError"],["impl StackError for LookupError"],["impl StackError for DecodingError"],["impl StackError for EncodingError"],["impl StackError for ParseError"],["impl StackError for FrameTypeError"],["impl StackError for Error"],["impl StackError for Error"],["impl StackError for Error"],["impl StackError for HandleFrameError"],["impl StackError for RunError"],["impl StackError for WriteFrameError"],["impl StackError for SpawnError"],["impl StackError for SupervisorError"],["impl StackError for AcceptError"],["impl StackError for ConnectionHandlerError"],["impl StackError for ServeConnectionError"],["impl StackError for RecvError"],["impl StackError for SendError"],["impl StackError for MaxLengthExceededError"],["impl StackError for ForwardPacketError"],["impl StackError for InvalidBucketConfig"],["impl<E: StackError + 'static> StackError for StaggeredError<E>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[2232,481,4610]} \ No newline at end of file +//{"start":57,"fragment_lengths":[2241,481,4610]} \ No newline at end of file diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/config/qlog/trait.QlogFactory.js b/pr/3958/docs/trait.impl/noq_proto/config/qlog/trait.QlogFactory.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/config/qlog/trait.QlogFactory.js rename to pr/3958/docs/trait.impl/noq_proto/config/qlog/trait.QlogFactory.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/config/trait.TimeSource.js b/pr/3958/docs/trait.impl/noq_proto/config/trait.TimeSource.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/config/trait.TimeSource.js rename to pr/3958/docs/trait.impl/noq_proto/config/trait.TimeSource.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/congestion/trait.Controller.js b/pr/3958/docs/trait.impl/noq_proto/congestion/trait.Controller.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/congestion/trait.Controller.js rename to pr/3958/docs/trait.impl/noq_proto/congestion/trait.Controller.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/congestion/trait.ControllerFactory.js b/pr/3958/docs/trait.impl/noq_proto/congestion/trait.ControllerFactory.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/congestion/trait.ControllerFactory.js rename to pr/3958/docs/trait.impl/noq_proto/congestion/trait.ControllerFactory.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.AeadKey.js b/pr/3958/docs/trait.impl/noq_proto/crypto/trait.AeadKey.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.AeadKey.js rename to pr/3958/docs/trait.impl/noq_proto/crypto/trait.AeadKey.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.HandshakeTokenKey.js b/pr/3958/docs/trait.impl/noq_proto/crypto/trait.HandshakeTokenKey.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.HandshakeTokenKey.js rename to pr/3958/docs/trait.impl/noq_proto/crypto/trait.HandshakeTokenKey.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.HeaderKey.js b/pr/3958/docs/trait.impl/noq_proto/crypto/trait.HeaderKey.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.HeaderKey.js rename to pr/3958/docs/trait.impl/noq_proto/crypto/trait.HeaderKey.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.PacketKey.js b/pr/3958/docs/trait.impl/noq_proto/crypto/trait.PacketKey.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/crypto/trait.PacketKey.js rename to pr/3958/docs/trait.impl/noq_proto/crypto/trait.PacketKey.js diff --git a/pr/3958/docs/trait.impl/iroh_quinn_proto/token/trait.TokenLog.js b/pr/3958/docs/trait.impl/noq_proto/token/trait.TokenLog.js similarity index 100% rename from pr/3958/docs/trait.impl/iroh_quinn_proto/token/trait.TokenLog.js rename to pr/3958/docs/trait.impl/noq_proto/token/trait.TokenLog.js diff --git a/pr/3958/docs/type.impl/iroh/endpoint/struct.Connection.js b/pr/3958/docs/type.impl/iroh/endpoint/struct.Connection.js index b38c1b0d73..15e227c1b6 100644 --- a/pr/3958/docs/type.impl/iroh/endpoint/struct.Connection.js +++ b/pr/3958/docs/type.impl/iroh/endpoint/struct.Connection.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["iroh",[["
    Source§

    impl<State: Clone + ConnectionState> Clone for Connection<State>
    where\n State::Data: Clone,

    Source§

    fn clone(&self) -> Connection<State>

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::endpoint::connection::OutgoingZeroRttConnection","iroh::endpoint::connection::IncomingZeroRttConnection"],["
    Source§

    impl Connection<IncomingZeroRtt>

    Source

    pub fn alpn(&self) -> Option<Vec<u8>>

    Extracts the ALPN protocol from the peer’s handshake data.

    \n
    Source

    pub async fn handshake_completed(&self) -> Result<Connection, ConnectingError>

    Waits until the full handshake occurs and then returns a Connection.

    \n

    This may fail with ConnectingError::ConnectionError, if there was\nsome general failure with the connection, such as a network timeout since\nwe accepted the connection.

    \n

    This may fail with ConnectingError::HandshakeFailure, if the other side\ndoesn’t use the right TLS authentication, which usually every iroh endpoint\nuses and requires.

    \n

    Thus, those errors should only occur if someone connects to you with a\nmodified iroh endpoint or with a plain QUIC client.

    \n
    Source

    pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

    Returns the EndpointId from the peer’s TLS certificate.

    \n

    The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is\nincluded in the TLS certificate presented during the handshake when connecting.\nThis function allows you to get the EndpointId of the remote endpoint of this\nconnection.

    \n
    ",0,"iroh::endpoint::connection::IncomingZeroRttConnection"],["
    Source§

    impl Connection<OutgoingZeroRtt>

    Source

    pub fn alpn(&self) -> Option<Vec<u8>>

    Extracts the ALPN protocol from the peer’s handshake data.

    \n
    Source

    pub async fn handshake_completed(\n &self,\n) -> Result<ZeroRttStatus, ConnectingError>

    Waits until the full handshake occurs and returns a ZeroRttStatus.

    \n

    If ZeroRttStatus::Accepted is returned, than any streams created before\nthe handshake has completed can still be used.

    \n

    If ZeroRttStatus::Rejected is returned, than any streams created before\nthe handshake will error and any data sent should be re-sent on a\nnew stream.

    \n

    This may fail with ConnectingError::ConnectionError, if there was\nsome general failure with the connection, such as a network timeout since\nwe initiated the connection.

    \n

    This may fail with ConnectingError::HandshakeFailure, if the other side\ndoesn’t use the right TLS authentication, which usually every iroh endpoint\nuses and requires.

    \n

    Thus, those errors should only occur if someone connects to you with a\nmodified iroh endpoint or with a plain QUIC client.

    \n
    Source

    pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

    Returns the EndpointId from the peer’s TLS certificate.

    \n

    The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is\nincluded in the TLS certificate presented during the handshake when connecting.\nThis function allows you to get the EndpointId of the remote endpoint of this\nconnection.

    \n
    ",0,"iroh::endpoint::connection::OutgoingZeroRttConnection"],["
    Source§

    impl<T: ConnectionState> Connection<T>

    Source

    pub fn open_uni(&self) -> OpenUni<'_> ⓘ

    Initiates a new outgoing unidirectional stream.

    \n

    Streams are cheap and instantaneous to open unless blocked by flow control. As a\nconsequence, the peer won’t be notified that a stream has been opened until the\nstream is actually used.

    \n
    Source

    pub fn open_bi(&self) -> OpenBi<'_> ⓘ

    Initiates a new outgoing bidirectional stream.

    \n

    Streams are cheap and instantaneous to open unless blocked by flow control. As a\nconsequence, the peer won’t be notified that a stream has been opened until the\nstream is actually used. Calling open_bi then waiting on the RecvStream\nwithout writing anything to SendStream will never succeed.

    \n
    Source

    pub fn accept_uni(&self) -> AcceptUni<'_> ⓘ

    Accepts the next incoming uni-directional stream.

    \n
    Source

    pub fn accept_bi(&self) -> AcceptBi<'_> ⓘ

    Accept the next incoming bidirectional stream.

    \n

    Important Note: The peer that calls open_bi must write to its SendStream\nbefore the peer Connection is able to accept the stream using\naccept_bi(). Calling open_bi then waiting on the RecvStream without\nwriting anything to the connected SendStream will never succeed.

    \n
    Source

    pub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ

    Receives an application datagram.

    \n
    Source

    pub async fn closed(&self) -> ConnectionError

    Wait for the connection to be closed for any reason.

    \n

    Despite the return type’s name, closed connections are often not an error condition\nat the application layer. Cases that might be routine include\nConnectionError::LocallyClosed and ConnectionError::ApplicationClosed.

    \n
    Source

    pub fn close_reason(&self) -> Option<ConnectionError>

    If the connection is closed, the reason why.

    \n

    Returns None if the connection is still open.

    \n
    Source

    pub fn close(&self, error_code: VarInt, reason: &[u8])

    Closes the connection immediately.

    \n

    Pending operations will fail immediately with ConnectionError::LocallyClosed. No\nmore data is sent to the peer and the peer may drop buffered data upon receiving the\nCONNECTION_CLOSE frame.

    \n

    error_code and reason are not interpreted, and are provided directly to the\npeer.

    \n

    reason will be truncated to fit in a single packet with overhead; to improve odds\nthat it is preserved in full, it should be kept under 1KiB.

    \n
    §Gracefully closing a connection
    \n

    Only the peer last receiving application data can be certain that all data is\ndelivered. The only reliable action it can then take is to close the connection,\npotentially with a custom error code. The delivery of the final CONNECTION_CLOSE\nframe is very likely if both endpoints stay online long enough, calling\nEndpoint::close will wait to provide sufficient time. Otherwise, the remote peer\nwill time out the connection, provided that the idle timeout is not disabled.

    \n

    The sending side can not guarantee all stream data is delivered to the remote\napplication. It only knows the data is delivered to the QUIC stack of the remote\nendpoint. Once the local side sends a CONNECTION_CLOSE frame in response to calling\nclose the remote endpoint may drop any data it received but is as yet\nundelivered to the application, including data that was acknowledged as received to\nthe local endpoint.

    \n
    Source

    pub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>

    Transmits data as an unreliable, unordered application datagram.

    \n

    Application datagrams are a low-level primitive. They may be lost or delivered out\nof order, and data must both fit inside a single QUIC packet and be smaller than\nthe maximum dictated by the peer.

    \n
    Source

    pub fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_> ⓘ

    Transmits data as an unreliable, unordered application datagram

    \n

    Unlike send_datagram(), this method will wait for buffer space during congestion\nconditions, which effectively prioritizes old datagrams over new datagrams.

    \n

    See send_datagram() for details.

    \n
    Source

    pub fn max_datagram_size(&self) -> Option<usize>

    Computes the maximum size of datagrams that may be passed to send_datagram.

    \n

    Returns None if datagrams are unsupported by the peer or disabled locally.

    \n

    This may change over the lifetime of a connection according to variation in the path\nMTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the\npeer’s limit is large this is guaranteed to be a little over a kilobyte at minimum.

    \n

    Not necessarily the maximum size of received datagrams.

    \n
    Source

    pub fn datagram_send_buffer_space(&self) -> usize

    Bytes available in the outgoing datagram buffer.

    \n

    When greater than zero, calling send_datagram with a\ndatagram of at most this size is guaranteed not to cause older datagrams to be\ndropped.

    \n
    Source

    pub fn rtt(&self, path_id: PathId) -> Option<Duration>

    Current best estimate of this connection’s latency (round-trip-time).

    \n
    Source

    pub fn stats(&self) -> ConnectionStats

    Returns connection statistics.

    \n
    Source

    pub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>>

    Current state of the congestion control algorithm, for debugging purposes.

    \n
    Source

    pub fn handshake_data(&self) -> Option<Box<dyn Any>>

    Parameters negotiated during the handshake.

    \n

    Guaranteed to return Some on fully established connections or after\nConnecting::handshake_data() succeeds. See that method’s documentations for\ndetails on the returned value.

    \n
    Source

    pub fn peer_identity(&self) -> Option<Box<dyn Any>>

    Cryptographic identity of the peer.

    \n

    The dynamic type returned is determined by the configured Session. For the\ndefault rustls session, the return value can be downcast to a\nVec<[rustls::pki_types::CertificateDer]>

    \n
    Source

    pub fn stable_id(&self) -> usize

    A stable identifier for this connection.

    \n

    Peer addresses and connection IDs can change, but this value will remain fixed for\nthe lifetime of the connection.

    \n
    Source

    pub fn export_keying_material(\n &self,\n output: &mut [u8],\n label: &[u8],\n context: &[u8],\n) -> Result<(), ExportKeyingMaterialError>

    Derives keying material from this connection’s TLS session secrets.

    \n

    When both peers call this method with the same label and context\narguments and output buffers of equal length, they will get the\nsame sequence of bytes in output. These bytes are cryptographically\nstrong and pseudorandom, and are suitable for use as keying material.

    \n

    See RFC5705 for more information.

    \n
    Source

    pub fn set_max_concurrent_uni_streams(&self, count: VarInt)

    Modifies the number of unidirectional streams that may be concurrently opened.

    \n

    No streams may be opened by the peer unless fewer than count are already\nopen. Large counts increase both minimum and worst-case memory consumption.

    \n
    Source

    pub fn set_receive_window(&self, receive_window: VarInt)

    See [quinn_proto::TransportConfig::receive_window].

    \n
    Source

    pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

    Modifies the number of bidirectional streams that may be concurrently opened.

    \n

    No streams may be opened by the peer unless fewer than count are already\nopen. Large counts increase both minimum and worst-case memory consumption.

    \n
    ",0,"iroh::endpoint::connection::OutgoingZeroRttConnection","iroh::endpoint::connection::IncomingZeroRttConnection"],["
    Source§

    impl<State: Debug + ConnectionState> Debug for Connection<State>
    where\n State::Data: Debug,

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh::endpoint::connection::OutgoingZeroRttConnection","iroh::endpoint::connection::IncomingZeroRttConnection"]]]]); + var type_impls = Object.fromEntries([["iroh",[["
    Source§

    impl<State: Clone + ConnectionState> Clone for Connection<State>
    where\n State::Data: Clone,

    Source§

    fn clone(&self) -> Connection<State>

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::endpoint::connection::OutgoingZeroRttConnection","iroh::endpoint::connection::IncomingZeroRttConnection"],["
    Source§

    impl Connection<IncomingZeroRtt>

    Source

    pub fn alpn(&self) -> Option<Vec<u8>>

    Extracts the ALPN protocol from the peer’s handshake data.

    \n
    Source

    pub async fn handshake_completed(&self) -> Result<Connection, ConnectingError>

    Waits until the full handshake occurs and then returns a Connection.

    \n

    This may fail with ConnectingError::ConnectionError, if there was\nsome general failure with the connection, such as a network timeout since\nwe accepted the connection.

    \n

    This may fail with ConnectingError::HandshakeFailure, if the other side\ndoesn’t use the right TLS authentication, which usually every iroh endpoint\nuses and requires.

    \n

    Thus, those errors should only occur if someone connects to you with a\nmodified iroh endpoint or with a plain QUIC client.

    \n
    Source

    pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

    Returns the EndpointId from the peer’s TLS certificate.

    \n

    The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is\nincluded in the TLS certificate presented during the handshake when connecting.\nThis function allows you to get the EndpointId of the remote endpoint of this\nconnection.

    \n
    ",0,"iroh::endpoint::connection::IncomingZeroRttConnection"],["
    Source§

    impl Connection<OutgoingZeroRtt>

    Source

    pub fn alpn(&self) -> Option<Vec<u8>>

    Extracts the ALPN protocol from the peer’s handshake data.

    \n
    Source

    pub async fn handshake_completed(\n &self,\n) -> Result<ZeroRttStatus, ConnectingError>

    Waits until the full handshake occurs and returns a ZeroRttStatus.

    \n

    If ZeroRttStatus::Accepted is returned, than any streams created before\nthe handshake has completed can still be used.

    \n

    If ZeroRttStatus::Rejected is returned, than any streams created before\nthe handshake will error and any data sent should be re-sent on a\nnew stream.

    \n

    This may fail with ConnectingError::ConnectionError, if there was\nsome general failure with the connection, such as a network timeout since\nwe initiated the connection.

    \n

    This may fail with ConnectingError::HandshakeFailure, if the other side\ndoesn’t use the right TLS authentication, which usually every iroh endpoint\nuses and requires.

    \n

    Thus, those errors should only occur if someone connects to you with a\nmodified iroh endpoint or with a plain QUIC client.

    \n
    Source

    pub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>

    Returns the EndpointId from the peer’s TLS certificate.

    \n

    The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is\nincluded in the TLS certificate presented during the handshake when connecting.\nThis function allows you to get the EndpointId of the remote endpoint of this\nconnection.

    \n
    ",0,"iroh::endpoint::connection::OutgoingZeroRttConnection"],["
    Source§

    impl<T: ConnectionState> Connection<T>

    Source

    pub fn open_uni(&self) -> OpenUni<'_> ⓘ

    Initiates a new outgoing unidirectional stream.

    \n

    Streams are cheap and instantaneous to open unless blocked by flow control. As a\nconsequence, the peer won’t be notified that a stream has been opened until the\nstream is actually used.

    \n
    Source

    pub fn open_bi(&self) -> OpenBi<'_> ⓘ

    Initiates a new outgoing bidirectional stream.

    \n

    Streams are cheap and instantaneous to open unless blocked by flow control. As a\nconsequence, the peer won’t be notified that a stream has been opened until the\nstream is actually used. Calling open_bi then waiting on the RecvStream\nwithout writing anything to SendStream will never succeed.

    \n
    Source

    pub fn accept_uni(&self) -> AcceptUni<'_> ⓘ

    Accepts the next incoming uni-directional stream.

    \n
    Source

    pub fn accept_bi(&self) -> AcceptBi<'_> ⓘ

    Accept the next incoming bidirectional stream.

    \n

    Important Note: The peer that calls open_bi must write to its SendStream\nbefore the peer Connection is able to accept the stream using\naccept_bi(). Calling open_bi then waiting on the RecvStream without\nwriting anything to the connected SendStream will never succeed.

    \n
    Source

    pub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ

    Receives an application datagram.

    \n
    Source

    pub async fn closed(&self) -> ConnectionError

    Wait for the connection to be closed for any reason.

    \n

    Despite the return type’s name, closed connections are often not an error condition\nat the application layer. Cases that might be routine include\nConnectionError::LocallyClosed and ConnectionError::ApplicationClosed.

    \n
    Source

    pub fn close_reason(&self) -> Option<ConnectionError>

    If the connection is closed, the reason why.

    \n

    Returns None if the connection is still open.

    \n
    Source

    pub fn close(&self, error_code: VarInt, reason: &[u8])

    Closes the connection immediately.

    \n

    Pending operations will fail immediately with ConnectionError::LocallyClosed. No\nmore data is sent to the peer and the peer may drop buffered data upon receiving the\nCONNECTION_CLOSE frame.

    \n

    error_code and reason are not interpreted, and are provided directly to the\npeer.

    \n

    reason will be truncated to fit in a single packet with overhead; to improve odds\nthat it is preserved in full, it should be kept under 1KiB.

    \n
    §Gracefully closing a connection
    \n

    Only the peer last receiving application data can be certain that all data is\ndelivered. The only reliable action it can then take is to close the connection,\npotentially with a custom error code. The delivery of the final CONNECTION_CLOSE\nframe is very likely if both endpoints stay online long enough, calling\nEndpoint::close will wait to provide sufficient time. Otherwise, the remote peer\nwill time out the connection, provided that the idle timeout is not disabled.

    \n

    The sending side can not guarantee all stream data is delivered to the remote\napplication. It only knows the data is delivered to the QUIC stack of the remote\nendpoint. Once the local side sends a CONNECTION_CLOSE frame in response to calling\nclose the remote endpoint may drop any data it received but is as yet\nundelivered to the application, including data that was acknowledged as received to\nthe local endpoint.

    \n
    Source

    pub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>

    Transmits data as an unreliable, unordered application datagram.

    \n

    Application datagrams are a low-level primitive. They may be lost or delivered out\nof order, and data must both fit inside a single QUIC packet and be smaller than\nthe maximum dictated by the peer.

    \n
    Source

    pub fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_> ⓘ

    Transmits data as an unreliable, unordered application datagram

    \n

    Unlike send_datagram(), this method will wait for buffer space during congestion\nconditions, which effectively prioritizes old datagrams over new datagrams.

    \n

    See send_datagram() for details.

    \n
    Source

    pub fn max_datagram_size(&self) -> Option<usize>

    Computes the maximum size of datagrams that may be passed to send_datagram.

    \n

    Returns None if datagrams are unsupported by the peer or disabled locally.

    \n

    This may change over the lifetime of a connection according to variation in the path\nMTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the\npeer’s limit is large this is guaranteed to be a little over a kilobyte at minimum.

    \n

    Not necessarily the maximum size of received datagrams.

    \n
    Source

    pub fn datagram_send_buffer_space(&self) -> usize

    Bytes available in the outgoing datagram buffer.

    \n

    When greater than zero, calling send_datagram with a\ndatagram of at most this size is guaranteed not to cause older datagrams to be\ndropped.

    \n
    Source

    pub fn rtt(&self, path_id: PathId) -> Option<Duration>

    Current best estimate of this connection’s latency (round-trip-time).

    \n
    Source

    pub fn stats(&self) -> ConnectionStats

    Returns connection statistics.

    \n
    Source

    pub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>>

    Current state of the congestion control algorithm, for debugging purposes.

    \n
    Source

    pub fn handshake_data(&self) -> Option<Box<dyn Any>>

    Parameters negotiated during the handshake.

    \n

    Guaranteed to return Some on fully established connections or after\nConnecting::handshake_data() succeeds. See that method’s documentations for\ndetails on the returned value.

    \n
    Source

    pub fn peer_identity(&self) -> Option<Box<dyn Any>>

    Cryptographic identity of the peer.

    \n

    The dynamic type returned is determined by the configured Session. For the\ndefault rustls session, the return value can be downcast to a\nVec<[rustls::pki_types::CertificateDer]>

    \n
    Source

    pub fn stable_id(&self) -> usize

    A stable identifier for this connection.

    \n

    Peer addresses and connection IDs can change, but this value will remain fixed for\nthe lifetime of the connection.

    \n
    Source

    pub fn export_keying_material(\n &self,\n output: &mut [u8],\n label: &[u8],\n context: &[u8],\n) -> Result<(), ExportKeyingMaterialError>

    Derives keying material from this connection’s TLS session secrets.

    \n

    When both peers call this method with the same label and context\narguments and output buffers of equal length, they will get the\nsame sequence of bytes in output. These bytes are cryptographically\nstrong and pseudorandom, and are suitable for use as keying material.

    \n

    See RFC5705 for more information.

    \n
    Source

    pub fn set_max_concurrent_uni_streams(&self, count: VarInt)

    Modifies the number of unidirectional streams that may be concurrently opened.

    \n

    No streams may be opened by the peer unless fewer than count are already\nopen. Large counts increase both minimum and worst-case memory consumption.

    \n
    Source

    pub fn set_receive_window(&self, receive_window: VarInt)

    See [quinn_proto::TransportConfig::receive_window].

    \n
    Source

    pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

    Modifies the number of bidirectional streams that may be concurrently opened.

    \n

    No streams may be opened by the peer unless fewer than count are already\nopen. Large counts increase both minimum and worst-case memory consumption.

    \n
    ",0,"iroh::endpoint::connection::OutgoingZeroRttConnection","iroh::endpoint::connection::IncomingZeroRttConnection"],["
    Source§

    impl<State: Debug + ConnectionState> Debug for Connection<State>
    where\n State::Data: Debug,

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh::endpoint::connection::OutgoingZeroRttConnection","iroh::endpoint::connection::IncomingZeroRttConnection"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[40392]} \ No newline at end of file +//{"start":55,"fragment_lengths":[40401]} \ No newline at end of file diff --git a/pr/3958/docs/type.impl/iroh/struct.PublicKey.js b/pr/3958/docs/type.impl/iroh/struct.PublicKey.js index 4794fb614c..9d088ee946 100644 --- a/pr/3958/docs/type.impl/iroh/struct.PublicKey.js +++ b/pr/3958/docs/type.impl/iroh/struct.PublicKey.js @@ -1,5 +1,5 @@ (function() { - var type_impls = Object.fromEntries([["iroh",[["
    Source§

    impl AsRef<[u8]> for PublicKey

    Source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh::EndpointId"],["
    Source§

    impl Borrow<[u8; 32]> for PublicKey

    Source§

    fn borrow(&self) -> &[u8; 32]

    Immutably borrows from an owned value. Read more
    ","Borrow<[u8; 32]>","iroh::EndpointId"],["
    Source§

    impl Clone for PublicKey

    Source§

    fn clone(&self) -> PublicKey

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::EndpointId"],["
    Source§

    impl Debug for PublicKey

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::EndpointId"],["
    Source§

    impl Deref for PublicKey

    Source§

    type Target = [u8; 32]

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &<PublicKey as Deref>::Target

    Dereferences the value.
    ","Deref","iroh::EndpointId"],["
    Source§

    impl<'de> Deserialize<'de> for PublicKey

    Source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::EndpointId"],["
    Source§

    impl Display for PublicKey

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","iroh::EndpointId"],["
    Source§

    impl EndpointIdExt for PublicKey

    Source§

    fn to_z32(&self) -> String

    Encodes a EndpointId in z-base-32 encoding.
    Source§

    fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

    Parses a EndpointId from z-base-32 encoding.
    ","EndpointIdExt","iroh::EndpointId"],["
    Source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    Source§

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh::EndpointId"],["
    Source§

    impl Hash for PublicKey

    Source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::EndpointId"],["
    Source§

    impl Ord for PublicKey

    Source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::EndpointId"],["
    Source§

    impl PartialEq for PublicKey

    Source§

    fn eq(&self, other: &PublicKey) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","iroh::EndpointId"],["
    Source§

    impl PartialOrd for PublicKey

    Source§

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","iroh::EndpointId"],["
    Source§

    impl PublicKey

    Source

    pub const LENGTH: usize = 32usize

    The length of an ed25519 PublicKey, in bytes.

    \n
    Source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    \n
    Source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, KeyParsingError>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a SignatureError if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    Source

    pub fn verify(\n &self,\n message: &[u8],\n signature: &Signature,\n) -> Result<(), SignatureError>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n
    Source

    pub fn fmt_short(&self) -> impl Display + Copy + 'static

    Convert to a hex string limited to the first 5 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh::EndpointId"],["
    Source§

    impl Serialize for PublicKey

    Source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::EndpointId"],["
    Source§

    impl TryFrom<&[u8]> for PublicKey

    Source§

    type Error = KeyParsingError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(\n bytes: &[u8],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh::EndpointId"],["
    Source§

    impl TryFrom<&[u8; 32]> for PublicKey

    Source§

    type Error = KeyParsingError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(\n bytes: &[u8; 32],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh::EndpointId"],["
    Source§

    impl Copy for PublicKey

    ","Copy","iroh::EndpointId"],["
    Source§

    impl Eq for PublicKey

    ","Eq","iroh::EndpointId"],["
    Source§

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh::EndpointId"]]]]); + var type_impls = Object.fromEntries([["iroh",[["
    Source§

    impl AsRef<[u8]> for PublicKey

    Source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh::EndpointId"],["
    Source§

    impl Borrow<[u8; 32]> for PublicKey

    Source§

    fn borrow(&self) -> &[u8; 32]

    Immutably borrows from an owned value. Read more
    ","Borrow<[u8; 32]>","iroh::EndpointId"],["
    Source§

    impl Clone for PublicKey

    Source§

    fn clone(&self) -> PublicKey

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::EndpointId"],["
    Source§

    impl Debug for PublicKey

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::EndpointId"],["
    Source§

    impl Deref for PublicKey

    Source§

    type Target = [u8; 32]

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &<PublicKey as Deref>::Target

    Dereferences the value.
    ","Deref","iroh::EndpointId"],["
    Source§

    impl<'de> Deserialize<'de> for PublicKey

    Source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::EndpointId"],["
    Source§

    impl Display for PublicKey

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","iroh::EndpointId"],["
    Source§

    impl EndpointIdExt for PublicKey

    Source§

    fn to_z32(&self) -> String

    Encodes a EndpointId in z-base-32 encoding.
    Source§

    fn from_z32(s: &str) -> Result<PublicKey, DecodingError>

    Parses a EndpointId from z-base-32 encoding.
    ","EndpointIdExt","iroh::EndpointId"],["
    Source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    Source§

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh::EndpointId"],["
    Source§

    impl Hash for PublicKey

    Source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::EndpointId"],["
    Source§

    impl Ord for PublicKey

    Source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::EndpointId"],["
    Source§

    impl PartialEq for PublicKey

    Source§

    fn eq(&self, other: &PublicKey) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","iroh::EndpointId"],["
    Source§

    impl PartialOrd for PublicKey

    Source§

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","iroh::EndpointId"],["
    Source§

    impl PublicKey

    Source

    pub const LENGTH: usize = 32usize

    The length of an ed25519 PublicKey, in bytes.

    \n
    Source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    \n
    Source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, KeyParsingError>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a SignatureError if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    Source

    pub fn verify(\n &self,\n message: &[u8],\n signature: &Signature,\n) -> Result<(), SignatureError>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n
    Source

    pub fn fmt_short(&self) -> impl Display + Copy + 'static

    Convert to a hex string limited to the first 5 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh::EndpointId"],["
    Source§

    impl Serialize for PublicKey

    Source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::EndpointId"],["
    Source§

    impl TryFrom<&[u8]> for PublicKey

    Source§

    type Error = KeyParsingError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(\n bytes: &[u8],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh::EndpointId"],["
    Source§

    impl TryFrom<&[u8; 32]> for PublicKey

    Source§

    type Error = KeyParsingError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(\n bytes: &[u8; 32],\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh::EndpointId"],["
    Source§

    impl Copy for PublicKey

    ","Copy","iroh::EndpointId"],["
    Source§

    impl Eq for PublicKey

    ","Eq","iroh::EndpointId"],["
    Source§

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh::EndpointId"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else {