Struct conch_runtime::env::ExecutableData
[−]
[src]
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]
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> Debug for ExecutableData<'a>
[src]
impl<'a> PartialEq for ExecutableData<'a>
[src]
fn eq(&self, __arg_0: &ExecutableData<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExecutableData<'a>) -> bool
[src]
This method tests for !=
.