pub struct TlsSettings {
pub enabled: bool,
pub certificate_file: Option<String>,
pub private_key_file: Option<String>,
pub ca_file: Option<String>,
pub insecure_skip_verify: bool,
pub server_name: Option<String>,
}Expand description
TLS transport configuration (go-style Socket* keys).
Fields§
§enabled: boolSocketUseSSL=Y — wrap the connection in TLS.
certificate_file: Option<String>SocketCertificateFile — PEM certificate chain. Required for an
acceptor; supplies the client certificate for mutual TLS on an
initiator.
private_key_file: Option<String>SocketPrivateKeyFile — PEM private key paired with the certificate.
ca_file: Option<String>SocketCAFile — PEM trust anchors. An initiator verifies the server
against these (falling back to the webpki roots when absent); an
acceptor requires and verifies client certificates against them
(mutual TLS).
insecure_skip_verify: boolSocketInsecureSkipVerify=Y — initiator skips server certificate
verification. Testing/self-signed only.
server_name: Option<String>SocketServerName — SNI / verification hostname for an initiator.
Trait Implementations§
Source§impl Clone for TlsSettings
impl Clone for TlsSettings
Source§fn clone(&self) -> TlsSettings
fn clone(&self) -> TlsSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TlsSettings
impl Debug for TlsSettings
Source§impl Default for TlsSettings
impl Default for TlsSettings
Source§fn default() -> TlsSettings
fn default() -> TlsSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TlsSettings
impl RefUnwindSafe for TlsSettings
impl Send for TlsSettings
impl Sync for TlsSettings
impl Unpin for TlsSettings
impl UnsafeUnpin for TlsSettings
impl UnwindSafe for TlsSettings
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