pub trait SslClient<T: NetworkStream + Send + Clone = HttpStream> {
type Stream: NetworkStream + Send + Clone;
// Required method
fn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream>;
}Expand description
An abstraction to allow any SSL implementation to be used with client-side HttpsStreams.
Required Associated Types§
Sourcetype Stream: NetworkStream + Send + Clone
type Stream: NetworkStream + Send + Clone
The protected stream.
Required Methods§
Sourcefn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream>
fn wrap_client(&self, stream: T, host: &str) -> Result<Self::Stream>
Wrap a client stream with SSL.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".