pub struct RustlsClientConfig(pub Arc<ClientConfig>);Expand description
A type-erased rustls::ClientConfig that can be embedded in TransportConfig.
Equality is pointer-based (two handles are equal only if they wrap the same
Arc allocation), which is consistent with the immutable nature of a fully
constructed ClientConfig.
§Serialization
This type is serializable only as a non-round-trippable placeholder.
Serialization emits the string "<RustlsClientConfig>" so that structs
containing a TransportConfig (e.g. admin snapshots, tracing spans) do
not panic or error during JSON serialization. Deserialization always
returns an error — a RustlsClientConfig must be injected at runtime
(e.g. from a pre-built Arc<rustls::ClientConfig>) and cannot be
reconstructed from serialized text.
Tuple Fields§
§0: Arc<ClientConfig>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<'de> Deserialize<'de> for RustlsClientConfig
Available on crate feature tls only.
impl<'de> Deserialize<'de> for RustlsClientConfig
Available on crate feature
tls only.Source§fn deserialize<D: Deserializer<'de>>(_deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(_deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RustlsClientConfig
Available on crate feature
tls only.Source§impl PartialEq for RustlsClientConfig
Available on crate feature tls only.
impl PartialEq for RustlsClientConfig
Available on crate feature
tls only.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