pub struct ClientTlsConfig { /* private fields */ }
Expand description
Configures TLS settings for endpoints.
Implementations
sourceimpl ClientTlsConfig
impl ClientTlsConfig
sourcepub fn domain_name(self, domain_name: impl Into<String>) -> Self
pub fn domain_name(self, domain_name: impl Into<String>) -> Self
Sets the domain name against which to verify the server’s TLS certificate.
sourcepub fn ca_certificate(self, ca_certificate: Certificate) -> Self
pub fn ca_certificate(self, ca_certificate: Certificate) -> Self
Sets the CA Certificate against which to verify the server’s TLS certificate.
Trait Implementations
sourceimpl Clone for ClientTlsConfig
impl Clone for ClientTlsConfig
sourcefn clone(&self) -> ClientTlsConfig
fn clone(&self) -> ClientTlsConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClientTlsConfig
impl Debug for ClientTlsConfig
sourceimpl Default for ClientTlsConfig
impl Default for ClientTlsConfig
sourcefn default() -> ClientTlsConfig
fn default() -> ClientTlsConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ClientTlsConfig
impl Send for ClientTlsConfig
impl Sync for ClientTlsConfig
impl Unpin for ClientTlsConfig
impl UnwindSafe for ClientTlsConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;