pub trait QuicClientConfig<C>:
Send
+ Sync
+ 'staticwhere
C: Connector,{
type Endpoint: QuicEndpoint;
// Required method
fn bind(
&self,
addr: SocketAddr,
runtime: &<C as Connector>::Runtime,
) -> Result<Self::Endpoint, Error>;
}Expand description
Factory for creating client-side QUIC endpoints.
Parameterised over C: Connector so that the concrete runtime and UDP socket types
are available to the implementation without coupling the QUIC library to any specific
runtime adapter.
Implementations should produce a QuicEndpoint bound to the
given local address. TLS configuration is embedded in the implementation.
Required Associated Types§
Sourcetype Endpoint: QuicEndpoint
type Endpoint: QuicEndpoint
The endpoint type produced by bind.