Skip to main content

capture

Function capture 

Source
pub fn capture(command: &EngineCommand) -> Result<String, EngineError>
Expand description

Runs command to the end and returns what it printed to standard output.

It is given until the command’s deadline to end; past it the command is stopped and EngineError::TimedOut says so.

§Errors

When the engine cannot be started, runs and fails, or does not answer in time.