Trait TlsConfigurer

Source
pub trait TlsConfigurer {
    // Required methods
    fn is_dynamic(&self) -> bool;
    fn into_stream(self) -> BoxStream<'static, Arc<ServerConfig>>;
}
Expand description

A TLS configurer that may change during lifetime of a server.

The configurer supports “hotpatching” a running server with new configuration.

Required Methods§

Source

fn is_dynamic(&self) -> bool

Whether the configuration may change over time.

Source

fn into_stream(self) -> BoxStream<'static, Arc<ServerConfig>>

Turn the configurer into a stream of TLS ServerConfigs.

Implementations on Foreign Types§

Source§

impl TlsConfigurer for ()

Source§

impl TlsConfigurer for Arc<ServerConfig>

Source§

impl TlsConfigurer for Arc<dyn Fn() -> Arc<ServerConfig> + Send + Sync>

Source§

impl TlsConfigurer for ServerConfig

Source§

impl TlsConfigurer for BoxStream<'static, Arc<ServerConfig>>

Implementors§