pub enum ProcessError {
StartFailed(String),
StopFailed(String),
NotRunning(String),
HealthCheckFailed(String),
Configuration(String),
ResourceExhausted(String),
Internal(String),
}Expand description
Domain-specific errors for process runner operations.
This error type abstracts away process management implementation details and provides a clean interface for services to handle process failures.
Variants§
StartFailed(String)
Failed to start the process.
StopFailed(String)
Failed to stop the process.
NotRunning(String)
The process is not running.
HealthCheckFailed(String)
Health check failed.
Configuration(String)
Configuration error.
ResourceExhausted(String)
Resource exhaustion (e.g., no available ports).
Internal(String)
Internal process error.
Trait Implementations§
Source§impl Debug for ProcessError
impl Debug for ProcessError
Source§impl Display for ProcessError
impl Display for ProcessError
Source§impl Error for ProcessError
impl Error for ProcessError
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()
Source§impl From<ProcessError> for CoreError
impl From<ProcessError> for CoreError
Source§fn from(source: ProcessError) -> Self
fn from(source: ProcessError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessError
impl RefUnwindSafe for ProcessError
impl Send for ProcessError
impl Sync for ProcessError
impl Unpin for ProcessError
impl UnwindSafe for ProcessError
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