pub struct Invocation { /* private fields */ }Expand description
A single candidate invocation built by a conformance case.
Implementations§
Source§impl Invocation
impl Invocation
Sourcepub fn current_dir(self, path: impl Into<PathBuf>) -> Self
pub fn current_dir(self, path: impl Into<PathBuf>) -> Self
Sets the candidate working directory.
Sourcepub fn env(self, name: impl Into<OsString>, value: impl Into<OsString>) -> Self
pub fn env(self, name: impl Into<OsString>, value: impl Into<OsString>) -> Self
Sets one environment value for this invocation.
Sourcepub fn env_remove(self, name: impl Into<OsString>) -> Self
pub fn env_remove(self, name: impl Into<OsString>) -> Self
Removes one inherited environment value for this invocation.
Sourcepub fn capture_limit(self, bytes_per_stream: usize) -> Self
pub fn capture_limit(self, bytes_per_stream: usize) -> Self
Limits retained stdout and stderr bytes independently.
Runners must continue draining both streams and return
RunnerError::OutputLimitExceeded if either stream exceeds this
limit.
Sourcepub fn working_directory(&self) -> Option<&Path>
pub fn working_directory(&self) -> Option<&Path>
Returns the requested working directory.
Sourcepub fn environment(&self) -> &[EnvironmentChange]
pub fn environment(&self) -> &[EnvironmentChange]
Returns the environment changes in application order.
Sourcepub fn stdin_mode(&self) -> &StdinMode
pub fn stdin_mode(&self) -> &StdinMode
Returns the requested input mode.
Sourcepub fn timeout_value(&self) -> Option<Duration>
pub fn timeout_value(&self) -> Option<Duration>
Returns the invocation timeout.
Sourcepub fn capture_limit_value(&self) -> Option<usize>
pub fn capture_limit_value(&self) -> Option<usize>
Returns the maximum bytes retained from each output stream.
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§fn clone(&self) -> Invocation
fn clone(&self) -> Invocation
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 Invocation
impl Debug for Invocation
Source§impl Default for Invocation
impl Default for Invocation
Source§fn default() -> Invocation
fn default() -> Invocation
Returns the “default value” for a type. Read more
impl Eq for Invocation
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.