pub struct TlsClientConfig {
pub ca_cert: Option<String>,
pub insecure: bool,
}Expand description
TLS configuration for client connections.
Pass this to Client::connect_tls to establish a TLS-encrypted connection
to the server.
Fields§
§ca_cert: Option<String>Path to a custom CA certificate (PEM format) for verifying the server.
When None, the platform’s native root certificate store is used.
insecure: boolSkip server certificate verification entirely.
Emits a warning to stderr when set. Only use in development with self-signed certificates — never in production.
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
Source§impl Default for TlsClientConfig
impl Default for TlsClientConfig
Source§fn default() -> TlsClientConfig
fn default() -> TlsClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TlsClientConfig
impl RefUnwindSafe for TlsClientConfig
impl Send for TlsClientConfig
impl Sync for TlsClientConfig
impl Unpin for TlsClientConfig
impl UnsafeUnpin for TlsClientConfig
impl UnwindSafe for TlsClientConfig
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