Struct cage::command_runner::TestCommand [−][src]
pub struct TestCommand { /* fields omitted */ }
A fake command that gets logged to a TestCommandRunner
instead of
actually getting run.
Trait Implementations
impl Command for TestCommand
[src]
impl Command for TestCommand
[src]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 TestCommand
impl !Send for TestCommand
impl !Sync for TestCommand
impl Unpin for TestCommand
impl !UnwindSafe for TestCommand
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>,