pub enum ProcessRunError {
CancelledBeforeSpawn {
program: PathBuf,
},
Spawn {
program: PathBuf,
provenance: ExecutableProvenance,
source: Error,
},
MissingPipe {
program: PathBuf,
stream: ProcessStream,
},
ConfigurePipe {
program: PathBuf,
stream: ProcessStream,
source: Error,
},
Poll {
program: PathBuf,
source: Error,
},
Terminate {
program: PathBuf,
source: Error,
},
Reap {
program: PathBuf,
source: Error,
},
Capture {
program: PathBuf,
stream: ProcessStream,
source: Error,
},
CleanupDeadline {
program: PathBuf,
},
UnsupportedPlatformGuarantee {
feature: &'static str,
},
}Expand description
Structured failure while starting, supervising, or capturing a child.
Variants§
CancelledBeforeSpawn
Cooperative cancellation was already requested before spawn.
Spawn
The child could not be started.
Fields
§
provenance: ExecutableProvenanceExecutable-selection provenance.
MissingPipe
A configured pipe was unexpectedly unavailable.
ConfigurePipe
A capture pipe could not be switched to nonblocking mode.
Fields
§
stream: ProcessStreamStream that could not be configured.
Poll
The child status could not be polled.
Terminate
The child process scope could not be terminated during cleanup.
Reap
The child could not be reaped.
Capture
Draining a child stream failed.
Fields
§
stream: ProcessStreamStream that failed.
CleanupDeadline
The direct child did not become reapable within the cleanup grace.
UnsupportedPlatformGuarantee
The platform cannot provide the process-tree deadline guarantee.
Implementations§
Source§impl ProcessRunError
impl ProcessRunError
Sourcepub fn spawn_error_kind(&self) -> Option<ErrorKind>
pub fn spawn_error_kind(&self) -> Option<ErrorKind>
Return the operating-system error kind when spawning failed.
Trait Implementations§
Source§impl Debug for ProcessRunError
impl Debug for ProcessRunError
Source§impl Display for ProcessRunError
impl Display for ProcessRunError
Source§impl Error for ProcessRunError
impl Error for ProcessRunError
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 !RefUnwindSafe for ProcessRunError
impl !UnwindSafe for ProcessRunError
impl Freeze for ProcessRunError
impl Send for ProcessRunError
impl Sync for ProcessRunError
impl Unpin for ProcessRunError
impl UnsafeUnpin for ProcessRunError
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