pub struct ExecOptions {
pub executable: PathBuf,
pub args: Vec<CString>,
pub env: Vec<CString>,
/* private fields */
}
Fields§
§executable: PathBuf
§args: Vec<CString>
§env: Vec<CString>
Implementations§
Source§impl ExecOptions
impl ExecOptions
pub fn new(executable: impl AsRef<Path>) -> Self
pub fn arg(&mut self, value: impl AsRef<CStr>) -> &mut Self
pub fn args( &mut self, values: impl IntoIterator<Item = impl AsRef<CStr>>, ) -> &mut Self
pub fn env( &mut self, key: impl AsRef<CStr>, value: impl AsRef<CStr>, ) -> &mut Self
pub fn env_pairs( &mut self, pairs: impl IntoIterator<Item = impl AsRef<CStr>>, ) -> &mut Self
pub fn envs( &mut self, pairs: impl IntoIterator<Item = (impl AsRef<CStr>, impl AsRef<CStr>)>, ) -> &mut Self
pub fn override_interpreter( &mut self, interpreter: Option<impl AsRef<Path>>, ) -> &mut Self
Auto Trait Implementations§
impl Freeze for ExecOptions
impl RefUnwindSafe for ExecOptions
impl Send for ExecOptions
impl Sync for ExecOptions
impl Unpin for ExecOptions
impl UnwindSafe for ExecOptions
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