[][src]Struct conch_runtime::env::ExecutableData

pub struct ExecutableData<'a> {
    pub name: Cow<'a, OsStr>,
    pub args: Vec<Cow<'a, OsStr>>,
    pub env_vars: Vec<(Cow<'a, OsStr>, Cow<'a, OsStr>)>,
    pub current_dir: Cow<'a, Path>,
    pub stdin: Option<FileDesc>,
    pub stdout: Option<FileDesc>,
    pub stderr: Option<FileDesc>,
}

Any data required to execute a child process.

Fields

name: Cow<'a, OsStr>

The name/path to the executable.

args: Vec<Cow<'a, OsStr>>

Arguments to be provided to the executable.

env_vars: Vec<(Cow<'a, OsStr>, Cow<'a, OsStr>)>

Any environment variables that should be passed to the executable. Environment variables from the current process must NOT be inherited if they do not appear in this collection.

current_dir: Cow<'a, Path>

The current working directory the executable should start out with.

stdin: Option<FileDesc>

The executable's standard input will be redirected to this descriptor or the equivalent of /dev/null if not specified.

stdout: Option<FileDesc>

The executable's standard output will be redirected to this descriptor or the equivalent of /dev/null if not specified.

stderr: Option<FileDesc>

The executable's standard error will be redirected to this descriptor or the equivalent of /dev/null if not specified.

Methods

impl<'a> ExecutableData<'a>[src]

pub fn into_owned(self) -> ExecutableData<'static>[src]

Ensures all inner data is fully owned and thus lifted to a 'static lifetime.

Trait Implementations

impl<'a> Eq for ExecutableData<'a>[src]

impl<'a> PartialEq<ExecutableData<'a>> for ExecutableData<'a>[src]

impl<'a> Debug for ExecutableData<'a>[src]

Auto Trait Implementations

impl<'a> Send for ExecutableData<'a>

impl<'a> Sync for ExecutableData<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T