pub struct ServerSessionConfig<'a> {
pub ca_chain: Option<Certificate<'a>>,
pub creds: Credentials<'a>,
pub auth_mode: AuthMode,
pub min_version: TlsVersion,
pub alpn_protocols: Option<&'a [&'a CStr]>,
}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 client’s certificate by the server during the handshake.
creds: Credentials<'a>Server credentials used for authenticating the server to the client
auth_mode: AuthModeClient certificate verification mode. Can be overriden. By default, AuthMode::None 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> ServerSessionConfig<'a>
impl<'a> ServerSessionConfig<'a>
pub const fn new(creds: Credentials<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for ServerSessionConfig<'a>
impl<'a> Clone for ServerSessionConfig<'a>
Source§fn clone(&self) -> ServerSessionConfig<'a>
fn clone(&self) -> ServerSessionConfig<'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 moreAuto Trait Implementations§
impl<'a> !Send for ServerSessionConfig<'a>
impl<'a> !Sync for ServerSessionConfig<'a>
impl<'a> Freeze for ServerSessionConfig<'a>
impl<'a> RefUnwindSafe for ServerSessionConfig<'a>
impl<'a> Unpin for ServerSessionConfig<'a>
impl<'a> UnsafeUnpin for ServerSessionConfig<'a>
impl<'a> UnwindSafe for ServerSessionConfig<'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