From 71d6fff7585744ee8be76ef66a5a4bf7abe4f2be Mon Sep 17 00:00:00 2001 From: matheus23 Date: Mon, 5 May 2025 08:49:12 +0000 Subject: [PATCH] deploy: 772aae444f516b8a764709c09de1c23b5999662c --- .../docs/iroh/discovery/struct.NodeInfo.html | 28 +++++++++---------- .../docs/iroh/discovery/struct.UserData.html | 4 +-- .../struct.MaxLengthExceededError.html | 2 +- .../docs/iroh/node_info/struct.NodeInfo.html | 28 +++++++++---------- .../docs/iroh/node_info/struct.UserData.html | 4 +-- pr/3161/docs/iroh/struct.NodeAddr.html | 2 +- .../iroh_relay/client/enum.ConnectError.html | 2 +- .../iroh_relay/client/enum.DialError.html | 8 +++--- .../client/enum.ReceivedMessage.html | 4 +-- .../iroh_relay/client/enum.RecvError.html | 8 +++--- .../iroh_relay/client/enum.SendError.html | 2 +- .../iroh_relay/client/enum.SendMessage.html | 18 ++++++------ .../fn.make_dangerous_client_config.html | 2 +- pr/3161/docs/iroh_relay/client/index.html | 2 +- .../docs/iroh_relay/client/struct.Client.html | 14 +++++----- .../client/struct.ClientBuilder.html | 20 ++++++------- .../iroh_relay/client/struct.ClientSink.html | 10 +++---- .../client/struct.ClientStream.html | 6 ++-- pr/3161/docs/iroh_relay/dns/enum.Error.html | 2 +- pr/3161/docs/iroh_relay/node_info/index.html | 2 +- .../struct.MaxLengthExceededError.html | 2 +- .../iroh_relay/node_info/struct.NodeInfo.html | 28 +++++++++---------- .../iroh_relay/node_info/struct.UserData.html | 4 +-- .../iroh_relay/protos/relay/enum.Error.html | 4 +-- .../docs/iroh_relay/protos/relay/index.html | 2 +- .../iroh_relay/protos/stun/enum.Error.html | 2 +- .../docs/iroh_relay/protos/stun/fn.is.html | 2 +- .../protos/stun/fn.parse_binding_request.html | 2 +- .../protos/stun/fn.parse_response.html | 2 +- .../iroh_relay/protos/stun/fn.request.html | 2 +- .../iroh_relay/protos/stun/fn.response.html | 2 +- .../docs/iroh_relay/protos/stun/index.html | 2 +- pr/3161/docs/iroh_relay/quic/enum.Error.html | 8 +++--- pr/3161/docs/iroh_relay/quic/index.html | 2 +- .../iroh_relay/quic/struct.QuicClient.html | 8 +++--- .../iroh_relay/server/enum.SpawnError.html | 2 +- .../server/enum.SupervisorError.html | 8 +++--- pr/3161/docs/iroh_relay/server/index.html | 2 +- .../docs/iroh_relay/server/struct.Server.html | 20 ++++++------- pr/3161/docs/src/iroh_relay/client.rs.html | 6 +--- .../docs/src/iroh_relay/client/conn.rs.html | 6 +--- pr/3161/docs/src/iroh_relay/node_info.rs.html | 4 +-- .../docs/src/iroh_relay/protos/relay.rs.html | 4 +-- .../docs/src/iroh_relay/protos/stun.rs.html | 4 +-- pr/3161/docs/src/iroh_relay/quic.rs.html | 6 +--- pr/3161/docs/src/iroh_relay/server.rs.html | 6 +--- .../docs/src/iroh_relay/server/client.rs.html | 6 +--- .../src/iroh_relay/server/clients.rs.html | 4 +-- .../src/iroh_relay/server/http_server.rs.html | 4 +-- 49 files changed, 146 insertions(+), 176 deletions(-) diff --git a/pr/3161/docs/iroh/discovery/struct.NodeInfo.html b/pr/3161/docs/iroh/discovery/struct.NodeInfo.html index 19aa8e37ce..695e876456 100644 --- a/pr/3161/docs/iroh/discovery/struct.NodeInfo.html +++ b/pr/3161/docs/iroh/discovery/struct.NodeInfo.html @@ -1,31 +1,31 @@ -NodeInfo in iroh::discovery - Rust
iroh::discovery

Struct NodeInfo

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

Struct NodeInfo

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

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

