Struct cage::command_runner::OsCommand [−][src]
pub struct OsCommand { /* fields omitted */ }
A wrapper around std::process:Command
which logs the commands run.
Trait Implementations
impl Command for OsCommand
[src]
impl Command for OsCommand
[src]fn args<S: AsRef<OsStr>>(&mut self, args: &[S]) -> &mut Self
[src]
fn args<S: AsRef<OsStr>>(&mut self, args: &[S]) -> &mut Self
[src]Add several arguments to our command.
fn env<K, V>(&mut self, key: K, val: V) -> &mut Self where
K: AsRef<OsStr>,
V: AsRef<OsStr>,
[src]
fn env<K, V>(&mut self, key: K, val: V) -> &mut Self where
K: AsRef<OsStr>,
V: AsRef<OsStr>,
[src]Set an environment variable for the process we’re about to run.
fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self
[src]
fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Self
[src]Set the current working directory for the child process we’ll create. Read more
fn status(&mut self) -> Result<ExitStatus>
[src]
fn status(&mut self) -> Result<ExitStatus>
[src]Run our command.
fn command_failed_error(&self) -> ErrorKind
[src]
fn command_failed_error(&self) -> ErrorKind
[src]Make an error representing a failure of this command.
Auto Trait Implementations
impl !RefUnwindSafe for OsCommand
impl Send for OsCommand
impl Sync for OsCommand
impl Unpin for OsCommand
impl !UnwindSafe for OsCommand
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,