Struct memfd_exec::Child
source · pub struct Child {
pub stdin: Option<ChildStdin>,
pub stdout: Option<ChildStdout>,
pub stderr: Option<ChildStderr>,
/* private fields */
}Expand description
A child process created from a MemFdExecutable with handles to input and output streams
Fields§
§stdin: Option<ChildStdin>The input stream to the child process
stdout: Option<ChildStdout>The output stream from the child process
stderr: Option<ChildStderr>The error stream from the child process
Implementations§
source§impl Child
impl Child
pub fn new(handle: Process, stdio: StdioPipes) -> Self
sourcepub fn wait(&mut self) -> Result<ExitStatus>
pub fn wait(&mut self) -> Result<ExitStatus>
Wait for the child process to exit, returning the exit status code
sourcepub fn try_wait(&mut self) -> Result<Option<ExitStatus>>
pub fn try_wait(&mut self) -> Result<Option<ExitStatus>>
Try and wait for the child process to exit, returning the exit status code if it has
sourcepub fn wait_with_output(self) -> Result<Output>
pub fn wait_with_output(self) -> Result<Output>
Wait for the child process to exit, returning the exit status code and the output streams