pub struct TlsClientConfig { /* private fields */ }Expand description
TLS configuration for client-side connections.
This configuration specifies how the client validates server certificates and optionally presents its own certificate for mutual TLS.
Implementations§
Source§impl TlsClientConfig
impl TlsClientConfig
Sourcepub fn new() -> TlsClientConfig
pub fn new() -> TlsClientConfig
Create a new TLS client configuration with default settings (webpki roots).
Sourcepub fn builder() -> TlsClientConfigBuilder
pub fn builder() -> TlsClientConfigBuilder
Create a builder for constructing TLS client configuration.
Trait Implementations§
Source§impl Clone for TlsClientConfig
impl Clone for TlsClientConfig
Source§fn clone(&self) -> TlsClientConfig
fn clone(&self) -> TlsClientConfig
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 Default for TlsClientConfig
impl Default for TlsClientConfig
Source§fn default() -> TlsClientConfig
fn default() -> TlsClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TlsClientConfig
impl RefUnwindSafe for TlsClientConfig
impl Send for TlsClientConfig
impl Sync for TlsClientConfig
impl Unpin for TlsClientConfig
impl UnsafeUnpin for TlsClientConfig
impl UnwindSafe for TlsClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> ParamValue for T
impl<T> ParamValue for T
Source§fn clone_box(&self) -> Box<dyn ParamValue>
fn clone_box(&self) -> Box<dyn ParamValue>
Clones this value and returns it as a boxed
ParamValue. Read moreSource§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying value as
Any. Read moreSource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to the underlying value as
Any. Read more