pub trait ProcessExt {
    // Required methods
    fn get_command(&mut self) -> &mut Command;
    fn aborter(&self) -> Option<Arc<Notify>>;
    fn set_aborter(&mut self, aborter: Option<Arc<Notify>>);
    // Provided methods
    fn command(&mut self) -> &mut Command { ... }
    fn spawn_and_stream(&mut self) -> Result<ProcessStream> { ... }
    fn _spawn_and_stream(&mut self) -> Result<ProcessStream> { ... }
    fn take_stdin(&mut self) -> Option<ChildStdin> { ... }
    fn set_child_stdin(&mut self, _child_stdin: Option<ChildStdin>) { ... }
    fn get_stdin(&mut self) -> Option<Stdio> { ... }
    fn get_stdout(&mut self) -> Option<Stdio> { ... }
    fn get_stderr(&mut self) -> Option<Stdio> { ... }
}Expand description
ProcessExt trait that needs to be implemented to make something streamable
Required Methods§
Sourcefn get_command(&mut self) -> &mut Command
 
fn get_command(&mut self) -> &mut Command
Get command that will be used to create a child process from
Sourcefn set_aborter(&mut self, aborter: Option<Arc<Notify>>)
 
fn set_aborter(&mut self, aborter: Option<Arc<Notify>>)
Set the notifier that should be used to abort the process
Provided Methods§
Sourcefn spawn_and_stream(&mut self) -> Result<ProcessStream>
 
fn spawn_and_stream(&mut self) -> Result<ProcessStream>
Spawn and stream process
Sourcefn _spawn_and_stream(&mut self) -> Result<ProcessStream>
 
fn _spawn_and_stream(&mut self) -> Result<ProcessStream>
Spawn and stream process (avoid custom implementation, use spawn_and_stream instead)
Sourcefn take_stdin(&mut self) -> Option<ChildStdin>
 
fn take_stdin(&mut self) -> Option<ChildStdin>
Get process stdin
Sourcefn set_child_stdin(&mut self, _child_stdin: Option<ChildStdin>)
 
fn set_child_stdin(&mut self, _child_stdin: Option<ChildStdin>)
Set process stdin
Sourcefn get_stdout(&mut self) -> Option<Stdio>
 
fn get_stdout(&mut self) -> Option<Stdio>
get process stdout pipe
Sourcefn get_stderr(&mut self) -> Option<Stdio>
 
fn get_stderr(&mut self) -> Option<Stdio>
get process stderr pipe