pub struct CommandOptions { /* private fields */ }Implementations§
Source§impl CommandOptions
impl CommandOptions
pub fn new(program: impl Into<String>, cwd: impl Into<PathBuf>) -> Self
pub fn arg(self, arg: impl Into<String>) -> Self
pub fn args<I, S>(self, args: I) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn envs<I, K, V>(self, envs: I) -> Self
pub fn stdin(self, stdin: StdinMode) -> Self
pub fn no_stdin(self) -> Self
Trait Implementations§
Source§impl Clone for CommandOptions
impl Clone for CommandOptions
Source§fn clone(&self) -> CommandOptions
fn clone(&self) -> CommandOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandOptions
impl Debug for CommandOptions
Source§impl Default for CommandOptions
impl Default for CommandOptions
Source§fn default() -> CommandOptions
fn default() -> CommandOptions
Returns the “default value” for a type. Read more
impl Eq for CommandOptions
Source§impl PartialEq for CommandOptions
impl PartialEq for CommandOptions
impl StructuralPartialEq for CommandOptions
Auto Trait Implementations§
impl Freeze for CommandOptions
impl RefUnwindSafe for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Unpin for CommandOptions
impl UnsafeUnpin for CommandOptions
impl UnwindSafe for CommandOptions
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