Skip to main content

ClientTlsProvider

Trait ClientTlsProvider 

Source
pub trait ClientTlsProvider {
    type Error;

    // Required method
    fn resolve<'a>(
        &'a self,
        target: &'a ConnectTarget,
    ) -> Pin<Box<dyn Future<Output = Result<ClientTlsConfig, Self::Error>> + 'a>>;
}
Expand description

Application-owned source of reloadable client TLS material.

Required Associated Types§

Source

type Error

Provider resolution failure.

Required Methods§

Source

fn resolve<'a>( &'a self, target: &'a ConnectTarget, ) -> Pin<Box<dyn Future<Output = Result<ClientTlsConfig, Self::Error>> + 'a>>

Resolves material for one connection attempt.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ClientTlsProvider for ()

Source§

type Error = Infallible

Source§

fn resolve<'a>( &'a self, _target: &'a ConnectTarget, ) -> Pin<Box<dyn Future<Output = Result<ClientTlsConfig, Self::Error>> + 'a>>

Implementors§