pub struct TlsConfig {
pub use_tls: bool,
pub tls_verify_cert: bool,
pub tls_cert_path: Option<String>,
}Expand description
Configuration for TLS connections
Fields§
§use_tls: boolEnable TLS for this connection
tls_verify_cert: boolVerify server certificates (recommended: true)
tls_cert_path: Option<String>Path to custom CA certificate file (optional)
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 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