pub trait QuinnConnectionProvider<Addr>: Clone {
    // Required method
    fn connect(&self, addr: Addr) -> BoxFuture<'_, Result<Connection>>;
}
Expand description

A connection provider that can be used to connect to a tracker.

This can either be a quinn::Endpoint where connections are created on demand, or some sort of connection pool.

Required Methods§

source

fn connect(&self, addr: Addr) -> BoxFuture<'_, Result<Connection>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl QuinnConnectionProvider<SocketAddr> for Endpoint

Implementors§