Struct hyper_sync_rustls::TlsClient
[−]
[src]
pub struct TlsClient { pub cfg: Arc<ClientConfig>, }
Fields
cfg: Arc<ClientConfig>
Methods
impl TlsClient
[src]
Trait Implementations
impl Clone for TlsClient
[src]
fn clone(&self) -> TlsClient
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl SslClient for TlsClient
[src]
type Stream = WrappedStream<ClientSession>
The protected stream.
fn wrap_client(
&self,
stream: HttpStream,
host: &str
) -> Result<WrappedStream<ClientSession>>
[src]
&self,
stream: HttpStream,
host: &str
) -> Result<WrappedStream<ClientSession>>
Wrap a client stream with SSL.