#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::address_lookup - Rust ParseError
Utf8
NotAnIrohRecord
DecodingError
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
fn from(source: DecodingError) -> ParseError
Source§impl From<ParseError> for LookupError
impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
fn from(source: ParseError) -> LookupError
Source§impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
fn from(source: Utf8Error) -> ParseError
Source§impl StackError for ParseError
impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
fn from(source: DecodingError) -> ParseError
Source§impl From<ParseError> for LookupError
impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
fn from(source: ParseError) -> LookupError
Source§impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
fn from(source: Utf8Error) -> ParseError
Source§impl StackError for ParseError
impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/address_lookup/struct.AddrFilter.html b/pr/3999/docs/iroh/address_lookup/struct.AddrFilter.html
index 00712c2bc2..18e77ad3d0 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::address_lookup - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::address_lookup - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/address_lookup/struct.EndpointData.html b/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html
index 1152da31f9..d3d2a057f4 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::address_lookup - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::address_lookup - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/address_lookup/struct.EndpointInfo.html b/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
index 904dd8fcc1..fc5a5d5f96 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/address_lookup/struct.Item.html b/pr/3999/docs/iroh/address_lookup/struct.Item.html
index 20aa739d79..36fd4bc140 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.Item.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.Item.html
@@ -19,12 +19,12 @@ this item.
Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
Trait Implementations§
Source§impl From<Item> for EndpointInfo
Source§impl Eq for Item
Source§impl StructuralPartialEq for Item
Auto Trait Implementations§
§impl Freeze for Item
§impl RefUnwindSafe for Item
§impl Send for Item
§impl Sync for Item
§impl Unpin for Item
§impl UnwindSafe for Item
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3999/docs/iroh/address_lookup/struct.UserData.html b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
index b16590af96..b764f14d35 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.UserData.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
index 8b5d231038..484b5d560a 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
index 6fe27b62b0..13ab7f43dc 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
index 49deced869..8858ad5871 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
AddrFilter
pub struct AddrFilter(/* private fields */);Expand description
A filter and/or reordering function applied to transport addresses, +
AddrFilter
pub struct AddrFilter(/* private fields */);Expand description
A filter and/or reordering function applied to transport addresses, typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
impl AddrFilter
Implementations§
Source§impl AddrFilter
impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
pub fn new( f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, ) -> AddrFilter
Create a new AddrFilter
Sourcepub fn relay_only() -> AddrFilter
pub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
pub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
fn clone(&self) -> AddrFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddrFilter
impl Debug for AddrFilter
Source§impl Default for AddrFilter
impl Default for AddrFilter
Source§fn default() -> AddrFilter
fn default() -> AddrFilter
Auto Trait Implementations§
impl Freeze for AddrFilter
impl !RefUnwindSafe for AddrFilter
impl Send for AddrFilter
impl Sync for AddrFilter
impl Unpin for AddrFilter
impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
pub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
pub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
fn clone(&self) -> AddrFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddrFilter
impl Debug for AddrFilter
Source§impl Default for AddrFilter
impl Default for AddrFilter
Source§fn default() -> AddrFilter
fn default() -> AddrFilter
Auto Trait Implementations§
impl Freeze for AddrFilter
impl !RefUnwindSafe for AddrFilter
impl Send for AddrFilter
impl Sync for AddrFilter
impl Unpin for AddrFilter
impl !UnwindSafe for AddrFilter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html b/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html
index 1152da31f9..d3d2a057f4 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::address_lookup - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::address_lookup - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/address_lookup/struct.EndpointInfo.html b/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
index 904dd8fcc1..fc5a5d5f96 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/address_lookup/struct.Item.html b/pr/3999/docs/iroh/address_lookup/struct.Item.html
index 20aa739d79..36fd4bc140 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.Item.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.Item.html
@@ -19,12 +19,12 @@ this item.
Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
Trait Implementations§
Source§impl From<Item> for EndpointInfo
Source§impl Eq for Item
Source§impl StructuralPartialEq for Item
Auto Trait Implementations§
§impl Freeze for Item
§impl RefUnwindSafe for Item
§impl Send for Item
§impl Sync for Item
§impl Unpin for Item
§impl UnwindSafe for Item
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3999/docs/iroh/address_lookup/struct.UserData.html b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
index b16590af96..b764f14d35 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.UserData.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
index 8b5d231038..484b5d560a 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
index 6fe27b62b0..13ab7f43dc 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
index 49deced869..8858ad5871 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
EndpointData
pub struct EndpointData { /* private fields */ }Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData
pub struct EndpointData { /* private fields */ }Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
Implementations§
Source§impl EndpointData
impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
fn clone(&self) -> EndpointData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointData
impl Debug for EndpointData
Source§impl Default for EndpointData
impl Default for EndpointData
Source§fn default() -> EndpointData
fn default() -> EndpointData
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
fn from(endpoint_addr: EndpointAddr) -> EndpointData
Source§impl PartialEq for EndpointData
impl PartialEq for EndpointData
impl Eq for EndpointData
impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
impl Freeze for EndpointData
impl RefUnwindSafe for EndpointData
impl Send for EndpointData
impl Sync for EndpointData
impl Unpin for EndpointData
impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
fn clone(&self) -> EndpointData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointData
impl Debug for EndpointData
Source§impl Default for EndpointData
impl Default for EndpointData
Source§fn default() -> EndpointData
fn default() -> EndpointData
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
fn from(endpoint_addr: EndpointAddr) -> EndpointData
Source§impl PartialEq for EndpointData
impl PartialEq for EndpointData
impl Eq for EndpointData
impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
impl Freeze for EndpointData
impl RefUnwindSafe for EndpointData
impl Send for EndpointData
impl Sync for EndpointData
impl Unpin for EndpointData
impl UnwindSafe for EndpointData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html b/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
index 904dd8fcc1..fc5a5d5f96 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/address_lookup/struct.Item.html b/pr/3999/docs/iroh/address_lookup/struct.Item.html
index 20aa739d79..36fd4bc140 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.Item.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.Item.html
@@ -19,12 +19,12 @@ this item.
Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::address_lookup - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointInfo
impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
impl Deref for EndpointInfo
Source§type Target = EndpointData
type Target = EndpointData
Source§impl DerefMut for EndpointInfo
impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
fn from(addr: EndpointAddr) -> EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
fn from(value: EndpointInfo) -> EndpointAddr
Source§impl From<Item> for EndpointInfo
impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
impl Eq for EndpointInfo
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointInfo
impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
impl Deref for EndpointInfo
Source§type Target = EndpointData
type Target = EndpointData
Source§impl DerefMut for EndpointInfo
impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
fn from(addr: EndpointAddr) -> EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
fn from(value: EndpointInfo) -> EndpointAddr
Source§impl From<Item> for EndpointInfo
impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
impl Eq for EndpointInfo
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnwindSafe for EndpointInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit( diff --git a/pr/3999/docs/iroh/address_lookup/struct.Item.html b/pr/3999/docs/iroh/address_lookup/struct.Item.html index 20aa739d79..36fd4bc140 100644 --- a/pr/3999/docs/iroh/address_lookup/struct.Item.html +++ b/pr/3999/docs/iroh/address_lookup/struct.Item.html @@ -19,12 +19,12 @@ this item.
Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
pub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
pub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
Trait Implementations§
Source§impl From<Item> for EndpointInfo
impl From<Item> for EndpointInfo
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
Blanket Implementations§
Source§impl<T> Any for Twhere
diff --git a/pr/3999/docs/iroh/address_lookup/struct.UserData.html b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
index b16590af96..b764f14d35 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.UserData.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
index 8b5d231038..484b5d560a 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
index 6fe27b62b0..13ab7f43dc 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
index 49deced869..8858ad5871 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
impl<T> Any for Twhere
diff --git a/pr/3999/docs/iroh/address_lookup/struct.UserData.html b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
index b16590af96..b764f14d35 100644
--- a/pr/3999/docs/iroh/address_lookup/struct.UserData.html
+++ b/pr/3999/docs/iroh/address_lookup/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::address_lookup - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
index 8b5d231038..484b5d560a 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
index 6fe27b62b0..13ab7f43dc 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
index 49deced869..8858ad5871 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
UserData
pub struct UserData(/* private fields */);Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
UserData
pub struct UserData(/* private fields */);Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
Implementations§
Source§impl UserData
impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
pub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
pub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
impl Ord for UserData
Source§impl PartialOrd for UserData
impl PartialOrd for UserData
impl Eq for UserData
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§
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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
index 8b5d231038..484b5d560a 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
index 6fe27b62b0..13ab7f43dc 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
index 49deced869..8858ad5871 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
Source§impl Error for DecodingError
impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
fn from(source: DecodingError) -> ParseError
Source§impl StackError for DecodingError
impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<DecodingError>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for DecodingError
impl !RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl !UnwindSafe for DecodingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
index 6fe27b62b0..13ab7f43dc 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
Converts to this type from the input type.Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
impl Debug for EncodingError
Source§impl Display for EncodingError
impl Display for EncodingError
Source§impl Error for EncodingError
impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl StackError for EncodingError
impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<EncodingError>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for EncodingError
impl RefUnwindSafe for EncodingError
impl Send for EncodingError
impl Sync for EncodingError
impl Unpin for EncodingError
impl UnwindSafe for EncodingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
index 8ab63e1e6b..25f23d341f 100644
--- a/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::endpoint_info - Rust ParseError
Utf8
NotAnIrohRecord
DecodingError
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
fn from(source: DecodingError) -> ParseError
Source§impl From<ParseError> for LookupError
impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
fn from(source: ParseError) -> LookupError
Source§impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
fn from(source: Utf8Error) -> ParseError
Source§impl StackError for ParseError
impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> ParseError
fn from(source: DecodingError) -> ParseError
Source§impl From<ParseError> for LookupError
impl From<ParseError> for LookupError
Source§fn from(source: ParseError) -> LookupError
fn from(source: ParseError) -> LookupError
Source§impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
Source§fn from(source: Utf8Error) -> ParseError
fn from(source: Utf8Error) -> ParseError
Source§impl StackError for ParseError
impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<ParseError>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
index 49deced869..8858ad5871 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
Create a new AddrFilter
-Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
AddrFilter
pub struct AddrFilter(/* private fields */);Expand description
A filter and/or reordering function applied to transport addresses, +
AddrFilter
pub struct AddrFilter(/* private fields */);Expand description
A filter and/or reordering function applied to transport addresses, typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
impl AddrFilter
Implementations§
Source§impl AddrFilter
impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> AddrFilter
pub fn new( f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, ) -> AddrFilter
Create a new AddrFilter
Sourcepub fn relay_only() -> AddrFilter
pub fn relay_only() -> AddrFilter
Only keep relay addresses.
-Sourcepub fn ip_only() -> AddrFilter
pub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
-Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
fn clone(&self) -> AddrFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddrFilter
impl Debug for AddrFilter
Source§impl Default for AddrFilter
impl Default for AddrFilter
Source§fn default() -> AddrFilter
fn default() -> AddrFilter
Auto Trait Implementations§
impl Freeze for AddrFilter
impl !RefUnwindSafe for AddrFilter
impl Send for AddrFilter
impl Sync for AddrFilter
impl Unpin for AddrFilter
impl !UnwindSafe for AddrFilter
Blanket Implementations§
Sourcepub fn relay_only() -> AddrFilter
pub fn relay_only() -> AddrFilter
Only keep relay addresses.
+Sourcepub fn ip_only() -> AddrFilter
pub fn ip_only() -> AddrFilter
Only keep direct IP addresses.
+Sourcepub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
pub fn apply(&self, addrs: &BTreeSet<TransportAddr>) -> Vec<TransportAddr>
Apply the address filter function to a set of addresses.
+Trait Implementations§
Source§impl Clone for AddrFilter
impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
fn clone(&self) -> AddrFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddrFilter
impl Debug for AddrFilter
Source§impl Default for AddrFilter
impl Default for AddrFilter
Source§fn default() -> AddrFilter
fn default() -> AddrFilter
Auto Trait Implementations§
impl Freeze for AddrFilter
impl !RefUnwindSafe for AddrFilter
impl Send for AddrFilter
impl Sync for AddrFilter
impl Unpin for AddrFilter
impl !UnwindSafe for AddrFilter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
index 3ba6f6c494..26c9dcd686 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
EndpointData
pub struct EndpointData { /* private fields */ }Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData
pub struct EndpointData { /* private fields */ }Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional RelayUrl, a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s EndpointId, only the data about a certain
endpoint. See EndpointInfo for a struct that contains a EndpointId with associated EndpointData.
Implementations§
Source§impl EndpointData
impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> EndpointData
Creates a new EndpointData with a relay URL and a set of direct addresses.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointData
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> EndpointData
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
pub fn with_user_data(self, user_data: Option<UserData>) -> EndpointData
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
fn clone(&self) -> EndpointData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointData
impl Debug for EndpointData
Source§impl Default for EndpointData
impl Default for EndpointData
Source§fn default() -> EndpointData
fn default() -> EndpointData
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
fn from(endpoint_addr: EndpointAddr) -> EndpointData
Source§impl PartialEq for EndpointData
impl PartialEq for EndpointData
impl Eq for EndpointData
impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
impl Freeze for EndpointData
impl RefUnwindSafe for EndpointData
impl Send for EndpointData
impl Sync for EndpointData
impl Unpin for EndpointData
impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
fn clone(&self) -> EndpointData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointData
impl Debug for EndpointData
Source§impl Default for EndpointData
impl Default for EndpointData
Source§fn default() -> EndpointData
fn default() -> EndpointData
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
fn from(endpoint_addr: EndpointAddr) -> EndpointData
Source§impl PartialEq for EndpointData
impl PartialEq for EndpointData
impl Eq for EndpointData
impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
impl Freeze for EndpointData
impl RefUnwindSafe for EndpointData
impl Send for EndpointData
impl Sync for EndpointData
impl Unpin for EndpointData
impl UnwindSafe for EndpointData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
index 434ed8cfb0..32cacc4724 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+
Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§type Target = EndpointData
The resulting type after dereferencing.Source§impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: PublicKey,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a EndpointId with its associated EndpointData.
Fields§
§endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: PublicKey) -> EndpointInfo
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: PublicKey, data: EndpointData) -> EndpointInfo
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> EndpointInfo
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> EndpointInfo
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> EndpointInfo
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a EndpointAddr by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a EndpointAddr without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
) -> Result<EndpointInfo, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+
Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
) -> Result<SignedPacket, EncodingError>
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
-Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointInfo
impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
impl Deref for EndpointInfo
Source§type Target = EndpointData
type Target = EndpointData
Source§impl DerefMut for EndpointInfo
impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
fn from(addr: EndpointAddr) -> EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
fn from(value: EndpointInfo) -> EndpointAddr
Source§impl From<Item> for EndpointInfo
impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
impl Eq for EndpointInfo
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointInfo
impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
impl Deref for EndpointInfo
Source§type Target = EndpointData
type Target = EndpointData
Source§impl DerefMut for EndpointInfo
impl DerefMut for EndpointInfo
Source§impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
impl From<&TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: &TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
fn from(addr: EndpointAddr) -> EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
fn from(value: EndpointInfo) -> EndpointAddr
Source§impl From<Item> for EndpointInfo
impl From<Item> for EndpointInfo
Source§impl From<TxtAttrs<IrohAttr>> for EndpointInfo
impl From<TxtAttrs<IrohAttr>> for EndpointInfo
Source§fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
fn from(attrs: TxtAttrs<IrohAttr>) -> EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
impl Eq for EndpointInfo
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnwindSafe for EndpointInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
index 4384bf1f07..443b8c68fb 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }Expand description
Error returned when an input value is too long for UserData.
Implementations§
Source§impl MaxLengthExceededError
impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
pub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
Trait Implementations§
Source§impl Debug for MaxLengthExceededError
impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl StackError for MaxLengthExceededError
impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for MaxLengthExceededError
impl RefUnwindSafe for MaxLengthExceededError
impl Send for MaxLengthExceededError
impl Sync for MaxLengthExceededError
impl Unpin for MaxLengthExceededError
impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
impl<T> Any for Twhere
+MaxLengthExceededError in iroh::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }Expand description
Error returned when an input value is too long for UserData.
Implementations§
Source§impl MaxLengthExceededError
impl MaxLengthExceededError
Sourcepub fn new() -> MaxLengthExceededError
pub fn new() -> MaxLengthExceededError
Creates a new MaxLengthExceededError error.
Trait Implementations§
Source§impl Debug for MaxLengthExceededError
impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl StackError for MaxLengthExceededError
impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<MaxLengthExceededError>) -> Box<dyn Error + Send + Sync>
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for MaxLengthExceededError
impl RefUnwindSafe for MaxLengthExceededError
impl Send for MaxLengthExceededError
impl Sync for MaxLengthExceededError
impl Unpin for MaxLengthExceededError
impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
index 88f6ca2d79..e97c1f5113 100644
--- a/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh/endpoint_info/struct.UserData.html
@@ -1,24 +1,24 @@
-UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
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§
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/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
diff --git a/pr/3999/docs/iroh/struct.EndpointAddr.html b/pr/3999/docs/iroh/struct.EndpointAddr.html
index b065826d7b..7a05577060 100644
--- a/pr/3999/docs/iroh/struct.EndpointAddr.html
+++ b/pr/3999/docs/iroh/struct.EndpointAddr.html
@@ -45,7 +45,7 @@ depending on the situation.
Trait Implementations§
Source§impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
Converts to this type from the input type.Source§impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
Converts to this type from the input type.Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
Converts to this type from the input type.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreSource§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
Converts to this type from the input type.Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
UserData
pub struct UserData(/* private fields */);Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
UserData
pub struct UserData(/* private fields */);Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
Implementations§
Source§impl UserData
impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
pub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
pub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
impl Ord for UserData
Source§impl PartialOrd for UserData
impl PartialOrd for UserData
impl Eq for UserData
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§
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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
index 0c678a2e12..cd55ce6904 100644
--- a/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+
Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
+Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
+Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
// Required methods
fn to_z32(&self) -> String;
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>;
}
Expand description
Extension methods for EndpointId to encode to and decode from [z32],
which is the encoding used in [pkarr] domain names.
-Required Methods§
Sourcefn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
-Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
-Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl EndpointIdExt for PublicKey
\ No newline at end of file
+Required Methods§
Sourcefn to_z32(&self) -> String
fn to_z32(&self) -> String
Encodes a EndpointId in z-base-32 encoding.
Sourcefn from_z32(s: &str) -> Result<PublicKey, DecodingError>
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
Parses a EndpointId from z-base-32 encoding.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl EndpointIdExt for PublicKey
Trait Implementations§
Source§impl Clone for EndpointAddr
impl Clone for EndpointAddr
Source§fn clone(&self) -> EndpointAddr
fn clone(&self) -> EndpointAddr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointAddr
impl Debug for EndpointAddr
Source§impl<'de> Deserialize<'de> for EndpointAddr
impl<'de> Deserialize<'de> for EndpointAddr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndpointAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
fn from(endpoint_addr: EndpointAddr) -> EndpointData
Source§impl From<EndpointAddr> for EndpointInfo
impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
fn from(addr: EndpointAddr) -> EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
fn from(value: EndpointInfo) -> EndpointAddr
Source§impl From<PublicKey> for EndpointAddr
impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
fn from(endpoint_id: PublicKey) -> EndpointAddr
Source§impl Hash for EndpointAddr
impl Hash for EndpointAddr
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§fn from(endpoint_addr: EndpointAddr) -> EndpointData
fn from(endpoint_addr: EndpointAddr) -> EndpointData
Source§impl From<EndpointAddr> for EndpointInfo
impl From<EndpointAddr> for EndpointInfo
Source§fn from(addr: EndpointAddr) -> EndpointInfo
fn from(addr: EndpointAddr) -> EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> EndpointAddr
fn from(value: EndpointInfo) -> EndpointAddr
Source§impl From<PublicKey> for EndpointAddr
impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
fn from(endpoint_id: PublicKey) -> EndpointAddr
Source§impl Hash for EndpointAddr
impl Hash for EndpointAddr
Source§impl Ord for EndpointAddr
impl Ord for EndpointAddr
Source§fn cmp(&self, other: &EndpointAddr) -> Ordering
fn cmp(&self, other: &EndpointAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
fn max(self, other: Self) -> Selfwhere
diff --git a/pr/3999/docs/iroh/struct.PublicKey.html b/pr/3999/docs/iroh/struct.PublicKey.html
index 6477c63d8f..1cc684c55a 100644
--- a/pr/3999/docs/iroh/struct.PublicKey.html
+++ b/pr/3999/docs/iroh/struct.PublicKey.html
@@ -20,7 +20,7 @@ representation of the key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PublicKey
impl<'de> Deserialize<'de> for PublicKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Source§impl EndpointIdExt for PublicKey
impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
fn from(endpoint_id: PublicKey) -> EndpointAddr
Source§impl EndpointIdExt for PublicKey
impl EndpointIdExt for PublicKey
Source§fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
fn from_z32(s: &str) -> Result<PublicKey, DecodingError>
EndpointId from z-base-32 encoding.Source§impl From<PublicKey> for EndpointAddr
impl From<PublicKey> for EndpointAddr
Source§fn from(endpoint_id: PublicKey) -> EndpointAddr
fn from(endpoint_id: PublicKey) -> EndpointAddr
Source§impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
impl FromStr for PublicKey
Deserialises the PublicKey from it’s base32 encoding.
Display is capable of serialising this format.
Source§impl Hash for PublicKey
impl Hash for PublicKey
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
fn hash_slice<H>(data: &[Self], state: &mut H)where
diff --git a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
index 39e237d1ae..70c3e2bba4 100644
--- a/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.ConnectionSelector.html
@@ -1,7 +1,7 @@
ConnectionSelector in iroh_bench - Rust ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}
Variants§
§Iroh(Connection)
§Noq(Connection)
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
ConnectionSelector
pub enum ConnectionSelector {
- Iroh(Connection),
+ Iroh(Connection),
Noq(Connection),
-}Variants§
Iroh(Connection)
Noq(Connection)
Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionSelector
impl RefUnwindSafe for ConnectionSelector
impl Send for ConnectionSelector
impl Sync for ConnectionSelector
impl Unpin for ConnectionSelector
impl UnwindSafe for ConnectionSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for ConnectionSelector
§impl RefUnwindSafe for ConnectionSelector
§impl Send for ConnectionSelector
§impl Sync for ConnectionSelector
§impl Unpin for ConnectionSelector
§impl UnwindSafe for ConnectionSelector
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/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionSelector
impl RefUnwindSafe for ConnectionSelector
impl Send for ConnectionSelector
impl Sync for ConnectionSelector
impl Unpin for ConnectionSelector
impl UnwindSafe for ConnectionSelector
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
index 1c26c9c666..8d5493faa3 100644
--- a/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
+++ b/pr/3999/docs/iroh_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_bench - Rust EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
EndpointSelector
pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Noq(Endpoint),
-}Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for EndpointSelector
impl !RefUnwindSafe for EndpointSelector
impl Send for EndpointSelector
impl Sync for EndpointSelector
impl Unpin for EndpointSelector
impl !UnwindSafe for EndpointSelector
Blanket Implementations§
Source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for EndpointSelector
impl !RefUnwindSafe for EndpointSelector
impl Send for EndpointSelector
impl Sync for EndpointSelector
impl Unpin for EndpointSelector
impl !UnwindSafe for EndpointSelector
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.client.html b/pr/3999/docs/iroh_bench/iroh/fn.client.html
index 511ebeeea9..ee95101802 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_bench::iroh - Rust client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
index 2530765a7d..12d349d06e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_bench::iroh - Rust connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
index 6938f0b91a..4483d2e85e 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.handle_client_stream.html
@@ -1,5 +1,5 @@
handle_client_stream in iroh_bench::iroh - Rust handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server.html b/pr/3999/docs/iroh_bench/iroh/fn.server.html
index 72f6aee0a2..d60739106b 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_bench::iroh - Rust server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_bench::iroh - Rust server
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
index c12bc98a09..7e366b20bd 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_bench::iroh - Rust server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
index 41773e87f4..4587fb9835 100644
--- a/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
+++ b/pr/3999/docs/iroh_bench/iroh/fn.transport_config.html
@@ -1,4 +1,4 @@
transport_config in iroh_bench::iroh - Rust transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfig
\ No newline at end of file
+) -> QuicTransportConfig
\ No newline at end of file
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
index 778a9fb0cc..624f089a62 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.DecodingError.html
@@ -1,4 +1,4 @@
-DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
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/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
§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/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
client
pub async fn client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
) -> Result<ClientStats>Expand description
Create and run a client
connect_client
pub async fn connect_client(
- server_addr: EndpointAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: EndpointAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt,
-) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
handle_client_stream
pub async fn handle_client_stream(
- connection: &Connection,
+ connection: &Connection,
upload_size: u64,
read_unordered: bool,
) -> Result<(TransferResult, TransferResult)>server
pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>Expand description
Take the provided endpoint and run the server
+server
server_endpoint
pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt,
-) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
+) -> (EndpointAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
transport_config
pub fn transport_config(
max_streams: usize,
initial_mtu: u16,
-) -> QuicTransportConfigDecodingError
#[non_exhaustive]pub enum DecodingError {
+DecodingError in iroh_relay::endpoint_info - Rust DecodingError
#[non_exhaustive]pub enum DecodingError {
InvalidEncodingZ32 {
source: Z32Error,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for DecodingError
Source§impl Display for DecodingError
Source§impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
Converts to this type from the input type.Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for DecodingError
§impl !RefUnwindSafe for DecodingError
§impl Send for DecodingError
§impl Sync for DecodingError
§impl Unpin for DecodingError
§impl !UnwindSafe for DecodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for DecodingError
impl Debug for DecodingError
Source§impl Display for DecodingError
impl Display for DecodingError
Source§impl Error for DecodingError
impl Error for DecodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for AnyError
impl From<DecodingError> for AnyError
Source§fn from(value: DecodingError) -> AnyError
fn from(value: DecodingError) -> AnyError
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Source§impl StackError for DecodingError
impl StackError for DecodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for DecodingError
impl !RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl !UnwindSafe for DecodingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
index b69b21ad1d..006829ac46 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.EncodingError.html
@@ -1,4 +1,4 @@
-EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
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/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
§Utf8
§NotAnIrohRecord
§DecodingError
Trait Implementations§
Source§impl Debug for ParseError
Source§impl Display for ParseError
Source§impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
Converts to this type from the input type.Source§impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
Converts to this type from the input type.Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
Source§fn from(source: ParseError) -> Self
Converts to this type from the input type.Source§impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for ParseError
§impl !RefUnwindSafe for ParseError
§impl Send for ParseError
§impl Sync for ParseError
§impl Unpin for ParseError
§impl !UnwindSafe for ParseError
Blanket Implementations§
EncodingError
#[non_exhaustive]pub enum EncodingError {
+EncodingError in iroh_relay::endpoint_info - Rust EncodingError
#[non_exhaustive]pub enum EncodingError {
FailedBuildingPacket {
source: SignedPacketBuildError,
meta: Meta,
@@ -9,7 +9,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EncodingError
Source§impl Display for EncodingError
Source§impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Auto Trait Implementations§
§impl Freeze for EncodingError
§impl RefUnwindSafe for EncodingError
§impl Send for EncodingError
§impl Sync for EncodingError
§impl Unpin for EncodingError
§impl UnwindSafe for EncodingError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for EncodingError
impl Debug for EncodingError
Source§impl Display for EncodingError
impl Display for EncodingError
Source§impl Error for EncodingError
impl Error for EncodingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<EncodingError> for AnyError
impl From<EncodingError> for AnyError
Source§fn from(value: EncodingError) -> AnyError
fn from(value: EncodingError) -> AnyError
Source§impl StackError for EncodingError
impl StackError for EncodingError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for EncodingError
impl RefUnwindSafe for EncodingError
impl Send for EncodingError
impl Sync for EncodingError
impl Unpin for EncodingError
impl UnwindSafe for EncodingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
index 4ff61f6718..4af4fd7718 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/enum.ParseError.html
@@ -1,4 +1,4 @@
-ParseError in iroh_relay::endpoint_info - Rust ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
ParseError
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh_relay::endpoint_info - Rust ParseError
Utf8
NotAnIrohRecord
DecodingError
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Source§impl From<ParseError> for AnyError
impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
fn from(value: ParseError) -> AnyError
Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
impl From<ParseError> for LookupError
wasm_browser only.Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations§
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodingError> for ParseError
impl From<DecodingError> for ParseError
Source§fn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Source§impl From<ParseError> for AnyError
impl From<ParseError> for AnyError
Source§fn from(value: ParseError) -> AnyError
fn from(value: ParseError) -> AnyError
Source§impl From<ParseError> for LookupError
Available on non-wasm_browser only.
impl From<ParseError> for LookupError
wasm_browser only.Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
Source§impl StackError for ParseError
impl StackError for ParseError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/index.html b/pr/3999/docs/iroh_relay/endpoint_info/index.html
index 11e69a6214..8e292cecb8 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/index.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/index.html
@@ -1,4 +1,4 @@
-iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
+iroh_relay::endpoint_info - Rust Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
index 981dbcbc3a..82a5815161 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html
@@ -1,4 +1,4 @@
-AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
+
AddrFilter in iroh_relay::endpoint_info - Rust AddrFilter
pub struct AddrFilter(/* private fields */);
Expand description
A filter and/or reordering function applied to transport addresses,
typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on
what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
Implementations§
Source§impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
Create a new AddrFilter
-Sourcepub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for AddrFilter
Source§impl Default for AddrFilter
Source§fn default() -> AddrFilter
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for AddrFilter
§impl !RefUnwindSafe for AddrFilter
§impl Send for AddrFilter
§impl Sync for AddrFilter
§impl Unpin for AddrFilter
§impl !UnwindSafe for AddrFilter
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Module endpoint_info
Expand description
Support for handling DNS resource records for dialing by [EndpointId].
Dialing by [EndpointId] is supported by iroh endpoints publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html index 981dbcbc3a..82a5815161 100644 --- a/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html +++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.AddrFilter.html @@ -1,4 +1,4 @@ -AddrFilter
pub struct AddrFilter(/* private fields */);Expand description
A filter and/or reordering function applied to transport addresses, +
AddrFilter
pub struct AddrFilter(/* private fields */);Expand description
A filter and/or reordering function applied to transport addresses, typically used by AddressLookup services in iroh before publishing.
Takes the full set of transport addresses and returns them as an ordered Vec,
allowing both filtering (by omitting addresses) and reordering (by controlling
@@ -6,13 +6,13 @@ the output order). A BTreeSet cannot preserve a custom order, so th
type is Vec to make reordering possible.
See the documentation for each address lookup implementation for details on what additional filtering the implementation may perform on top.
-Implementations§
Source§impl AddrFilter
impl AddrFilter
Implementations§
Source§impl AddrFilter
impl AddrFilter
Sourcepub fn new(
f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static,
) -> Self
pub fn new( f: impl Fn(&BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static, ) -> Self
Create a new AddrFilter
Sourcepub fn relay_only() -> Self
pub fn relay_only() -> Self
Only keep relay addresses.
-Trait Implementations§
Source§impl Clone for AddrFilter
impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
fn clone(&self) -> AddrFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddrFilter
impl Debug for AddrFilter
Source§impl Default for AddrFilter
impl Default for AddrFilter
Source§fn default() -> AddrFilter
fn default() -> AddrFilter
Auto Trait Implementations§
impl Freeze for AddrFilter
impl !RefUnwindSafe for AddrFilter
impl Send for AddrFilter
impl Sync for AddrFilter
impl Unpin for AddrFilter
impl !UnwindSafe for AddrFilter
Blanket Implementations§
Trait Implementations§
Source§impl Clone for AddrFilter
impl Clone for AddrFilter
Source§fn clone(&self) -> AddrFilter
fn clone(&self) -> AddrFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddrFilter
impl Debug for AddrFilter
Source§impl Default for AddrFilter
impl Default for AddrFilter
Source§fn default() -> AddrFilter
fn default() -> AddrFilter
Auto Trait Implementations§
impl Freeze for AddrFilter
impl !RefUnwindSafe for AddrFilter
impl Send for AddrFilter
impl Sync for AddrFilter
impl Unpin for AddrFilter
impl !UnwindSafe for AddrFilter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
index a7e27b5f6d..31e0ac8ce9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointData.html
@@ -1,26 +1,26 @@
-EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData in iroh_relay::endpoint_info - Rust EndpointData
pub struct EndpointData { /* private fields */ }
Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
-Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointData
Source§impl Default for EndpointData
Source§fn default() -> EndpointData
Returns the “default value” for a type. Read moreSource§impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
Source§impl Eq for EndpointData
Source§impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
§impl Freeze for EndpointData
§impl RefUnwindSafe for EndpointData
§impl Send for EndpointData
§impl Sync for EndpointData
§impl Unpin for EndpointData
§impl UnwindSafe for EndpointData
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/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
EndpointData
pub struct EndpointData { /* private fields */ }Expand description
Data about an endpoint that may be published to and resolved from discovery services.
+EndpointData
pub struct EndpointData { /* private fields */ }Expand description
Data about an endpoint that may be published to and resolved from discovery services.
This includes an optional [RelayUrl], a set of direct addresses, and the optional
UserData, a string that can be set by applications and is not parsed or used by iroh
itself.
This struct does not include the endpoint’s [EndpointId], only the data about a certain
endpoint. See EndpointInfo for a struct that contains a [EndpointId] with associated EndpointData.
Implementations§
Source§impl EndpointData
impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
-Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
pub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
-Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Implementations§
Source§impl EndpointData
impl EndpointData
Sourcepub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
pub fn new(addrs: impl IntoIterator<Item = TransportAddr>) -> Self
Creates a new EndpointData with a relay URL and a set of direct addresses.
Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint data.
+Sourcepub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
pub fn with_ip_addrs(self, addresses: BTreeSet<SocketAddr>) -> Self
Sets the direct addresses and returns the updated endpoint data.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
pub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint data.
+Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
pub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
pub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
pub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
pub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
pub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
pub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
pub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
pub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
pub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointData
impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
fn clone(&self) -> EndpointData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointData
impl Debug for EndpointData
Source§impl Default for EndpointData
impl Default for EndpointData
Source§fn default() -> EndpointData
fn default() -> EndpointData
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
impl PartialEq for EndpointData
impl Eq for EndpointData
impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
impl Freeze for EndpointData
impl RefUnwindSafe for EndpointData
impl Send for EndpointData
impl Sync for EndpointData
impl Unpin for EndpointData
impl UnwindSafe for EndpointData
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointData
impl Clone for EndpointData
Source§fn clone(&self) -> EndpointData
fn clone(&self) -> EndpointData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointData
impl Debug for EndpointData
Source§impl Default for EndpointData
impl Default for EndpointData
Source§fn default() -> EndpointData
fn default() -> EndpointData
Source§impl From<EndpointAddr> for EndpointData
impl From<EndpointAddr> for EndpointData
Source§impl PartialEq for EndpointData
impl PartialEq for EndpointData
impl Eq for EndpointData
impl StructuralPartialEq for EndpointData
Auto Trait Implementations§
impl Freeze for EndpointData
impl RefUnwindSafe for EndpointData
impl Send for EndpointData
impl Sync for EndpointData
impl Unpin for EndpointData
impl UnwindSafe for EndpointData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
index acbed4810d..61205cdd04 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.EndpointInfo.html
@@ -1,44 +1,44 @@
-EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
EndpointInfo
pub struct EndpointInfo {
+EndpointInfo in iroh_relay::endpoint_info - Rust EndpointInfo
pub struct EndpointInfo {
pub endpoint_id: EndpointId,
pub data: EndpointData,
}
Expand description
Information about an endpoint that may be published to and resolved from discovery services.
This struct couples a [EndpointId] with its associated EndpointData.
Fields§
§endpoint_id: EndpointIdThe [EndpointId] of the endpoint this is about.
§data: EndpointDataThe information published about the endpoint.
-Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
-Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
-Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
-Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
-Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
-Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
-Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
-Sourcepub fn from_txt_lookup(
+
Implementations§
Source§impl EndpointInfo
Sourcepub fn new(endpoint_id: EndpointId) -> Self
Creates a new EndpointInfo with an empty EndpointData.
+Sourcepub fn from_parts(endpoint_id: EndpointId, data: EndpointData) -> Self
Creates a new EndpointInfo from its parts.
+Sourcepub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self
Sets the relay URL and returns the updated endpoint info.
+Sourcepub fn with_ip_addrs(self, addrs: BTreeSet<SocketAddr>) -> Self
Sets the IP based addresses and returns the updated endpoint info.
+Sourcepub fn with_user_data(self, user_data: Option<UserData>) -> Self
Sets the user-defined data and returns the updated endpoint info.
+Sourcepub fn to_endpoint_addr(&self) -> EndpointAddr
Converts into a [EndpointAddr] by cloning the needed fields.
+Sourcepub fn into_endpoint_addr(self) -> EndpointAddr
Converts into a [EndpointAddr] without cloning.
+Sourcepub fn from_txt_lookup(
domain_name: String,
lookup: impl Iterator<Item = TxtRecordData>,
) -> Result<Self, ParseError>
Available on non-wasm_browser only.
Parses a EndpointInfo from DNS TXT lookup.
-Sourcepub fn from_pkarr_signed_packet(
+
Sourcepub fn from_pkarr_signed_packet(
packet: &SignedPacket,
-) -> Result<Self, ParseError>
Available on crate feature pkarr only.
Parses a EndpointInfo from a [pkarr::SignedPacket].
-Sourcepub fn to_pkarr_signed_packet(
+) -> Result<Self, ParseError>
Parses a EndpointInfo from a [pkarr::SignedPacket].
+Sourcepub fn to_pkarr_signed_packet(
&self,
secret_key: &SecretKey,
ttl: u32,
-) -> Result<SignedPacket, EncodingError>
Available on crate feature pkarr only.
Creates a [pkarr::SignedPacket].
+) -> Result<SignedPacket, EncodingError>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.
-Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
-Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
-Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
-Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
-Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
-Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
-Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
-Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
+Sourcepub fn to_txt_strings(&self) -> Vec<String>
Converts into a list of {key}={value} strings.
+Methods from Deref<Target = EndpointData>§
Sourcepub fn relay_urls(&self) -> impl Iterator<Item = &RelayUrl>
Returns the relay URL of the endpoint.
+Sourcepub fn user_data(&self) -> Option<&UserData>
Returns the optional user-defined data of the endpoint.
+Sourcepub fn ip_addrs(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of the endpoint.
+Sourcepub fn clear_ip_addrs(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn clear_relay_urls(&mut self)
Removes all direct addresses from the endpoint data.
+Sourcepub fn add_addrs(&mut self, addrs: impl IntoIterator<Item = TransportAddr>)
Add addresses to the endpoint data.
+Sourcepub fn set_user_data(&mut self, user_data: Option<UserData>)
Sets the user-defined data of the endpoint data.
+Sourcepub fn addrs(&self) -> impl Iterator<Item = &TransportAddr>
Returns the full list of all known addresses
+Sourcepub fn filtered_addrs(&self, filter: &AddrFilter) -> Vec<TransportAddr>
Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for EndpointInfo
Source§impl Deref for EndpointInfo
Source§impl DerefMut for EndpointInfo
Source§impl From<EndpointAddr> for EndpointInfo
Source§impl From<EndpointInfo> for EndpointAddr
Source§fn from(value: EndpointInfo) -> Self
Converts to this type from the input type.Source§impl PartialEq for EndpointInfo
Source§impl Eq for EndpointInfo
Source§impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
§impl Freeze for EndpointInfo
§impl RefUnwindSafe for EndpointInfo
§impl Send for EndpointInfo
§impl Sync for EndpointInfo
§impl Unpin for EndpointInfo
§impl UnwindSafe for EndpointInfo
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/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
index b832f477a6..a085649c3e 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.MaxLengthExceededError.html
@@ -1,6 +1,6 @@
-MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
-Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
-Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
Blanket Implementations§
Source§impl<T> Any for Twhere
+MaxLengthExceededError in iroh_relay::endpoint_info - Rust MaxLengthExceededError
pub struct MaxLengthExceededError { /* private fields */ }
Expand description
Error returned when an input value is too long for UserData.
+Implementations§
Source§impl MaxLengthExceededError
Sourcepub fn new() -> Self
Creates a new MaxLengthExceededError error.
+Trait Implementations§
Source§impl Debug for MaxLengthExceededError
Source§impl Display for MaxLengthExceededError
Source§impl Error for MaxLengthExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Source§impl From<MaxLengthExceededError> for AnyError
Source§fn from(value: MaxLengthExceededError) -> AnyError
Converts to this type from the input type.Source§impl StackError for MaxLengthExceededError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.Auto Trait Implementations§
§impl Freeze for MaxLengthExceededError
§impl RefUnwindSafe for MaxLengthExceededError
§impl Send for MaxLengthExceededError
§impl Sync for MaxLengthExceededError
§impl Unpin for MaxLengthExceededError
§impl UnwindSafe for MaxLengthExceededError
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/3999/docs/iroh_relay/endpoint_info/struct.UserData.html b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
index 7a7e069e1c..416268f092 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/struct.UserData.html
@@ -1,21 +1,21 @@
-UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
+UserData in iroh_relay::endpoint_info - Rust UserData
pub struct UserData(/* private fields */);
Expand description
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.
Iroh does not keep track of or examine the user-defined data.
UserData implements FromStr and TryFrom<String>, so you can
convert &str and String into UserData easily.
-Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
+Implementations§
Source§impl UserData
Sourcepub const MAX_LENGTH: usize = 245usize
The max byte length allowed for user-defined data.
In DNS discovery services, the user-defined data is stored in a TXT record character string,
which has a max length of 255 bytes. We need to subtract the user-data= prefix,
which leaves 245 bytes for the actual user-defined data.
-Trait Implementations§
Trait Implementations§
Source§impl Ord for UserData
Source§impl PartialOrd 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/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
index ac123b1e8c..b36042bff9 100644
--- a/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
+++ b/pr/3999/docs/iroh_relay/endpoint_info/trait.EndpointIdExt.html
@@ -1,9 +1,9 @@
-EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt
pub trait EndpointIdExt {
+EndpointIdExt in iroh_relay::endpoint_info - Rust EndpointIdExt