ToTlsClient

pub trait ToTlsClient: TrustedStoreConfig + Sized {
    // Provided method
    fn to_tls_client(
        &self,
        server_certificate_verifier: impl CustomServerCertificateVerifier + 'static,
    ) -> Result<ClientConfig, ToTlsClientError<Self::Error>> { ... }
}
Expand description

TLS client for

  • Client to Gateway WebSocket
  • Gateway to Client gRPC + needs custom server cert validator

Provided Methods§

Source

fn to_tls_client( &self, server_certificate_verifier: impl CustomServerCertificateVerifier + 'static, ) -> Result<ClientConfig, ToTlsClientError<Self::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§