pub struct Shell {
pub prog: PathBuf,
pub options: Vec<String>,
pub program_option: Option<Cow<'static, OsStr>>,
}Expand description
How to call the shell used to run shelled programs.
Fields§
§prog: PathBufPath or name of the shell.
options: Vec<String>Additional options or arguments to pass to the shell.
These will be inserted before the program_option immediately preceding the program string.
program_option: Option<Cow<'static, OsStr>>The syntax of the option which precedes the program string.
For most shells, this is -c. On Windows, CMD.EXE prefers /C. If this is None, then no
option is prepended; this may be useful for non-shell or non-standard shell programs.
Implementations§
Trait Implementations§
impl Eq for Shell
impl StructuralPartialEq for Shell
Auto Trait Implementations§
impl Freeze for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnwindSafe for Shell
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.