Struct etcd_client::TlsOptions [−][src]
pub struct TlsOptions { /* fields omitted */ }This is supported on crate feature
tls only.Configures TLS settings for endpoints.
Implementations
impl ClientTlsConfig[src]
impl ClientTlsConfig[src]pub fn new() -> ClientTlsConfig[src]
Creates a new ClientTlsConfig using Rustls.
pub fn domain_name(self, domain_name: impl Into<String>) -> ClientTlsConfig[src]
Sets the domain name against which to verify the server’s TLS certificate.
pub fn ca_certificate(self, ca_certificate: Certificate) -> ClientTlsConfig[src]
Sets the CA Certificate against which to verify the server’s TLS certificate.
This has no effect if rustls_client_config is used to configure Rustls.
pub fn identity(self, identity: Identity) -> ClientTlsConfig[src]
Sets the client identity to present to the server.
This has no effect if rustls_client_config is used to configure Rustls.
pub fn rustls_client_config(self, config: ClientConfig) -> ClientTlsConfig[src]
Use options specified by the given ClientConfig to configure TLS.
This overrides all other TLS options set via other means.
Trait Implementations
impl Clone for ClientTlsConfig[src]
impl Clone for ClientTlsConfig[src]pub fn clone(&self) -> ClientTlsConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ClientTlsConfig[src]
impl Debug for ClientTlsConfig[src]impl Default for ClientTlsConfig[src]
impl Default for ClientTlsConfig[src]pub fn default() -> ClientTlsConfig[src]
Auto Trait Implementations
impl !RefUnwindSafe for ClientTlsConfig
impl !RefUnwindSafe for ClientTlsConfigimpl Send for ClientTlsConfig
impl Send for ClientTlsConfigimpl Sync for ClientTlsConfig
impl Sync for ClientTlsConfigimpl Unpin for ClientTlsConfig
impl Unpin for ClientTlsConfigimpl !UnwindSafe for ClientTlsConfig
impl !UnwindSafe for ClientTlsConfigBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> IntoRequest<T> for T[src]
impl<T> IntoRequest<T> for T[src]pub fn into_request(self) -> Request<T>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,