pub struct ClientSessionConfig<'a> {
pub ca_chain: Option<Certificate<'a>>,
pub creds: Option<Credentials<'a>>,
pub server_name: Option<&'a CStr>,
pub auth_mode: AuthMode,
pub min_version: TlsVersion,
pub alpn_protocols: Option<&'a [&'a CStr]>,
}Expand description
Configuration for a TLS session
Fields§
§ca_chain: Option<Certificate<'a>>Trusted CA (Certificate Authority) chain to be used for certificate verification during the SSL/TLS handshake.
The CA chain should contain the trusted CA certificates that will be used to verify the server’s certificate by the client during the handshake.
creds: Option<Credentials<'a>>Optional client credentials used for authenticating the client to the server
server_name: Option<&'a CStr>The server name to verify in the certificate provided by the server Optional, because it can also be provided later
auth_mode: AuthModeCertificate verification mode. Can be overriden. By default, AuthMode::Required will be used
min_version: TlsVersionThe minimum TLS version that will be supported by a particular Session instance
alpn_protocols: Option<&'a [&'a CStr]>ALPN protocols
Implementations§
Source§impl<'a> ClientSessionConfig<'a>
impl<'a> ClientSessionConfig<'a>
Trait Implementations§
Source§impl<'a> Clone for ClientSessionConfig<'a>
impl<'a> Clone for ClientSessionConfig<'a>
Source§fn clone(&self) -> ClientSessionConfig<'a>
fn clone(&self) -> ClientSessionConfig<'a>
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<'a> Debug for ClientSessionConfig<'a>
impl<'a> Debug for ClientSessionConfig<'a>
Auto Trait Implementations§
impl<'a> !Send for ClientSessionConfig<'a>
impl<'a> !Sync for ClientSessionConfig<'a>
impl<'a> Freeze for ClientSessionConfig<'a>
impl<'a> RefUnwindSafe for ClientSessionConfig<'a>
impl<'a> Unpin for ClientSessionConfig<'a>
impl<'a> UnsafeUnpin for ClientSessionConfig<'a>
impl<'a> UnwindSafe for ClientSessionConfig<'a>
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