Trait SslServer

Source
pub trait SslServer<T: NetworkStream + Send + Clone = HttpStream> {
    type Stream: NetworkStream + Send + Clone;

    // Required method
    fn wrap_server(&self, stream: T) -> Result<Self::Stream>;
}
Expand description

An abstraction to allow any SSL implementation to be used with server-side HttpsStreams.

Required Associated Types§

Source

type Stream: NetworkStream + Send + Clone

The protected stream.

Required Methods§

Source

fn wrap_server(&self, stream: T) -> Result<Self::Stream>

Wrap a server stream with SSL.

Implementors§