#[non_exhaustive]pub struct TlsConfig { /* private fields */ }Expand description
High-level TLS configuration that can be converted into a
rustls::ClientConfig via build.
Implementations§
Source§impl TlsConfig
impl TlsConfig
pub fn trust_anchors(self, anchors: TrustAnchors) -> Self
pub fn client_certificate( self, chain: Vec<CertificateDer<'static>>, key: PrivateKeyDer<'static>, ) -> Self
pub fn min_tls_version(self, version: TlsVersion) -> Self
Sourcepub fn build(self) -> Result<Arc<ClientConfig>, Error>
pub fn build(self) -> Result<Arc<ClientConfig>, Error>
Build a rustls::ClientConfig from these settings.
Trait Implementations§
Auto Trait Implementations§
impl Forget for TlsConfig
impl Freeze for TlsConfig
impl Move 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