pub trait SslServer<T = HttpStream>{
type Stream: NetworkStream + Send + Clone;
// Required method
fn wrap_server(&self, stream: T) -> Result<Self::Stream, Error>;
}
Expand description
An abstraction to allow any SSL implementation to be used with server-side HttpsStreams.
Required Associated Types§
sourcetype Stream: NetworkStream + Send + Clone
type Stream: NetworkStream + Send + Clone
The protected stream.
Required Methods§
sourcefn wrap_server(&self, stream: T) -> Result<Self::Stream, Error>
fn wrap_server(&self, stream: T) -> Result<Self::Stream, Error>
Wrap a server stream with SSL.