pub struct TlsOptions {
pub insecure: bool,
pub alt_name: Option<String>,
pub dane_tlsa: Vec<TLSA>,
pub prefer_openssl: bool,
pub openssl_cipher_list: Option<String>,
pub openssl_cipher_suites: Option<String>,
pub openssl_options: Option<SslOptions>,
pub rustls_cipher_suites: Vec<SupportedCipherSuite>,
}
Fields§
§insecure: bool
§alt_name: Option<String>
§dane_tlsa: Vec<TLSA>
§prefer_openssl: bool
§openssl_cipher_list: Option<String>
§openssl_cipher_suites: Option<String>
§openssl_options: Option<SslOptions>
§rustls_cipher_suites: Vec<SupportedCipherSuite>
Implementations§
source§impl TlsOptions
impl TlsOptions
pub fn build_openssl_connector( &self, hostname: &str, ) -> Result<ConnectConfiguration, ClientError>
source§impl TlsOptions
impl TlsOptions
sourcepub fn build_tls_connector(&self) -> TlsConnector
pub fn build_tls_connector(&self) -> TlsConnector
Produce a TlsConnector for this set of TlsOptions. We need to employ a cache around the verifier as loading the system certificate store can be a non-trivial operation and not be something we want to do repeatedly in a hot code path. The cache does unfortunately complicate some of the internals here.
Trait Implementations§
source§impl Clone for TlsOptions
impl Clone for TlsOptions
source§fn clone(&self) -> TlsOptions
fn clone(&self) -> TlsOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TlsOptions
impl Debug for TlsOptions
source§impl Default for TlsOptions
impl Default for TlsOptions
source§fn default() -> TlsOptions
fn default() -> TlsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TlsOptions
impl !RefUnwindSafe for TlsOptions
impl Send for TlsOptions
impl Sync for TlsOptions
impl Unpin for TlsOptions
impl !UnwindSafe for TlsOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)