Struct hyper::net::HttpsListener [] [src]

pub struct HttpsListener<S: SslServer> {
    // some fields omitted
}

A Http Listener over SSL.

Methods

impl<S: Ssl> HttpsListener<S>

fn new<To: ToSocketAddrs>(addr: To, ssl: S) -> Result<HttpsListener<S>>

Start listening to an address over HTTPS.

fn with_listener(listener: HttpListener, ssl: S) -> HttpsListener<S>

Construct an HttpsListener from a bound TcpListener.

Trait Implementations

impl<S: SslServer + Clone> NetworkListener for HttpsListener<S>

type Stream = S::Stream

fn accept(&mut self) -> Result<S::Stream>

fn local_addr(&mut self) -> Result<SocketAddr>

fn incoming(&mut self) -> NetworkConnections<Self>

Derived Implementations

impl<S: Clone + SslServer> Clone for HttpsListener<S>

fn clone(&self) -> HttpsListener<S>

1.0.0fn clone_from(&mut self, source: &Self)