pub enum ExecutableStatus {
Found(Found),
NotOnPath,
ConfiguredMissing(PathBuf),
Unsupported(PathBuf),
}Expand description
Where agents resolved an agent’s executable to (SP5a design §3). Each variant is a listed fact,
not an error.
Variants§
Found(Found)
exe::discover resolved it: the path, and whether it came from the configuration or PATH.
NotOnPath
Nothing configured, and no absolute PATH entry holds it.
ConfiguredMissing(PathBuf)
The configured path is not a file.
Unsupported(PathBuf)
The resolved file would launch through a shell (a .cmd/.bat/.ps1 script or shim).
Implementations§
Source§impl ExecutableStatus
impl ExecutableStatus
Sourcepub fn discover(
metadata: &AdapterMetadata,
explicit: Option<&Path>,
path_var: Option<&OsStr>,
config_file: &Path,
) -> Result<ExecutableStatus>
pub fn discover( metadata: &AdapterMetadata, explicit: Option<&Path>, path_var: Option<&OsStr>, config_file: &Path, ) -> Result<ExecutableStatus>
Resolves an agent’s executable to a listed fact. Not-installed and unsupported outcomes become variants; any other discovery error propagates.
Trait Implementations§
Source§impl Clone for ExecutableStatus
impl Clone for ExecutableStatus
Source§fn clone(&self) -> ExecutableStatus
fn clone(&self) -> ExecutableStatus
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 ExecutableStatus
impl Debug for ExecutableStatus
impl Eq for ExecutableStatus
Source§impl PartialEq for ExecutableStatus
impl PartialEq for ExecutableStatus
impl StructuralPartialEq for ExecutableStatus
Auto Trait Implementations§
impl Freeze for ExecutableStatus
impl RefUnwindSafe for ExecutableStatus
impl Send for ExecutableStatus
impl Sync for ExecutableStatus
impl Unpin for ExecutableStatus
impl UnsafeUnpin for ExecutableStatus
impl UnwindSafe for ExecutableStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.