pub enum ProcessGroupError {
Unsupported,
Spawn {
source: Error,
},
MissingProcessId,
ProcessIdOutOfRange {
pid: u32,
},
MissingPipe {
stream: &'static str,
},
Read {
stream: &'static str,
source: Error,
},
Reap {
source: Error,
},
Signal {
process_group: i32,
signal: &'static str,
source: Errno,
},
Probe {
process_group: i32,
source: Errno,
},
GroupStillAlive {
process_group: i32,
grace: Duration,
},
CleanupAfterFailure {
original: Box<ProcessGroupError>,
cleanup: Box<ProcessGroupError>,
},
}Expand description
A failure to start, observe, or completely stop a contained command.
Variants§
Unsupported
Process-group containment is unavailable on this target.
Spawn
The command could not be spawned.
MissingProcessId
The spawned child did not expose a process id.
ProcessIdOutOfRange
The platform process id did not fit the Unix pid_t representation.
MissingPipe
A configured output pipe was unexpectedly unavailable.
Read
Reading a captured output stream failed.
Reap
Waiting for or reaping the direct child failed.
Signal
Sending a signal to the process group failed.
Fields
Probe
Probing process-group existence failed.
GroupStillAlive
The group remained observable after SIGKILL and the verification bound.
Fields
CleanupAfterFailure
Command observation failed and the mandatory cleanup also failed.
Fields
original: Box<ProcessGroupError>Original command observation failure.
cleanup: Box<ProcessGroupError>Cleanup failure proving cancellation could not be confirmed.
Trait Implementations§
Source§impl Debug for ProcessGroupError
impl Debug for ProcessGroupError
Source§impl Display for ProcessGroupError
impl Display for ProcessGroupError
Source§impl Error for ProcessGroupError
impl Error for ProcessGroupError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessGroupError
impl !UnwindSafe for ProcessGroupError
impl Freeze for ProcessGroupError
impl Send for ProcessGroupError
impl Sync for ProcessGroupError
impl Unpin for ProcessGroupError
impl UnsafeUnpin for ProcessGroupError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request