This struct couples a NodeId with its associated NodeData.

Fields§

§node_id: PublicKey

The NodeId of the node this is about.

§data: NodeData

The information published about the node.

-

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: PublicKey) -> NodeInfo

Creates a new NodeInfo with an empty NodeData.

-
Source

pub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo

Creates a new NodeInfo from its parts.

-
Source

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

Sets the relay URL and returns the updated node info.

-
Source

pub fn with_direct_addresses( +

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: PublicKey) -> NodeInfo

Creates a new NodeInfo with an empty NodeData.

+
Source

pub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo

Creates a new NodeInfo from its parts.

+
Source

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

Sets the relay URL and returns the updated node info.

+
Source

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

Sets the direct addresses and returns the updated node info.

-
Source

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

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

-
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

-
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

-
Source

pub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>

Available on non-wasm_browser only.

Parses a NodeInfo from a TXT records lookup.

-
Source

pub fn from_pkarr_signed_packet( +

Source

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

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

+
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

+
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

+
Source

pub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>

Available on non-wasm_browser only.

Parses a NodeInfo from a TXT records lookup.

+
Source

pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<NodeInfo, Error>

Parses a NodeInfo 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, Error>

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.

+
Source

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

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

Methods from Deref<Target = NodeData>§

Source

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

Returns the relay URL of the node.

Source

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

Returns the optional user-defined data of the node.

Source

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

Returns the direct addresses of the node.

@@ -36,8 +36,8 @@ )

Adds direct addresses to the node data.

Source

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

Sets the relay URL of the node data.

Source

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

Sets the user-defined data of the node data.

-

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<NodeInfo as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

fn deref_mut(&mut self) -> &mut <NodeInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<DiscoveryItem> for NodeInfo

Source§

fn from(item: DiscoveryItem) -> Self

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl PartialEq for NodeInfo

Source§

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

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

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

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

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<NodeInfo as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

fn deref_mut(&mut self) -> &mut <NodeInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<DiscoveryItem> for NodeInfo

Source§

fn from(item: DiscoveryItem) -> Self

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl PartialEq for NodeInfo

Source§

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

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

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

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

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3161/docs/iroh/discovery/struct.UserData.html b/pr/3161/docs/iroh/discovery/struct.UserData.html index 50e8069f80..bde15fc7b5 100644 --- a/pr/3161/docs/iroh/discovery/struct.UserData.html +++ b/pr/3161/docs/iroh/discovery/struct.UserData.html @@ -6,7 +6,7 @@ convert &str and String into UserData

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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 @@ -16,7 +16,7 @@ which leaves 245 bytes for the actual user-defined data.

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/3161/docs/iroh/node_info/struct.MaxLengthExceededError.html b/pr/3161/docs/iroh/node_info/struct.MaxLengthExceededError.html index 15055e5ec9..acc9033878 100644 --- a/pr/3161/docs/iroh/node_info/struct.MaxLengthExceededError.html +++ b/pr/3161/docs/iroh/node_info/struct.MaxLengthExceededError.html @@ -1,4 +1,4 @@ -MaxLengthExceededError in iroh::node_info - Rust
iroh::node_info

Struct MaxLengthExceededError

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

Error returned when an input value is too long for UserData.

+MaxLengthExceededError in iroh::node_info - Rust
iroh::node_info

Struct MaxLengthExceededError

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

Error returned when an input value is too long for UserData.

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, __snafu_display_formatter: &mut Formatter<'_>, diff --git a/pr/3161/docs/iroh/node_info/struct.NodeInfo.html b/pr/3161/docs/iroh/node_info/struct.NodeInfo.html index 6b228a1b15..ced7737ebb 100644 --- a/pr/3161/docs/iroh/node_info/struct.NodeInfo.html +++ b/pr/3161/docs/iroh/node_info/struct.NodeInfo.html @@ -1,31 +1,31 @@ -NodeInfo in iroh::node_info - Rust
iroh::node_info

Struct NodeInfo

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

Struct NodeInfo

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

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

This struct couples a NodeId with its associated NodeData.

Fields§

§node_id: PublicKey

The NodeId of the node this is about.

§data: NodeData

The information published about the node.

-

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: PublicKey) -> NodeInfo

Creates a new NodeInfo with an empty NodeData.

-
Source

pub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo

Creates a new NodeInfo from its parts.

-
Source

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

Sets the relay URL and returns the updated node info.

-
Source

