[−][src]Struct stdbench::command::ExtCommand
Extension of Command
.
Methods
impl ExtCommand
[src]
pub fn new<S: AsRef<OsStr>>(program: S) -> Self
[src]
Constructs a new verbose command.
pub fn from(command: Command) -> Self
[src]
Constructs a new verbose command from the argument.
pub fn arg<S: AsRef<OsStr>>(self, arg: S) -> Self
[src]
Adds a single argument.
pub fn args<I, S>(self, args: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<OsStr>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<OsStr>,
Adds a sequence of arguments.
pub fn current_dir<P: AsRef<Path>>(self, dir: P) -> Self
[src]
Changes the directory from which the command will be executed.
pub fn output(self) -> Result<Output, Error>
[src]
Executes the command and waits for the output.
pub fn status(self) -> Result<ExitStatus, Error>
[src]
Executes the command and waits for the output.
pub fn stdin<T: Into<Stdio>>(self, cfg: T) -> Self
[src]
Configuration for the child process's standard input (stdin) handle.
pub fn pipe_command(self, command: Self) -> Self
[src]
Pipe another command.
pub fn pipe_new<S: AsRef<OsStr>>(self, program: S) -> Self
[src]
Pipe another command.
pub fn mute(self) -> Self
[src]
Turn off automatic printing.
Trait Implementations
impl From<Command> for ExtCommand
[src]
impl Display for ExtCommand
[src]
Auto Trait Implementations
impl !Sync for ExtCommand
impl Send for ExtCommand
impl Unpin for ExtCommand
impl !UnwindSafe for ExtCommand
impl !RefUnwindSafe for ExtCommand
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,