pub struct RustlsClientConfig { /* private fields */ }Expand description
Opaque holder for a rustls client configuration.
The type is always present so that TlsConfig’s shape never depends on
cargo features; constructing a non-trivial value requires the tls-rustls
(or tls-rustls-no-provider) feature, which gates the From impls and
re-exports the rustls crate at the crate root.
Note: the wrapped rustls major version tracks the backend’s TLS stack —
a documented semver-coupled exception (see the crate docs).
Trait Implementations§
Source§impl Clone for RustlsClientConfig
impl Clone for RustlsClientConfig
Source§fn clone(&self) -> RustlsClientConfig
fn clone(&self) -> RustlsClientConfig
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 Debug for RustlsClientConfig
impl Debug for RustlsClientConfig
Source§impl From<Arc<ClientConfig>> for RustlsClientConfig
Available on crate features tls-rustls-no-provider or tls-rustls only.
impl From<Arc<ClientConfig>> for RustlsClientConfig
Available on crate features
tls-rustls-no-provider or tls-rustls only.Source§fn from(config: Arc<ClientConfig>) -> RustlsClientConfig
fn from(config: Arc<ClientConfig>) -> RustlsClientConfig
Converts to this type from the input type.
Source§impl From<ClientConfig> for RustlsClientConfig
Available on crate features tls-rustls-no-provider or tls-rustls only.
impl From<ClientConfig> for RustlsClientConfig
Available on crate features
tls-rustls-no-provider or tls-rustls only.Source§fn from(config: ClientConfig) -> RustlsClientConfig
fn from(config: ClientConfig) -> RustlsClientConfig
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RustlsClientConfig
impl !UnwindSafe for RustlsClientConfig
impl Freeze for RustlsClientConfig
impl Send for RustlsClientConfig
impl Sync for RustlsClientConfig
impl Unpin for RustlsClientConfig
impl UnsafeUnpin for RustlsClientConfig
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