Trait term_transcript::traits::ShellProcess
source · [−]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
fn is_echoing(&self) -> bool
fn is_echoing(&self) -> bool
Returns true
if the input commands are echoed back to the output.
fn check_is_alive(&mut self) -> Result<()>
fn check_is_alive(&mut self) -> Result<()>
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).