pub struct CommandConfigBuilder { /* private fields */ }Implementations§
Source§impl CommandConfigBuilder
impl CommandConfigBuilder
pub fn new(name: impl Into<String>, command: impl Into<String>) -> Self
pub fn arg(self, arg: impl Into<String>) -> Self
pub fn args(self, args: Vec<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn working_dir(self, path: PathBuf) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn build(self) -> CommandConfig
Auto Trait Implementations§
impl Freeze for CommandConfigBuilder
impl RefUnwindSafe for CommandConfigBuilder
impl Send for CommandConfigBuilder
impl Sync for CommandConfigBuilder
impl Unpin for CommandConfigBuilder
impl UnwindSafe for CommandConfigBuilder
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