pub trait ShellProcess {
    fn is_echoing(&self) -> bool;
    fn check_is_alive(&mut self) -> Result<()>;
    fn terminate(self) -> Result<()>;
}
Expand description

Representation of a shell process.

Required Methods

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

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.

Implementors