pub struct ClientTls {
pub server_name: Option<String>,
pub ca_path: Option<PathBuf>,
}Expand description
Client-side TLS material (FR-29). Presence of this on the client config makes the client dial TLS; absence keeps it plaintext.
Fields§
§server_name: Option<String>Name to verify the server certificate against (SNI). When None, the
endpoint host is used.
ca_path: Option<PathBuf>A PEM file of trusted root(s) to pin. When None, the platform’s
native root store is used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientTls
impl RefUnwindSafe for ClientTls
impl Send for ClientTls
impl Sync for ClientTls
impl Unpin for ClientTls
impl UnsafeUnpin for ClientTls
impl UnwindSafe for ClientTls
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