Trait quinn_proto::crypto::ClientConfig

source ·
pub trait ClientConfig: Send + Sync {
    // Required method
    fn start_session(
        self: Arc<Self>,
        version: u32,
        server_name: &str,
        params: &TransportParameters,
    ) -> Result<Box<dyn Session>, ConnectError>;
}
Expand description

Client-side configuration for the crypto protocol

Required Methods§

source

fn start_session( self: Arc<Self>, version: u32, server_name: &str, params: &TransportParameters, ) -> Result<Box<dyn Session>, ConnectError>

Start a client session with this configuration

Implementors§