pub struct SystemBinary { /* private fields */ }Expand description
The executables on a PATH.
§Examples
use agentstacks::port::Binary;
use agentstacks::process::SystemBinary;
use agentstacks::types::BinaryName;
// Without a `PATH` nothing is found.
let binaries = SystemBinary::new(None);
assert!(!binaries.on_path(&BinaryName::new("git")?));Implementations§
Trait Implementations§
Source§impl Binary for SystemBinary
impl Binary for SystemBinary
Source§fn airsl_version(&self) -> AirslAnswer
fn airsl_version(&self) -> AirslAnswer
What running
airsl --version learned. Read moreSource§fn airsl_test(&self, dir: &Path) -> Result<LuaTestRun>
fn airsl_test(&self, dir: &Path) -> Result<LuaTestRun>
Source§impl Clone for SystemBinary
impl Clone for SystemBinary
Auto Trait Implementations§
impl Forget for SystemBinary
impl Freeze for SystemBinary
impl Move for SystemBinary
impl RefUnwindSafe for SystemBinary
impl Send for SystemBinary
impl Sync for SystemBinary
impl Unpin for SystemBinary
impl UnsafeUnpin for SystemBinary
impl UnwindSafe for SystemBinary
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<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