[−][src]Struct rocket::http::hyper::net::HttpsListener
A Http Listener over SSL.
Methods
impl<S> HttpsListener<S> where
S: SslServer<HttpStream>,
[src]
S: SslServer<HttpStream>,
pub fn new<To>(addr: To, ssl: S) -> Result<HttpsListener<S>, Error> where
To: ToSocketAddrs,
[src]
To: ToSocketAddrs,
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> NetworkListener for HttpsListener<S> where
S: SslServer<HttpStream> + Clone,
[src]
S: SslServer<HttpStream> + Clone,
type Stream = <S as SslServer<HttpStream>>::Stream
The stream produced for each connection.
fn accept(&mut self) -> Result<<S as SslServer<HttpStream>>::Stream, Error>
[src]
fn local_addr(&mut self) -> Result<SocketAddr, Error>
[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 for HttpsListener<S> where
S: SslServer<HttpStream> + Clone,
[src]
S: SslServer<HttpStream> + Clone,
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> Send for HttpsListener<S> where
S: Send,
S: Send,
impl<S> Sync for HttpsListener<S> where
S: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Typeable for T where
T: Any,
T: Any,
impl<T> IntoCollection for T
[src]
ⓘImportant traits for SmallVec<A>fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
[src]
ⓘImportant traits for SmallVec<A>
A: Array<Item = T>,
ⓘImportant traits for SmallVec<A>fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
[src]
ⓘImportant traits for SmallVec<A>
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult for T where
I: Input,
[src]
I: Input,