[][src]Struct tonic::transport::ClientTlsConfig

pub struct ClientTlsConfig { /* fields omitted */ }
This is supported on feature="transport" only.

Configures TLS settings for endpoints.

Methods

impl ClientTlsConfig[src]

pub fn with_openssl() -> Self[src]

This is supported on feature="transport" only.

Creates a new ClientTlsConfig using OpenSSL.

pub fn with_rustls() -> Self[src]

This is supported on feature="transport" only.

Creates a new ClientTlsConfig using Rustls.

Important traits for &'_ mut F
pub fn domain_name(&mut self, domain_name: impl Into<String>) -> &mut Self[src]

This is supported on feature="transport" only.

Sets the domain name against which to verify the server's TLS certificate.

Important traits for &'_ mut F
pub fn ca_certificate(&mut self, ca_certificate: Certificate) -> &mut Self[src]

This is supported on feature="transport" only.

Sets the CA Certificate against which to verify the server's TLS certificate.

Important traits for &'_ mut F
pub fn identity(&mut self, identity: Identity) -> &mut Self[src]

This is supported on feature="transport" only.

Sets the client identity to present to the server.

Important traits for &'_ mut F
pub fn openssl_connector(&mut self, connector: SslConnector) -> &mut Self[src]

This is supported on feature="transport" only.

Use options specified by the given SslConnector to configure TLS.

This overrides all other TLS options set via other means.

Important traits for &'_ mut F
pub fn rustls_client_config(&mut self, config: ClientConfig) -> &mut Self[src]

This is supported on feature="transport" only.

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 Debug for ClientTlsConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]