pub struct TlsConfig {
pub trust_anchors: TrustAnchors,
pub client_cert: Option<(Vec<CertificateDer<'static>>, PrivateKeyDer<'static>)>,
pub min_tls_version: TlsVersion,
}Expand description
High-level TLS configuration that can be converted into a
rustls::ClientConfig via build.
Fields§
§trust_anchors: TrustAnchors§client_cert: Option<(Vec<CertificateDer<'static>>, PrivateKeyDer<'static>)>§min_tls_version: TlsVersionImplementations§
Source§impl TlsConfig
impl TlsConfig
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 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