pub trait ShellProcess {
    fn check_is_alive(&mut self) -> Result<()>;
    fn terminate(self) -> Result<()>;

    fn is_echoing(&self) -> bool { ... }
}
Expand description

Representation of a shell process.

Required Methods§

Checks if the process is alive.

Errors

Returns an error if the process is not alive. Should include debug details if possible (e.g., the exit status of the process).

Terminates the shell process. This can include killing it if necessary.

Errors

Returns an error if the process cannot be killed.

Provided Methods§

Returns true if the input commands are echoed back to the output.

The default implementation returns false.

Implementations on Foreign Types§

Implementors§