#[non_exhaustive]pub enum RouteErrorKind {
Show 13 variants
UpstreamHttp,
ContextWindowExceeded,
TemporarilyUnavailable,
Timeout,
Transport,
InvalidResponse,
RequestTranslation,
RequestEncoding,
ResponseTranslation,
InvalidRequest,
Configuration,
Algorithm,
Other,
}Expand description
Stable class of a terminal route-execution failure.
This deliberately carries no provider message, response body, or source error. It is suitable for logs and telemetry, not client-facing rendering.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UpstreamHttp
The upstream returned a non-success HTTP response.
ContextWindowExceeded
The selected target rejected the request because its context window was exceeded.
The selected backend is temporarily unavailable.
Timeout
The upstream request timed out.
Transport
The upstream could not be reached or the request could not be sent.
InvalidResponse
The upstream response could not be decoded or validated.
RequestTranslation
Decoding the inbound request failed in translation.
RequestEncoding
Encoding the request for the upstream failed in translation.
ResponseTranslation
Decoding or encoding the response failed in translation.
InvalidRequest
The request cannot be served as supplied.
Configuration
The configured route or client cannot serve the request.
Algorithm
The routing algorithm or driver could not produce an outcome.
Other
A failure without a safe, more specific kind.
Implementations§
Trait Implementations§
Source§impl Clone for RouteErrorKind
impl Clone for RouteErrorKind
Source§fn clone(&self) -> RouteErrorKind
fn clone(&self) -> RouteErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more