pub enum ProxyError {
Io {
message: String,
},
ExternalTool {
message: String,
},
Invalid {
message: String,
},
Lifecycle {
message: String,
},
}Expand description
Bounded-context error for the built-in proxy crate’s lifecycle and setup
path: building the Tokio runtime, validating proxy configuration, binding the
listener on the configured host and port, running the HTTP server, and
discovering the upstream prefill/decode backends it fronts. Each variant
preserves the kind of failure
plus the actionable detail, following the hand-rolled ConfigError
convention used by Inferlab rather than collapsing every failure into one
opaque string at the library boundary.
This is distinct from crate::core::ProxyHttpError, the per-request error
returned by the HTTP handlers (which carries an HTTP status and renders an
IntoResponse); ProxyError covers the process lifecycle that stands the
proxy up before any request is served.
Variants§
Io
A filesystem/network I/O operation failed (e.g. binding the listener or running the server loop).
ExternalTool
An external tool or upstream backend interaction failed during setup (e.g. discovering the prefill engines this proxy fronts).
Invalid
Proxy configuration failed validation (e.g. no prefill or decode endpoints were provided).
Lifecycle
A runtime/process lifecycle step failed (e.g. building the Tokio runtime).
Trait Implementations§
Source§impl Clone for ProxyError
impl Clone for ProxyError
Source§fn clone(&self) -> ProxyError
fn clone(&self) -> ProxyError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProxyError
impl Debug for ProxyError
Source§impl Display for ProxyError
impl Display for ProxyError
impl Eq for ProxyError
Source§impl Error for ProxyError
impl Error for ProxyError
1.30.0 · 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()
Source§impl PartialEq for ProxyError
impl PartialEq for ProxyError
Source§fn eq(&self, other: &ProxyError) -> bool
fn eq(&self, other: &ProxyError) -> bool
self and other values to be equal, and is used by ==.