Trait CapStdExtCommandExt

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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§