Struct hyper_openssl::HttpsConnector [−][src]
pub struct HttpsConnector<T> { /* fields omitted */ }
An Connector using OpenSSL to support http
and https
schemes.
Methods
impl HttpsConnector<HttpConnector>
[src]
impl HttpsConnector<HttpConnector>
pub fn new(threads: usize) -> Result<HttpsConnector<HttpConnector>, ErrorStack>
[src]
pub fn new(threads: usize) -> Result<HttpsConnector<HttpConnector>, ErrorStack>
Creates a a new HttpsConnector
using default settings.
The Hyper HttpConnector
is used to perform the TCP socket connection.
Requires the runtime
Cargo feature.
impl<T> HttpsConnector<T> where
T: Connect,
[src]
impl<T> HttpsConnector<T> where
T: Connect,
pub fn with_connector(
http: T,
ssl: SslConnectorBuilder
) -> Result<HttpsConnector<T>, ErrorStack>
[src]
pub fn with_connector(
http: T,
ssl: SslConnectorBuilder
) -> Result<HttpsConnector<T>, ErrorStack>
Creates a new HttpsConnector
.
The session cache configuration of ssl
will be overwritten.
pub fn set_callback<F>(&mut self, callback: F) where
F: Fn(&mut ConnectConfiguration, &Destination) -> Result<(), ErrorStack> + 'static + Sync + Send,
[src]
pub fn set_callback<F>(&mut self, callback: F) where
F: Fn(&mut ConnectConfiguration, &Destination) -> Result<(), ErrorStack> + 'static + Sync + Send,
Registers a callback which can customize the configuration of each connection.
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> Connect for HttpsConnector<T> where
T: Connect,
[src]
impl<T> Connect for HttpsConnector<T> where
T: Connect,
type Transport = MaybeHttpsStream<T::Transport>
The connected IO Stream.
type Error = Box<Error + Sync + Send>
An error occured when trying to connect.
type Future = ConnectFuture<T>
A Future that will resolve to the connected Transport.
fn connect(&self, destination: Destination) -> ConnectFuture<T>
[src]
fn connect(&self, destination: Destination) -> ConnectFuture<T>
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,