Struct tonic::transport::ServerTlsConfig
source · pub struct ServerTlsConfig { /* private fields */ }
Available on crate features
tls
and transport
only.Expand description
Configures TLS settings for servers.
Implementations§
source§impl ServerTlsConfig
impl ServerTlsConfig
sourcepub fn client_ca_root(self, cert: Certificate) -> Self
pub fn client_ca_root(self, cert: Certificate) -> Self
Sets a certificate against which to validate client TLS certificates.
Trait Implementations§
source§impl Clone for ServerTlsConfig
impl Clone for ServerTlsConfig
source§fn clone(&self) -> ServerTlsConfig
fn clone(&self) -> ServerTlsConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServerTlsConfig
impl Debug for ServerTlsConfig
source§impl Default for ServerTlsConfig
impl Default for ServerTlsConfig
source§fn default() -> ServerTlsConfig
fn default() -> ServerTlsConfig
Returns the “default value” for a type. Read more