Skip to main content

ClientTlsConfiguration

Trait ClientTlsConfiguration 

Source
pub trait ClientTlsConfiguration {
    type Provider: ClientTlsProvider;

    // Required method
    fn configured(&self) -> Option<(SslMode, &Self::Provider)>;
}
Expand description

Internal shape shared by disabled and reloadable TLS policies.

Required Associated Types§

Source

type Provider: ClientTlsProvider

Reloadable provider type.

Required Methods§

Source

fn configured(&self) -> Option<(SslMode, &Self::Provider)>

Returns the libpq mode and provider, or None for explicit plaintext.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§