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]
impl<'a> ExecutableData<'a>pub fn into_owned(self) -> ExecutableData<'static>[src]
pub fn into_owned(self) -> ExecutableData<'static>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> Debug for ExecutableData<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> PartialEq for ExecutableData<'a>[src]
impl<'a> PartialEq for ExecutableData<'a>fn eq(&self, other: &ExecutableData<'a>) -> bool[src]
fn eq(&self, other: &ExecutableData<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ExecutableData<'a>) -> bool[src]
fn ne(&self, other: &ExecutableData<'a>) -> boolThis method tests for !=.
impl<'a> Eq for ExecutableData<'a>[src]
impl<'a> Eq for ExecutableData<'a>Auto Trait Implementations
impl<'a> Send for ExecutableData<'a>
impl<'a> Send for ExecutableData<'a>impl<'a> Sync for ExecutableData<'a>
impl<'a> Sync for ExecutableData<'a>