pub struct TlsConfig { /* private fields */ }Expand description
TLS configuration for a Client or individual request.
Constructed via the builder methods on this type and passed to
ClientBuilder::tls_config or
RequestBuilder::tls_config.
Implementations§
Source§impl TlsConfig
impl TlsConfig
pub fn danger_accept_invalid_certs(self, enabled: bool) -> Self
pub fn backend(self, backend: TlsBackend) -> Self
pub fn alpn_protocols<I, S>(self, protocols: I) -> Self
pub fn cipher_suites<I, S>(self, suites: I) -> Self
pub fn min_tls_version(self, version: impl AsRef<str>) -> Self
pub fn max_tls_version(self, version: impl AsRef<str>) -> Self
pub fn disable_alpn(self) -> Self
pub fn root_store(self, root_store: RootStore) -> Self
pub fn pin_certificate( self, domain: impl AsRef<str>, fingerprint: impl AsRef<str>, ) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl UnwindSafe for TlsConfig
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