Skip to main content

PtySlave

Trait PtySlave 

Source
pub trait PtySlave: Send + 'static {
    type Child: PtyChild;

    // Required method
    fn spawn(
        self,
        argv: &[OsString],
        cwd: Option<&Path>,
        env: Option<&[(OsString, OsString)]>,
    ) -> Result<Self::Child>;
}

Required Associated Types§

Required Methods§

Source

fn spawn( self, argv: &[OsString], cwd: Option<&Path>, env: Option<&[(OsString, OsString)]>, ) -> Result<Self::Child>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§