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§
Required Methods§
Sourcefn resolve<'a>(
&'a self,
target: &'a ConnectTarget,
) -> Pin<Box<dyn Future<Output = Result<ClientTlsConfig, Self::Error>> + 'a>>
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".