pub struct RustlsTransportConfig { /* private fields */ }Expand description
Immutable configuration for one logical TLS server identity.
Implementations§
Source§impl RustlsTransportConfig
impl RustlsTransportConfig
Sourcepub fn new(
client: Arc<ClientConfig>,
server_name: ServerName<'static>,
limits: RustlsTransportLimits,
) -> Self
pub fn new( client: Arc<ClientConfig>, server_name: ServerName<'static>, limits: RustlsTransportLimits, ) -> Self
Creates configuration from an already validated owned server name.
Sourcepub fn for_server_name(
client: Arc<ClientConfig>,
server_name: &str,
limits: RustlsTransportLimits,
) -> Result<Self, RustlsConfigError>
pub fn for_server_name( client: Arc<ClientConfig>, server_name: &str, limits: RustlsTransportLimits, ) -> Result<Self, RustlsConfigError>
Validates and owns one DNS name or IP address for certificate verification and SNI.
Sourcepub fn client_config(&self) -> &Arc<ClientConfig> ⓘ
pub fn client_config(&self) -> &Arc<ClientConfig> ⓘ
Returns the shared rustls client configuration.
Sourcepub const fn server_name(&self) -> &ServerName<'static>
pub const fn server_name(&self) -> &ServerName<'static>
Returns the owned logical server identity.
Sourcepub const fn limits(&self) -> RustlsTransportLimits
pub const fn limits(&self) -> RustlsTransportLimits
Returns the exact per-connection transport limits.
Trait Implementations§
Source§impl Clone for RustlsTransportConfig
impl Clone for RustlsTransportConfig
Auto Trait Implementations§
impl !RefUnwindSafe for RustlsTransportConfig
impl !UnwindSafe for RustlsTransportConfig
impl Freeze for RustlsTransportConfig
impl Send for RustlsTransportConfig
impl Sync for RustlsTransportConfig
impl Unpin for RustlsTransportConfig
impl UnsafeUnpin for RustlsTransportConfig
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