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