pub enum ProcessError {
CommandExecutionFailed(Error),
CommandFailed(String),
NoProcessFound(String),
MultipleProcessesFound(String, usize),
}
Expand description
Error type for process management operations
This enum represents various errors that can occur during process management operations such as listing, finding, or killing processes.
Variants§
CommandExecutionFailed(Error)
An error occurred while executing a command
CommandFailed(String)
A command executed successfully but returned an error
NoProcessFound(String)
No process was found matching the specified pattern
MultipleProcessesFound(String, usize)
Multiple processes were found matching the specified pattern
Trait Implementations§
Source§impl Debug for ProcessError
impl Debug for ProcessError
Source§impl Display for ProcessError
Implement Display for ProcessError to provide human-readable error messages
impl Display for ProcessError
Implement Display for ProcessError to provide human-readable error messages
Source§impl Error for ProcessError
impl Error for ProcessError
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 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