pub struct RecordedRunCall {
pub name: String,
pub args: Vec<String>,
pub env: Option<Vec<String>>,
pub timeout: Option<Duration>,
}Expand description
One recorded call to MockCommandRunner::run, captured regardless of
whether an expectation matched it. Exists because Matcher::Predicate
only sees (name, args), not opts. Carries env/timeout rather
than the full Options, since Options::stdin (Box<dyn Read + Send>)
isn’t Clone and doesn’t need recording for this purpose anyway –
see MockCommandRunner::recorded_run_calls.
Fields§
§name: String§args: Vec<String>§env: Option<Vec<String>>§timeout: Option<Duration>Trait Implementations§
Source§impl Clone for RecordedRunCall
impl Clone for RecordedRunCall
Source§fn clone(&self) -> RecordedRunCall
fn clone(&self) -> RecordedRunCall
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 moreAuto Trait Implementations§
impl Freeze for RecordedRunCall
impl RefUnwindSafe for RecordedRunCall
impl Send for RecordedRunCall
impl Sync for RecordedRunCall
impl Unpin for RecordedRunCall
impl UnsafeUnpin for RecordedRunCall
impl UnwindSafe for RecordedRunCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more