pub struct TlsConfig {
pub cert_path: String,
pub key_path: String,
pub client_ca_path: Option<String>,
}Expand description
TLS termination settings: PEM file paths (the binary reads them, config
stays free of certificate material). mTLS is required when client_ca_path
is set.
Fields§
§cert_path: StringPath to the server certificate chain PEM.
key_path: StringPath to the server private key PEM.
client_ca_path: Option<String>Path to the client-CA PEM that client certs must chain to (enables mTLS).
Trait Implementations§
impl Eq for TlsConfig
impl StructuralPartialEq for TlsConfig
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