[][src]Struct tonic::transport::server::ServerTlsConfig

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

Configures TLS settings for servers.

Methods

impl ServerTlsConfig[src]

pub fn with_openssl() -> Self[src]

This is supported on feature="transport" only.

Creates a new ServerTlsConfig using OpenSSL.

pub fn with_rustls() -> Self[src]

This is supported on feature="transport" only.

Creates a new ServerTlsConfig using Rustls.

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

This is supported on feature="transport" only.

Sets the Identity of the server.

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

This is supported on feature="transport" only.

Sets a certificate against which to validate client TLS certificates.

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

This is supported on feature="transport" only.

Use options specified by the given SslAcceptor to configure TLS.

This overrides all other TLS options set via other means.

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

This is supported on feature="transport" only.

Use options specified by the given ServerConfig to configure TLS.

This overrides all other TLS options set via other means.

Trait Implementations

impl Clone for ServerTlsConfig[src]

impl Debug for ServerTlsConfig[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]