pub struct TlsConfig {
pub ca_cert_path: Option<PathBuf>,
pub client_cert_path: Option<PathBuf>,
pub client_key_path: Option<PathBuf>,
pub server_name: Option<String>,
}Expand description
Tls Config.
Fields§
§ca_cert_path: Option<PathBuf>Ca Cert Path.
client_cert_path: Option<PathBuf>Client Cert Path.
client_key_path: Option<PathBuf>Client Key Path.
server_name: Option<String>Server Name.
Implementations§
Source§impl TlsConfig
impl TlsConfig
Sourcepub fn with_ca_cert_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_ca_cert_path(self, path: impl Into<PathBuf>) -> Self
Sets ca cert path and returns the updated value.
Sourcepub fn with_client_cert_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_client_cert_path(self, path: impl Into<PathBuf>) -> Self
Sets client cert path and returns the updated value.
Sourcepub fn with_client_key_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_client_key_path(self, path: impl Into<PathBuf>) -> Self
Sets client key path and returns the updated value.
Sourcepub fn with_server_name(self, server_name: impl Into<String>) -> Self
pub fn with_server_name(self, server_name: impl Into<String>) -> Self
Sets server name and returns the updated value.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.