#[non_exhaustive]pub enum ServeError {
Bind(Error),
Serve(Error),
Identity(String),
RouteCollision(Vec<String>),
Observability(String),
}Expand description
An error raised while binding or serving the HTTP application.
It wraps the pointer-sized std::io::Error from the failing stage, so it is
cheap to return by value (it does not trip clippy’s result_large_err).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bind(Error)
Binding the TcpListener to the configured address failed (the address
is in use, not permitted, or unavailable).
Serve(Error)
The server itself failed while accepting or draining connections.
Identity(String)
The configured OIDC identity could not be built (the JWKS file is missing or is not a valid key set). A startup error — the service refuses to boot claiming to authenticate when it cannot.
RouteCollision(Vec<String>)
Two or more mounted facades pluralise to the same (version, resource)
route prefix, which would panic Router::merge. Carries the colliding
"<version>/<resource>" prefixes so the operator can rename a facade.
Observability(String)
An opt-in observability exporter (ADR 0027) could not be installed — the
Prometheus recorder (already installed, or a bad bucket config) or the OTLP
tracing pipeline. A startup error: a service that asked for metrics/tracing
refuses to boot silently blind. Only constructed under the metrics /
tracing-otlp features.
Trait Implementations§
Source§impl Debug for ServeError
impl Debug for ServeError
Source§impl Display for ServeError
impl Display for ServeError
Source§impl Error for ServeError
impl Error for ServeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()