Trait cradle::CmdOutput[][src]

pub trait CmdOutput: Sized { }
Expand description

All possible return types of cmd! have to implement this trait. For documentation about what these return types do, see the individual implementations below.

Except for tuples: All CmdOutput implementations for tuples serve the same purpose: combining multiple types that implement CmdOutput to retrieve more information from a child process. The following code for example retrieves what’s written to stdout and the ExitStatus:

use cradle::*;

let (StdoutUntrimmed(stdout), Exit(status)) = cmd!(%"echo foo");
assert_eq!(stdout, "foo\n");
assert!(status.success());

Implementations on Foreign Types

Use this when you don’t need any result from the child process.

Implementors