pub fn with_direct_addresses( +

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: PublicKey) -> NodeInfo

Creates a new NodeInfo with an empty NodeData.

+
Source

pub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo

Creates a new NodeInfo from its parts.

+
Source

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

Sets the relay URL and returns the updated node info.

+
Source

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

Sets the direct addresses and returns the updated node info.

-
Source

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

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

-
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

-
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

-
Source

pub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>

Available on non-wasm_browser only.

Parses a NodeInfo from a TXT records lookup.

-
Source

pub fn from_pkarr_signed_packet( +

Source

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

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

+
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

+
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

+
Source

pub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>

Available on non-wasm_browser only.

Parses a NodeInfo from a TXT records lookup.

+
Source

pub fn from_pkarr_signed_packet( packet: &SignedPacket, ) -> Result<NodeInfo, Error>

Parses a NodeInfo 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, Error>

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.

+
Source

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

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

Methods from Deref<Target = NodeData>§

Source

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

Returns the relay URL of the node.

Source

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

Returns the optional user-defined data of the node.

Source

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

Returns the direct addresses of the node.

@@ -36,8 +36,8 @@ )

Adds direct addresses to the node data.

Source

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

Sets the relay URL of the node data.

Source

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

Sets the user-defined data of the node data.

-

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<NodeInfo as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

fn deref_mut(&mut self) -> &mut <NodeInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<DiscoveryItem> for NodeInfo

Source§

fn from(item: DiscoveryItem) -> Self

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl PartialEq for NodeInfo

Source§

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

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

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

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

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<NodeInfo as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

fn deref_mut(&mut self) -> &mut <NodeInfo as Deref>::Target

Mutably dereferences the value.
Source§

impl From<&TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<DiscoveryItem> for NodeInfo

Source§

fn from(item: DiscoveryItem) -> Self

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<TxtAttrs<IrohAttr>> for NodeInfo

Source§

