Skip to main content

interpret

Function interpret 

Source
pub fn interpret(
    success: bool,
    status: &str,
    stdout: &[u8],
    stderr: &[u8],
) -> Result<u64, String>
Expand description

A finished child: its reply when it gave a well-formed one and its exit status agrees (0 for ok, failure for err); otherwise a failure naming status and the first line of its stderr, if any.