pub struct TlsServerConfig { /* private fields */ }Expand description
Validated production TLS identity configuration (Plan 203 Tracks A–C).
Immutable once built; reload via TlsReloadHandle (all-or-nothing for
new handshakes; established connections keep their session). Exposes only
sanitized metadata (identity names, client-auth mode, ALPN); never private
keys.
Implementations§
Source§impl TlsServerConfig
impl TlsServerConfig
Sourcepub fn builder() -> TlsServerConfigBuilder
pub fn builder() -> TlsServerConfigBuilder
Builder for TlsServerConfig.
Sourcepub fn server_config(&self) -> &Arc<ServerConfig> ⓘ
pub fn server_config(&self) -> &Arc<ServerConfig> ⓘ
The validated rustls server configuration for new handshakes.
Sourcepub fn into_server_config(&self) -> Arc<ServerConfig> ⓘ
pub fn into_server_config(&self) -> Arc<ServerConfig> ⓘ
Clone the inner server configuration (for reload handles / acceptors).
Sourcepub fn identities(&self) -> &[String]
pub fn identities(&self) -> &[String]
Configured SNI identity names (exact and *. wildcards, lowercased).
Sourcepub fn has_default_identity(&self) -> bool
pub fn has_default_identity(&self) -> bool
Whether a default identity exists for no-SNI/no-match clients.
Sourcepub fn client_auth(&self) -> ClientAuthMode
pub fn client_auth(&self) -> ClientAuthMode
Configured client-authentication policy.
Sourcepub fn alpn_protocols(&self) -> &[Vec<u8>]
pub fn alpn_protocols(&self) -> &[Vec<u8>]
Advertised ALPN protocols.
Trait Implementations§
Source§impl Clone for TlsServerConfig
impl Clone for TlsServerConfig
Auto Trait Implementations§
impl !RefUnwindSafe for TlsServerConfig
impl !UnwindSafe for TlsServerConfig
impl Freeze for TlsServerConfig
impl Send for TlsServerConfig
impl Sync for TlsServerConfig
impl Unpin for TlsServerConfig
impl UnsafeUnpin for TlsServerConfig
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