pub struct NodeInfo {
+NodeInfo in iroh::discovery - Rust pub struct NodeInfo {
pub node_id: PublicKey,
pub data: NodeData,
}
Expand description
Fields§
§node_id: PublicKeyThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> NodeInfo
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -36,8 +36,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
impl Freeze for UserData
impl RefUnwindSafe for UserData
impl Send for UserData
impl Sync for UserData
impl Unpin for UserData
impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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 pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+MaxLengthExceededError in iroh::node_info - Rust 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§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 pub struct NodeInfo {
+NodeInfo in iroh::node_info - Rust pub struct NodeInfo {
pub node_id: PublicKey,
pub data: NodeData,
}
Expand description
Fields§
§node_id: PublicKeyThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> NodeInfo
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -36,8 +36,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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<'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 moreSource§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 moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
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
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more1.50.0 · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
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 #[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh_relay::client - Rust #[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 #[non_exhaustive]pub enum DialError {
+DialError in iroh_relay::client - Rust #[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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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 moreSource§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
Source§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 pub enum ReceivedMessage {
+ReceivedMessage in iroh_relay::client - Rust 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum RecvError {
+RecvError in iroh_relay::client - Rust #[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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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 moreAuto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 #[non_exhaustive]pub enum SendError {
+SendError in iroh_relay::client - Rust #[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 pub enum SendMessage {
+SendMessage in iroh_relay::client - Rust 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
Trait Implementations§
Source§impl Debug for SendMessage
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Sink<SendMessage> for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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
Auto Trait Implementations§
§impl !Freeze for SendMessage
§impl RefUnwindSafe for SendMessage
§impl Send for SendMessage
§impl Sync for SendMessage
§impl Unpin for SendMessage
§impl UnwindSafe for SendMessage
Blanket Implementations§
Source§impl<T> Any for Twhere
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 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 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 Expand description
Exposes Client, which allows to establish connections to a relay server.
+iroh_relay::client - Rust Expand description
Exposes Client, which allows to establish connections to a relay server.
Based on tailscale/derp/derphttp/derphttp_client.go
Structs§
- A relay client.
- Build a Client.
- The send half of a relay client.
- The receive half of a relay client.
Enums§
- Connection errors
- Dialing errors
- The messages received from a framed relay stream.
- Errors when receiving messages from the relay server.
- Error for sending messages to the relay server.
- Messages we can send to a relay server.
Functions§
- make_
dangerous_client_config test-utils Creates a client config that trusts any servers without verifying their TLS certificate.
\ 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 pub struct Client { /* private fields */ }
Expand description
A relay client.
-Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
-Trait Implementations§
Source§impl Sink<SendMessage> for Client
Source§fn poll_ready(
+Client in iroh_relay::client - Rust pub struct Client { /* private fields */ }
Expand description
A relay client.
+Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
+Trait Implementations§
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Stream for Client
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 pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
-Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
+ClientBuilder in iroh_relay::client - Rust pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
+Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
url: impl Into<RelayUrl>,
secret_key: SecretKey,
dns_resolver: DnsResolver,
) -> Self
Create a new ClientBuilder
-Sourcepub fn protocol(self, protocol: Protocol) -> Self
Sets whether to connect to the relay via websockets or not.
+
Sourcepub 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.
-Sourcepub fn address_family_selector<S>(self, selector: S) -> Selfwhere
+
Sourcepub fn address_family_selector<S>(self, selector: S) -> Self
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.
-Sourcepub 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.
+Sourcepub 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.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
-Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
+Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
-Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
Source§fn poll_ready(
+ClientSink in iroh_relay::client - Rust pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
+Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreAuto Trait Implementations§
§impl !Freeze for ClientSink
§impl !RefUnwindSafe for ClientSink
§impl Send for ClientSink
§impl Sync for ClientSink
§impl Unpin for ClientSink
§impl !UnwindSafe for ClientSink
Blanket Implementations§
Source§impl<T> Any for Twhere
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 pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
-Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
-Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
Source§fn poll_next(
+ClientStream in iroh_relay::client - Rust pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
+Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
+Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
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 downcastingSource§impl ErrorCompat for Error
§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 moreAuto 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§
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
Support for handling DNS resource records for dialing by NodeId.
+iroh_relay::node_info - Rust 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 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 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§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
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 downcastingSource§impl ErrorCompat for MaxLengthExceededError
§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 pub struct NodeInfo {
+NodeInfo in iroh_relay::node_info - Rust pub struct NodeInfo {
pub node_id: NodeId,
pub data: NodeData,
}
Expand description
Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
+Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -34,8 +34,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd for UserData
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::relay - Rust
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 downcastingSource§impl ErrorCompat for Error
§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 moreSource§impl From<Error> for ConnectError
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 From<Error> for ConnectError
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
This module implements the relaying protocol used by the server and client.
+iroh_relay::protos::relay - Rust Expand description
This module implements the relaying protocol used by the server and client.
Protocol flow:
Login:
diff --git a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
index d67904f15b..e60425e725 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
InvalidMessage {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
index 583f559fff..daafa6dacd 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
@@ -1,2 +1,2 @@
-is in iroh_relay::protos::stun - Rust pub fn is(b: &[u8]) -> bool
Expand description
Reports whether b is a STUN message.
+is in iroh_relay::protos::stun - Rust
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
index f96f3f53da..efa9023f4d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
@@ -1,2 +1,2 @@
-parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
+parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
index b0024b8d4a..a32ecdabab 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
@@ -1,3 +1,3 @@
-parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
+
parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
index 5e7e1ad226..95c8402a0d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
@@ -1,2 +1,2 @@
-request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
+request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
index e6b942e5c1..0c6201bbe7 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
@@ -1,2 +1,2 @@
-response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
+response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/index.html b/pr/3161/docs/iroh_relay/protos/stun/index.html
index 2f5acd7609..065f7f7b3a 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/index.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/index.html
@@ -1,4 +1,4 @@
-iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
+iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
Modules§
- STUN Methods Registry
Structs§
- Class used to decode STUN messages
- Describes an error decoding a
StunMessage - The transaction ID is a 96-bit identifier, used to uniquely identify
STUN transactions. It primarily serves to correlate requests with
responses, though it also plays a small role in helping to prevent
diff --git a/pr/3161/docs/iroh_relay/quic/enum.Error.html b/pr/3161/docs/iroh_relay/quic/enum.Error.html
index 85926a5c7e..d410b65a8b 100644
--- a/pr/3161/docs/iroh_relay/quic/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/quic/enum.Error.html
@@ -1,4 +1,4 @@
-
Error in iroh_relay::quic - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::quic - Rust
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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 pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+MaxLengthExceededError in iroh::node_info - Rust 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§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 pub struct NodeInfo {
+NodeInfo in iroh::node_info - Rust pub struct NodeInfo {
pub node_id: PublicKey,
pub data: NodeData,
}
Expand description
Fields§
§node_id: PublicKeyThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> NodeInfo
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -36,8 +36,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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<'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 moreSource§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 moreSource§impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
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
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more1.50.0 · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
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 #[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh_relay::client - Rust #[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 #[non_exhaustive]pub enum DialError {
+DialError in iroh_relay::client - Rust #[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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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 moreSource§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
Source§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 pub enum ReceivedMessage {
+ReceivedMessage in iroh_relay::client - Rust 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum RecvError {
+RecvError in iroh_relay::client - Rust #[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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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 moreAuto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 #[non_exhaustive]pub enum SendError {
+SendError in iroh_relay::client - Rust #[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 pub enum SendMessage {
+SendMessage in iroh_relay::client - Rust 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
Trait Implementations§
Source§impl Debug for SendMessage
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Sink<SendMessage> for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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
Auto Trait Implementations§
§impl !Freeze for SendMessage
§impl RefUnwindSafe for SendMessage
§impl Send for SendMessage
§impl Sync for SendMessage
§impl Unpin for SendMessage
§impl UnwindSafe for SendMessage
Blanket Implementations§
Source§impl<T> Any for Twhere
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 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 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 Expand description
Exposes Client, which allows to establish connections to a relay server.
+iroh_relay::client - Rust Expand description
Exposes Client, which allows to establish connections to a relay server.
Based on tailscale/derp/derphttp/derphttp_client.go
Structs§
- A relay client.
- Build a Client.
- The send half of a relay client.
- The receive half of a relay client.
Enums§
- Connection errors
- Dialing errors
- The messages received from a framed relay stream.
- Errors when receiving messages from the relay server.
- Error for sending messages to the relay server.
- Messages we can send to a relay server.
Functions§
- make_
dangerous_client_config test-utils Creates a client config that trusts any servers without verifying their TLS certificate.
\ 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 pub struct Client { /* private fields */ }
Expand description
A relay client.
-Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
-Trait Implementations§
Source§impl Sink<SendMessage> for Client
Source§fn poll_ready(
+Client in iroh_relay::client - Rust pub struct Client { /* private fields */ }
Expand description
A relay client.
+Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
+Trait Implementations§
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Stream for Client
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 pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
-Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
+ClientBuilder in iroh_relay::client - Rust pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
+Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
url: impl Into<RelayUrl>,
secret_key: SecretKey,
dns_resolver: DnsResolver,
) -> Self
Create a new ClientBuilder
-Sourcepub fn protocol(self, protocol: Protocol) -> Self
Sets whether to connect to the relay via websockets or not.
+
Sourcepub 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.
-Sourcepub fn address_family_selector<S>(self, selector: S) -> Selfwhere
+
Sourcepub fn address_family_selector<S>(self, selector: S) -> Self
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.
-Sourcepub 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.
+Sourcepub 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.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
-Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
+Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
-Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
Source§fn poll_ready(
+ClientSink in iroh_relay::client - Rust pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
+Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreAuto Trait Implementations§
§impl !Freeze for ClientSink
§impl !RefUnwindSafe for ClientSink
§impl Send for ClientSink
§impl Sync for ClientSink
§impl Unpin for ClientSink
§impl !UnwindSafe for ClientSink
Blanket Implementations§
Source§impl<T> Any for Twhere
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 pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
-Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
-Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
Source§fn poll_next(
+ClientStream in iroh_relay::client - Rust pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
+Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
+Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
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 downcastingSource§impl ErrorCompat for Error
§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 moreAuto 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§
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
Support for handling DNS resource records for dialing by NodeId.
+iroh_relay::node_info - Rust 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 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 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§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
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 downcastingSource§impl ErrorCompat for MaxLengthExceededError
§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 pub struct NodeInfo {
+NodeInfo in iroh_relay::node_info - Rust pub struct NodeInfo {
pub node_id: NodeId,
pub data: NodeData,
}
Expand description
Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
+Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -34,8 +34,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd for UserData
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::relay - Rust
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 downcastingSource§impl ErrorCompat for Error
§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 moreSource§impl From<Error> for ConnectError
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 From<Error> for ConnectError
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
This module implements the relaying protocol used by the server and client.
+iroh_relay::protos::relay - Rust Expand description
This module implements the relaying protocol used by the server and client.
Protocol flow:
Login:
diff --git a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
index d67904f15b..e60425e725 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
InvalidMessage {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
index 583f559fff..daafa6dacd 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
@@ -1,2 +1,2 @@
-is in iroh_relay::protos::stun - Rust pub fn is(b: &[u8]) -> bool
Expand description
Reports whether b is a STUN message.
+is in iroh_relay::protos::stun - Rust
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
index f96f3f53da..efa9023f4d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
@@ -1,2 +1,2 @@
-parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
+parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
index b0024b8d4a..a32ecdabab 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
@@ -1,3 +1,3 @@
-parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
+
parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
index 5e7e1ad226..95c8402a0d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
@@ -1,2 +1,2 @@
-request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
+request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
index e6b942e5c1..0c6201bbe7 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
@@ -1,2 +1,2 @@
-response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
+response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/index.html b/pr/3161/docs/iroh_relay/protos/stun/index.html
index 2f5acd7609..065f7f7b3a 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/index.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/index.html
@@ -1,4 +1,4 @@
-iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
+iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
Modules§
- STUN Methods Registry
Structs§
- Class used to decode STUN messages
- Describes an error decoding a
StunMessage - The transaction ID is a 96-bit identifier, used to uniquely identify
STUN transactions. It primarily serves to correlate requests with
responses, though it also plays a small role in helping to prevent
diff --git a/pr/3161/docs/iroh_relay/quic/enum.Error.html b/pr/3161/docs/iroh_relay/quic/enum.Error.html
index 85926a5c7e..d410b65a8b 100644
--- a/pr/3161/docs/iroh_relay/quic/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/quic/enum.Error.html
@@ -1,4 +1,4 @@
-
Error in iroh_relay::quic - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::quic - Rust
pub struct MaxLengthExceededError { /* private fields */ }Expand description
Error returned when an input value is too long for UserData.
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
impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
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 pub struct NodeInfo {
+NodeInfo in iroh::node_info - Rust pub struct NodeInfo {
pub node_id: PublicKey,
pub data: NodeData,
}
Expand description
Fields§
§node_id: PublicKeyThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> NodeInfo
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -36,8 +36,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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.
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 pub struct NodeInfo {
+NodeInfo in iroh::node_info - Rust pub struct NodeInfo {
pub node_id: PublicKey,
pub data: NodeData,
}
Expand description
Fields§
§node_id: PublicKeyThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> NodeInfo
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -36,8 +36,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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.
pub struct NodeInfo {
+NodeInfo in iroh::node_info - Rust pub struct NodeInfo {
pub node_id: PublicKey,
pub data: NodeData,
}
Expand description
Fields§
§node_id: PublicKeyThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: PublicKey, data: NodeData) -> NodeInfo
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> NodeInfo
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> NodeInfo
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> NodeInfo
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<NodeInfo, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<NodeInfo, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -36,8 +36,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl From<DiscoveryItem> for NodeInfo
Source§fn from(item: DiscoveryItem) -> Self
Converts to this type from the input type.Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
impl Freeze for UserData
impl RefUnwindSafe for UserData
impl Send for UserData
impl Sync for UserData
impl Unpin for UserData
impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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.
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
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<'de> Deserialize<'de> for NodeAddr
impl<'de> Deserialize<'de> for NodeAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Source§impl From<NodeTicket> for NodeAddr
impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+ __D: Deserializer<'de>,Source§impl From<NodeTicket> for NodeAddr
impl From<NodeTicket> for NodeAddr
Source§fn from(ticket: NodeTicket) -> NodeAddr
fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
Source§impl From<RemoteInfo> for NodeAddr
impl From<RemoteInfo> for NodeAddr
Source§fn from(info: RemoteInfo) -> Self
fn from(info: RemoteInfo) -> Self
Source§impl Ord for NodeAddr
impl Ord for NodeAddr
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
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 #[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh_relay::client - Rust #[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 #[non_exhaustive]pub enum DialError {
+DialError in iroh_relay::client - Rust #[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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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 moreSource§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
Source§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 pub enum ReceivedMessage {
+ReceivedMessage in iroh_relay::client - Rust 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum RecvError {
+RecvError in iroh_relay::client - Rust #[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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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 moreAuto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 #[non_exhaustive]pub enum SendError {
+SendError in iroh_relay::client - Rust #[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 pub enum SendMessage {
+SendMessage in iroh_relay::client - Rust 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
Trait Implementations§
Source§impl Debug for SendMessage
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Sink<SendMessage> for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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
Auto Trait Implementations§
§impl !Freeze for SendMessage
§impl RefUnwindSafe for SendMessage
§impl Send for SendMessage
§impl Sync for SendMessage
§impl Unpin for SendMessage
§impl UnwindSafe for SendMessage
Blanket Implementations§
Source§impl<T> Any for Twhere
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 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 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 Expand description
Exposes Client, which allows to establish connections to a relay server.
+iroh_relay::client - Rust Expand description
Exposes Client, which allows to establish connections to a relay server.
Based on tailscale/derp/derphttp/derphttp_client.go
Structs§
- A relay client.
- Build a Client.
- The send half of a relay client.
- The receive half of a relay client.
Enums§
- Connection errors
- Dialing errors
- The messages received from a framed relay stream.
- Errors when receiving messages from the relay server.
- Error for sending messages to the relay server.
- Messages we can send to a relay server.
Functions§
- make_
dangerous_client_config test-utils Creates a client config that trusts any servers without verifying their TLS certificate.
\ 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 pub struct Client { /* private fields */ }
Expand description
A relay client.
-Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
-Trait Implementations§
Source§impl Sink<SendMessage> for Client
Source§fn poll_ready(
+Client in iroh_relay::client - Rust pub struct Client { /* private fields */ }
Expand description
A relay client.
+Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
+Trait Implementations§
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Stream for Client
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 pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
-Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
+ClientBuilder in iroh_relay::client - Rust pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
+Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
url: impl Into<RelayUrl>,
secret_key: SecretKey,
dns_resolver: DnsResolver,
) -> Self
Create a new ClientBuilder
-Sourcepub fn protocol(self, protocol: Protocol) -> Self
Sets whether to connect to the relay via websockets or not.
+
Sourcepub 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.
-Sourcepub fn address_family_selector<S>(self, selector: S) -> Selfwhere
+
Sourcepub fn address_family_selector<S>(self, selector: S) -> Self
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.
-Sourcepub 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.
+Sourcepub 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.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
-Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
+Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
-Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
Source§fn poll_ready(
+ClientSink in iroh_relay::client - Rust pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
+Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreAuto Trait Implementations§
§impl !Freeze for ClientSink
§impl !RefUnwindSafe for ClientSink
§impl Send for ClientSink
§impl Sync for ClientSink
§impl Unpin for ClientSink
§impl !UnwindSafe for ClientSink
Blanket Implementations§
Source§impl<T> Any for Twhere
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 pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
-Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
-Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
Source§fn poll_next(
+ClientStream in iroh_relay::client - Rust pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
+Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
+Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
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 downcastingSource§impl ErrorCompat for Error
§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 moreAuto 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§
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
Support for handling DNS resource records for dialing by NodeId.
+iroh_relay::node_info - Rust 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 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 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§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
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 downcastingSource§impl ErrorCompat for MaxLengthExceededError
§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 pub struct NodeInfo {
+NodeInfo in iroh_relay::node_info - Rust pub struct NodeInfo {
pub node_id: NodeId,
pub data: NodeData,
}
Expand description
Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
+Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -34,8 +34,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd for UserData
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::relay - Rust
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 downcastingSource§impl ErrorCompat for Error
§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 moreSource§impl From<Error> for ConnectError
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 From<Error> for ConnectError
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
This module implements the relaying protocol used by the server and client.
+iroh_relay::protos::relay - Rust Expand description
This module implements the relaying protocol used by the server and client.
Protocol flow:
Login:
diff --git a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
index d67904f15b..e60425e725 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
InvalidMessage {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
index 583f559fff..daafa6dacd 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
@@ -1,2 +1,2 @@
-is in iroh_relay::protos::stun - Rust pub fn is(b: &[u8]) -> bool
Expand description
Reports whether b is a STUN message.
+is in iroh_relay::protos::stun - Rust
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
index f96f3f53da..efa9023f4d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
@@ -1,2 +1,2 @@
-parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
+parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
index b0024b8d4a..a32ecdabab 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
@@ -1,3 +1,3 @@
-parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
+
parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
index 5e7e1ad226..95c8402a0d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
@@ -1,2 +1,2 @@
-request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
+request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
index e6b942e5c1..0c6201bbe7 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
@@ -1,2 +1,2 @@
-response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
+response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/index.html b/pr/3161/docs/iroh_relay/protos/stun/index.html
index 2f5acd7609..065f7f7b3a 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/index.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/index.html
@@ -1,4 +1,4 @@
-iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
+iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
Modules§
- STUN Methods Registry
Structs§
- Class used to decode STUN messages
- Describes an error decoding a
StunMessage - The transaction ID is a 96-bit identifier, used to uniquely identify
STUN transactions. It primarily serves to correlate requests with
responses, though it also plays a small role in helping to prevent
diff --git a/pr/3161/docs/iroh_relay/quic/enum.Error.html b/pr/3161/docs/iroh_relay/quic/enum.Error.html
index 85926a5c7e..d410b65a8b 100644
--- a/pr/3161/docs/iroh_relay/quic/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/quic/enum.Error.html
@@ -1,4 +1,4 @@
-
Error in iroh_relay::quic - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::quic - Rust
fn clamp(self, min: Self, max: Self) -> Selfwhere
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 #[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh_relay::client - Rust #[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 #[non_exhaustive]pub enum DialError {
+DialError in iroh_relay::client - Rust #[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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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 moreSource§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
Source§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 pub enum ReceivedMessage {
+ReceivedMessage in iroh_relay::client - Rust 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum RecvError {
+RecvError in iroh_relay::client - Rust #[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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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 moreAuto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 #[non_exhaustive]pub enum SendError {
+SendError in iroh_relay::client - Rust #[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 pub enum SendMessage {
+SendMessage in iroh_relay::client - Rust 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
Trait Implementations§
Source§impl Debug for SendMessage
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Sink<SendMessage> for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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
Auto Trait Implementations§
§impl !Freeze for SendMessage
§impl RefUnwindSafe for SendMessage
§impl Send for SendMessage
§impl Sync for SendMessage
§impl Unpin for SendMessage
§impl UnwindSafe for SendMessage
Blanket Implementations§
Source§impl<T> Any for Twhere
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 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 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 Expand description
Exposes Client, which allows to establish connections to a relay server.
+iroh_relay::client - Rust Expand description
Exposes Client, which allows to establish connections to a relay server.
Based on tailscale/derp/derphttp/derphttp_client.go
Structs§
- A relay client.
- Build a Client.
- The send half of a relay client.
- The receive half of a relay client.
Enums§
- Connection errors
- Dialing errors
- The messages received from a framed relay stream.
- Errors when receiving messages from the relay server.
- Error for sending messages to the relay server.
- Messages we can send to a relay server.
Functions§
- make_
dangerous_client_config test-utils Creates a client config that trusts any servers without verifying their TLS certificate.
\ 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 pub struct Client { /* private fields */ }
Expand description
A relay client.
-Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
-Trait Implementations§
Source§impl Sink<SendMessage> for Client
Source§fn poll_ready(
+Client in iroh_relay::client - Rust pub struct Client { /* private fields */ }
Expand description
A relay client.
+Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
+Trait Implementations§
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Stream for Client
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 pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
-Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
+ClientBuilder in iroh_relay::client - Rust pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
+Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
url: impl Into<RelayUrl>,
secret_key: SecretKey,
dns_resolver: DnsResolver,
) -> Self
Create a new ClientBuilder
-Sourcepub fn protocol(self, protocol: Protocol) -> Self
Sets whether to connect to the relay via websockets or not.
+
Sourcepub 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.
-Sourcepub fn address_family_selector<S>(self, selector: S) -> Selfwhere
+
Sourcepub fn address_family_selector<S>(self, selector: S) -> Self
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.
-Sourcepub 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.
+Sourcepub 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.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
-Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
+Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
-Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
Source§fn poll_ready(
+ClientSink in iroh_relay::client - Rust pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
+Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreAuto Trait Implementations§
§impl !Freeze for ClientSink
§impl !RefUnwindSafe for ClientSink
§impl Send for ClientSink
§impl Sync for ClientSink
§impl Unpin for ClientSink
§impl !UnwindSafe for ClientSink
Blanket Implementations§
Source§impl<T> Any for Twhere
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 pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
-Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
-Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
Source§fn poll_next(
+ClientStream in iroh_relay::client - Rust pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
+Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
+Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
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 downcastingSource§impl ErrorCompat for Error
§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 moreAuto 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§
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
Support for handling DNS resource records for dialing by NodeId.
+iroh_relay::node_info - Rust 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 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 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§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
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 downcastingSource§impl ErrorCompat for MaxLengthExceededError
§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 pub struct NodeInfo {
+NodeInfo in iroh_relay::node_info - Rust pub struct NodeInfo {
pub node_id: NodeId,
pub data: NodeData,
}
Expand description
Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
+Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -34,8 +34,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd for UserData
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::relay - Rust
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 downcastingSource§impl ErrorCompat for Error
§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 moreSource§impl From<Error> for ConnectError
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 From<Error> for ConnectError
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
This module implements the relaying protocol used by the server and client.
+iroh_relay::protos::relay - Rust Expand description
This module implements the relaying protocol used by the server and client.
Protocol flow:
Login:
diff --git a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
index d67904f15b..e60425e725 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
InvalidMessage {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
index 583f559fff..daafa6dacd 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
@@ -1,2 +1,2 @@
-is in iroh_relay::protos::stun - Rust pub fn is(b: &[u8]) -> bool
Expand description
Reports whether b is a STUN message.
+is in iroh_relay::protos::stun - Rust
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
index f96f3f53da..efa9023f4d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
@@ -1,2 +1,2 @@
-parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
+parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
index b0024b8d4a..a32ecdabab 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
@@ -1,3 +1,3 @@
-parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
+
parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
index 5e7e1ad226..95c8402a0d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
@@ -1,2 +1,2 @@
-request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
+request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
index e6b942e5c1..0c6201bbe7 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
@@ -1,2 +1,2 @@
-response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
+response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/index.html b/pr/3161/docs/iroh_relay/protos/stun/index.html
index 2f5acd7609..065f7f7b3a 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/index.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/index.html
@@ -1,4 +1,4 @@
-iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
+iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
Modules§
- STUN Methods Registry
Structs§
- Class used to decode STUN messages
- Describes an error decoding a
StunMessage - The transaction ID is a 96-bit identifier, used to uniquely identify
STUN transactions. It primarily serves to correlate requests with
responses, though it also plays a small role in helping to prevent
diff --git a/pr/3161/docs/iroh_relay/quic/enum.Error.html b/pr/3161/docs/iroh_relay/quic/enum.Error.html
index 85926a5c7e..d410b65a8b 100644
--- a/pr/3161/docs/iroh_relay/quic/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/quic/enum.Error.html
@@ -1,4 +1,4 @@
-
Error in iroh_relay::quic - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::quic - Rust
#[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh_relay::client - Rust #[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 #[non_exhaustive]pub enum DialError {
+DialError in iroh_relay::client - Rust #[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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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
§Dns
Available on non-wasm_browser only.§Timeout
§Io
§InvalidUrl
§ProxyConnectInvalidStatus
§ProxyInvalidUrl
§ProxyConnect
§ProxyInvalidTlsServername
§ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
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 downcastingSource§impl ErrorCompat for DialError
§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 moreSource§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
Source§impl From<DialError> for ConnectError
Auto Trait Implementations§
§impl Freeze for DialError
§impl !RefUnwindSafe for DialError
§impl Send for DialError
§impl Sync for DialError
§impl Unpin for DialError
§impl !UnwindSafe for DialError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 pub enum ReceivedMessage {
+ReceivedMessage in iroh_relay::client - Rust 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ReceivedMessage
Source§fn clone(&self) -> ReceivedMessage
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl !Freeze for ReceivedMessage
§impl RefUnwindSafe for ReceivedMessage
§impl Send for ReceivedMessage
§impl Sync for ReceivedMessage
§impl Unpin for ReceivedMessage
§impl UnwindSafe for ReceivedMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum RecvError {
+RecvError in iroh_relay::client - Rust #[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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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
§Protocol
§Websocket
§InvalidProtocolMessageEncoding
§UnexpectedFrame
Trait Implementations§
Source§impl Error for RecvError
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 downcastingSource§impl ErrorCompat for RecvError
§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 moreAuto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for RecvError
§impl !RefUnwindSafe for RecvError
§impl Send for RecvError
§impl Sync for RecvError
§impl Unpin for RecvError
§impl !UnwindSafe for RecvError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
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 #[non_exhaustive]pub enum SendError {
+SendError in iroh_relay::client - Rust #[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 pub enum SendMessage {
+SendMessage in iroh_relay::client - Rust 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
Trait Implementations§
Source§impl Debug for SendMessage
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Sink<SendMessage> for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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
Auto Trait Implementations§
§impl !Freeze for SendMessage
§impl RefUnwindSafe for SendMessage
§impl Send for SendMessage
§impl Sync for SendMessage
§impl Unpin for SendMessage
§impl UnwindSafe for SendMessage
Blanket Implementations§
Source§impl<T> Any for Twhere
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 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 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 Expand description
Exposes Client, which allows to establish connections to a relay server.
+iroh_relay::client - Rust Expand description
Exposes Client, which allows to establish connections to a relay server.
Based on tailscale/derp/derphttp/derphttp_client.go
Structs§
- A relay client.
- Build a Client.
- The send half of a relay client.
- The receive half of a relay client.
Enums§
- Connection errors
- Dialing errors
- The messages received from a framed relay stream.
- Errors when receiving messages from the relay server.
- Error for sending messages to the relay server.
- Messages we can send to a relay server.
Functions§
- make_
dangerous_client_config test-utils Creates a client config that trusts any servers without verifying their TLS certificate.
\ 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 pub struct Client { /* private fields */ }
Expand description
A relay client.
-Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
-Trait Implementations§
Source§impl Sink<SendMessage> for Client
Source§fn poll_ready(
+Client in iroh_relay::client - Rust pub struct Client { /* private fields */ }
Expand description
A relay client.
+Implementations§
Source§impl Client
Sourcepub fn split(self) -> (ClientStream, ClientSink)
Splits the client into a sink and a stream.
+Trait Implementations§
Source§impl Sink<SendMessage> for Client
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreSource§impl Stream for Client
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 pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
-Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
+ClientBuilder in iroh_relay::client - Rust pub struct ClientBuilder { /* private fields */ }
Expand description
Build a Client.
+Implementations§
Source§impl ClientBuilder
Sourcepub fn new(
url: impl Into<RelayUrl>,
secret_key: SecretKey,
dns_resolver: DnsResolver,
) -> Self
Create a new ClientBuilder
-Sourcepub fn protocol(self, protocol: Protocol) -> Self
Sets whether to connect to the relay via websockets or not.
+
Sourcepub 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.
-Sourcepub fn address_family_selector<S>(self, selector: S) -> Selfwhere
+
Sourcepub fn address_family_selector<S>(self, selector: S) -> Self
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.
-Sourcepub 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.
+Sourcepub 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.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
-Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Sourcepub fn proxy_url(self, url: Url) -> Self
Set an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn key_cache_capacity(self, capacity: usize) -> Self
Set the capacity of the cache for public keys.
+Sourcepub 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 more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ClientBuilder
§impl !RefUnwindSafe for ClientBuilder
§impl Send for ClientBuilder
§impl Sync for ClientBuilder
§impl Unpin for ClientBuilder
§impl !UnwindSafe for ClientBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
-Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
Source§fn poll_ready(
+ClientSink in iroh_relay::client - Rust pub struct ClientSink { /* private fields */ }
Expand description
The send half of a relay client.
+Trait Implementations§
Source§impl Debug for ClientSink
Source§impl Sink<SendMessage> for ClientSink
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 moreSource§fn start_send(
+) -> Poll<Result<(), Self::Error>>
Attempts to prepare the Sink to receive a value. Read moreSource§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 moreSource§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 moreAuto Trait Implementations§
§impl !Freeze for ClientSink
§impl !RefUnwindSafe for ClientSink
§impl Send for ClientSink
§impl Sync for ClientSink
§impl Unpin for ClientSink
§impl !UnwindSafe for ClientSink
Blanket Implementations§
Source§impl<T> Any for Twhere
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 pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
-Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
-Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
Source§fn poll_next(
+ClientStream in iroh_relay::client - Rust pub struct ClientStream { /* private fields */ }
Expand description
The receive half of a relay client.
+Implementations§
Source§impl ClientStream
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address of the client.
+Trait Implementations§
Source§impl Debug for ClientStream
Source§impl Stream for ClientStream
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 downcastingSource§impl ErrorCompat for Error
§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 moreAuto 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§
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
Support for handling DNS resource records for dialing by NodeId.
+iroh_relay::node_info - Rust 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 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 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§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
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 downcastingSource§impl ErrorCompat for MaxLengthExceededError
§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 pub struct NodeInfo {
+NodeInfo in iroh_relay::node_info - Rust pub struct NodeInfo {
pub node_id: NodeId,
pub data: NodeData,
}
Expand description
Fields§
§node_id: NodeIdThe NodeId of the node this is about.
§data: NodeDataThe information published about the node.
-Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
-Sourcepub fn with_direct_addresses(
+
Implementations§
Source§impl NodeInfo
Sourcepub fn from_parts(node_id: NodeId, data: NodeData) -> Self
Creates a new NodeInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated node info.
+Sourcepub fn with_direct_addresses(
self,
direct_addresses: BTreeSet<SocketAddr>,
) -> Self
Sets the direct addresses and returns the updated node info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
-Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
-Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
-Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
-Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated node info.
+Sourcepub fn to_node_addr(&self) -> NodeAddr
Converts into a NodeAddr by cloning the needed fields.
+Sourcepub fn into_node_addr(self) -> NodeAddr
Converts into a NodeAddr without cloning.
+Sourcepub fn from_txt_lookup(lookup: TxtLookup) -> Result<Self, Error>
Available on non-wasm_browser only.
Parses a NodeInfo from a TXT records lookup.
+Sourcepub fn from_pkarr_signed_packet(packet: &SignedPacket) -> Result<Self, Error>
Parses a NodeInfo from a [pkarr::SignedPacket].
+Sourcepub 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.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
Methods from Deref<Target = NodeData>§
Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the node.
Sourcepub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>
Returns the direct addresses of the node.
@@ -34,8 +34,8 @@
)Adds direct addresses to the node data.
Sourcepub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)
Sets the relay URL of the node data.
Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the node data.
-Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
Trait Implementations§
Source§impl Eq for NodeInfo
Source§impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
§impl Freeze for NodeInfo
§impl RefUnwindSafe for NodeInfo
§impl Send for NodeInfo
§impl Sync for NodeInfo
§impl Unpin for NodeInfo
§impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd for UserData
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
Source§impl Eq for UserData
Source§impl StructuralPartialEq for UserData
Auto Trait Implementations§
§impl Freeze for UserData
§impl RefUnwindSafe for UserData
§impl Send for UserData
§impl Sync for UserData
§impl Unpin for UserData
§impl UnwindSafe for UserData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
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 #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::relay - Rust
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 downcastingSource§impl ErrorCompat for Error
§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 moreSource§impl From<Error> for ConnectError
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 From<Error> for ConnectError
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§
§impl<T> AsErrorSource for Twhere
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 Expand description
This module implements the relaying protocol used by the server and client.
+iroh_relay::protos::relay - Rust Expand description
This module implements the relaying protocol used by the server and client.
Protocol flow:
Login:
diff --git a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
index d67904f15b..e60425e725 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::protos::stun - Rust #[non_exhaustive]pub enum Error {
InvalidMessage {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
index 583f559fff..daafa6dacd 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.is.html
@@ -1,2 +1,2 @@
-is in iroh_relay::protos::stun - Rust pub fn is(b: &[u8]) -> bool
Expand description
Reports whether b is a STUN message.
+is in iroh_relay::protos::stun - Rust
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
index f96f3f53da..efa9023f4d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_binding_request.html
@@ -1,2 +1,2 @@
-parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
+parse_binding_request in iroh_relay::protos::stun - Rust pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description
Parses a STUN binding request.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
index b0024b8d4a..a32ecdabab 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.parse_response.html
@@ -1,3 +1,3 @@
-parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
+
parse_response in iroh_relay::protos::stun - Rust pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description
Parses a successful binding response STUN packet.
The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
index 5e7e1ad226..95c8402a0d 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.request.html
@@ -1,2 +1,2 @@
-request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
+request in iroh_relay::protos::stun - Rust pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description
Generates a binding request STUN packet.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
index e6b942e5c1..0c6201bbe7 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/fn.response.html
@@ -1,2 +1,2 @@
-response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
+response in iroh_relay::protos::stun - Rust pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description
Generates a binding response.
\ No newline at end of file
diff --git a/pr/3161/docs/iroh_relay/protos/stun/index.html b/pr/3161/docs/iroh_relay/protos/stun/index.html
index 2f5acd7609..065f7f7b3a 100644
--- a/pr/3161/docs/iroh_relay/protos/stun/index.html
+++ b/pr/3161/docs/iroh_relay/protos/stun/index.html
@@ -1,4 +1,4 @@
-iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
+iroh_relay::protos::stun - Rust Expand description
STUN packets sending and receiving.
Modules§
- STUN Methods Registry
Structs§
- Class used to decode STUN messages
- Describes an error decoding a
StunMessage - The transaction ID is a 96-bit identifier, used to uniquely identify
STUN transactions. It primarily serves to correlate requests with
responses, though it also plays a small role in helping to prevent
diff --git a/pr/3161/docs/iroh_relay/quic/enum.Error.html b/pr/3161/docs/iroh_relay/quic/enum.Error.html
index 85926a5c7e..d410b65a8b 100644
--- a/pr/3161/docs/iroh_relay/quic/enum.Error.html
+++ b/pr/3161/docs/iroh_relay/quic/enum.Error.html
@@ -1,4 +1,4 @@
-
Error in iroh_relay::quic - Rust #[non_exhaustive]pub enum Error {
+Error in iroh_relay::quic - Rust