pub enum KillProcessError {
ProcessNotFound(ProcessId),
ManagerCommunicationError(RecvError),
}
Expand description
Error type returned when trying to kill the process.
Variants§
ProcessNotFound(ProcessId)
The process with given ID was not found (the ID is wrong or the process has been already killed).
ManagerCommunicationError(RecvError)
Cannot communicate with spawned process manager. Probably process manager task has been aborted.
Trait Implementations§
Source§impl Debug for KillProcessError
impl Debug for KillProcessError
Source§impl Display for KillProcessError
impl Display for KillProcessError
Source§impl Error for KillProcessError
impl Error for KillProcessError
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 KillProcessError
impl RefUnwindSafe for KillProcessError
impl Send for KillProcessError
impl Sync for KillProcessError
impl Unpin for KillProcessError
impl UnwindSafe for KillProcessError
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