pub struct ClientTlsConfig {
pub sni: Option<String>,
pub alpn: Vec<String>,
pub skip_verify: bool,
pub ca: Option<String>,
}Expand description
Client-side TLS configuration.
Fields§
§sni: Option<String>TLS SNI hostname. Defaults to the host portion of remote.
alpn: Vec<String>ALPN protocol list.
skip_verify: boolSkip certificate verification (for testing only).
ca: Option<String>Custom CA certificate path (PEM).
Trait Implementations§
Source§impl Clone for ClientTlsConfig
impl Clone for ClientTlsConfig
Source§fn clone(&self) -> ClientTlsConfig
fn clone(&self) -> ClientTlsConfig
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 ClientTlsConfig
impl Debug for ClientTlsConfig
Source§impl Default for ClientTlsConfig
impl Default for ClientTlsConfig
Source§impl<'de> Deserialize<'de> for ClientTlsConfig
impl<'de> Deserialize<'de> for ClientTlsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientTlsConfig
impl RefUnwindSafe for ClientTlsConfig
impl Send for ClientTlsConfig
impl Sync for ClientTlsConfig
impl Unpin for ClientTlsConfig
impl UnsafeUnpin for ClientTlsConfig
impl UnwindSafe for ClientTlsConfig
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