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