Struct tonic::transport::server::ServerTlsConfig [−][src]
pub struct ServerTlsConfig { /* fields omitted */ }
This is supported on crate features
transport
and tls
only.Configures TLS settings for servers.
Implementations
impl ServerTlsConfig
[src]
impl ServerTlsConfig
[src]pub fn new() -> Self
[src]
Creates a new ServerTlsConfig
.
pub fn identity(self, identity: Identity) -> Self
[src]
Sets the Identity
of the server.
pub fn client_ca_root(self, cert: Certificate) -> Self
[src]
Sets a certificate against which to validate client TLS certificates.
pub fn rustls_server_config(&mut self, config: ServerConfig) -> &mut Selfⓘ
[src]
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 Clone for ServerTlsConfig
[src]fn clone(&self) -> ServerTlsConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ServerTlsConfig
[src]
impl Default for ServerTlsConfig
[src]fn default() -> ServerTlsConfig
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServerTlsConfig
impl !RefUnwindSafe for ServerTlsConfig
impl Send for ServerTlsConfig
impl Send for ServerTlsConfig
impl Sync for ServerTlsConfig
impl Sync for ServerTlsConfig
impl Unpin for ServerTlsConfig
impl Unpin for ServerTlsConfig
impl !UnwindSafe for ServerTlsConfig
impl !UnwindSafe for ServerTlsConfig
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub 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;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
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>ⓘNotable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
[src]
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
S: Into<Dispatch>,
pub fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;