pub enum EggressError {
Config(String),
Runtime(String),
Startup(String),
Reload(String),
Shutdown(String),
UnsupportedFeature {
feature: String,
message: String,
},
Internal(String),
}Expand description
Stable error type for the embed API.
All variants carry string messages with credentials redacted. The variants are designed for stable PyO3 mapping in later phases.
Variants§
Config(String)
Configuration parsing or validation error.
Runtime(String)
Runtime initialization error.
Startup(String)
Service startup error.
Reload(String)
Configuration reload error.
Shutdown(String)
Shutdown error.
UnsupportedFeature
Attempted to use a feature not supported by the embed API.
Internal(String)
Internal error (should not occur in normal usage).
Implementations§
Trait Implementations§
Source§impl Debug for EggressError
impl Debug for EggressError
Source§impl Display for EggressError
impl Display for EggressError
Source§impl Error for EggressError
impl Error for EggressError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for EggressError
impl RefUnwindSafe for EggressError
impl Send for EggressError
impl Sync for EggressError
impl Unpin for EggressError
impl UnsafeUnpin for EggressError
impl UnwindSafe for EggressError
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