Trait pty_process::Command [−][src]
pub trait Command {
type Child;
type Pty;
fn spawn_pty(
&mut self,
size: Option<&Size>
) -> Result<Child<Self::Child, Self::Pty>>;
}Expand description
Adds methods to the existing Command struct.
This trait is automatically implemented for a backend’s Command struct
when that backend’s feature is enabled.
Associated Types
Required methods
Creates a new pty, associates the command’s stdin/stdout/stderr with
that pty, and then calls spawn. This will override any previous
calls to stdin/stdout/stderr.
Errors
Error::CreatePty: error creating ptyError::SetTermSize: error setting terminal sizeError::Spawn: error spawning subprocess
