pub enum TerminationError {
SignallingFailed {
process_name: Cow<'static, str>,
source: Error,
signal: &'static str,
},
TerminationFailed {
process_name: Cow<'static, str>,
sigint_error: String,
sigterm_error: String,
sigkill_error: Error,
},
}Expand description
Errors that can occur when terminating a process.
Variants§
SignallingFailed
Failed to send a signal to the process.
Fields
TerminationFailed
Failed to terminate the process after trying all signals (SIGINT, SIGTERM, SIGKILL).
Trait Implementations§
Source§impl Debug for TerminationError
impl Debug for TerminationError
Source§impl Display for TerminationError
impl Display for TerminationError
Source§impl Error for TerminationError
impl Error for TerminationError
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<TerminationError> for WaitError
impl From<TerminationError> for WaitError
Source§fn from(source: TerminationError) -> Self
fn from(source: TerminationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TerminationError
impl !RefUnwindSafe for TerminationError
impl Send for TerminationError
impl Sync for TerminationError
impl Unpin for TerminationError
impl !UnwindSafe for TerminationError
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