pub enum ProgramSearch {
Found {
program: AbsolutePath,
checked: Observations,
},
NotFound {
checked: Observations,
},
NotExecutable {
candidate: AbsolutePath,
checked: Observations,
},
}Expand description
The result of search_program: the result of a lookup, with every location
that it checked as a probe with its outcome.
Variants§
Found
The program was found.
Fields
§
program: AbsolutePathThe absolute path of the program.
§
checked: ObservationsEvery location checked, the program’s included, as probes.
NotFound
No location holds the program.
Fields
§
checked: ObservationsEvery location checked, as probes.
NotExecutable
A location holds the program, but it is not an executable regular file, and no later location holds an executable one.
Fields
§
candidate: AbsolutePathThe first location that holds the program.
§
checked: ObservationsEvery location checked, as probes.
Implementations§
Source§impl ProgramSearch
impl ProgramSearch
Sourcepub const fn checked(&self) -> &Observations
pub const fn checked(&self) -> &Observations
Every location checked, as probes with their outcomes.
Sourcepub fn into_lookup(self) -> ProgramLookup
pub fn into_lookup(self) -> ProgramLookup
The same result as a ProgramLookup, whose checked locations are
accesses without outcomes.
Trait Implementations§
Source§impl Clone for ProgramSearch
impl Clone for ProgramSearch
Source§impl Debug for ProgramSearch
impl Debug for ProgramSearch
impl Eq for ProgramSearch
Source§impl PartialEq for ProgramSearch
impl PartialEq for ProgramSearch
impl StructuralPartialEq for ProgramSearch
Auto Trait Implementations§
impl Freeze for ProgramSearch
impl RefUnwindSafe for ProgramSearch
impl Send for ProgramSearch
impl Sync for ProgramSearch
impl Unpin for ProgramSearch
impl UnsafeUnpin for ProgramSearch
impl UnwindSafe for ProgramSearch
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more
impl<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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