Struct pipers::Pipe
[−]
[src]
pub struct Pipe { /* fields omitted */ }
Data structure used to hold processes and allows for the chaining of commands
Methods
impl Pipe
[src]
fn new(command: &str) -> Pipe
Creates a new Pipe
by taking in a command
as input. An empty string as input will
cause the eventual end of the piping to have
an error returned. Make sure you place in an
actual command.
fn then(self, command: &str) -> Pipe
This is used to chain commands together. Use this for each command that you want to pipe.
fn finally(self) -> Result<Child>
Return the Child
process of the final command that
had data piped into it.