pub enum ClientConfigStreamError {
StreamError(Box<dyn Error + Send + Sync + 'static>),
EmptyStream,
StreamBuilderError(Box<dyn Error + Send + Sync + 'static>),
VerifierBuilderError(VerifierBuilderError),
MissingCertifiedKey,
MissingRoots,
RustlsError(Error),
}
Expand description
Errors that can occur while building or consuming a client-config stream.
These represent failures either from the user-provided stream/builder
or from rustls
itself.
Variants§
StreamError(Box<dyn Error + Send + Sync + 'static>)
The underlying stream produced an error.
This is used to wrap arbitrary stream provider errors.
EmptyStream
The stream completed without yielding an initial ClientConfig
.
ClientConfigProvider::start
requires at least one item to seed
the provider; otherwise startup fails with this error.
StreamBuilderError(Box<dyn Error + Send + Sync + 'static>)
The builder failed to construct a stream.
The provider will surface this when initial construction fails.
VerifierBuilderError(VerifierBuilderError)
Error originating from rustls
certificate verifier construction.
MissingCertifiedKey
The builder/stream did not provide a rustls::sign::CertifiedKey
MissingRoots
The builder/stream did not provide any root certificates resulting in an empty rustls::RootCertStore
RustlsError(Error)
Wrapper for any rustls
error.