fn from(attrs: TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
Source§

impl PartialEq for NodeInfo

Source§

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

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

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

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

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3161/docs/iroh/node_info/struct.UserData.html b/pr/3161/docs/iroh/node_info/struct.UserData.html index 9a67df0c51..002c29ab63 100644 --- a/pr/3161/docs/iroh/node_info/struct.UserData.html +++ b/pr/3161/docs/iroh/node_info/struct.UserData.html @@ -6,7 +6,7 @@ convert &str and String into UserData

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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 @@ -16,7 +16,7 @@ which leaves 245 bytes for the actual user-defined data.

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/3161/docs/iroh/struct.NodeAddr.html b/pr/3161/docs/iroh/struct.NodeAddr.html index 641c69af59..ca4cd19bdd 100644 --- a/pr/3161/docs/iroh/struct.NodeAddr.html +++ b/pr/3161/docs/iroh/struct.NodeAddr.html @@ -44,7 +44,7 @@ whenever a connection to other nodes needs to be established.

Trait Implementations§

Source§

impl Clone for NodeAddr

Source§

fn clone(&self) -> NodeAddr

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeAddr

Source§

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

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

impl<'de> Deserialize<'de> for NodeAddr

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

Source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeData

Source§

fn from(node_addr: NodeAddr) -> NodeData

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<NodeTicket> for NodeAddr

Source§

fn from(ticket: NodeTicket) -> NodeAddr

Returns the addressing info from given ticket.

+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

Source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeData

Source§

fn from(node_addr: NodeAddr) -> NodeData

Converts to this type from the input type.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> NodeInfo

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<NodeTicket> for NodeAddr

Source§

fn from(ticket: NodeTicket) -> NodeAddr

Returns the addressing info from given ticket.

Source§

impl From<PublicKey> for NodeAddr

Source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
Source§

impl From<RemoteInfo> for NodeAddr

Source§

fn from(info: RemoteInfo) -> Self

Converts to this type from the input type.
Source§

impl Ord for NodeAddr

Source§

fn cmp(&self, other: &NodeAddr) -> 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 diff --git a/pr/3161/docs/iroh_relay/client/enum.ConnectError.html b/pr/3161/docs/iroh_relay/client/enum.ConnectError.html index 72cef13e33..6aea0861c0 100644 --- a/pr/3161/docs/iroh_relay/client/enum.ConnectError.html +++ b/pr/3161/docs/iroh_relay/client/enum.ConnectError.html @@ -1,4 +1,4 @@ -ConnectError in iroh_relay::client - Rust
iroh_relay::client

Enum ConnectError

Source
#[non_exhaustive]
pub enum ConnectError { +ConnectError in iroh_relay::client - Rust
iroh_relay::client

Enum ConnectError

Source
#[non_exhaustive]
pub enum ConnectError { InvalidWebsocketUrl { url: Url, backtrace: Option<Backtrace>, diff --git a/pr/3161/docs/iroh_relay/client/enum.DialError.html b/pr/3161/docs/iroh_relay/client/enum.DialError.html index fd43bf3184..bb63f29dbe 100644 --- a/pr/3161/docs/iroh_relay/client/enum.DialError.html +++ b/pr/3161/docs/iroh_relay/client/enum.DialError.html @@ -1,4 +1,4 @@ -DialError in iroh_relay::client - Rust
iroh_relay::client

Enum DialError

Source
#[non_exhaustive]
pub enum DialError { +DialError in iroh_relay::client - Rust
iroh_relay::client

Enum DialError

Source
#[non_exhaustive]
pub enum DialError { InvalidTargetPort { backtrace: Option<Backtrace>, span_trace: SpanTrace, @@ -48,11 +48,11 @@ span_trace: SpanTrace, }, }
Expand description

Dialing errors

-

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

InvalidTargetPort

Fields

§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Dns

Available on non-wasm_browser only.

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Timeout

Fields

§source: Elapsed
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Io

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

InvalidUrl

Fields

§url: Url
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyConnectInvalidStatus

Fields

§status: StatusCode
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyInvalidUrl

Fields

§proxy_url: Url
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyConnect

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyInvalidTlsServername

Fields

§proxy_hostname: String
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyInvalidTargetPort

Fields

§backtrace: Option<Backtrace>
§span_trace: SpanTrace

Trait Implementations§

Source§

impl Debug for DialError

Source§

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

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

impl Display for DialError

Source§

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

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

impl Error for DialError
where - Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for DialError

Source§

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

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

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

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

InvalidTargetPort

Fields

§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Dns

Available on non-wasm_browser only.

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Timeout

Fields

§source: Elapsed
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Io

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

InvalidUrl

Fields

§url: Url
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyConnectInvalidStatus

Fields

§status: StatusCode
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyInvalidUrl

Fields

§proxy_url: Url
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyConnect

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyInvalidTlsServername

Fields

§proxy_hostname: String
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

ProxyInvalidTargetPort

Fields

§backtrace: Option<Backtrace>
§span_trace: SpanTrace

Trait Implementations§

Source§

impl Debug for DialError

Source§

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

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

impl Display for DialError

Source§

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

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

impl Error for DialError
where + Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for DialError

Source§

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

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

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

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

impl From<DialError> for ConnectError

Source§

fn from(error: DialError) -> Self

Converts to this type from the input type.
Source§

impl From<Elapsed> for DialError

Source§

fn from(error: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for DialError

Source§

fn from(error: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for DialError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +and continuing with recursive calls to Error::source. Read more

Source§

impl From<DialError> for ConnectError

Source§

fn from(error: DialError) -> Self

Converts to this type from the input type.
Source§

impl From<Elapsed> for DialError

Source§

fn from(error: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for DialError

Source§

fn from(error: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for DialError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsErrorSource for T
where T: Error + 'static,

§

fn as_error_source(&self) -> &(dyn Error + 'static)

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method diff --git a/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html b/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html index 3e615e87f5..a304e04a87 100644 --- a/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html +++ b/pr/3161/docs/iroh_relay/client/enum.ReceivedMessage.html @@ -1,4 +1,4 @@ -ReceivedMessage in iroh_relay::client - Rust
iroh_relay::client

Enum ReceivedMessage

Source
pub enum ReceivedMessage {
+ReceivedMessage in iroh_relay::client - Rust
iroh_relay::client

Enum ReceivedMessage

Source
pub enum ReceivedMessage {
     ReceivedPacket {
         remote_node_id: NodeId,
         data: Bytes,
@@ -40,7 +40,7 @@ It might be zero. It exists for the server to smear out the reconnects.

before giving up and proceeding with its normal connection failure logic. The interval between retries is undefined for now. A server should not send a TryFor duration more than a few seconds.

-

Trait Implementations§

Source§

impl Clone for ReceivedMessage

Source§

fn clone(&self) -> ReceivedMessage

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ReceivedMessage

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 +

Trait Implementations§

Source§

impl Clone for ReceivedMessage

Source§

fn clone(&self) -> ReceivedMessage

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ReceivedMessage

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 T: 'a,

§

fn implicit( diff --git a/pr/3161/docs/iroh_relay/client/enum.RecvError.html b/pr/3161/docs/iroh_relay/client/enum.RecvError.html index 298435ff4c..eb1829c942 100644 --- a/pr/3161/docs/iroh_relay/client/enum.RecvError.html +++ b/pr/3161/docs/iroh_relay/client/enum.RecvError.html @@ -1,4 +1,4 @@ -RecvError in iroh_relay::client - Rust
iroh_relay::client

Enum RecvError

Source
#[non_exhaustive]
pub enum RecvError { +RecvError in iroh_relay::client - Rust
iroh_relay::client

Enum RecvError

Source
#[non_exhaustive]
pub enum RecvError { Io { source: Error, backtrace: Option<Backtrace>, @@ -25,11 +25,11 @@ span_trace: SpanTrace, }, }
Expand description

Errors when receiving messages from the relay server.

-

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

Io

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Protocol

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Websocket

Fields

§source: Error
Available on non-wasm_browser only.
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

InvalidProtocolMessageEncoding

Fields

§source: Utf8Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

UnexpectedFrame

Fields

§frame_type: FrameType
§backtrace: Option<Backtrace>
§span_trace: SpanTrace

Trait Implementations§

Source§

impl Debug for RecvError

Source§

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

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

impl Display for RecvError

Source§

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

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

impl Error for RecvError
where - Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for RecvError

Source§

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

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

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

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

Io

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Protocol

Fields

§source: Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

Websocket

Fields

§source: Error
Available on non-wasm_browser only.
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

InvalidProtocolMessageEncoding

Fields

§source: Utf8Error
§backtrace: Option<Backtrace>
§span_trace: SpanTrace
§

UnexpectedFrame

Fields

§frame_type: FrameType
§backtrace: Option<Backtrace>
§span_trace: SpanTrace

Trait Implementations§

Source§

impl Debug for RecvError

Source§

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

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

impl Display for RecvError

Source§

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

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

impl Error for RecvError
where + Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for RecvError

Source§

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

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

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

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

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +and continuing with recursive calls to Error::source. Read more

Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsErrorSource for T
where T: Error + 'static,

§

fn as_error_source(&self) -> &(dyn Error + 'static)

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method diff --git a/pr/3161/docs/iroh_relay/client/enum.SendError.html b/pr/3161/docs/iroh_relay/client/enum.SendError.html index ba301d2db6..77726afdc7 100644 --- a/pr/3161/docs/iroh_relay/client/enum.SendError.html +++ b/pr/3161/docs/iroh_relay/client/enum.SendError.html @@ -1,4 +1,4 @@ -SendError in iroh_relay::client - Rust
iroh_relay::client

Enum SendError

Source
#[non_exhaustive]
pub enum SendError { +SendError in iroh_relay::client - Rust
iroh_relay::client

Enum SendError

Source
#[non_exhaustive]
pub enum SendError { RelayIo { source: Error, backtrace: Option<Backtrace>, diff --git a/pr/3161/docs/iroh_relay/client/enum.SendMessage.html b/pr/3161/docs/iroh_relay/client/enum.SendMessage.html index 4a919bd63e..a0a14f019e 100644 --- a/pr/3161/docs/iroh_relay/client/enum.SendMessage.html +++ b/pr/3161/docs/iroh_relay/client/enum.SendMessage.html @@ -1,4 +1,4 @@ -SendMessage in iroh_relay::client - Rust
iroh_relay::client

Enum SendMessage

Source
pub enum SendMessage {
+SendMessage in iroh_relay::client - Rust
iroh_relay::client

Enum SendMessage

Source
pub enum SendMessage {
     SendPacket(NodeId, Bytes),
     Ping([u8; 8]),
     Pong([u8; 8]),
@@ -6,32 +6,32 @@
 

Variants§

§

SendPacket(NodeId, Bytes)

Send a packet of data to the NodeId.

§

Ping([u8; 8])

Sends a ping message to the connected relay server.

§

Pong([u8; 8])

Sends a pong message to the connected relay server.

-

Trait Implementations§

Source§

impl Debug for SendMessage

Source§

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

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

impl Sink<SendMessage> for Client

Source§

type Error = SendError

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

fn poll_ready( +

Trait Implementations§

Source§

impl Debug for SendMessage

Source§

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

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

impl Sink<SendMessage> 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: SendMessage, ) -> 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<SendMessage> 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<SendMessage> 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: SendMessage, ) -> 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/3161/docs/iroh_relay/client/fn.make_dangerous_client_config.html b/pr/3161/docs/iroh_relay/client/fn.make_dangerous_client_config.html index 1c875fd204..1299e51288 100644 --- a/pr/3161/docs/iroh_relay/client/fn.make_dangerous_client_config.html +++ b/pr/3161/docs/iroh_relay/client/fn.make_dangerous_client_config.html @@ -1,3 +1,3 @@ -make_dangerous_client_config in iroh_relay::client - Rust
iroh_relay::client

Function make_dangerous_client_config

Source
pub fn make_dangerous_client_config() -> ClientConfig
Available on crate feature 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
iroh_relay::client

Function make_dangerous_client_config

Source
pub fn make_dangerous_client_config() -> ClientConfig
Available on crate feature 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/3161/docs/iroh_relay/client/index.html b/pr/3161/docs/iroh_relay/client/index.html index e547806c86..4c34e53860 100644 --- a/pr/3161/docs/iroh_relay/client/index.html +++ b/pr/3161/docs/iroh_relay/client/index.html @@ -1,3 +1,3 @@ -iroh_relay::client - Rust
iroh_relay

Module client

Source
Expand description

Exposes Client, which allows to establish connections to a relay server.

+iroh_relay::client - Rust
iroh_relay

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§

Enums§

Functions§

\ No newline at end of file diff --git a/pr/3161/docs/iroh_relay/client/struct.Client.html b/pr/3161/docs/iroh_relay/client/struct.Client.html index ab245ba91d..4b8523c8ea 100644 --- a/pr/3161/docs/iroh_relay/client/struct.Client.html +++ b/pr/3161/docs/iroh_relay/client/struct.Client.html @@ -1,20 +1,20 @@ -Client in iroh_relay::client - Rust
iroh_relay::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<SendMessage> 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
iroh_relay::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<SendMessage> 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: SendMessage, ) -> 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<ReceivedMessage, 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<ReceivedMessage, 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/3161/docs/iroh_relay/client/struct.ClientBuilder.html b/pr/3161/docs/iroh_relay/client/struct.ClientBuilder.html index e2900bede4..a5b01ba7fa 100644 --- a/pr/3161/docs/iroh_relay/client/struct.ClientBuilder.html +++ b/pr/3161/docs/iroh_relay/client/struct.ClientBuilder.html @@ -1,25 +1,25 @@ -ClientBuilder in iroh_relay::client - Rust
iroh_relay::client

Struct ClientBuilder

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

Build a Client.

-

Implementations§

Source§

impl ClientBuilder

Source

pub fn new( +ClientBuilder in iroh_relay::client - Rust
iroh_relay::client

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 protocol(self, protocol: Protocol) -> Self

Sets whether to connect to the relay via websockets or not. +

Source

pub fn protocol(self, protocol: Protocol) -> Self

Sets whether to connect to the relay via websockets or not. Set to use non-websocket, normal relaying by default.

-
Source

pub fn address_family_selector<S>(self, selector: S) -> Self
where +

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 is_prober(self, is: bool) -> Self

Indicates this client is a prober

-
Source

pub fn insecure_skip_cert_verify(self, skip: bool) -> Self

Available on crate feature test-utils only.

Skip the verification of the relay server’s SSL certificates.

+
Source

pub fn is_prober(self, is: bool) -> Self

Indicates this client is a prober

+
Source

pub fn insecure_skip_cert_verify(self, skip: bool) -> Self

Available on crate feature 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>

Establishes a new connection to the relay server.

-

Trait Implementations§

Source§

impl Clone for ClientBuilder

Source§

fn clone(&self) -> ClientBuilder

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 +

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>

Establishes a new connection to the relay server.

+

Trait Implementations§

Source§

impl Clone for ClientBuilder

Source§

fn clone(&self) -> ClientBuilder

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 T: 'a,

§

fn implicit( diff --git a/pr/3161/docs/iroh_relay/client/struct.ClientSink.html b/pr/3161/docs/iroh_relay/client/struct.ClientSink.html index 1f01742ede..bde6889a9f 100644 --- a/pr/3161/docs/iroh_relay/client/struct.ClientSink.html +++ b/pr/3161/docs/iroh_relay/client/struct.ClientSink.html @@ -1,16 +1,16 @@ -ClientSink in iroh_relay::client - Rust
iroh_relay::client

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<SendMessage> 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
iroh_relay::client

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<SendMessage> 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: SendMessage, ) -> 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/3161/docs/iroh_relay/client/struct.ClientStream.html b/pr/3161/docs/iroh_relay/client/struct.ClientStream.html index 80fd21d68d..d287397614 100644 --- a/pr/3161/docs/iroh_relay/client/struct.ClientStream.html +++ b/pr/3161/docs/iroh_relay/client/struct.ClientStream.html @@ -1,6 +1,6 @@ -ClientStream in iroh_relay::client - Rust
iroh_relay::client

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<ReceivedMessage, RecvError>

Values yielded by the stream.
Source§

fn poll_next( +ClientStream in iroh_relay::client - Rust
iroh_relay::client

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<ReceivedMessage, 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/3161/docs/iroh_relay/dns/enum.Error.html b/pr/3161/docs/iroh_relay/dns/enum.Error.html index c158f3cf97..aa8906b3ca 100644 --- a/pr/3161/docs/iroh_relay/dns/enum.Error.html +++ b/pr/3161/docs/iroh_relay/dns/enum.Error.html @@ -37,7 +37,7 @@ Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for Error

Source§

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

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

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

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

impl From<Elapsed> for Error

Source§

fn from(error: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for DialError

Source§

fn from(error: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<ResolveError> for Error

Source§

fn from(error: ResolveError) -> Self

Converts to this type from the input type.

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 +and continuing with recursive calls to Error::source. Read more

Source§

impl From<Elapsed> for Error

Source§

fn from(error: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for DialError

Source§

fn from(error: DnsError) -> Self

Converts to this type from the input type.
Source§

impl From<ResolveError> for Error

Source§

fn from(error: ResolveError) -> Self

Converts to this type from the input type.

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<T> AsErrorSource for T
where T: Error + 'static,

§

fn as_error_source(&self) -> &(dyn Error + 'static)

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method diff --git a/pr/3161/docs/iroh_relay/node_info/index.html b/pr/3161/docs/iroh_relay/node_info/index.html index 9828810850..89328d52cb 100644 --- a/pr/3161/docs/iroh_relay/node_info/index.html +++ b/pr/3161/docs/iroh_relay/node_info/index.html @@ -1,4 +1,4 @@ -iroh_relay::node_info - Rust
iroh_relay

Module node_info

Source
Expand description

Support for handling DNS resource records for dialing by NodeId.

+iroh_relay::node_info - Rust
iroh_relay

Module node_info

Source
Expand description

Support for handling DNS resource records for dialing by NodeId.

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

DNS records are published under the following names:

diff --git a/pr/3161/docs/iroh_relay/node_info/struct.MaxLengthExceededError.html b/pr/3161/docs/iroh_relay/node_info/struct.MaxLengthExceededError.html index 6942ebaab1..2c11b9273a 100644 --- a/pr/3161/docs/iroh_relay/node_info/struct.MaxLengthExceededError.html +++ b/pr/3161/docs/iroh_relay/node_info/struct.MaxLengthExceededError.html @@ -1,4 +1,4 @@ -MaxLengthExceededError in iroh_relay::node_info - Rust
iroh_relay::node_info

Struct MaxLengthExceededError

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

Error returned when an input value is too long for UserData.

+MaxLengthExceededError in iroh_relay::node_info - Rust
iroh_relay::node_info

Struct MaxLengthExceededError

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

Error returned when an input value is too long for UserData.

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

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

impl Error for MaxLengthExceededError
where Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for MaxLengthExceededError

Source§

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

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

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

Returns an iterator for traversing the chain of errors, diff --git a/pr/3161/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3161/docs/iroh_relay/node_info/struct.NodeInfo.html index b41fc7e9da..fe7e5b1d77 100644 --- a/pr/3161/docs/iroh_relay/node_info/struct.NodeInfo.html +++ b/pr/3161/docs/iroh_relay/node_info/struct.NodeInfo.html @@ -1,29 +1,29 @@ -NodeInfo in iroh_relay::node_info - Rust
iroh_relay::node_info

Struct NodeInfo

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

Struct NodeInfo

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

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

This struct couples a NodeId with its associated NodeData.

Fields§

§node_id: NodeId

The NodeId of the node this is about.

§data: NodeData

The information published about the node.

-

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: NodeId) -> Self

Creates a new NodeInfo with an empty NodeData.

-
Source

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

Creates a new NodeInfo from its parts.

-
Source

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

Sets the relay URL and returns the updated node info.

-
Source

pub fn with_direct_addresses( +

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: NodeId) -> Self

Creates a new NodeInfo with an empty NodeData.

+
Source

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

Creates a new NodeInfo from its parts.

+
Source

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

Sets the relay URL and returns the updated node info.

+
Source

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

Sets the direct addresses and returns the updated node info.

-
Source

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

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

-
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

-
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

-
Source

pub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>

Available on non-wasm_browser only.

Parses a NodeInfo from a TXT records lookup.

-
Source

pub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>

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

-
Source

pub fn to_pkarr_signed_packet( +

Source

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

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

+
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

+
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

+
Source

pub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>

Available on non-wasm_browser only.

Parses a NodeInfo from a TXT records lookup.

+
Source

pub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>

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

+
Source

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

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.

+
Source

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

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

Methods from Deref<Target = NodeData>§

Source

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

Returns the relay URL of the node.

Source

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

Returns the optional user-defined data of the node.

Source

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

Returns the direct addresses of the node.

@@ -34,8 +34,8 @@ )

Adds direct addresses to the node data.

Source

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

Sets the relay URL of the node data.

Source

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

Sets the user-defined data of the node data.

-

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

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

Mutably dereferences the value.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> Self

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NodeInfo

Source§

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

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

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

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

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

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

Mutably dereferences the value.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> Self

Converts to this type from the input type.
Source§

impl From<NodeInfo> for NodeAddr

Source§

fn from(value: NodeInfo) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NodeInfo

Source§

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

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

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

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

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3161/docs/iroh_relay/node_info/struct.UserData.html b/pr/3161/docs/iroh_relay/node_info/struct.UserData.html index 2954dad9ed..a59adecc83 100644 --- a/pr/3161/docs/iroh_relay/node_info/struct.UserData.html +++ b/pr/3161/docs/iroh_relay/node_info/struct.UserData.html @@ -6,7 +6,7 @@ convert &str and String into UserData

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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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 copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for 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,

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

fn min(self, other: Self) -> Self
where @@ -15,7 +15,7 @@ which leaves 245 bytes for the actual user-defined data.

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/3161/docs/iroh_relay/protos/relay/enum.Error.html b/pr/3161/docs/iroh_relay/protos/relay/enum.Error.html index 05c9d8cb30..82f7b80256 100644 --- a/pr/3161/docs/iroh_relay/protos/relay/enum.Error.html +++ b/pr/3161/docs/iroh_relay/protos/relay/enum.Error.html @@ -1,4 +1,4 @@ -Error in iroh_relay::protos::relay - Rust
iroh_relay::protos::relay

Enum Error

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

Enum Error

Source
#[non_exhaustive]
pub enum Error { Io { source: Error, backtrace: Option<Backtrace>, @@ -53,7 +53,7 @@ Self: Debug + Display,

Source§

fn description(&self) -> &str

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

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

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

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

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

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

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

impl ErrorCompat for Error

Source§

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

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

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

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

impl From<Elapsed> for Error

Source§

fn from(error: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ConnectError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: SignatureError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<SendError> for Error

Source§

fn from(error: SendError) -> Self

Converts to this type from the input type.

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 +and continuing with recursive calls to Error::source. Read more

Source§

impl From<Elapsed> for Error

Source§

fn from(error: Elapsed) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ConnectError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: SignatureError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RecvError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<SendError> for Error

Source§

fn from(error: SendError) -> Self

Converts to this type from the input type.

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<T> AsErrorSource for T
where T: Error + 'static,

§

fn as_error_source(&self) -> &(dyn Error + 'static)

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method diff --git a/pr/3161/docs/iroh_relay/protos/relay/index.html b/pr/3161/docs/iroh_relay/protos/relay/index.html index 6a1bc0f520..c32f90748f 100644 --- a/pr/3161/docs/iroh_relay/protos/relay/index.html +++ b/pr/3161/docs/iroh_relay/protos/relay/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos::relay - Rust
iroh_relay::protos

Module relay

Source
Expand description

This module implements the relaying protocol used by the server and client.

+iroh_relay::protos::relay - Rust
iroh_relay::protos

Module relay

Source
Expand description

This module implements the relaying protocol used by the server and client.

Protocol flow:

Login: