pub struct ExecutableData<'a> {
pub name: &'a OsStr,
pub args: &'a [&'a OsStr],
pub env_vars: &'a [(&'a OsStr, &'a OsStr)],
pub current_dir: &'a Path,
pub stdin: Option<FileDesc>,
pub stdout: Option<FileDesc>,
pub stderr: Option<FileDesc>,
}Expand description
Any data required to execute a child process.
Fields§
§name: &'a OsStrThe name/path to the executable.
args: &'a [&'a OsStr]Arguments to be provided to the executable.
env_vars: &'a [(&'a OsStr, &'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: &'a PathThe 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.
Trait Implementations§
Source§impl<'a> Debug for ExecutableData<'a>
impl<'a> Debug for ExecutableData<'a>
Source§impl<'a> PartialEq for ExecutableData<'a>
impl<'a> PartialEq for ExecutableData<'a>
impl<'a> Eq for ExecutableData<'a>
impl<'a> StructuralPartialEq for ExecutableData<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExecutableData<'a>
impl<'a> RefUnwindSafe for ExecutableData<'a>
impl<'a> Send for ExecutableData<'a>
impl<'a> Sync for ExecutableData<'a>
impl<'a> Unpin for ExecutableData<'a>
impl<'a> UnwindSafe for ExecutableData<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more