pub struct DeclaredExecutable { /* private fields */ }Expand description
An executable whose selection source is explicit in the type.
Implementations§
Source§impl DeclaredExecutable
impl DeclaredExecutable
Sourcepub fn path_search(
program: impl AsRef<Path>,
) -> Result<Self, ExecutablePolicyError>
pub fn path_search( program: impl AsRef<Path>, ) -> Result<Self, ExecutablePolicyError>
Declare a fixed program name that Mobench may resolve through PATH.
Sourcepub fn explicit_override(
program: impl AsRef<Path>,
) -> Result<Self, ExecutablePolicyError>
pub fn explicit_override( program: impl AsRef<Path>, ) -> Result<Self, ExecutablePolicyError>
Accept a caller-supplied program name or path through an explicit seam.
Sourcepub fn provenance(&self) -> ExecutableProvenance
pub fn provenance(&self) -> ExecutableProvenance
Return how this executable was selected.
Sourcepub fn command(&self) -> Command
pub fn command(&self) -> Command
Construct a raw command for the declared executable.
Prefer ProcessRunner for production subprocesses that need bounded
output, a deadline, and explicit cwd/environment policies.
Trait Implementations§
Source§impl Clone for DeclaredExecutable
impl Clone for DeclaredExecutable
Source§impl Debug for DeclaredExecutable
impl Debug for DeclaredExecutable
impl Eq for DeclaredExecutable
Source§impl PartialEq for DeclaredExecutable
impl PartialEq for DeclaredExecutable
impl StructuralPartialEq for DeclaredExecutable
Auto Trait Implementations§
impl Freeze for DeclaredExecutable
impl RefUnwindSafe for DeclaredExecutable
impl Send for DeclaredExecutable
impl Sync for DeclaredExecutable
impl Unpin for DeclaredExecutable
impl UnsafeUnpin for DeclaredExecutable
impl UnwindSafe for DeclaredExecutable
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