Struct hyper_sync_rustls::TlsClient
source · pub struct TlsClient {
pub cfg: Arc<ClientConfig>,
}
Fields§
§cfg: Arc<ClientConfig>
Implementations§
Trait Implementations§
source§impl SslClient<HttpStream> for TlsClient
impl SslClient<HttpStream> for TlsClient
§type Stream = WrappedStream<ClientSession, HttpStream>
type Stream = WrappedStream<ClientSession, HttpStream>
The protected stream.
source§fn wrap_client(
&self,
stream: HttpStream,
host: &str
) -> Result<WrappedStream<ClientSession>>
fn wrap_client(
&self,
stream: HttpStream,
host: &str
) -> Result<WrappedStream<ClientSession>>
Wrap a client stream with SSL.