Crate rustls_config_stream

Crate rustls_config_stream 

Source
Expand description

rustls::ServerConfig provider backed by an async stream.

This module exposes a ServerConfigProvider that holds the “current” TLS server configuration and updates it whenever a new config arrives from a user-supplied stream (see ServerConfigStreamBuilder).

The background task performs exponential backoff (10ms -> 10s, doubling) when the stream fails, and attempts to re-create the stream via the builder. Call ServerConfigProvider::get_config whenever you need an Arc<ServerConfig>.

§Overview

§Tracing

If the tracing feature is enabled, the provider will emit diagnostics (debug/info/error) about updates and reconnection attempts.

Structs§

ServerConfigProvider
Holds the current ServerConfig and refreshes it from an async stream.

Enums§

ServerConfigStreamError
Errors that can occur while building or consuming a server-config stream.

Traits§

ServerConfigStreamBuilder
A factory for producing a stream of rustls::ServerConfig.