[−][src]Struct hyper::net::HttpsListener
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: 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]
fn local_addr(&mut self) -> Result<SocketAddr>
[src]
fn set_read_timeout(&mut self, duration: Option<Duration>)
[src]
fn set_write_timeout(&mut self, duration: Option<Duration>)
[src]
ⓘ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.
impl<S: Clone + SslServer> Clone for HttpsListener<S>
[src]
fn clone(&self) -> HttpsListener<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<S> Unpin for HttpsListener<S> where
S: Unpin,
S: Unpin,
impl<S> Sync for HttpsListener<S> where
S: Sync,
S: Sync,
impl<S> Send for HttpsListener<S> where
S: Send,
S: Send,
impl<S> UnwindSafe for HttpsListener<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for HttpsListener<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
[src]
T: Any,