From e5b76e3976b53bdcca1e1b0343122871c8e476a0 Mon Sep 17 00:00:00 2001 From: rklaehn Date: Wed, 8 Apr 2026 11:15:09 +0000 Subject: [PATCH] deploy: c923d4c27ef873120d40476720e6a90983fccab2 --- .../endpoint_info/fn.endpoint_id_from_txt_name.html | 4 ++-- pr/4033/docs/iroh_dns/endpoint_info/index.html | 4 ++-- .../docs/iroh_dns/endpoint_info/struct.TxtAttrs.html | 10 +++++----- pr/4033/docs/iroh_dns/enum.DecodingError.html | 4 ++-- pr/4033/docs/iroh_dns/index.html | 2 +- pr/4033/docs/iroh_dns/pkarr/struct.SignedPacket.html | 8 ++++---- pr/4033/docs/iroh_dns/trait.EndpointIdExt.html | 10 +++++----- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/pr/4033/docs/iroh_dns/endpoint_info/fn.endpoint_id_from_txt_name.html b/pr/4033/docs/iroh_dns/endpoint_info/fn.endpoint_id_from_txt_name.html index 34a39ac714..07d71e0188 100644 --- a/pr/4033/docs/iroh_dns/endpoint_info/fn.endpoint_id_from_txt_name.html +++ b/pr/4033/docs/iroh_dns/endpoint_info/fn.endpoint_id_from_txt_name.html @@ -1,4 +1,4 @@ -endpoint_id_from_txt_name in iroh_dns::endpoint_info - Rust

endpoint_id_from_txt_name

Function endpoint_id_from_txt_name 

Source
pub fn endpoint_id_from_txt_name(name: &str) -> Result<EndpointId, ParseError>
Expand description

Parses a EndpointId from iroh DNS name.

+endpoint_id_from_txt_name in iroh_dns::endpoint_info - Rust

endpoint_id_from_txt_name

Function endpoint_id_from_txt_name 

Source
pub fn endpoint_id_from_txt_name(name: &str) -> Result<EndpointId, ParseError>
Expand description

Parses a [EndpointId] from iroh DNS name.

Takes a DNS name and expects the first label to be IROH_TXT_NAME and the second -label to be a z32 encoded EndpointId. Ignores subsequent labels.

+label to be a z32 encoded [EndpointId]. Ignores subsequent labels.

\ No newline at end of file diff --git a/pr/4033/docs/iroh_dns/endpoint_info/index.html b/pr/4033/docs/iroh_dns/endpoint_info/index.html index bedf950022..ccf4982b53 100644 --- a/pr/4033/docs/iroh_dns/endpoint_info/index.html +++ b/pr/4033/docs/iroh_dns/endpoint_info/index.html @@ -1,6 +1,6 @@ -iroh_dns::endpoint_info - Rust

Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by EndpointId.

+iroh_dns::endpoint_info - Rust

Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by [EndpointId].

DNS records are published under the following names:

_iroh.<z32-endpoint-id>.<origin-domain> TXT

The returned TXT records must contain a string value of the form key=value as defined in RFC1464.

-

Structs§

TxtAttrs
Attributes parsed from IROH_TXT_NAME TXT records.

Enums§

EncodingError
IrohAttr
The attributes supported by iroh for IROH_TXT_NAME DNS resource records.
ParseError

Constants§

IROH_TXT_NAME
The DNS name for the iroh TXT record.

Functions§

endpoint_id_from_txt_name
Parses a EndpointId from iroh DNS name.
\ No newline at end of file +

Structs§

TxtAttrs
Attributes parsed from IROH_TXT_NAME TXT records.

Enums§

EncodingError
IrohAttr
The attributes supported by iroh for IROH_TXT_NAME DNS resource records.
ParseError

Constants§

IROH_TXT_NAME
The DNS name for the iroh TXT record.

Functions§

endpoint_id_from_txt_name
Parses a [EndpointId] from iroh DNS name.
\ No newline at end of file diff --git a/pr/4033/docs/iroh_dns/endpoint_info/struct.TxtAttrs.html b/pr/4033/docs/iroh_dns/endpoint_info/struct.TxtAttrs.html index f58ffea21d..1df21d61a7 100644 --- a/pr/4033/docs/iroh_dns/endpoint_info/struct.TxtAttrs.html +++ b/pr/4033/docs/iroh_dns/endpoint_info/struct.TxtAttrs.html @@ -3,15 +3,15 @@ all attributes. Can also be used with an enum, if it implements FromStr and Display.

Implementations§

Source§

impl<T: FromStr + Display + Hash + Ord> TxtAttrs<T>

Source

pub fn from_parts( - endpoint_id: EndpointId, + endpoint_id: EndpointId, pairs: impl Iterator<Item = (T, String)>, ) -> Self

Creates TxtAttrs from an endpoint id and an iterator of key-value pairs.

Source

pub fn from_strings( - endpoint_id: EndpointId, + endpoint_id: EndpointId, strings: impl Iterator<Item = String>, ) -> Result<Self, ParseError>

Creates TxtAttrs from an endpoint id and an iterator of “{key}={value}” strings.

Source

pub fn attrs(&self) -> &BTreeMap<T, Vec<String>>

Returns the parsed attributes.

-
Source

pub fn endpoint_id(&self) -> EndpointId

Returns the endpoint id.

+
Source

pub fn endpoint_id(&self) -> EndpointId

Returns the endpoint id.

Source

