async fn wait_with_output(self) -> Result<io::Result<Output>, VmError> {
        let inner = match self.inner {
            Some(inner) => inner,
            None => {
                return Err(VmError::panic("already completed"));
            }
        };

        let output = match inner.wait_with_output().await {
            Ok(output) => output,
            Err(error) => return Ok(Err(error)),
        };

        Ok(Ok(Output {
            status: ExitStatus { status: output.status },
            stdout: Shared::new(Bytes::from_vec(output.stdout)),
            stderr: Shared::new(Bytes::from_vec(output.stderr)),
        }))
    }
// Returns a future that will resolve to an Output, containing the exit
// status, stdout, and stderr of the child process.
Returns a future that will resolve to an Output, containing the exit
status, stdout, and stderr of the child process.
Returns a future that will resolve to an Output containing the exit status stdout and stderr of the child process .
async fn wait_with_output(self) -> Result<io::Result<Output>, VmError> {
        let inner = match self.inner {
            Some(inner) => inner,
            None => {
                return Err(VmError::panic("already completed"));
            }
        };
        let output = match inner.wait_with_output().await {
            Ok(output) => output,
            Err(error) => return Ok(Err(error)),
        };
        Ok(Ok(Output {
            status: ExitStatus { status: output.status },
            stdout: Shared::new(Bytes::from_vec(output.stdout)),
            stderr: Shared::new(Bytes::from_vec(output.stderr)),
        }))
    }
async fn wait_with_output ( self ) -> Result < io :: Result < Output > , VmError > { let inner = match self . inner { Some ( inner ) => inner , None => { return Err ( VmError :: panic ( " " ) ) ; } } ; let output = match inner . wait_with_output ( ) . await { Ok ( output ) => output , Err ( error ) => return Ok ( Err ( error ) ) , } ; Ok ( Ok ( Output { status : ExitStatus { status : output . status } , stdout : Shared :: new ( Bytes :: from_vec ( output . stdout ) ) , stderr : Shared :: new ( Bytes :: from_vec ( output . stderr ) ) , } ) ) }
Returns a future that will resolve to an Output, containing the exit
status, stdout, and stderr of the child process.
Returns a future that will resolve to an Output containing the exit status stdout and stderr of the child process .
self
self