pub struct RecordedRun {
pub program: PathBuf,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub inherit_stdio: bool,
}Expand description
A single recorded invocation, for test assertions. The exposed env values are captured only because this is a test double; production never copies a value out like this.
Fields§
§program: PathBufThe program that would have launched.
args: Vec<String>Its arguments.
env: Vec<(String, String)>The injected environment, exposed for assertions (name → value).
inherit_stdio: boolWhether the run requested stdio passthrough (KOV-65).
Implementations§
Trait Implementations§
Source§impl Clone for RecordedRun
impl Clone for RecordedRun
Source§fn clone(&self) -> RecordedRun
fn clone(&self) -> RecordedRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordedRun
impl Debug for RecordedRun
impl Eq for RecordedRun
Source§impl PartialEq for RecordedRun
impl PartialEq for RecordedRun
Source§fn eq(&self, other: &RecordedRun) -> bool
fn eq(&self, other: &RecordedRun) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordedRun
Auto Trait Implementations§
impl Freeze for RecordedRun
impl RefUnwindSafe for RecordedRun
impl Send for RecordedRun
impl Sync for RecordedRun
impl Unpin for RecordedRun
impl UnsafeUnpin for RecordedRun
impl UnwindSafe for RecordedRun
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