Struct simple_cmd::CommandBuilder
source · pub struct CommandBuilder { /* private fields */ }
Implementations§
source§impl CommandBuilder
impl CommandBuilder
pub fn new<S: AsRef<OsStr>>(program: S) -> CommandBuilder
pub fn with_debug(self, debug: bool) -> Self
pub fn with_timeout(self, duration: Duration) -> Self
pub fn timeout(self, duration: Option<Duration>) -> Self
pub fn with_signal(self, signal: Receiver<()>) -> Self
pub fn signal(self, signal: Option<Receiver<()>>) -> Self
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
pub fn with_arg<S: AsRef<OsStr>>(self, arg: S) -> Self
pub fn args<I, S>(self, args: I) -> Self
pub fn with_args<I, S>(self, args: I) -> Self
pub fn stdout<T: Into<Stdio>>(self, cfg: Option<T>) -> Self
pub fn stderr<T: Into<Stdio>>(self, cfg: Option<T>) -> Self
pub fn stdin<T: Into<Stdio>>(self, cfg: Option<T>) -> Self
pub fn build(self) -> Cmd
Trait Implementations§
source§impl Debug for CommandBuilder
impl Debug for CommandBuilder
source§impl Display for CommandBuilder
impl Display for CommandBuilder
source§impl From<CommandBuilder> for Command
impl From<CommandBuilder> for Command
source§fn from(value: CommandBuilder) -> Self
fn from(value: CommandBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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