pub trait CapStdExtCommandExt {
    // Required methods
    fn take_fd_n(&mut self, fd: Arc<OwnedFd>, target: i32) -> &mut Self;
    fn cwd_dir(&mut self, dir: Dir) -> &mut Self;
}
Expand description

Extension trait for std::process::Command.

Required Methods§

source

fn take_fd_n(&mut self, fd: Arc<OwnedFd>, target: i32) -> &mut Self

Pass a file descriptor into the target process.

source

fn cwd_dir(&mut self, dir: Dir) -> &mut Self

Use the given directory as the current working directory for the process.

Implementations on Foreign Types§

source§

impl CapStdExtCommandExt for Command

source§

fn take_fd_n(&mut self, fd: Arc<OwnedFd>, target: i32) -> &mut Self

source§

fn cwd_dir(&mut self, dir: Dir) -> &mut Self

Implementors§