Trait quinn_proto::crypto::ClientConfig [−][src]
pub trait ClientConfig<S>: Clone where
S: Session, { fn new() -> Self
where
Self: Sized; fn start_session(
&self,
server_name: &str,
params: &TransportParameters
) -> Result<S, ConnectError>; }
Client-side configuration for the crypto protocol
Required methods
fn new() -> Self where
Self: Sized, [src]
Self: Sized,
Construct the default configuration
fn start_session(
&self,
server_name: &str,
params: &TransportParameters
) -> Result<S, ConnectError>[src]
&self,
server_name: &str,
params: &TransportParameters
) -> Result<S, ConnectError>
Start a client session with this configuration
Implementations on Foreign Types
impl ClientConfig<TlsSession> for Arc<ClientConfig>[src]
impl ClientConfig<TlsSession> for Arc<ClientConfig>[src]fn new() -> Self[src]
fn start_session(
&self,
server_name: &str,
params: &TransportParameters
) -> Result<TlsSession, ConnectError>[src]
&self,
server_name: &str,
params: &TransportParameters
) -> Result<TlsSession, ConnectError>