pub fn from_txt_lookup( name: String, lookup: impl Iterator<Item = impl Display>, @@ -24,10 +24,10 @@ values that implement
Source

pub fn to_txt_strings(&self) -> impl Iterator<Item = String> + '_

Converts to {key}={value} strings.

Source

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

Creates a pkarr::SignedPacket

-

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

+

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

Trait Implementations§

Source§

impl<T: Debug> Debug for TxtAttrs<T>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for TxtAttrs<T>

§

impl<T> RefUnwindSafe for TxtAttrs<T>
where T: RefUnwindSafe,

§

impl<T> Send for TxtAttrs<T>
where T: Send,

§

impl<T> Sync for TxtAttrs<T>
where diff --git a/pr/4033/docs/iroh_dns/enum.DecodingError.html b/pr/4033/docs/iroh_dns/enum.DecodingError.html index 17154d3684..92e50d2af4 100644 --- a/pr/4033/docs/iroh_dns/enum.DecodingError.html +++ b/pr/4033/docs/iroh_dns/enum.DecodingError.html @@ -8,12 +8,12 @@ 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: DecodeError
§meta: Meta

Captured call-site metadata

§

InvalidLength

Fields

§len: usize
§meta: Meta

Captured call-site metadata

-
§

InvalidKey

Fields

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
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 diff --git a/pr/4033/docs/iroh_dns/index.html b/pr/4033/docs/iroh_dns/index.html index 0a7c5fa689..be602f0e22 100644 --- a/pr/4033/docs/iroh_dns/index.html +++ b/pr/4033/docs/iroh_dns/index.html @@ -1,5 +1,5 @@ iroh_dns - Rust

Crate iroh_dns

Crate iroh_dns 

Source
Expand description

DNS-based endpoint discovery for iroh.

This crate contains the core types for publishing and resolving iroh endpoint information via DNS, using the pkarr signed packet format.

-

Modules§

endpoint_info
Support for handling DNS resource records for dialing by EndpointId.
pkarr
Pkarr signed packet encoding.

Enums§

DecodingError

Traits§

EndpointIdExt
Extension methods for EndpointId to encode to and decode from z-base-32, +

Modules§

endpoint_info
Support for handling DNS resource records for dialing by [EndpointId].
pkarr
Pkarr signed packet encoding.

Enums§

DecodingError

Traits§

EndpointIdExt
Extension methods for [EndpointId] to encode to and decode from z-base-32, which is the encoding used by pkarr domain names.

\ No newline at end of file diff --git a/pr/4033/docs/iroh_dns/pkarr/struct.SignedPacket.html b/pr/4033/docs/iroh_dns/pkarr/struct.SignedPacket.html index 651c5a897c..4d719bcc57 100644 --- a/pr/4033/docs/iroh_dns/pkarr/struct.SignedPacket.html +++ b/pr/4033/docs/iroh_dns/pkarr/struct.SignedPacket.html @@ -3,7 +3,7 @@

The DNS packet must be at most 1000 bytes. Total max size is 1104 bytes.

Implementations§

Source§

impl SignedPacket

Source

pub const MAX_BYTES: usize = 1_104usize

Maximum total byte size of a signed packet.

Source

pub fn from_txt_strings( - secret_key: &SecretKey, + secret_key: &SecretKey, name: &str, values: impl IntoIterator<Item = impl AsRef<str>>, ttl: u32, @@ -11,7 +11,7 @@

This is the common case: multiple TXT values under the same DNS name (e.g. "_iroh").

Source

pub fn from_bytes(bytes: &[u8]) -> Result<SignedPacket, SignedPacketVerifyError>

Parse and verify a signed packet from its wire representation.

Source

pub fn from_relay_payload( - public_key: &PublicKey, + public_key: &PublicKey, payload: &[u8], ) -> Result<SignedPacket, SignedPacketVerifyError>

Create from a public key and relay payload (signature + timestamp + dns).

Source

pub fn from_bytes_unchecked( @@ -20,8 +20,8 @@

Still validates minimum length and DNS parsing.

Source

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

Return the full serialized bytes.

Source

pub fn to_relay_payload(&self) -> Vec<u8> ⓘ

Return the relay payload (everything after the public key).

-
Source

pub fn public_key(&self) -> PublicKey

Return the public key.

-
Source

pub fn signature(&self) -> Signature

Return the signature.

+
Source

pub fn public_key(&self) -> PublicKey

Return the public key.

+
Source

pub fn signature(&self) -> Signature

Return the signature.

Source

pub fn timestamp(&self) -> u64

Return the timestamp in microseconds since UNIX epoch.

Source

pub fn encoded_packet(&self) -> &[u8] ⓘ

Return the encoded DNS packet bytes.

Source

pub fn txt_records(&self, name: &str) -> Vec<String>

Iterate over TXT records under a specific DNS name.

diff --git a/pr/4033/docs/iroh_dns/trait.EndpointIdExt.html b/pr/4033/docs/iroh_dns/trait.EndpointIdExt.html index 4ee78decb2..bdd3ab70e4 100644 --- a/pr/4033/docs/iroh_dns/trait.EndpointIdExt.html +++ b/pr/4033/docs/iroh_dns/trait.EndpointIdExt.html @@ -1,9 +1,9 @@ EndpointIdExt in iroh_dns - 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 z-base-32, + fn from_z32(s: &str) -> Result<EndpointId, DecodingError>; +}

Expand description

Extension methods for [EndpointId] to encode to and decode from z-base-32, which is the encoding used by 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

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

Source§

fn to_z32(&self) -> String

Source§

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

Implementors§

\ No newline at end of file