👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Expand description
The Endpoint
allows establishing connections to other iroh-net nodes.
The Endpoint
is the main API interface to manage a local iroh-net node. It allows
connecting to and accepting connections from other nodes. See the module docs for
more details on how iroh-net connections work.
The main items in this module are:
Structs§
- Accept
Deprecated - Future produced by
Endpoint::accept
. - Accept
Bi - Future produced by
Connection::accept_bi
- Accept
Uni - Future produced by
Connection::accept_uni
- AckFrequency
Config - Parameters for controlling the peer’s acknowledgement frequency
- Addr
Info - Network paths to contact an iroh-net node.
- Application
Close - Reason given by an application for closing the connection
- Builder
Deprecated - Builder for
Endpoint
. - Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Chunk
- A chunk of data from the receive stream
- Closed
Stream - Error indicating that a stream has not been opened or has already been finished or reset
- Connecting
Deprecated - In-progress connection attempt future
- Connection
- A QUIC connection.
- Connection
Close - Reason given by the transport for closing the connection
- Connection
Stats - Connection statistics
- Connection
Type Stream Deprecated - Stream returning
ConnectionTypes
- Crypto
Error - Generic crypto errors
- Direct
Addr Deprecated - A direct address on which an iroh-node might be contactable.
- Direct
Addr Info Deprecated - Information about a direct address.
- Direct
Addrs Stream Deprecated - Stream returning local endpoints as they change.
- Endpoint
Deprecated - Controls an iroh-net node, establishing connections with other nodes.
- Export
Keying Material Error - Error returned by Session::export_keying_material.
- Frame
Stats - Number of frames transmitted of each frame type
- Incoming
Deprecated - An incoming connection for which the server has not yet begun its parts of the handshake.
- Incoming
Future Deprecated - Adaptor to let
Incoming
beawait
ed like aConnecting
. - MtuDiscovery
Config - Parameters governing MTU discovery.
- Node
Addr - Network-level addressing information for an iroh-net node.
- OpenBi
- Future produced by
Connection::open_bi
- OpenUni
- Future produced by
Connection::open_uni
- Path
Stats - Statistics related to a transmission path
- Read
Datagram - Future produced by
Connection::read_datagram
- Recv
Stream - A stream that can only be used to receive data
- Remote
Info Deprecated - Details about a remote iroh-net node which is known to this node.
- Retry
Error - Error for attempting to retry an
Incoming
which already bears an address validation token from a previous retry - Send
Stream - A stream that can only be used to send data
- Server
Config - Parameters governing incoming connections
- Stream
Id - Identifier for a stream within a particular connection
- Transport
Config - Parameters governing the core QUIC state machine
- Transport
Error - Transport-level errors occur when a peer violates the protocol specification
- Transport
Error Code - Transport-level error code
- UdpStats
- Statistics about UDP datagrams transmitted or received on a connection
- Unsupported
Version - Error indicating that the specified QUIC version is not supported
- VarInt
- An integer less than 2^62
- Weak
Connection Handle - A handle to some connection internals, use with care.
- Written
- Indicates how many bytes and chunks had been transferred in a write operation
- Zero
RttAccepted - Future that completes when a connection is fully established
Enums§
- Connection
Error - Reasons why a connection might be lost
- Connection
Type Deprecated - The type of connection we have to the endpoint.
- Control
Msg Deprecated - The type of control message we have received.
- Direct
Addr Type Deprecated - The type of direct address.
- Read
Error - Errors that arise from reading from a stream.
- Read
Exact Error - Errors that arise from reading from a stream.
- Read
ToEnd Error - Errors from
RecvStream::read_to_end
- Reset
Error - Errors that arise while waiting for a stream to be reset
- Send
Datagram Error - Errors that can arise when sending a datagram
- Source
Deprecated - The origin or source through which an address associated with a remote node was discovered.
- Stopped
Error - Errors that arise while monitoring for a send stream stop from the peer
- Write
Error - Errors that arise from writing to a stream
Traits§
- AeadKey
- A key for sealing data with AEAD-based algorithms
- Controller
- Common interface for different congestion controllers
- Controller
Factory - Constructs controllers on demand
- Crypto
Server Config - Server-side configuration for the crypto protocol
- Handshake
Token Key - A pseudo random key for HKDF
Functions§
- default_
relay_ mode Deprecated - Returns the default relay mode.
- get_
remote_ node_ id Deprecated - Extract the
PublicKey
from the peer’s TLS certificate. - make_
server_ config Deprecated - Creates a
ServerConfig
with the given secret key and limits.