Struct hyper_openssl::OpensslClient
[−]
[src]
pub struct OpensslClient { /* fields omitted */ }
An SslClient
implementation using OpenSSL.
Methods
impl OpensslClient
[src]
fn new() -> Result<OpensslClient, ErrorStack>
Creates a new OpenSslClient
with default settings.
fn danger_disable_hostname_verification(&mut self, disable_verification: bool)
If set, the
SslConnector::danger_connect_without_providing_domain_for_certificate_verification_and_server_name_indication
method will be used to connect.
If certificate verification has been disabled in the SslConnector
, verification must be
additionally disabled here for that setting to take effect.
fn ssl_callback<F>(&mut self, callback: F) where
F: Fn(&mut SslRef, &str) -> Result<(), ErrorStack> + 'static + Sync + Send,
F: Fn(&mut SslRef, &str) -> Result<(), ErrorStack> + 'static + Sync + Send,
Registers a callback which can customize the Ssl
of each connection.
It is provided with a reference to the SslRef
as well as the host.
Trait Implementations
impl Clone for OpensslClient
[src]
fn clone(&self) -> OpensslClient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<SslConnector> for OpensslClient
[src]
fn from(connector: SslConnector) -> OpensslClient
Performs the conversion.
impl<T> SslClient<T> for OpensslClient where
T: NetworkStream + Clone + Sync + Send + Debug,
[src]
T: NetworkStream + Clone + Sync + Send + Debug,