iroh_blobs::util

Module connection_pool

Source
Expand description

A simple iroh connection pool

Entry point is ConnectionPool. You create a connection pool for a specific ALPN and Options. Then the pool will manage connections for you.

Access to connections is via the ConnectionPool::get_or_connect method, which gives you access to a connection via a ConnectionRef if possible.

It is important that you keep the ConnectionRef alive while you are using the connection.

Structs§

Enums§