#[non_exhaustive]pub enum WaitOrTerminateError {
WaitFailed {
process_name: Cow<'static, str>,
wait_error: Box<WaitError>,
termination_status: ExitStatus,
},
TerminationFailed {
process_name: Cow<'static, str>,
wait_error: Box<WaitError>,
termination_error: TerminationError,
},
TerminationAfterTimeoutFailed {
process_name: Cow<'static, str>,
timeout: Duration,
termination_error: TerminationError,
},
}Expand description
Errors that can occur when waiting for a process with automatic termination on failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WaitFailed
Waiting failed, but the subsequent cleanup termination succeeded.
Fields
§
termination_status: ExitStatusThe status observed after cleanup termination.
TerminationFailed
Waiting failed, and the subsequent cleanup termination also failed.
Fields
§
termination_error: TerminationErrorThe error returned while trying to terminate the process after the wait failure.
TerminationAfterTimeoutFailed
Waiting timed out, and the subsequent cleanup termination failed.
Trait Implementations§
Source§impl Debug for WaitOrTerminateError
impl Debug for WaitOrTerminateError
Source§impl Display for WaitOrTerminateError
impl Display for WaitOrTerminateError
Source§impl Error for WaitOrTerminateError
impl Error for WaitOrTerminateError
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<WaitOrTerminateError> for WaitWithOutputError
impl From<WaitOrTerminateError> for WaitWithOutputError
Source§fn from(source: WaitOrTerminateError) -> Self
fn from(source: WaitOrTerminateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WaitOrTerminateError
impl !RefUnwindSafe for WaitOrTerminateError
impl Send for WaitOrTerminateError
impl Sync for WaitOrTerminateError
impl Unpin for WaitOrTerminateError
impl UnsafeUnpin for WaitOrTerminateError
impl !UnwindSafe for WaitOrTerminateError
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