pub struct CommandBuilder { /* private fields */ }
Implementations§
Source§impl CommandBuilder
impl CommandBuilder
pub fn new<P>(process: P) -> CommandBuilder
pub fn build(&self) -> Result<Command, Vec<CommandBuilderError>>
pub fn arg<A>(self, arg: A) -> CommandBuilder
pub fn env<K, V>(self, key: K, value: V) -> CommandBuilder
pub fn cwd<S>(self, cwd: Option<S>) -> CommandBuilder
Trait Implementations§
Source§impl From<Command> for CommandBuilder
impl From<Command> for CommandBuilder
Source§fn from(command: Command) -> CommandBuilder
fn from(command: Command) -> CommandBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandBuilder
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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