#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::address_lookup - Rust ParseError
diff --git a/pr/3986/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html b/pr/3986/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html index 3ccc150a1f..2b2acc27df 100644 --- a/pr/3986/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html +++ b/pr/3986/docs/iroh/address_lookup/enum.AddressLookupBuilderError.html @@ -19,7 +19,7 @@ provenance: &'static str, source: Box<dyn Error + Send + Sync + 'static>, ) -> Self
Creates a new user error from an arbitrary boxed error type.
-Creates a new user error from an arbitrary error type that can be converted into [AnyError].
#[non_exhaustive]pub enum ParseError {
+ParseError in iroh::address_lookup - Rust ParseError
This struct couples a EndpointId with its associated EndpointData.
endpoint_id: PublicKeyThe EndpointId of the endpoint this is about.
data: EndpointDataThe information published about the endpoint.
-Creates a new EndpointInfo with an empty EndpointData.
Creates a new EndpointInfo from its parts.
Sets the relay URL and returns the updated endpoint info.
-Sets the IP based addresses and returns the updated endpoint info.
-Sets the user-defined data and returns the updated endpoint info.
-Converts into a EndpointAddr by cloning the needed fields.
Converts into a EndpointAddr without cloning.
Creates a new EndpointInfo with an empty EndpointData.
Creates a new EndpointInfo from its parts.
Sets the relay URL and returns the updated endpoint info.
+Sets the IP based addresses and returns the updated endpoint info.
+Sets the user-defined data and returns the updated endpoint info.
+Converts into a EndpointAddr by cloning the needed fields.
Converts into a EndpointAddr without cloning.
Parses a EndpointInfo from DNS TXT lookup.
Parses a EndpointInfo from a [pkarr::SignedPacket].
Creates a [pkarr::SignedPacket].
This constructs a DNS packet and signs it with a SecretKey.
Converts into a list of {key}={value} strings.
Converts into a list of {key}={value} strings.
Returns the relay URL of the endpoint.
Returns the optional user-defined data of the endpoint.
Returns the direct addresses of the endpoint.
@@ -37,7 +37,7 @@Apply the given filter to the current addresses.
Returns a vec to allow re-ordering of addresses.
-source. Read moresource. Read morepub const ENV_FORCE_STAGING_RELAYS: &str = "IROH_FORCE_STAGING_RELAYS";Environment variable to force the use of staging relays.
+#[non_exhaustive]pub enum AlpnError {
+AlpnError in iroh::endpoint - Rust AlpnError
#[non_exhaustive]pub enum AlpnError {
ConnectionError {
source: ConnectionError,
meta: Meta,
@@ -12,7 +12,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Error for AlpnError
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<ConnectionError> for AlpnError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl StackError for AlpnError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 AlpnError
§impl !RefUnwindSafe for AlpnError
§impl Send for AlpnError
§impl Sync for AlpnError
§impl Unpin for AlpnError
§impl !UnwindSafe for AlpnError
Blanket Implementations§
#[non_exhaustive]pub enum AuthenticationError {
+AuthenticationError in iroh::endpoint - Rust AuthenticationError
#[non_exhaustive]pub enum AuthenticationError {
RemoteId {
source: RemoteEndpointIdError,
meta: Meta,
@@ -8,7 +8,7 @@
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Clone for AuthenticationError
Source§fn clone(&self) -> AuthenticationError
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 AuthenticationError
Source§impl Display for AuthenticationError
Source§impl Error for AuthenticationError
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<AuthenticationError> for AnyError
Source§fn from(value: AuthenticationError) -> AnyError
Converts to this type from the input type.Source§impl From<AuthenticationError> for ConnectingError
Source§fn from(source: AuthenticationError) -> Self
Converts to this type from the input type.Source§impl From<RemoteEndpointIdError> for AuthenticationError
Source§fn from(source: RemoteEndpointIdError) -> Self
Converts to this type from the input type.Source§impl StackError for AuthenticationError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 AuthenticationError
§impl RefUnwindSafe for AuthenticationError
§impl Send for AuthenticationError
§impl Sync for AuthenticationError
§impl Unpin for AuthenticationError
§impl UnwindSafe for AuthenticationError
Blanket Implementations§
source. Read moremeta: MetaCaptured call-site metadata
#[non_exhaustive]pub enum ConnectError {
+ConnectError in iroh::endpoint - Rust ConnectError
#[non_exhaustive]pub enum ConnectError {
Connect {
source: ConnectWithOptsError,
meta: Meta,
@@ -14,7 +14,7 @@
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for ConnectError
Source§impl Display for ConnectError
Source§impl Error for ConnectError
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<ConnectError> for AnyError
Source§fn from(value: ConnectError) -> AnyError
Converts to this type from the input type.Source§impl From<ConnectWithOptsError> for ConnectError
Source§fn from(source: ConnectWithOptsError) -> Self
Converts to this type from the input type.Source§impl From<ConnectingError> for ConnectError
Source§fn from(source: ConnectingError) -> Self
Converts to this type from the input type.Source§impl From<ConnectionError> for ConnectError
Source§fn from(source: ConnectionError) -> Self
Converts to this type from the input type.Source§impl StackError for ConnectError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 ConnectError
§impl !RefUnwindSafe for ConnectError
§impl Send for ConnectError
§impl Sync for ConnectError
§impl Unpin for ConnectError
§impl !UnwindSafe for ConnectError
Blanket Implementations§
#[non_exhaustive]pub enum ConnectWithOptsError {
+ConnectWithOptsError in iroh::endpoint - Rust ConnectWithOptsError
#[non_exhaustive]pub enum ConnectWithOptsError {
SelfConnect {
meta: Meta,
},
@@ -27,7 +27,7 @@
meta: MetaCaptured call-site metadata
meta: MetaCaptured call-site metadata
meta: MetaCaptured call-site metadata
-#[non_exhaustive]pub enum ConnectingError {
+ConnectingError in iroh::endpoint - Rust ConnectingError
#[non_exhaustive]pub enum ConnectingError {
ConnectionError {
source: ConnectionError,
meta: Meta,
@@ -19,7 +19,7 @@
source: RemoteStateActorStoppedErrorPrivate source type, cannot be created publicly.
meta: MetaCaptured call-site metadata
meta: MetaCaptured call-site metadata
-source. Read moresource. Read moreTransportConfig::keep_alive_interval()].
The local application closed the connection
The connection could not be created because not enough of the CID space is available
Try using longer connection IDs.
-source. Read moreself and other values to be equal, and is used by ==.source. Read morepub enum DirectAddrType {
+DirectAddrType in iroh::endpoint - Rust DirectAddrType
pub enum DirectAddrType {
Unknown,
Local,
Qad,
@@ -20,16 +20,16 @@ get a publicly routable direct address.
It is possible to configure iroh to bound to a specific port and independently
configure the router to forward this port to the iroh endpoint. This indicates a
situation like this, which still uses QAD to discover the public address.
-
source. Read moresource. Read more#[non_exhaustive]pub enum EndpointError {
+EndpointError in iroh::endpoint - Rust EndpointError
#[non_exhaustive]pub enum EndpointError {
Closed {
meta: Meta,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.Trait Implementations§
Source§impl Debug for EndpointError
Source§impl Display for EndpointError
Source§impl Error for EndpointError
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<EndpointError> for AddressLookupBuilderError
Source§fn from(source: EndpointError) -> Self
Converts to this type from the input type.Source§impl From<EndpointError> for AnyError
Source§fn from(value: EndpointError) -> AnyError
Converts to this type from the input type.Source§impl StackError for EndpointError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 EndpointError
§impl RefUnwindSafe for EndpointError
§impl Send for EndpointError
§impl Sync for EndpointError
§impl Unpin for EndpointError
§impl UnwindSafe for EndpointError
Blanket Implementations§
#[non_exhaustive]pub enum IncomingAddr {
+IncomingAddr in iroh::endpoint - Rust IncomingAddr
#[non_exhaustive]pub enum IncomingAddr {
Ip(SocketAddr),
Relay {
url: RelayUrl,
endpoint_id: EndpointId,
},
+ Custom(CustomAddr),
}
Expand description
The remote address for an incoming connection.
When the incoming connection is a direct connection, this is a SocketAddr.
When it is a relay connection, we know both the relay URL and the endpoint ID.
@@ -11,7 +12,8 @@ When it is a relay connection, we know both the relay URL and the endpoint ID.
§Relay
A connection via a relay.
Fields
§endpoint_id: EndpointIdThe endpoint ID of the remote peer.
-Trait Implementations§
Source§impl Clone for IncomingAddr
Source§fn clone(&self) -> IncomingAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for IncomingAddr
Source§impl From<IncomingAddr> for TransportAddr
Source§fn from(addr: IncomingAddr) -> Self
Converts to this type from the input type.§Custom(CustomAddr)
A connection via a custom transport.
+source. Read morekey and return true if they are equal.Span, returning an
diff --git a/pr/3986/docs/iroh/endpoint/enum.QuicConnectError.html b/pr/3986/docs/iroh/endpoint/enum.QuicConnectError.html
index d729e6d2b0..7c50b0b2c8 100644
--- a/pr/3986/docs/iroh/endpoint/enum.QuicConnectError.html
+++ b/pr/3986/docs/iroh/endpoint/enum.QuicConnectError.html
@@ -18,7 +18,7 @@ Errors in the parameters being used to create a new connection
No default client configuration was set up
Use Endpoint::connect_with to specify a client configuration.
The local endpoint does not support the QUIC version specified in the client configuration
-source. Read moreself and other values to be equal, and is used by ==.source. Read morepub enum RelayMode {
+RelayMode in iroh::endpoint - Rust RelayMode
pub enum RelayMode {
Disabled,
Default,
Staging,
@@ -10,14 +10,14 @@ This means that neither listening nor dialing relays will be available.
See crate::defaults::prod for the severs used.
§Staging
Use the staging relay servers from n0.
§Custom(RelayMap)
Use a custom relay map.
-Create a custom relay mode from a list of RelayUrls.
pub enum Source {
+Source in iroh::endpoint - Rust Source
pub enum Source {
Udp,
Relay,
App,
@@ -37,12 +37,12 @@ address through multiple means.
Fields
§_0: Privateprivate marker
§Connection
We established a connection on this address.
Fields
§_0: Privateprivate marker
-pub enum ZeroRttStatus {
+ZeroRttStatus in iroh::endpoint - Rust ZeroRttStatus
pub enum ZeroRttStatus {
Accepted(Connection),
Rejected(Connection),
}
Expand description
Returned from OutgoingZeroRttConnection::handshake_completed.
@@ -7,7 +7,7 @@ that were created before the handshake was completed.
§Rejected(Connection)
If the 0-RTT data was rejected, any streams that were created before
the handshake was completed will error and any data that was
previously sent on those streams will need to be resent.
-Trait Implementations§
Source§impl Clone for ZeroRttStatus
Source§fn clone(&self) -> ZeroRttStatus
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ZeroRttStatus
§impl RefUnwindSafe for ZeroRttStatus
§impl Send for ZeroRttStatus
§impl Sync for ZeroRttStatus
§impl Unpin for ZeroRttStatus
§impl UnwindSafe for ZeroRttStatus
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ZeroRttStatus
Source§fn clone(&self) -> ZeroRttStatus
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ZeroRttStatus
§impl RefUnwindSafe for ZeroRttStatus
§impl Send for ZeroRttStatus
§impl Sync for ZeroRttStatus
§impl Unpin for ZeroRttStatus
§impl UnwindSafe for ZeroRttStatus
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/fn.default_relay_mode.html b/pr/3986/docs/iroh/endpoint/fn.default_relay_mode.html
index 5ebb420425..aecd090295 100644
--- a/pr/3986/docs/iroh/endpoint/fn.default_relay_mode.html
+++ b/pr/3986/docs/iroh/endpoint/fn.default_relay_mode.html
@@ -1,4 +1,4 @@
-default_relay_mode in iroh::endpoint - Rust default_relay_mode
pub fn default_relay_mode() -> RelayMode
Expand description
Returns the default relay mode.
+default_relay_mode in iroh::endpoint - Rust default_relay_mode
\ No newline at end of file
diff --git a/pr/3986/docs/iroh/endpoint/fn.force_staging_infra.html b/pr/3986/docs/iroh/endpoint/fn.force_staging_infra.html
index 0649cd8bb4..d4fff08c9e 100644
--- a/pr/3986/docs/iroh/endpoint/fn.force_staging_infra.html
+++ b/pr/3986/docs/iroh/endpoint/fn.force_staging_infra.html
@@ -1,2 +1,2 @@
-force_staging_infra in iroh::endpoint - Rust force_staging_infra
pub fn force_staging_infra() -> bool
Expand description
Returns true if the use of staging relays is forced.
+force_staging_infra in iroh::endpoint - Rust force_staging_infra
\ No newline at end of file
diff --git a/pr/3986/docs/iroh/endpoint/index.html b/pr/3986/docs/iroh/endpoint/index.html
index cbe49fb484..ccb4517dad 100644
--- a/pr/3986/docs/iroh/endpoint/index.html
+++ b/pr/3986/docs/iroh/endpoint/index.html
@@ -1,4 +1,4 @@
-iroh::endpoint - Rust Module endpoint
Expand description
The Endpoint allows establishing connections to other iroh endpoints.
+iroh::endpoint - Rust Module endpoint
Expand description
The Endpoint allows establishing connections to other iroh endpoints.
The Endpoint is the main API interface to manage a local iroh endpoint. It allows
connecting to and accepting connections from other endpoints. See the module docs for
more details on how iroh connections work.
@@ -7,7 +7,7 @@ more details on how iroh connections work.
Endpoint to establish iroh connections with other endpoints.
Builder to create an Endpoint.
-Modules§
- presets
- Presets allow configuring an endpoint quickly with a chosen set of defaults.
Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi quinn types that are used in the public iroh API.
+
Modules§
- presets
- Presets allow configuring an endpoint quickly with a chosen set of defaults.
- transports
- Types for defining custom transports
Structs§
- Accept
- Future produced by
Endpoint::accept. - Accept
Bi quinn types that are used in the public iroh API.
Future produced by [Connection::accept_bi]- Accept
Uni quinn types that are used in the public iroh API.
Future produced by [Connection::accept_uni]- Accepting
- In-progress connection attempt future
- AckFrequency
Config quinn types that are used in the public iroh API.
Parameters for controlling the peer’s acknowledgement frequency- Application
Close quinn_proto types that are used in the public iroh API.
diff --git a/pr/3986/docs/iroh/endpoint/presets/trait.Preset.html b/pr/3986/docs/iroh/endpoint/presets/trait.Preset.html
index 78db067412..b92bb9d1a6 100644
--- a/pr/3986/docs/iroh/endpoint/presets/trait.Preset.html
+++ b/pr/3986/docs/iroh/endpoint/presets/trait.Preset.html
@@ -1,6 +1,14 @@
-Preset in iroh::endpoint::presets - Rust Preset
Implementations on Foreign Types§
Source§impl Preset for Arc<TestTransport>
Available on crate feature unstable-custom-transports and (crate features test-utils) only.
Implementors§
\ No newline at end of file
diff --git a/pr/3986/docs/iroh/endpoint/sidebar-items.js b/pr/3986/docs/iroh/endpoint/sidebar-items.js
index e19f693d2b..0a83e878cc 100644
--- a/pr/3986/docs/iroh/endpoint/sidebar-items.js
+++ b/pr/3986/docs/iroh/endpoint/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS = {"constant":["ENV_FORCE_STAGING_RELAYS"],"enum":["AfterHandshakeOutcome","AlpnError","AuthenticationError","BeforeConnectOutcome","BindError","ConnectError","ConnectWithOptsError","ConnectingError","ConnectionError","Dir","DirectAddrType","EndpointError","FrameType","IncomingAddr","InvalidSocketAddr","QuicConnectError","ReadError","ReadExactError","ReadToEndError","RelayMode","ResetError","SendDatagramError","Side","Source","StoppedError","TransportAddrUsage","WriteError","ZeroRttStatus"],"fn":["default_relay_mode","force_staging_infra"],"mod":["presets"],"struct":["Accept","AcceptBi","AcceptUni","Accepting","AckFrequencyConfig","ApplicationClose","BindOpts","Builder","Chunk","ClosedStream","ConnectOptions","Connecting","Connection","ConnectionClose","ConnectionInfo","ConnectionStats","ControllerMetrics","CryptoError","DirectAddr","Endpoint","EndpointClosed","ExportKeyingMaterialError","FrameStats","HandshakeCompleted","IdleTimeout","Incoming","IncomingZeroRtt","Keys","MtuDiscoveryConfig","OpenBi","OpenUni","OutgoingZeroRtt","PathId","PathInfo","PathInfoList","PathInfoListIter","PathStats","PathWatcher","QlogConfig","QlogFileFactory","QuicTransportConfig","QuicTransportConfigBuilder","ReadDatagram","RecvStream","RemoteEndpointIdError","RemoteInfo","RetryError","RttEstimator","SendDatagram","SendStream","ServerConfig","ServerConfigBuilder","StreamId","TokenReuseError","TransportAddrInfo","TransportError","TransportErrorCode","TransportParameters","UdpStats","UnorderedRecvStream","UnsupportedVersion","ValidationTokenConfig","VarInt","VarIntBoundsExceeded","Written"],"trait":["AeadKey","ConnectionState","Controller","ControllerFactory","EndpointHooks","HandshakeTokenKey","HeaderKey","PacketKey","QlogFactory","TimeSource","ToSocketAddr","TokenLog"],"type":["IncomingZeroRttConnection","OutgoingZeroRttConnection"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS = {"constant":["ENV_FORCE_STAGING_RELAYS"],"enum":["AfterHandshakeOutcome","AlpnError","AuthenticationError","BeforeConnectOutcome","BindError","ConnectError","ConnectWithOptsError","ConnectingError","ConnectionError","Dir","DirectAddrType","EndpointError","FrameType","IncomingAddr","InvalidSocketAddr","QuicConnectError","ReadError","ReadExactError","ReadToEndError","RelayMode","ResetError","SendDatagramError","Side","Source","StoppedError","TransportAddrUsage","WriteError","ZeroRttStatus"],"fn":["default_relay_mode","force_staging_infra"],"mod":["presets","transports"],"struct":["Accept","AcceptBi","AcceptUni","Accepting","AckFrequencyConfig","ApplicationClose","BindOpts","Builder","Chunk","ClosedStream","ConnectOptions","Connecting","Connection","ConnectionClose","ConnectionInfo","ConnectionStats","ControllerMetrics","CryptoError","DirectAddr","Endpoint","EndpointClosed","ExportKeyingMaterialError","FrameStats","HandshakeCompleted","IdleTimeout","Incoming","IncomingZeroRtt","Keys","MtuDiscoveryConfig","OpenBi","OpenUni","OutgoingZeroRtt","PathId","PathInfo","PathInfoList","PathInfoListIter","PathStats","PathWatcher","QlogConfig","QlogFileFactory","QuicTransportConfig","QuicTransportConfigBuilder","ReadDatagram","RecvStream","RemoteEndpointIdError","RemoteInfo","RetryError","RttEstimator","SendDatagram","SendStream","ServerConfig","ServerConfigBuilder","StreamId","TokenReuseError","TransportAddrInfo","TransportError","TransportErrorCode","TransportParameters","UdpStats","UnorderedRecvStream","UnsupportedVersion","ValidationTokenConfig","VarInt","VarIntBoundsExceeded","Written"],"trait":["AeadKey","ConnectionState","Controller","ControllerFactory","EndpointHooks","HandshakeTokenKey","HeaderKey","PacketKey","QlogFactory","TimeSource","ToSocketAddr","TokenLog"],"type":["IncomingZeroRttConnection","OutgoingZeroRttConnection"]};
\ No newline at end of file
diff --git a/pr/3986/docs/iroh/endpoint/struct.Accept.html b/pr/3986/docs/iroh/endpoint/struct.Accept.html
index c17b11fec9..66a9a4bc51 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Accept.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Accept.html
@@ -1,6 +1,6 @@
-Accept in iroh::endpoint - Rust Accept
pub struct Accept<'a> { /* private fields */ }
Expand description
Future produced by Endpoint::accept.
-Trait Implementations§
Source§impl<'pin, 'a> Unpin for Accept<'a>where
+Accept in iroh::endpoint - Rust Accept
pub struct Accept<'a> { /* private fields */ }
Expand description
Future produced by Endpoint::accept.
+Trait Implementations§
Source§impl<'pin, 'a> Unpin for Accept<'a>where
PinnedFieldsOf<__Accept<'pin, 'a>>: Unpin,
Auto Trait Implementations§
§impl<'a> !Freeze for Accept<'a>
§impl<'a> !RefUnwindSafe for Accept<'a>
§impl<'a> Send for Accept<'a>
§impl<'a> Sync for Accept<'a>
§impl<'a> !UnwindSafe for Accept<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3986/docs/iroh/endpoint/struct.Accepting.html b/pr/3986/docs/iroh/endpoint/struct.Accepting.html
index 3b2d123e62..0f139186a5 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Accepting.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Accepting.html
@@ -1,5 +1,5 @@
-Accepting in iroh::endpoint - Rust Accepting
pub struct Accepting { /* private fields */ }
Expand description
In-progress connection attempt future
-Implementations§
Source§impl Accepting
Sourcepub fn into_0rtt(self) -> IncomingZeroRttConnection
Converts this Accepting into a 0-RTT or 0.5-RTT connection at the cost of weakened
+
Accepting in iroh::endpoint - Rust Accepting
pub struct Accepting { /* private fields */ }
Expand description
In-progress connection attempt future
+Implementations§
Source§impl Accepting
Sourcepub fn into_0rtt(self) -> IncomingZeroRttConnection
Converts this Accepting into a 0-RTT or 0.5-RTT connection at the cost of weakened
security.
Returns a IncomingZeroRttConnection, which represents an incoming 0-RTT or 0.5-RTT connection.
If the connection was initiated with 0-RTT by the remote endpoint, the local endpoint
@@ -16,10 +16,10 @@ authentication is required.
You can use RecvStream::is_0rtt to check whether a stream has been opened in 0-RTT
and thus whether parts of the stream are operating under this reduced security level.
See also documentation for Connecting::into_0rtt.
-Sourcepub fn remote_addr(&self) -> IncomingAddr
Returns the remote address of this connection.
-Sourcepub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>
Parameters negotiated during the handshake
-Trait Implementations§
Source§impl Future for Accepting
Source§type Output = Result<Connection, ConnectingError>
The type of value produced on completion.Source§fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Attempts to resolve the future to a final value, registering
+Sourcepub fn remote_addr(&self) -> IncomingAddr
Returns the remote address of this connection.
+Sourcepub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>
Parameters negotiated during the handshake
+Trait Implementations§
Source§impl Future for Accepting
Source§type Output = Result<Connection, ConnectingError>
The type of value produced on completion.Auto Trait Implementations§
§impl Freeze for Accepting
§impl !RefUnwindSafe for Accepting
§impl Send for Accepting
§impl !Sync for Accepting
§impl Unpin for Accepting
§impl !UnwindSafe for Accepting
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3986/docs/iroh/endpoint/struct.Builder.html b/pr/3986/docs/iroh/endpoint/struct.Builder.html
index aa41edde52..1695888071 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Builder.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Builder.html
@@ -1,13 +1,13 @@
-Builder in iroh::endpoint - Rust Builder
pub struct Builder { /* private fields */ }
Expand description
Builder for Endpoint.
+Builder in iroh::endpoint - Rust Builder
pub struct Builder { /* private fields */ }
Expand description
Builder for Endpoint.
By default the endpoint will generate a new random SecretKey, which will result in a
new EndpointId.
To create the Endpoint call Builder::bind.
-Implementations§
Source§impl Builder
Implementations§
Source§impl Builder
Sourcepub fn empty(relay_mode: RelayMode) -> Self
Creates an empty builder with no address lookup services.
-Sourcepub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr>where
+
Sourcepub fn empty(relay_mode: RelayMode) -> Self
Creates an empty builder with no address lookup services.
+Sourcepub fn bind_addr<A>(self, addr: A) -> Result<Self, InvalidSocketAddr>
Available on non-wasm_browser only.
Binds an IP socket at the provided socket address.
This is an advanced API to tightly control the sockets used by the endpoint. Most
@@ -48,7 +48,7 @@ port 0 in the socket address assigns a random free port.
.bind_addr("127.0.0.1:0")?
.bind_addr("[::1]:0")?
.bind()
- .await?;Sourcepub fn bind_addr_with_opts<A>(
+ .await?;
Sourcepub fn bind_addr_with_opts<A>(
self,
addr: A,
opts: BindOpts,
@@ -107,16 +107,16 @@ routing with the prefix length and default route as described above does not app
.bind_addr_with_opts("127.0.0.1:0", BindOpts::default().set_prefix_len(24))?
.bind_addr_with_opts("[::1]:0", BindOpts::default().set_prefix_len(48))?
.bind()
- .await?;
Sourcepub fn clear_ip_transports(self) -> Self
Available on non-wasm_browser only.
Removes all IP based transports.
-Sourcepub fn clear_relay_transports(self) -> Self
Removes all relay based transports.
-Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
Sets a secret key to authenticate with other peers.
+ .await?;Sourcepub fn clear_ip_transports(self) -> Self
Available on non-wasm_browser only.
Removes all IP based transports.
+Sourcepub fn clear_relay_transports(self) -> Self
Removes all relay based transports.
+Sourcepub fn secret_key(self, secret_key: SecretKey) -> Self
Sets a secret key to authenticate with other peers.
This secret key’s public key will be the PublicKey of this endpoint and thus
also its EndpointId
If not set, a new secret key will be generated.
-Sourcepub fn alpns(self, alpn_protocols: Vec<Vec<u8>>) -> Self
Sets the ALPN protocols that this endpoint will accept on incoming connections.
+Sourcepub fn relay_mode(self, relay_mode: RelayMode) -> Self
Sets the relay servers to assist in establishing connectivity.
+Sourcepub fn relay_mode(self, relay_mode: RelayMode) -> Self
Sets the relay servers to assist in establishing connectivity.
Relay servers are used to establish initial connection with another iroh endpoint.
They also perform various functions related to hole punching, see the crate docs
for more details.
@@ -124,11 +124,11 @@ for more details.
When using RelayMode::Custom, the provided relay_map must contain at least one
configured relay endpoint. If an invalid RelayMap is provided bind
will result in an error.
-Sourcepub fn clear_address_lookup(self) -> Self
Removes all Address Lookup services from the builder.
+Sourcepub fn clear_address_lookup(self) -> Self
Removes all Address Lookup services from the builder.
If no Address Lookup is set, connecting to an endpoint without providing its
direct addresses or relay URLs will fail.
See the documentation of the crate::address_lookup::AddressLookup trait for details.
-Sourcepub fn address_lookup(self, address_lookup: impl AddressLookupBuilder) -> Self
Adds an additional Address Lookup for this endpoint.
+Sourcepub fn address_lookup(self, address_lookup: impl AddressLookupBuilder) -> Self
Adds an additional Address Lookup for this endpoint.
Once the endpoint is created the provided AddressLookupBuilder::into_address_lookup will be
called. This allows Address Lookup’s to finalize their configuration by e.g. using
the secret key from the endpoint which can be needed to sign published information.
@@ -139,13 +139,13 @@ will be combined using an internal instance of the
If no Address Lookup is set, connecting to an endpoint without providing its
direct addresses or relay URLs will fail.
See the documentation of the crate::address_lookup::AddressLookup trait for details.
-Sourcepub fn user_data_for_address_lookup(self, user_data: UserData) -> Self
Sets the initial user-defined data to be published in Address Lookup’s for this node.
+Sourcepub fn user_data_for_address_lookup(self, user_data: UserData) -> Self
Sets the initial user-defined data to be published in Address Lookup’s for this node.
When using Address Lookup’s, this string of UserData will be published together
with the endpoint’s addresses and relay URL. When other endpoints discover this endpoint,
they retrieve the UserData in addition to the addressing info.
Iroh itself does not interpret the user-defined data in any way, it is purely left
for applications to parse and use.
-Sourcepub fn transport_config(self, transport_config: QuicTransportConfig) -> Self
Sets a custom QuicTransportConfig for this endpoint.
+Sourcepub fn transport_config(self, transport_config: QuicTransportConfig) -> Self
Sets a custom QuicTransportConfig for this endpoint.
The transport config contains parameters governing the QUIC state machine.
If unset, the default config is used. Default values should be suitable for most
internet applications. Applications protocols which forbid remotely-initiated
@@ -153,44 +153,60 @@ streams should set max_concurrent_bidi_streams and max_concur
zero.
Please be aware that changing some settings may have adverse effects on establishing
and maintaining direct connections.
-Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Optionally sets a custom DNS resolver to use for this endpoint.
+Sourcepub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self
Available on non-wasm_browser only.
Optionally sets a custom DNS resolver to use for this endpoint.
The DNS resolver is used to resolve relay hostnames, and endpoint addresses if
crate::address_lookup::DnsAddressLookup is configured.
By default, a new DNS resolver is created which is configured to use the
host system’s DNS configuration. You can pass a custom instance of DnsResolver
here to use a differently configured DNS resolver for this endpoint, or to share
a DnsResolver between multiple endpoints.
-Sourcepub fn proxy_url(self, url: Url) -> Self
Sets an explicit proxy url to proxy all HTTP(S) traffic through.
-Sourcepub fn proxy_from_env(self) -> Self
Sets the proxy url from the environment, in this order:
+Sourcepub fn proxy_url(self, url: Url) -> Self
Sets an explicit proxy url to proxy all HTTP(S) traffic through.
+Sourcepub fn proxy_from_env(self) -> Self
Sets the proxy url from the environment, in this order:
HTTP_PROXY
http_proxy
HTTPS_PROXY
https_proxy
-Sourcepub fn ca_roots_config(self, ca_roots_config: CaRootsConfig) -> Self
Sets the trusted CA root certificates for non-iroh TLS connections.
+Sourcepub fn ca_roots_config(self, ca_roots_config: CaRootsConfig) -> Self
Sets the trusted CA root certificates for non-iroh TLS connections.
These Certificate Authority roots are used as trust anchors for verifying
the validity of TLS certificates presented by external services, such as
iroh relays, pkarr servers, or DNS-over-HTTPS resolvers.
They don’t need to be trusted for the integrity or authenticity of native
iroh connections, which rely on iroh’s own cryptographic authentication mechanisms.
-Sourcepub fn keylog(self, keylog: bool) -> Self
Enables saving the TLS pre-master key for connections.
+Sourcepub fn keylog(self, keylog: bool) -> Self
Enables saving the TLS pre-master key for connections.
This key should normally remain secret but can be useful to debug networking issues
by decrypting captured traffic.
If keylog is true then setting the SSLKEYLOGFILE environment variable to a
filename will result in this file being used to log the TLS pre-master keys.
-Sourcepub fn max_tls_tickets(self, n: usize) -> Self
Set the maximum number of TLS tickets to cache.
+Sourcepub fn max_tls_tickets(self, n: usize) -> Self
Set the maximum number of TLS tickets to cache.
Set this to a larger value if you want to do 0rtt connections to a large
number of clients.
The default is 256, taking about 150 KiB in memory.
-Sourcepub fn hooks(self, hooks: impl EndpointHooks + 'static) -> Self
Install hooks onto the endpoint.
+Sourcepub fn hooks(self, hooks: impl EndpointHooks + 'static) -> Self
Install hooks onto the endpoint.
Endpoint hooks intercept the connection establishment process of an Endpoint.
You can install multiple EndpointHooks by calling this function multiple times.
Order matters: hooks are invoked in the order they were installed onto the endpoint
builder. Once a hook returns reject, further processing
is aborted and other hooks won’t be invoked.
See EndpointHooks for details on the possible interception points in the connection lifecycle.
-Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Builder
§impl !RefUnwindSafe for Builder
§impl Send for Builder
§impl Sync for Builder
§impl Unpin for Builder
§impl !UnwindSafe for Builder
Blanket Implementations§
Sourcepub fn add_custom_transport(self, factory: Arc<dyn CustomTransport>) -> Self
Available on crate feature unstable-custom-transports only.
Adds a custom transport
+Sourcepub fn transport_bias(self, kind: AddrKind, bias: TransportBias) -> Self
Sets the transport bias for a specific address kind.
+Transport bias controls how different transport types are prioritized during
+path selection. By default:
+
+- IPv4 and IPv6 are primary transports (IPv6 has a small RTT advantage)
+- Relay is a backup transport (only used when no primary transport is available)
+
+Use this to customize the behavior, for example to add bias for custom transports.
+§Example
+ⓘuse std::time::Duration;
+use iroh::endpoint::{Builder, transports::{AddrKind, TransportBias}};
+
+let endpoint = Builder::new(SomePreset)
+ .transport_bias(AddrKind::Custom(42), TransportBias::primary().with_rtt_advantage(Duration::from_millis(10)))
+ .bind()
+ .await?;
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Builder
§impl !RefUnwindSafe for Builder
§impl Send for Builder
§impl Sync for Builder
§impl Unpin for Builder
§impl !UnwindSafe for Builder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.ConnectOptions.html b/pr/3986/docs/iroh/endpoint/struct.ConnectOptions.html
index 3258c1af1b..9341ef3ee6 100644
--- a/pr/3986/docs/iroh/endpoint/struct.ConnectOptions.html
+++ b/pr/3986/docs/iroh/endpoint/struct.ConnectOptions.html
@@ -1,12 +1,12 @@
-ConnectOptions in iroh::endpoint - Rust ConnectOptions
pub struct ConnectOptions { /* private fields */ }
Expand description
Options for the Endpoint::connect_with_opts function.
-Implementations§
Source§impl ConnectOptions
Sourcepub fn new() -> Self
Initializes new connection options.
+ConnectOptions in iroh::endpoint - Rust ConnectOptions
pub struct ConnectOptions { /* private fields */ }
Expand description
Options for the Endpoint::connect_with_opts function.
+Implementations§
Source§impl ConnectOptions
Sourcepub fn new() -> Self
Initializes new connection options.
By default, the connection will use the same options
as Endpoint::connect, e.g. a default QuicTransportConfig.
-Sourcepub fn with_transport_config(
+
Sourcepub fn with_transport_config(
self,
transport_config: QuicTransportConfig,
) -> Self
Sets the QUIC transport config options for this connection.
-Sourcepub fn with_additional_alpns(self, alpns: Vec<Vec<u8>>) -> Self
Sets ALPN identifiers that should be signaled as supported on connection, in
+
Sourcepub fn with_additional_alpns(self, alpns: Vec<Vec<u8>>) -> Self
Sets ALPN identifiers that should be signaled as supported on connection, in
addition to the main ALPN identifier used in Endpoint::connect_with_opts.
This allows connecting to servers that may only support older versions of your
protocol. In this case, you would add the older ALPN identifiers with this
@@ -20,7 +20,7 @@ list or the main ALPN identifiers on the accept side, see the endpoint
builder’s Builder::alpns function.
-Trait Implementations§
Source§impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for ConnectOptions
Source§impl Default for ConnectOptions
Source§fn default() -> ConnectOptions
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConnectOptions
§impl !RefUnwindSafe for ConnectOptions
§impl Send for ConnectOptions
§impl Sync for ConnectOptions
§impl Unpin for ConnectOptions
§impl !UnwindSafe for ConnectOptions
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
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 ConnectOptions
Source§impl Default for ConnectOptions
Source§fn default() -> ConnectOptions
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConnectOptions
§impl !RefUnwindSafe for ConnectOptions
§impl Send for ConnectOptions
§impl Sync for ConnectOptions
§impl Unpin for ConnectOptions
§impl !UnwindSafe for ConnectOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.Connecting.html b/pr/3986/docs/iroh/endpoint/struct.Connecting.html
index ded2a202d0..870997a6b2 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Connecting.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Connecting.html
@@ -1,6 +1,6 @@
-Connecting in iroh::endpoint - Rust Connecting
pub struct Connecting { /* private fields */ }
Expand description
An outgoing connection in progress.
+Connecting in iroh::endpoint - Rust Connecting
pub struct Connecting { /* private fields */ }
Expand description
An outgoing connection in progress.
This future resolves to a Connection once the handshake completes.
-Implementations§
Source§impl Connecting
Sourcepub fn into_0rtt(self) -> Result<OutgoingZeroRttConnection, Connecting>
Converts this Connecting into a 0-RTT connection at the cost of weakened security.
+Implementations§
Source§impl Connecting
Sourcepub fn into_0rtt(self) -> Result<OutgoingZeroRttConnection, Connecting>
Converts this Connecting into a 0-RTT connection at the cost of weakened security.
If 0-RTT can be attempted, returns a OutgoingZeroRttConnection, which represents
outgoing 0-RTT connection.
If the 0-RTT cannot even be attempted, returns back the same Connecting without
@@ -24,10 +24,10 @@ should therefore never invoke non-idempotent operations.
You can use RecvStream::is_0rtt to check whether a stream has been opened in 0-RTT
and thus whether parts of the stream are operating under this reduced security level.
See also documentation for Accepting::into_0rtt.
-Sourcepub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>
Parameters negotiated during the handshake
-Sourcepub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError>
Extracts the ALPN protocol from the peer’s handshake data.
-Sourcepub fn remote_id(&self) -> EndpointId
Returns the EndpointId of the endpoint that this connection attempt tries to connect to.
-Trait Implementations§
Source§impl Debug for Connecting
Source§impl Future for Connecting
Source§type Output = Result<Connection, ConnectingError>
The type of value produced on completion.Source§fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Attempts to resolve the future to a final value, registering
+Sourcepub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>
Parameters negotiated during the handshake
+Sourcepub async fn alpn(&mut self) -> Result<Vec<u8>, AlpnError>
Extracts the ALPN protocol from the peer’s handshake data.
+Sourcepub fn remote_id(&self) -> EndpointId
Returns the EndpointId of the endpoint that this connection attempt tries to connect to.
+Trait Implementations§
Source§impl Debug for Connecting
Source§impl Future for Connecting
Source§type Output = Result<Connection, ConnectingError>
The type of value produced on completion.Auto Trait Implementations§
§impl Freeze for Connecting
§impl !RefUnwindSafe for Connecting
§impl Send for Connecting
§impl !Sync for Connecting
§impl Unpin for Connecting
§impl !UnwindSafe for Connecting
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3986/docs/iroh/endpoint/struct.Connection.html b/pr/3986/docs/iroh/endpoint/struct.Connection.html
index 744ceb5df0..d7c6162146 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Connection.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Connection.html
@@ -1,4 +1,4 @@
-Connection in iroh::endpoint - Rust Connection
pub struct Connection<State: ConnectionState = HandshakeCompleted> { /* private fields */ }
Expand description
A QUIC connection.
+Connection in iroh::endpoint - Rust Connection
pub struct Connection<State: ConnectionState = HandshakeCompleted> { /* private fields */ }
Expand description
A QUIC connection.
If all references to a connection (including every clone of the Connection handle,
streams of incoming streams, and the various stream types) have been dropped, then the
connection will be automatically closed with an error_code of 0 and an empty reason. You
@@ -8,29 +8,29 @@ receiving CONNECTION_CLOSE the peer may drop any stream data not yet delivered t
application. Connection::close describes in more detail how to gracefully close a
connection without losing application data.
May be cloned to obtain another handle to the same connection.
-Implementations§
Source§impl<T: ConnectionState> Connection<T>
Implementations§
Source§impl<T: ConnectionState> Connection<T>
Sourcepub fn open_uni(&self) -> OpenUni<'_> ⓘ
Initiates a new outgoing unidirectional stream.
Streams are cheap and instantaneous to open unless blocked by flow control. As a
consequence, the peer won’t be notified that a stream has been opened until the
stream is actually used.
-Sourcepub fn open_bi(&self) -> OpenBi<'_> ⓘ
Initiates a new outgoing bidirectional stream.
Streams are cheap and instantaneous to open unless blocked by flow control. As a
consequence, the peer won’t be notified that a stream has been opened until the
stream is actually used. Calling open_bi then waiting on the RecvStream
without writing anything to SendStream will never succeed.
-Sourcepub fn accept_uni(&self) -> AcceptUni<'_> ⓘ
Accepts the next incoming uni-directional stream.
-Sourcepub fn accept_uni(&self) -> AcceptUni<'_> ⓘ
Accepts the next incoming uni-directional stream.
+Sourcepub fn accept_bi(&self) -> AcceptBi<'_> ⓘ
Accept the next incoming bidirectional stream.
Important Note: The peer that calls open_bi must write to its SendStream
before the peer Connection is able to accept the stream using
accept_bi(). Calling open_bi then waiting on the RecvStream without
writing anything to the connected SendStream will never succeed.
-Sourcepub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ
Receives an application datagram.
-Sourcepub async fn closed(&self) -> ConnectionError
Wait for the connection to be closed for any reason.
+Sourcepub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ
Receives an application datagram.
+Sourcepub async fn closed(&self) -> ConnectionError
Wait for the connection to be closed for any reason.
Despite the return type’s name, closed connections are often not an error condition
at the application layer. Cases that might be routine include
ConnectionError::LocallyClosed and ConnectionError::ApplicationClosed.
-Sourcepub fn close_reason(&self) -> Option<ConnectionError>
If the connection is closed, the reason why.
+Sourcepub fn close_reason(&self) -> Option<ConnectionError>
If the connection is closed, the reason why.
Returns None if the connection is still open.
-Sourcepub fn close(&self, error_code: VarInt, reason: &[u8])
Closes the connection immediately.
Pending operations will fail immediately with ConnectionError::LocallyClosed. No
more data is sent to the peer and the peer may drop buffered data upon receiving the
CONNECTION_CLOSE frame.
@@ -51,39 +51,39 @@ endpoint. Once the local side sends a CONNECTION_CLOSE frame in response to call
close the remote endpoint may drop any data it received but is as yet
undelivered to the application, including data that was acknowledged as received to
the local endpoint.
-Sourcepub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>
Transmits data as an unreliable, unordered application datagram.
+Sourcepub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>
Transmits data as an unreliable, unordered application datagram.
Application datagrams are a low-level primitive. They may be lost or delivered out
of order, and data must both fit inside a single QUIC packet and be smaller than
the maximum dictated by the peer.
-Sourcepub fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_> ⓘ
Transmits data as an unreliable, unordered application datagram
+Sourcepub fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_> ⓘ
Transmits data as an unreliable, unordered application datagram
Unlike send_datagram(), this method will wait for buffer space during congestion
conditions, which effectively prioritizes old datagrams over new datagrams.
See send_datagram() for details.
-Sourcepub fn max_datagram_size(&self) -> Option<usize>
Computes the maximum size of datagrams that may be passed to send_datagram.
+Sourcepub fn max_datagram_size(&self) -> Option<usize>
Computes the maximum size of datagrams that may be passed to send_datagram.
Returns None if datagrams are unsupported by the peer or disabled locally.
This may change over the lifetime of a connection according to variation in the path
MTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the
peer’s limit is large this is guaranteed to be a little over a kilobyte at minimum.
Not necessarily the maximum size of received datagrams.
-Sourcepub fn datagram_send_buffer_space(&self) -> usize
Bytes available in the outgoing datagram buffer.
+Sourcepub fn datagram_send_buffer_space(&self) -> usize
Bytes available in the outgoing datagram buffer.
When greater than zero, calling send_datagram with a
datagram of at most this size is guaranteed not to cause older datagrams to be
dropped.
-Sourcepub fn rtt(&self, path_id: PathId) -> Option<Duration>
Current best estimate of this connection’s latency (round-trip-time).
-Sourcepub fn stats(&self) -> ConnectionStats
Returns connection statistics.
-Sourcepub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>>
Current state of the congestion control algorithm, for debugging purposes.
-Sourcepub fn handshake_data(&self) -> Option<Box<dyn Any>>
Parameters negotiated during the handshake.
+Sourcepub fn rtt(&self, path_id: PathId) -> Option<Duration>
Current best estimate of this connection’s latency (round-trip-time).
+Sourcepub fn stats(&self) -> ConnectionStats
Returns connection statistics.
+Sourcepub fn congestion_state(&self, path_id: PathId) -> Option<Box<dyn Controller>>
Current state of the congestion control algorithm, for debugging purposes.
+Sourcepub fn handshake_data(&self) -> Option<Box<dyn Any>>
Parameters negotiated during the handshake.
Guaranteed to return Some on fully established connections or after
Connecting::handshake_data() succeeds. See that method’s documentations for
details on the returned value.
-Sourcepub fn peer_identity(&self) -> Option<Box<dyn Any>>
Cryptographic identity of the peer.
+Sourcepub fn peer_identity(&self) -> Option<Box<dyn Any>>
Sourcepub fn stable_id(&self) -> usize
A stable identifier for this connection.
Peer addresses and connection IDs can change, but this value will remain fixed for
the lifetime of the connection.
-Sourcepub fn export_keying_material(
+
Sourcepub fn export_keying_material(
&self,
output: &mut [u8],
label: &[u8],
@@ -94,20 +94,20 @@ arguments and output buffers of equal length, they will get the
same sequence of bytes in output. These bytes are cryptographically
strong and pseudorandom, and are suitable for use as keying material.
See RFC5705 for more information.
-
Sourcepub fn set_max_concurrent_uni_streams(&self, count: VarInt)
Modifies the number of unidirectional streams that may be concurrently opened.
+Sourcepub fn set_max_concurrent_uni_streams(&self, count: VarInt)
Modifies the number of unidirectional streams that may be concurrently opened.
No streams may be opened by the peer unless fewer than count are already
open. Large counts increase both minimum and worst-case memory consumption.
-Sourcepub fn set_receive_window(&self, receive_window: VarInt)
See [quinn_proto::TransportConfig::receive_window].
-Sourcepub fn set_max_concurrent_bi_streams(&self, count: VarInt)
Modifies the number of bidirectional streams that may be concurrently opened.
+Sourcepub fn set_receive_window(&self, receive_window: VarInt)
See [quinn_proto::TransportConfig::receive_window].
+Sourcepub fn set_max_concurrent_bi_streams(&self, count: VarInt)
Modifies the number of bidirectional streams that may be concurrently opened.
No streams may be opened by the peer unless fewer than count are already
open. Large counts increase both minimum and worst-case memory consumption.
-Source§impl Connection<HandshakeCompleted>
Sourcepub fn remote_id(&self) -> EndpointId
Returns the EndpointId from the peer’s TLS certificate.
+Source§impl Connection<HandshakeCompleted>
Sourcepub fn remote_id(&self) -> EndpointId
Returns the EndpointId from the peer’s TLS certificate.
The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is
included in the TLS certificate presented during the handshake when connecting.
This function allows you to get the EndpointId of the remote endpoint of this
connection.
-Sourcepub fn paths(&self) -> PathWatcher
Returns a Watcher for the network paths of this connection.
+Sourcepub fn paths(&self) -> PathWatcher
Returns a Watcher for the network paths of this connection.
A connection can have several network paths to the remote endpoint, commonly there
will be a path via the relay server and a holepunched path.
Returns a PathWatcher, which implements the Watcher trait. The watcher is updated
@@ -126,12 +126,12 @@ stats for a path via Connection have been dropped. To reliably access path stats when a connection closes,
wait for Connection::closed and then call Connection::paths and directly
iterate over the path stats while the Connection struct is still in scope.
-Sourcepub fn to_info(&self) -> ConnectionInfo
Returns a connection info struct.
+Sourcepub fn to_info(&self) -> ConnectionInfo
Returns a connection info struct.
A ConnectionInfo is a weak handle to the connection that does not keep the connection alive,
but does allow to access some information about the connection and to wait for the connection to be closed.
-Source§impl Connection<IncomingZeroRtt>
Sourcepub fn alpn(&self) -> Option<Vec<u8>>
Extracts the ALPN protocol from the peer’s handshake data.
-Sourcepub async fn handshake_completed(&self) -> Result<Connection, ConnectingError>
Waits until the full handshake occurs and then returns a Connection.
+Source§impl Connection<IncomingZeroRtt>
Sourcepub fn alpn(&self) -> Option<Vec<u8>>
Extracts the ALPN protocol from the peer’s handshake data.
+Sourcepub async fn handshake_completed(&self) -> Result<Connection, ConnectingError>
Waits until the full handshake occurs and then returns a Connection.
This may fail with ConnectingError::ConnectionError, if there was
some general failure with the connection, such as a network timeout since
we accepted the connection.
@@ -140,13 +140,13 @@ doesn’t use the right TLS authentication, which usually every iroh endpoint
uses and requires.
Thus, those errors should only occur if someone connects to you with a
modified iroh endpoint or with a plain QUIC client.
-Sourcepub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>
Returns the EndpointId from the peer’s TLS certificate.
+Sourcepub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>
Returns the EndpointId from the peer’s TLS certificate.
The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is
included in the TLS certificate presented during the handshake when connecting.
This function allows you to get the EndpointId of the remote endpoint of this
connection.
-Source§impl Connection<OutgoingZeroRtt>
Sourcepub fn alpn(&self) -> Option<Vec<u8>>
Extracts the ALPN protocol from the peer’s handshake data.
+Sourcepub async fn handshake_completed(
&self,
) -> Result<ZeroRttStatus, ConnectingError>
Waits until the full handshake occurs and returns a ZeroRttStatus.
If ZeroRttStatus::Accepted is returned, than any streams created before
@@ -162,14 +162,14 @@ doesn’t use the right TLS authentication, which usually every iroh endpoint
uses and requires.
Thus, those errors should only occur if someone connects to you with a
modified iroh endpoint or with a plain QUIC client.
-Sourcepub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>
Returns the EndpointId from the peer’s TLS certificate.
+Sourcepub fn remote_id(&self) -> Result<EndpointId, RemoteEndpointIdError>
Returns the EndpointId from the peer’s TLS certificate.
The PublicKey of an endpoint is also known as an EndpointId. This PublicKey is
included in the TLS certificate presented during the handshake when connecting.
This function allows you to get the EndpointId of the remote endpoint of this
connection.
-Trait Implementations§
Source§impl<State: Clone + ConnectionState> Clone for Connection<State>
Source§fn clone(&self) -> Connection<State>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl<State> Freeze for Connection<State>where
+
Trait Implementations§
Source§impl<State: Clone + ConnectionState> Clone for Connection<State>
Source§fn clone(&self) -> Connection<State>
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl<State> Freeze for Connection<State>
§impl<State> RefUnwindSafe for Connection<State>
§impl<State> Send for Connection<State>
§impl<State> Sync for Connection<State>where
diff --git a/pr/3986/docs/iroh/endpoint/struct.ConnectionInfo.html b/pr/3986/docs/iroh/endpoint/struct.ConnectionInfo.html
index e4cab3c673..8be37ef7da 100644
--- a/pr/3986/docs/iroh/endpoint/struct.ConnectionInfo.html
+++ b/pr/3986/docs/iroh/endpoint/struct.ConnectionInfo.html
@@ -1,15 +1,15 @@
-ConnectionInfo in iroh::endpoint - Rust ConnectionInfo
pub struct ConnectionInfo { /* private fields */ }
Expand description
Information about a connection.
+ConnectionInfo in iroh::endpoint - Rust ConnectionInfo
pub struct ConnectionInfo { /* private fields */ }
Expand description
Information about a connection.
A ConnectionInfo is a weak handle to a connection that exposes some information about the connection,
but does not keep the connection alive.
-Implementations§
Source§impl ConnectionInfo
Sourcepub fn alpn(&self) -> &[u8] ⓘ
Sourcepub fn remote_id(&self) -> EndpointId
Sourcepub fn is_alive(&self) -> bool
Sourcepub fn paths(&self) -> PathWatcher
Returns a watcher for the network paths of this connection.
+Implementations§
Source§impl ConnectionInfo
Sourcepub fn alpn(&self) -> &[u8] ⓘ
Sourcepub fn remote_id(&self) -> EndpointId
Sourcepub fn is_alive(&self) -> bool
Sourcepub fn paths(&self) -> PathWatcher
Returns a watcher for the network paths of this connection.
See Connection::paths for details.
-Sourcepub fn stats(&self) -> Option<ConnectionStats>
Returns connection statistics.
+Sourcepub fn stats(&self) -> Option<ConnectionStats>
Returns connection statistics.
Returns None if the connection has been dropped.
-Sourcepub async fn closed(&self) -> Option<(ConnectionError, ConnectionStats)>
Waits for the connection to be closed, and returns the close reason and final connection stats.
+Sourcepub async fn closed(&self) -> Option<(ConnectionError, ConnectionStats)>
Waits for the connection to be closed, and returns the close reason and final connection stats.
Returns None if the connection has been dropped already before this call.
-Sourcepub fn selected_path(&self) -> Option<PathInfo>
Returns the currently selected path.
-Trait Implementations§
Source§impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ConnectionInfo
§impl RefUnwindSafe for ConnectionInfo
§impl Send for ConnectionInfo
§impl Sync for ConnectionInfo
§impl Unpin for ConnectionInfo
§impl UnwindSafe for ConnectionInfo
Blanket Implementations§
Trait Implementations§
Source§impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for ConnectionInfo
§impl RefUnwindSafe for ConnectionInfo
§impl Send for ConnectionInfo
§impl Sync for ConnectionInfo
§impl Unpin for ConnectionInfo
§impl UnwindSafe for ConnectionInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.DirectAddr.html b/pr/3986/docs/iroh/endpoint/struct.DirectAddr.html
index 9873c25b39..bd663a01fb 100644
--- a/pr/3986/docs/iroh/endpoint/struct.DirectAddr.html
+++ b/pr/3986/docs/iroh/endpoint/struct.DirectAddr.html
@@ -1,4 +1,4 @@
-DirectAddr in iroh::endpoint - Rust DirectAddr
pub struct DirectAddr {
+DirectAddr in iroh::endpoint - Rust DirectAddr
pub struct DirectAddr {
pub addr: SocketAddr,
pub typ: DirectAddrType,
}
Expand description
A direct address on which an iroh-endpoint might be contactable.
@@ -9,16 +9,16 @@ iroh endpoint, see Fields§§addr: SocketAddrThe address.
§typ: DirectAddrTypeThe origin of this direct address.
-Trait Implementations§
Source§impl Clone for DirectAddr
Source§fn clone(&self) -> DirectAddr
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 DirectAddr
Source§impl Hash for DirectAddr
1.3.0 · Source§fn hash_slice<H>(data: &[Self], state: &mut H)where
+Trait Implementations§
Source§impl Clone for DirectAddr
Source§fn clone(&self) -> DirectAddr
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for DirectAddr
Source§impl Hash for DirectAddr
Source§impl Ord for DirectAddr
Source§impl Ord for DirectAddr
Source§fn cmp(&self, other: &DirectAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read moreSource§impl PartialEq for DirectAddr
Source§impl PartialOrd for DirectAddr
Source§impl PartialEq for DirectAddr
Source§impl PartialOrd for DirectAddr
Source§impl Eq for DirectAddr
Source§impl StructuralPartialEq for DirectAddr
Auto Trait Implementations§
§impl Freeze for DirectAddr
§impl RefUnwindSafe for DirectAddr
§impl Send for DirectAddr
§impl Sync for DirectAddr
§impl Unpin for DirectAddr
§impl UnwindSafe for DirectAddr
Blanket Implementations§
Source§impl Eq for DirectAddr
Source§impl StructuralPartialEq for DirectAddr
Auto Trait Implementations§
§impl Freeze for DirectAddr
§impl RefUnwindSafe for DirectAddr
§impl Send for DirectAddr
§impl Sync for DirectAddr
§impl Unpin for DirectAddr
§impl UnwindSafe for DirectAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.Endpoint.html b/pr/3986/docs/iroh/endpoint/struct.Endpoint.html
index 2cb473990e..27e6b9bcda 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Endpoint.html
@@ -1,4 +1,4 @@
-Endpoint in iroh::endpoint - Rust Endpoint
pub struct Endpoint { /* private fields */ }
Expand description
Controls an iroh endpoint, establishing connections with other endpoints.
+Endpoint in iroh::endpoint - Rust Endpoint
pub struct Endpoint { /* private fields */ }
Expand description
Controls an iroh endpoint, establishing connections with other endpoints.
This is the main API interface to create connections to, and accept connections from
other iroh endpoints. The connections are peer-to-peer and encrypted, a Relay server is
used to make the connections reliable. See the [crate docs] for a more detailed
@@ -16,27 +16,27 @@ the peer are created using the Connection::open_uni and Connection::open_bi functions.
Note that due to the light-weight properties of streams a stream will only be accepted
once the initiating peer has sent some data on it.
-Implementations§
Source§impl Endpoint
Sourcepub fn builder() -> Builder
Returns the builder for an Endpoint, with a production configuration.
+Implementations§
Source§impl Endpoint
Sourcepub fn builder() -> Builder
Returns the builder for an Endpoint, with a production configuration.
This uses the presets::N0 as the configuration.
-Sourcepub fn empty_builder(relay_mode: RelayMode) -> Builder
Returns the builder for an Endpoint, with an empty configuration.
+Sourcepub fn empty_builder(relay_mode: RelayMode) -> Builder
Returns the builder for an Endpoint, with an empty configuration.
See Builder::empty for details.
-Sourcepub async fn bind() -> Result<Self, BindError>
Constructs a default Endpoint and binds it immediately.
+Sourcepub async fn bind() -> Result<Self, BindError>
Constructs a default Endpoint and binds it immediately.
Uses the presets::N0 as configuration.
-Sourcepub fn set_alpns(&self, alpns: Vec<Vec<u8>>)
Sets the list of accepted ALPN protocols.
This will only affect new incoming connections.
Note that this overrides the current list of ALPNs.
If the endpoint is closed, this method will log a warning and ignore
the request to set new ALPNs.
-Sourcepub async fn insert_relay(
+
Sourcepub async fn insert_relay(
&self,
relay: RelayUrl,
config: Arc<RelayConfig>,
) -> Option<Arc<RelayConfig>>
Sourcepub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>>
Sourcepub async fn remove_relay(&self, relay: &RelayUrl) -> Option<Arc<RelayConfig>>
Sourcepub async fn connect(
&self,
endpoint_addr: impl Into<EndpointAddr>,
alpn: &[u8],
@@ -56,7 +56,7 @@ connection attempt will fail with an error.
The alpn, or application-level protocol identifier, is also required. The remote
endpoint must support this alpn, otherwise the connection attempt will fail with
an error.
-
Sourcepub async fn connect_with_opts(
+
Sourcepub async fn connect_with_opts(
&self,
endpoint_addr: impl Into<EndpointAddr>,
alpn: &[u8],
@@ -76,17 +76,17 @@ security concerns.
establishing and maintaining direct connections. Carefully test settings you use and
consider this currently as still rather experimental.
-
Sourcepub fn accept(&self) -> Accept<'_> ⓘ
Accepts an incoming connection on the endpoint.
Only connections with the ALPNs configured in Builder::alpns will be accepted.
If multiple ALPNs have been configured the ALPN can be inspected before accepting
the connection using Connecting::alpn.
The returned future will yield None if the endpoint is closed by calling
Endpoint::close.
-Sourcepub fn secret_key(&self) -> &SecretKey
Returns the secret_key of this endpoint.
-Sourcepub fn id(&self) -> EndpointId
Returns the endpoint id of this endpoint.
+Sourcepub fn secret_key(&self) -> &SecretKey
Returns the secret_key of this endpoint.
+Sourcepub fn id(&self) -> EndpointId
Returns the endpoint id of this endpoint.
This ID is the unique addressing information of this endpoint and other peers must know
it to be able to connect to this endpoint.
-Sourcepub fn addr(&self) -> EndpointAddr
Returns the current EndpointAddr.
+
Sourcepub fn addr(&self) -> EndpointAddr
Returns the current EndpointAddr.
As long as the endpoint was able to bind to a network interface, some
local addresses will be available.
The state of other fields depends on the state of networking and connectivity.
@@ -96,7 +96,7 @@ to ensure that the EndpointAddr will contain enough information to
to be dialable by a remote endpoint over the internet.
You can use the Endpoint::watch_addr method to get updates when the EndpointAddr
changes.
-Sourcepub fn watch_addr(&self) -> impl Watcher<Value = EndpointAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current EndpointAddr for this endpoint.
+Sourcepub fn watch_addr(&self) -> impl Watcher<Value = EndpointAddr> + use<>
Available on non-wasm_browser only.
Returns a Watcher for the current EndpointAddr for this endpoint.
The observed EndpointAddr will have the current RelayUrl and direct addresses.
use iroh::{Endpoint, Watcher};
@@ -139,7 +139,7 @@ tokio::spawn(endpoint_closed.run_until(async move {
}));
// Do fancy things, then close the endpoint.
// Our task above will stop even if there are still clones of `Endpoint` alive somewhere.
-endpoint.close().await;
Sourcepub async fn online(&self)
A convenience method that waits for the endpoint to be considered “online”.
This currently means at least one relay server was connected,
and at least one local IP address is available.
Even if no relays are configured, this will still wait for a relay connection.
@@ -172,25 +172,25 @@ let endpoint = Endpoint::bind().await;
// After this await returns we have a connection to at least one relay
// and holepunching should work as expected.
endpoint.online().await;
-}Sourcepub fn bound_sockets(&self) -> Vec<SocketAddr>
Available on non-wasm_browser only.
Returns the local socket addresses on which the underlying sockets are bound.
+}
Sourcepub fn bound_sockets(&self) -> Vec<SocketAddr>
Available on non-wasm_browser only.
Returns the local socket addresses on which the underlying sockets are bound.
The Endpoint always binds on an IPv4 address and also tries to bind on an IPv6
address if available.
-Sourcepub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError>
Available on non-wasm_browser only.
Returns the DNS resolver used in this Endpoint.
+Sourcepub fn dns_resolver(&self) -> Result<&DnsResolver, EndpointError>
Available on non-wasm_browser only.
Sourcepub fn tls_config(&self) -> &ClientConfig
Returns the [rustls::ClientConfig] used by the endpoint for connecting to external services.
+Sourcepub fn tls_config(&self) -> &ClientConfig
Returns the [rustls::ClientConfig] used by the endpoint for connecting to external services.
This might be useful for address lookup services or other functions
that want to use the same trust anchors as iroh does for verifying the
validity of TLS certificates presented by external services.
Note that this TLS config is unrelated to how iroh validates the authenticity
of iroh connections itself.
The config is based on the trust anchors set via Builder::ca_roots_config.
-Sourcepub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError>
Returns the Address Lookup service, if configured.
+Sourcepub fn address_lookup(&self) -> Result<&ConcurrentAddressLookup, EndpointError>
Returns the Address Lookup service, if configured.
§Errors
Returns a EndpointError::Closed error if the endpoint is closed.
-Sourcepub fn metrics(&self) -> &EndpointMetrics
Available on crate feature metrics only.
Returns metrics collected for this endpoint.
+Sourcepub fn metrics(&self) -> &EndpointMetrics
Available on crate feature metrics only.
Returns metrics collected for this endpoint.
The endpoint internally collects various metrics about its operation.
The returned EndpointMetrics struct contains all of these metrics.
You can access individual metrics directly by using the public fields:
@@ -260,13 +260,13 @@ registry.write().unwrap().register_all(endpoint.metrics());
.std_context("text")?;
assert!(res.contains(r#"TYPE socket_recv_datagrams counter"#));
-assert!(res.contains(r#"socket_recv_datagrams_total 0"#));Sourcepub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo>
Returns addressing information about a recently used remote endpoint.
+assert!(res.contains(r#"socket_recv_datagrams_total 0"#));Sourcepub async fn remote_info(&self, endpoint_id: EndpointId) -> Option<RemoteInfo>
Returns addressing information about a recently used remote endpoint.
The returned RemoteInfo contains a list of all transport addresses for the remote
that we know about. This is a snapshot in time and not a watcher.
Returns None if the endpoint doesn’t have information about the remote or if the endpoint is closed.
When remote endpoints are no longer used, our endpoint will keep information around
for a little while, and then drop it. Afterwards, this will return None.
-Sourcepub async fn network_change(&self)
Notifies the system of potential network changes.
+Sourcepub async fn network_change(&self)
Notifies the system of potential network changes.
On many systems iroh is able to detect network changes by itself, however
some systems like android do not expose this functionality to native code.
Android does however provide this functionality to Java code. This
@@ -275,14 +275,14 @@ this.
Even when the network did not change, or iroh was already able to detect
the network change itself, there is no harm in calling this function.
If the endpoint is closed, this method will log a warning and ignore the request.
-Sourcepub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>)
Sets the initial user-defined data to be published in Address Lookups for this endpoint.
+Sourcepub fn set_user_data_for_address_lookup(&self, user_data: Option<UserData>)
Sets the initial user-defined data to be published in Address Lookups for this endpoint.
If the user-defined data passed to this function is different to the previous one,
the endpoint will republish its endpoint info to the configured Address Lookups.
See also Builder::user_data_for_address_lookup for setting an initial value when
building the endpoint.
If the endpoint is closed, this method will log a warning and ignore the
request.
-Sourcepub async fn close(&self)
Closes the QUIC endpoint and the socket.
This will close any remaining open Connections with an error code
of 0 and an empty reason. Though it is best practice to close those
explicitly before with a custom error code and reason.
@@ -308,8 +308,8 @@ while TCP sockets usually get closed and drained by the operating system in the
kernel during the “Time-Wait” period of the TCP socket.
Be aware however that the underlying UDP sockets are only closed once all clones of
the the respective Endpoint are dropped.
-Sourcepub fn closed(&self) -> EndpointClosed ⓘ
Returns a future that resolves once the endpoint closes.
+Sourcepub fn closed(&self) -> EndpointClosed ⓘ
Returns a future that resolves once the endpoint closes.
The returned future does not contain a clone or reference to the Endpoint,
so keeping the returned future alive does not prevent the endpoint from being dropped.
To run a task and stop it once the endpoint closes, you can use
@@ -318,13 +318,13 @@ so keeping the returned future alive does not prevent the endpoint from being dr
let endpoint = Endpoint::bind().await?;
tokio::spawn(endpoint.closed().run_until(async move {
// the future will be aborted once the endpoint closes.
-}));
Sourcepub fn create_server_config_builder(
+}));
Sourcepub fn create_server_config_builder(
&self,
alpns: Vec<Vec<u8>>,
) -> ServerConfigBuilder
Create a ServerConfigBuilder for this endpoint that includes the given alpns.
Use the ServerConfigBuilder to customize the ServerConfig connection configuration
for a connection accepted using the Incoming::accept_with method.
-
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Endpoint
§impl !RefUnwindSafe for Endpoint
§impl Send for Endpoint
§impl Sync for Endpoint
§impl Unpin for Endpoint
§impl !UnwindSafe for Endpoint
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Endpoint
§impl !RefUnwindSafe for Endpoint
§impl Send for Endpoint
§impl Sync for Endpoint
§impl Unpin for Endpoint
§impl !UnwindSafe for Endpoint
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.EndpointClosed.html b/pr/3986/docs/iroh/endpoint/struct.EndpointClosed.html
index daec901bda..341ba6723d 100644
--- a/pr/3986/docs/iroh/endpoint/struct.EndpointClosed.html
+++ b/pr/3986/docs/iroh/endpoint/struct.EndpointClosed.html
@@ -1,9 +1,9 @@
-EndpointClosed in iroh::endpoint - Rust EndpointClosed
pub struct EndpointClosed { /* private fields */ }
Expand description
Future returned from Endpoint::closed.
-Implementations§
Source§impl EndpointClosed
Sourcepub async fn run_until<F: Future>(self, fut: F) -> Option<F::Output>
Runs a future to completion, or until the Endpoint is closed.
+EndpointClosed in iroh::endpoint - Rust EndpointClosed
pub struct EndpointClosed { /* private fields */ }
Expand description
Future returned from Endpoint::closed.
+Implementations§
Trait Implementations§
Source§impl Debug for EndpointClosed
Source§impl Future for EndpointClosed
Source§impl<'pin> Unpin for EndpointClosedwhere
+
Trait Implementations§
Source§impl Debug for EndpointClosed
Source§impl Future for EndpointClosed
Source§impl<'pin> Unpin for EndpointClosedwhere
PinnedFieldsOf<__EndpointClosed<'pin>>: Unpin,
Auto Trait Implementations§
§impl !Freeze for EndpointClosed
§impl !RefUnwindSafe for EndpointClosed
§impl Send for EndpointClosed
§impl Sync for EndpointClosed
§impl !UnwindSafe for EndpointClosed
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/3986/docs/iroh/endpoint/struct.HandshakeCompleted.html b/pr/3986/docs/iroh/endpoint/struct.HandshakeCompleted.html
index 9a55ae89a7..388a34c6bf 100644
--- a/pr/3986/docs/iroh/endpoint/struct.HandshakeCompleted.html
+++ b/pr/3986/docs/iroh/endpoint/struct.HandshakeCompleted.html
@@ -1,5 +1,5 @@
-HandshakeCompleted in iroh::endpoint - Rust HandshakeCompleted
pub struct HandshakeCompleted;
Expand description
Marker type for a connection that has completed the handshake.
-Trait Implementations§
Source§impl Clone for HandshakeCompleted
Source§fn clone(&self) -> HandshakeCompleted
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl ConnectionState for HandshakeCompleted
Source§type Data = HandshakeCompletedData
State-specific data stored in the Connection.Auto Trait Implementations§
§impl Freeze for HandshakeCompleted
§impl RefUnwindSafe for HandshakeCompleted
§impl Send for HandshakeCompleted
§impl Sync for HandshakeCompleted
§impl Unpin for HandshakeCompleted
§impl UnwindSafe for HandshakeCompleted
Blanket Implementations§
Source§impl<T> Any for Twhere
+HandshakeCompleted in iroh::endpoint - Rust HandshakeCompleted
pub struct HandshakeCompleted;
Expand description
Marker type for a connection that has completed the handshake.
+Trait Implementations§
Source§impl Clone for HandshakeCompleted
Source§fn clone(&self) -> HandshakeCompleted
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl ConnectionState for HandshakeCompleted
Source§type Data = HandshakeCompletedData
State-specific data stored in the Connection.Auto Trait Implementations§
§impl Freeze for HandshakeCompleted
§impl RefUnwindSafe for HandshakeCompleted
§impl Send for HandshakeCompleted
§impl Sync for HandshakeCompleted
§impl Unpin for HandshakeCompleted
§impl UnwindSafe for HandshakeCompleted
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.Incoming.html b/pr/3986/docs/iroh/endpoint/struct.Incoming.html
index 2c8ac9aea8..fb71d0a426 100644
--- a/pr/3986/docs/iroh/endpoint/struct.Incoming.html
+++ b/pr/3986/docs/iroh/endpoint/struct.Incoming.html
@@ -1,31 +1,31 @@
-Incoming in iroh::endpoint - Rust Incoming
pub struct Incoming { /* private fields */ }
Expand description
An incoming connection for which the server has not yet begun its parts of the
+
Incoming in iroh::endpoint - Rust Incoming
pub struct Incoming { /* private fields */ }
Expand description
An incoming connection for which the server has not yet begun its parts of the
handshake.
-Implementations§
Source§impl Incoming
Sourcepub fn accept(self) -> Result<Accepting, ConnectionError>
Attempts to accept this incoming connection (an error may still occur).
+Implementations§
Source§impl Incoming
Sourcepub fn accept(self) -> Result<Accepting, ConnectionError>
Attempts to accept this incoming connection (an error may still occur).
Errors occurring here are likely not caused by the application or remote. The QUIC
connection listens on a normal UDP socket and any reachable network endpoint can
send datagrams to it, solicited or not. Even if the first few bytes look like a
QUIC packet, it might not even be a QUIC packet that is being received.
Thus it is common to simply log the errors here and accept them as something which
can happen.
-Sourcepub fn accept_with(
+
Sourcepub fn accept_with(
self,
server_config: Arc<ServerConfig>,
) -> Result<Accepting, ConnectionError>
Accepts this incoming connection using a custom configuration.
Use the Endpoint::create_server_config_builder method to create a ServerConfigBuilder
to customize a ServerConfig.
See accept() for more details.
-Sourcepub fn retry(self) -> Result<(), RetryError>
Responds with a retry packet.
+Sourcepub fn retry(self) -> Result<(), RetryError>
Responds with a retry packet.
This requires the client to retry with address validation.
Errors if remote_address_validated() is true.
-Sourcepub fn ignore(self)
Ignores this incoming connection attempt, not sending any packet in response.
-Sourcepub fn local_ip(&self) -> Option<IpAddr>
Returns the local IP address which was used when the peer established the
+
Sourcepub fn ignore(self)
Ignores this incoming connection attempt, not sending any packet in response.
+Sourcepub fn local_ip(&self) -> Option<IpAddr>
Returns the local IP address which was used when the peer established the
connection.
-Sourcepub fn remote_addr(&self) -> IncomingAddr
Returns the remote address of this incoming connection.
-Sourcepub fn remote_addr_validated(&self) -> bool
Whether the socket address that is initiating this connection has been validated.
+Sourcepub fn remote_addr(&self) -> IncomingAddr
Returns the remote address of this incoming connection.
+Sourcepub fn remote_addr_validated(&self) -> bool
Whether the socket address that is initiating this connection has been validated.
This means that the sender of the initial packet has proved that they can receive
traffic sent to self.remote_addr().
-Trait Implementations§
Source§impl IntoFuture for Incoming
Source§type Output = Result<Connection, ConnectingError>
The output that the future will produce on completion.Source§type IntoFuture = IncomingFuture
Which kind of future are we turning this into?Source§fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read moreAuto Trait Implementations§
§impl !Freeze for Incoming
§impl !RefUnwindSafe for Incoming
§impl Send for Incoming
§impl Sync for Incoming
§impl Unpin for Incoming
§impl !UnwindSafe for Incoming
Blanket Implementations§
Trait Implementations§
Source§impl IntoFuture for Incoming
Source§type Output = Result<Connection, ConnectingError>
The output that the future will produce on completion.Source§type IntoFuture = IncomingFuture
Which kind of future are we turning this into?Source§fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read moreAuto Trait Implementations§
§impl !Freeze for Incoming
§impl !RefUnwindSafe for Incoming
§impl Send for Incoming
§impl Sync for Incoming
§impl Unpin for Incoming
§impl !UnwindSafe for Incoming
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.IncomingZeroRtt.html b/pr/3986/docs/iroh/endpoint/struct.IncomingZeroRtt.html
index 204d2c1db8..8f765e0da9 100644
--- a/pr/3986/docs/iroh/endpoint/struct.IncomingZeroRtt.html
+++ b/pr/3986/docs/iroh/endpoint/struct.IncomingZeroRtt.html
@@ -1,5 +1,5 @@
-IncomingZeroRtt in iroh::endpoint - Rust IncomingZeroRtt
pub struct IncomingZeroRtt;
Expand description
Marker type for a connection that is in the incoming 0-RTT state.
-Trait Implementations§
Source§impl Clone for IncomingZeroRtt
Source§fn clone(&self) -> IncomingZeroRtt
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl ConnectionState for IncomingZeroRtt
Source§type Data = IncomingZeroRttData
State-specific data stored in the Connection.Auto Trait Implementations§
§impl Freeze for IncomingZeroRtt
§impl RefUnwindSafe for IncomingZeroRtt
§impl Send for IncomingZeroRtt
§impl Sync for IncomingZeroRtt
§impl Unpin for IncomingZeroRtt
§impl UnwindSafe for IncomingZeroRtt
Blanket Implementations§
Source§impl<T> Any for Twhere
+IncomingZeroRtt in iroh::endpoint - Rust IncomingZeroRtt
pub struct IncomingZeroRtt;
Expand description
Marker type for a connection that is in the incoming 0-RTT state.
+Trait Implementations§
Source§impl Clone for IncomingZeroRtt
Source§fn clone(&self) -> IncomingZeroRtt
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl ConnectionState for IncomingZeroRtt
Source§type Data = IncomingZeroRttData
State-specific data stored in the Connection.Auto Trait Implementations§
§impl Freeze for IncomingZeroRtt
§impl RefUnwindSafe for IncomingZeroRtt
§impl Send for IncomingZeroRtt
§impl Sync for IncomingZeroRtt
§impl Unpin for IncomingZeroRtt
§impl UnwindSafe for IncomingZeroRtt
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.OutgoingZeroRtt.html b/pr/3986/docs/iroh/endpoint/struct.OutgoingZeroRtt.html
index c7aa5cd37d..92c424864d 100644
--- a/pr/3986/docs/iroh/endpoint/struct.OutgoingZeroRtt.html
+++ b/pr/3986/docs/iroh/endpoint/struct.OutgoingZeroRtt.html
@@ -1,5 +1,5 @@
-OutgoingZeroRtt in iroh::endpoint - Rust OutgoingZeroRtt
pub struct OutgoingZeroRtt;
Expand description
Marker type for a connection that is in the outgoing 0-RTT state.
-Trait Implementations§
Source§impl Clone for OutgoingZeroRtt
Source§fn clone(&self) -> OutgoingZeroRtt
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl ConnectionState for OutgoingZeroRtt
Source§type Data = OutgoingZeroRttData
State-specific data stored in the Connection.Auto Trait Implementations§
§impl Freeze for OutgoingZeroRtt
§impl RefUnwindSafe for OutgoingZeroRtt
§impl Send for OutgoingZeroRtt
§impl Sync for OutgoingZeroRtt
§impl Unpin for OutgoingZeroRtt
§impl UnwindSafe for OutgoingZeroRtt
Blanket Implementations§
Source§impl<T> Any for Twhere
+OutgoingZeroRtt in iroh::endpoint - Rust OutgoingZeroRtt
pub struct OutgoingZeroRtt;
Expand description
Marker type for a connection that is in the outgoing 0-RTT state.
+Trait Implementations§
Source§impl Clone for OutgoingZeroRtt
Source§fn clone(&self) -> OutgoingZeroRtt
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl ConnectionState for OutgoingZeroRtt
Source§type Data = OutgoingZeroRttData
State-specific data stored in the Connection.Auto Trait Implementations§
§impl Freeze for OutgoingZeroRtt
§impl RefUnwindSafe for OutgoingZeroRtt
§impl Send for OutgoingZeroRtt
§impl Sync for OutgoingZeroRtt
§impl Unpin for OutgoingZeroRtt
§impl UnwindSafe for OutgoingZeroRtt
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.RemoteEndpointIdError.html b/pr/3986/docs/iroh/endpoint/struct.RemoteEndpointIdError.html
index 7dc8176e12..9e4347d48b 100644
--- a/pr/3986/docs/iroh/endpoint/struct.RemoteEndpointIdError.html
+++ b/pr/3986/docs/iroh/endpoint/struct.RemoteEndpointIdError.html
@@ -1,5 +1,5 @@
-RemoteEndpointIdError in iroh::endpoint - Rust RemoteEndpointIdError
pub struct RemoteEndpointIdError { /* private fields */ }
Implementations§
Source§impl RemoteEndpointIdError
Sourcepub fn new() -> Self
Creates a new RemoteEndpointIdError error.
-Trait Implementations§
Source§impl Clone for RemoteEndpointIdError
Source§fn clone(&self) -> RemoteEndpointIdError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RemoteEndpointIdError
Source§impl Display for RemoteEndpointIdError
Source§impl Error for RemoteEndpointIdError
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<RemoteEndpointIdError> for AcceptError
Source§fn from(source: RemoteEndpointIdError) -> Self
Converts to this type from the input type.Source§impl From<RemoteEndpointIdError> for AnyError
Source§fn from(value: RemoteEndpointIdError) -> AnyError
Converts to this type from the input type.Source§impl From<RemoteEndpointIdError> for AuthenticationError
Source§fn from(source: RemoteEndpointIdError) -> Self
Converts to this type from the input type.Source§impl StackError for RemoteEndpointIdError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 RemoteEndpointIdError
§impl RefUnwindSafe for RemoteEndpointIdError
§impl Send for RemoteEndpointIdError
§impl Sync for RemoteEndpointIdError
§impl Unpin for RemoteEndpointIdError
§impl UnwindSafe for RemoteEndpointIdError
Blanket Implementations§
Source§impl<T> Any for Twhere
+RemoteEndpointIdError in iroh::endpoint - Rust RemoteEndpointIdError
pub struct RemoteEndpointIdError { /* private fields */ }
Implementations§
Source§impl RemoteEndpointIdError
Sourcepub fn new() -> Self
Creates a new RemoteEndpointIdError error.
+Trait Implementations§
Source§impl Clone for RemoteEndpointIdError
Source§fn clone(&self) -> RemoteEndpointIdError
Returns a duplicate of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreSource§impl Debug for RemoteEndpointIdError
Source§impl Display for RemoteEndpointIdError
Source§impl Error for RemoteEndpointIdError
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<RemoteEndpointIdError> for AcceptError
Source§fn from(source: RemoteEndpointIdError) -> Self
Converts to this type from the input type.Source§impl From<RemoteEndpointIdError> for AnyError
Source§fn from(value: RemoteEndpointIdError) -> AnyError
Converts to this type from the input type.Source§impl From<RemoteEndpointIdError> for AuthenticationError
Source§fn from(source: RemoteEndpointIdError) -> Self
Converts to this type from the input type.Source§impl StackError for RemoteEndpointIdError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 RemoteEndpointIdError
§impl RefUnwindSafe for RemoteEndpointIdError
§impl Send for RemoteEndpointIdError
§impl Sync for RemoteEndpointIdError
§impl Unpin for RemoteEndpointIdError
§impl UnwindSafe for RemoteEndpointIdError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3986/docs/iroh/endpoint/struct.RetryError.html b/pr/3986/docs/iroh/endpoint/struct.RetryError.html
index 7ae2c75fae..8cdf696fc5 100644
--- a/pr/3986/docs/iroh/endpoint/struct.RetryError.html
+++ b/pr/3986/docs/iroh/endpoint/struct.RetryError.html
@@ -1,7 +1,7 @@
-RetryError in iroh::endpoint - Rust RetryError
pub struct RetryError { /* private fields */ }
Expand description
Error for attempting to retry an Incoming which already bears a token from a previous retry
-Implementations§
Source§impl RetryError
Sourcepub fn new(err: RetryError, ep: Endpoint) -> Self
Creates a new RetryError error.
-Source§impl RetryError
Sourcepub fn into_incoming(self) -> Incoming
Get the Incoming
-Trait Implementations§
Source§impl Debug for RetryError
Source§impl Display for RetryError
Source§impl Error for RetryError
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<RetryError> for AnyError
Source§fn from(value: RetryError) -> AnyError
Converts to this type from the input type.Source§impl StackError for RetryError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.Source§fn 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 RetryError
§impl !RefUnwindSafe for RetryError
§impl Send for RetryError
§impl Sync for RetryError
§impl Unpin for RetryError
§impl !UnwindSafe for RetryError
Blanket Implementations§