Struct rocket::http::hyper::net::HttpsListener
[−]
[src]
pub struct HttpsListener<S> where S: SslServer<HttpStream> { /* fields omitted */ }
A Http Listener over SSL.
Methods
impl<S> HttpsListener<S> where S: SslServer<HttpStream>
[src]
fn new<To>(addr: To, ssl: S) -> Result<HttpsListener<S>, Error> where To: ToSocketAddrs
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> Clone for HttpsListener<S> where S: SslServer<HttpStream> + Clone
[src]
fn clone(&self) -> HttpsListener<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<S> NetworkListener for HttpsListener<S> where S: SslServer<HttpStream> + Clone
[src]
type Stream = S::Stream
The stream produced for each connection.
fn accept(&mut self) -> Result<S::Stream, Error>
Returns an iterator of streams.
fn local_addr(&mut self) -> Result<SocketAddr, Error>
Get the address this Listener ended up listening on.
fn incoming(&mut self) -> NetworkConnections<Self>
Returns an iterator over incoming connections.