pub struct TlsClientConfig {
pub verify_server_cert: bool,
pub custom_ca_certs: Vec<Vec<u8>>,
pub client_cert: Option<Vec<u8>>,
pub client_key: Option<Vec<u8>>,
pub alpn_protocols: Vec<Vec<u8>>,
pub handshake_timeout: Duration,
}Expand description
TLS client configuration for outbound connections
Fields§
§verify_server_cert: boolWhether to verify server certificates
custom_ca_certs: Vec<Vec<u8>>Custom CA certificates to trust
client_cert: Option<Vec<u8>>Client certificate for mTLS
client_key: Option<Vec<u8>>Client private key for mTLS
alpn_protocols: Vec<Vec<u8>>ALPN protocols to negotiate
handshake_timeout: DurationTimeout for TLS handshake
Trait Implementations§
Source§impl Clone for TlsClientConfig
impl Clone for TlsClientConfig
Source§fn clone(&self) -> TlsClientConfig
fn clone(&self) -> TlsClientConfig
Returns a duplicate 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 TlsClientConfig
impl Debug for TlsClientConfig
Auto Trait Implementations§
impl Freeze for TlsClientConfig
impl RefUnwindSafe for TlsClientConfig
impl Send for TlsClientConfig
impl Sync for TlsClientConfig
impl Unpin for TlsClientConfig
impl UnwindSafe for TlsClientConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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