pub struct CommandConfigBuilder { /* private fields */ }
Implementations§
Source§impl CommandConfigBuilder
impl CommandConfigBuilder
pub fn new( name: impl Into<String>, command: impl Into<String>, ) -> CommandConfigBuilder
pub fn arg(self, arg: impl Into<String>) -> CommandConfigBuilder
pub fn args(self, args: Vec<String>) -> CommandConfigBuilder
pub fn env( self, key: impl Into<String>, value: impl Into<String>, ) -> CommandConfigBuilder
pub fn working_dir(self, path: PathBuf) -> CommandConfigBuilder
pub fn description(self, desc: impl Into<String>) -> CommandConfigBuilder
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