Struct hyper::net::HttpsListener
[−]
[src]
pub struct HttpsListener<S: SslServer> { /* fields omitted */ }
A Http Listener over SSL.
Methods
impl<S: SslServer> HttpsListener<S>
[src]
pub fn new<To: ToSocketAddrs>(addr: To, ssl: S) -> Result<HttpsListener<S>>
[src]
Start listening to an address over HTTPS.
pub fn with_listener(listener: HttpListener, ssl: S) -> HttpsListener<S>
[src]
Construct an HttpsListener from a bound TcpListener
.
Trait Implementations
impl<S: Clone + SslServer> Clone for HttpsListener<S>
[src]
fn clone(&self) -> HttpsListener<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: SslServer + Clone> NetworkListener for HttpsListener<S>
[src]
type Stream = S::Stream
The stream produced for each connection.
fn accept(&mut self) -> Result<S::Stream>
[src]
Returns an iterator of streams.
fn local_addr(&mut self) -> Result<SocketAddr>
[src]
Get the address this Listener ended up listening on.
fn set_read_timeout(&mut self, duration: Option<Duration>)
[src]
Sets the read timeout for all streams that are accepted
fn set_write_timeout(&mut self, duration: Option<Duration>)
[src]
Sets the write timeout for all streams that are accepted
ⓘImportant traits for NetworkConnections<'a, N>fn incoming(&mut self) -> NetworkConnections<Self>
[src]
ⓘImportant traits for NetworkConnections<'a, N>
Returns an iterator over incoming connections.