Skip to main content

SlavePty

Trait SlavePty 

Source
pub trait SlavePty: Send {
    // Required method
    fn spawn_command(
        &self,
        cmd: CommandBuilder,
    ) -> Result<Box<dyn Child + Send + Sync>>;
}
Expand description

Represents the slave side of a pty. Can be used to spawn processes into the pty.

Required Methods§

Source

fn spawn_command( &self, cmd: CommandBuilder, ) -> Result<Box<dyn Child + Send + Sync>>

Spawns the command specified by the provided CommandBuilder.

Implementors§