pub enum ServerConfigStreamError {
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 server-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 ServerConfig.
ServerConfigProvider::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 [CertifiedKey]
MissingRoots
The builder/stream did not provide any root certificates
RustlsError(Error)
Wrapper for any rustls error.
Trait Implementations§
Source§impl Debug for ServerConfigStreamError
impl Debug for ServerConfigStreamError
Source§impl Display for ServerConfigStreamError
impl Display for ServerConfigStreamError
Source§impl Error for ServerConfigStreamError
impl Error for ServerConfigStreamError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ServerConfigStreamError
impl From<Error> for ServerConfigStreamError
Source§impl From<VerifierBuilderError> for ServerConfigStreamError
impl From<VerifierBuilderError> for ServerConfigStreamError
Source§fn from(source: VerifierBuilderError) -> Self
fn from(source: VerifierBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerConfigStreamError
impl !RefUnwindSafe for ServerConfigStreamError
impl Send for ServerConfigStreamError
impl Sync for ServerConfigStreamError
impl Unpin for ServerConfigStreamError
impl !UnwindSafe for ServerConfigStreamError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more