Struct hyper_rustls::HttpsConnector [−][src]
pub struct HttpsConnector<T> { /* fields omitted */ }
A Connector for the https
scheme.
Methods
impl HttpsConnector<HttpConnector>
[src]
impl HttpsConnector<HttpConnector>
pub fn new(threads: usize) -> Self
[src]
pub fn new(threads: usize) -> Self
Construct a new HttpsConnector
.
Takes number of DNS worker threads.
Trait Implementations
impl<T: Clone> Clone for HttpsConnector<T>
[src]
impl<T: Clone> Clone for HttpsConnector<T>
fn clone(&self) -> HttpsConnector<T>
[src]
fn clone(&self) -> HttpsConnector<T>
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<T> Debug for HttpsConnector<T>
[src]
impl<T> Debug for HttpsConnector<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> From<(T, ClientConfig)> for HttpsConnector<T>
[src]
impl<T> From<(T, ClientConfig)> for HttpsConnector<T>
fn from(args: (T, ClientConfig)) -> Self
[src]
fn from(args: (T, ClientConfig)) -> Self
Performs the conversion.
impl<T> Connect for HttpsConnector<T> where
T: Connect<Error = Error>,
T::Transport: 'static,
T::Future: 'static,
[src]
impl<T> Connect for HttpsConnector<T> where
T: Connect<Error = Error>,
T::Transport: 'static,
T::Future: 'static,
type Transport = MaybeHttpsStream<T::Transport>
The connected IO Stream.
type Error = Error
An error occured when trying to connect.
type Future = HttpsConnecting<T::Transport>
A Future that will resolve to the connected Transport.
fn connect(&self, dst: Destination) -> Self::Future
[src]
fn connect(&self, dst: Destination) -> Self::Future
Connect to a destination.
Auto Trait Implementations
impl<T> Send for HttpsConnector<T> where
T: Send,
impl<T> Send for HttpsConnector<T> where
T: Send,
impl<T> Sync for HttpsConnector<T> where
T: Sync,
impl<T> Sync for HttpsConnector<T> where
T: Sync,