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>>; }

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

Loading content...

Required methods

fn spawn_pty(
    &mut self,
    size: Option<&Size>
) -> Result<Child<Self::Child, Self::Pty>>
[src]

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.

Loading content...

Implementors

impl<T> Command for T where
    T: CommandImpl,
    T::Pty: Pty,
    <<T as CommandImpl>::Pty as Pty>::Pt: AsRawFd
[src]

type Child = T::Child

type Pty = T::Pty

Loading content...