Struct watchexec_supervisor::command::Shell
source · 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§
source§impl PartialEq for Shell
impl PartialEq for Shell
impl Eq for Shell
impl StructuralEq for Shell
impl StructuralPartialEq for Shell
Auto Trait Implementations§
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