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§
Sourcefn start_session(
self: Arc<Self>,
version: u32,
server_name: &str,
params: &TransportParameters,
) -> Result<Box<dyn Session>, ConnectError>
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