iroh_quinn::crypto

Trait 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§