[][src]Trait rocket::http::hyper::net::SslServer

pub trait SslServer<T = HttpStream> where
    T: NetworkStream + Send + Clone
{ type Stream: NetworkStream + Send + Clone; fn wrap_server(&self, stream: T) -> Result<Self::Stream, Error>; }

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

Associated Types

type Stream: NetworkStream + Send + Clone

The protected stream.

Loading content...

Required methods

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

Wrap a server stream with SSL.

Loading content...

Implementations on Foreign Types

impl SslServer<HttpStream> for TlsServer

type Stream = WrappedStream<ServerSession, HttpStream>

Loading content...

Implementors

Loading content...